aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


commit a2c7f0331d85d5ec3f022b831f3d32f7d738f5e0
parent 9820071cabdbaafe99307b9f1e68d8d6a6e15395
Author: anon <anon@example.com>
Date:   Mon,  2 Nov 2026 21:24:01 +0000

Skip empty translated word and dword fills

Diffstat:
MTODO.md | 13+++++++++----
Mclient/Makefile.linux | 8++++++++
Mclient/Makefile.wasm | 4++++
Mclient/game/aar.dll/lifted-0000.c | 2+-
Mclient/game/bbr.dll/lifted-0000.c | 46+++++++++++++++++++++++-----------------------
Mclient/game/bbr.dll/lifted-0006.c | 2+-
Mclient/game/bbr.dll/lifted-0008.c | 4++--
Mclient/game/bbr.dll/lifted-0018.c | 2+-
Mclient/game/bbr.dll/lifted-0019.c | 22+++++++++++-----------
Mclient/game/bbr.dll/lifted-0020.c | 36++++++++++++++++++------------------
Mclient/game/bbr.dll/lifted-0021.c | 16++++++++--------
Mclient/game/bbr.dll/lifted-0022.c | 6+++---
Mclient/game/bbr.dll/lifted-0023.c | 4++--
Mclient/game/bbr.dll/lifted-0024.c | 4++--
Mclient/game/bbr.dll/lifted-0025.c | 56++++++++++++++++++++++++++++----------------------------
Mclient/game/bbr.dll/lifted-0026.c | 92++++++++++++++++++++++++++++++++++++++++----------------------------------------
Mclient/game/bbr.dll/lifted-0028.c | 2+-
Mclient/game/bbr.dll/lifted-0029.c | 12++++++------
Mclient/game/bbr.dll/lifted-0030.c | 2+-
Mclient/game/bbr.dll/lifted-0031.c | 2+-
Mclient/game/bbr.dll/lifted-0036.c | 4++--
Mclient/game/bbr.dll/lifted-0037.c | 2+-
Mclient/game/bbr.dll/lifted-0038.c | 32++++++++++++++++----------------
Mclient/game/bbr.dll/lifted-0040.c | 6+++---
Mclient/game/bbr.dll/lifted-0041.c | 14+++++++-------
Mclient/game/bbr.dll/lifted-0042.c | 8++++----
Mclient/game/bbr.dll/lifted-0043.c | 6+++---
Mclient/game/bbr.dll/lifted-0045.c | 16++++++++--------
Mclient/game/bbr.dll/lifted-0046.c | 12++++++------
Mclient/game/bbr.dll/lifted-0050.c | 22+++++++++++-----------
Mclient/game/bbr.dll/lifted-0051.c | 2+-
Mclient/game/bbr.dll/lifted-0053.c | 10+++++-----
Mclient/game/bbr.dll/lifted-0056.c | 8++++----
Mclient/game/bbr.dll/lifted-0057.c | 8++++----
Mclient/game/bbr.dll/lifted-0058.c | 12++++++------
Mclient/game/bbr.dll/lifted-0060.c | 2+-
Mclient/game/bbr.dll/lifted-0064.c | 4++--
Mclient/game/bbr.dll/lifted-0065.c | 8++++----
Mclient/game/bbr.dll/lifted-0068.c | 64++++++++++++++++++++++++++++++++--------------------------------
Mclient/game/bbr.dll/lifted-0071.c | 2+-
Mclient/game/bbr.dll/lifted-0073.c | 2+-
Mclient/game/bbr.dll/lifted-0074.c | 4++--
Mclient/game/bbr.dll/lifted-0076.c | 2+-
Mclient/game/bbr.dll/lifted-0078.c | 2+-
Mclient/game/bbr.dll/lifted-0080.c | 26+++++++++++++-------------
Mclient/game/bbr.dll/lifted-0081.c | 44++++++++++++++++++++++----------------------
Mclient/game/bbr.dll/lifted-0082.c | 16++++++++--------
Mclient/game/bbr.dll/lifted-0083.c | 8++++----
Mclient/game/br.dll/lifted-0000.c | 2+-
Mclient/game/ccr.dll/lifted-0000.c | 6+++---
Mclient/game/ccr.dll/lifted-0001.c | 4++--
Mclient/game/ccr.dll/lifted-0003.c | 2+-
Mclient/game/ccr.dll/lifted-0004.c | 6+++---
Mclient/game/ccr.dll/lifted-0005.c | 4++--
Mclient/game/ccr.dll/lifted-0006.c | 4++--
Mclient/game/ccr.dll/lifted-0009.c | 4++--
Mclient/game/ccr.dll/lifted-0011.c | 2+-
Mclient/game/ccr.dll/lifted-0012.c | 2+-
Mclient/game/cr.dll/lifted-0000.c | 2+-
Mclient/game/ddr.dll/lifted-0000.c | 8++++----
Mclient/game/ddr.dll/lifted-0005.c | 4++--
Mclient/game/ddr.dll/lifted-0006.c | 16++++++++--------
Mclient/game/ddr.dll/lifted-0013.c | 12++++++------
Mclient/game/ddr.dll/lifted-0015.c | 2+-
Mclient/game/ddr.dll/lifted-0016.c | 14+++++++-------
Mclient/game/ddr.dll/lifted-0017.c | 16++++++++--------
Mclient/game/ddr.dll/lifted-0018.c | 10+++++-----
Mclient/game/ddr.dll/lifted-0019.c | 12++++++------
Mclient/game/ddr.dll/lifted-0022.c | 14+++++++-------
Mclient/game/ddr.dll/lifted-0023.c | 2+-
Mclient/game/ddr.dll/lifted-0024.c | 2+-
Mclient/game/ddr.dll/lifted-0025.c | 8++++----
Mclient/game/ddr.dll/lifted-0028.c | 14+++++++-------
Mclient/game/ddr.dll/lifted-0029.c | 104++++++++++++++++++++++++++++++++++++++++----------------------------------------
Mclient/game/ddr.dll/lifted-0030.c | 2+-
Mclient/game/ddr.dll/lifted-0031.c | 50+++++++++++++++++++++++++-------------------------
Mclient/game/ddr.dll/lifted-0032.c | 50+++++++++++++++++++++++++-------------------------
Mclient/game/ddr.dll/lifted-0033.c | 2+-
Mclient/game/ddr.dll/lifted-0034.c | 18+++++++++---------
Mclient/game/ddr.dll/lifted-0035.c | 38+++++++++++++++++++-------------------
Mclient/game/ddr.dll/lifted-0036.c | 4++--
Mclient/game/ddr.dll/lifted-0037.c | 2+-
Mclient/game/ddr.dll/lifted-0038.c | 12++++++------
Mclient/game/ddr.dll/lifted-0039.c | 8++++----
Mclient/game/dr.dll/lifted-0000.c | 2+-
Mclient/game/er.dll/lifted-0000.c | 4++--
Mclient/game/er.dll/lifted-0002.c | 2+-
Mclient/game/er.dll/lifted-0004.c | 4++--
Mclient/game/er.dll/lifted-0005.c | 2+-
Mclient/game/ffr.dll/lifted-0000.c | 4++--
Mclient/game/ffr.dll/lifted-0002.c | 12++++++------
Mclient/game/ffr.dll/lifted-0003.c | 4++--
Mclient/game/ggr.dll/lifted-0005.c | 2+-
Mclient/game/hhr.dll/lifted-0000.c | 18+++++++++---------
Mclient/game/ir.dll/lifted-0000.c | 2+-
Mclient/game/kkr.dll/lifted-0000.c | 18+++++++++---------
Mclient/game/kkr.dll/lifted-0013.c | 2+-
Mclient/game/kkr.dll/lifted-0015.c | 6+++---
Mclient/game/kkr.dll/lifted-0026.c | 20++++++++++----------
Mclient/game/kkr.dll/lifted-0027.c | 2+-
Mclient/game/kkr.dll/lifted-0035.c | 2+-
Mclient/game/kkr.dll/lifted-0038.c | 2+-
Mclient/game/kkr.dll/lifted-0045.c | 2+-
Mclient/game/kkr.dll/lifted-0060.c | 2+-
Mclient/game/kkr.dll/lifted-0063.c | 4++--
Mclient/game/kkr.dll/lifted-0070.c | 2+-
Mclient/game/kkr.dll/lifted-0072.c | 2+-
Mclient/game/kkr.dll/lifted-0084.c | 6+++---
Mclient/game/kkr.dll/lifted-0087.c | 2+-
Mclient/game/kkr.dll/lifted-0090.c | 2+-
Mclient/game/kkr.dll/lifted-0095.c | 2+-
Mclient/game/kr.dll/lifted-0000.c | 10+++++-----
Mclient/game/kr.dll/lifted-0001.c | 24++++++++++++------------
Mclient/game/kr.dll/lifted-0002.c | 6+++---
Mclient/game/kr.dll/lifted-0003.c | 8++++----
Mclient/game/kr.dll/lifted-0005.c | 2+-
Mclient/game/llr.dll/lifted-0012.c | 2+-
Mclient/game/llr.dll/lifted-0021.c | 4++--
Mclient/game/llr.dll/lifted-0026.c | 2+-
Mclient/game/lr.dll/lifted-0000.c | 16++++++++--------
Mclient/game/lr.dll/lifted-0002.c | 30+++++++++++++++---------------
Mclient/game/mmr.dll/lifted-0000.c | 4++--
Mclient/game/mmr.dll/lifted-0001.c | 2+-
Mclient/game/oor.dll/lifted-0000.c | 4++--
Mclient/game/ppr.dll/lifted-0000.c | 6+++---
Mclient/game/sr.dll/lifted-0000.c | 12++++++------
Mclient/game/tr.dll/lifted-0000.c | 2+-
Aclient/tests/bulk_fill.c | 48++++++++++++++++++++++++++++++++++++++++++++++++
Mclient/vendor/ace/source/lifted-0000.c | 2+-
Mclient/vendor/ace/source/lifted-0005.c | 4++--
Mclient/vendor/ace/source/lifted-0018.c | 4++--
Mclient/vendor/ace/source/lifted-0020.c | 6+++---
Mclient/vendor/ace/source/lifted-0023.c | 8++++----
Mclient/vendor/ace/source/lifted-0027.c | 24++++++++++++------------
Mclient/vendor/ace/source/lifted-0030.c | 4++--
Mclient/vendor/ace/source/lifted-0035.c | 2+-
Mclient/vendor/ace/source/lifted-0036.c | 2+-
Mclient/vendor/ace/source/lifted-0038.c | 4++--
Mclient/vendor/ace/source/lifted-0039.c | 2+-
Mclient/vendor/ace/source/lifted-0046.c | 2+-
Mclient/vendor/ace/source/lifted-0047.c | 2+-
Mclient/vendor/ace/source/lifted-0057.c | 10+++++-----
Mclient/vendor/ace/source/lifted-0061.c | 2+-
Mclient/vendor/ace/source/lifted-0066.c | 2+-
Mclient/vendor/msvcp60/source/lifted-0004.c | 4++--
Mclient/vendor/msvcp60/source/lifted-0010.c | 16++++++++--------
146 files changed, 811 insertions(+), 746 deletions(-)

diff --git a/TODO.md b/TODO.md @@ -3470,10 +3470,15 @@ with payloads and known client/server provenance. `bitmap-before*.log`. The earlier incomplete ErrorEvent capture in `local/mission-retirement/event-crash-*` cannot independently establish that historical run's cause; retain it separately from this reproducible failure. -- [ ] [P1] Audit other lifted zero-count bulk operations that translate an - address before checking the count. Check concrete page-boundary failures; - preserve the original no-access semantics without weakening guest memory - validation. The mission terminal's trailing REP STOSW has a focused fix. +- [x] [P1] Audit other lifted zero-count bulk operations that translate an + address before checking the count. Reproduced the renderer's empty byte clear + and standard library's even-length wide fill at unmapped page boundaries. + Added only count guards to 733 dword and nine word fill blocks; all 22,257 + translated repeats now check the count before memory access. Guest memory + validation is unchanged. The real-entry regression passes in flat/paged native + memory and WASM, all 115 native test executions pass, and the matching published + bundle passes short input/reload and backpack hand-in/cold-loading checks. + Evidence: `local/zero-count-audit/`. - [ ] [P1] Close fixture SQLite handles after every test and table case, including failure paths. The comprehensive mission-movement regression run completed over 15,000 results, but its timeout dump retained many database/sql connection diff --git a/client/Makefile.linux b/client/Makefile.linux @@ -174,6 +174,8 @@ test: build/linux/window build/linux/graphics build/linux/atoi build/linux/stric ./build/linux/character-reference ./build/linux/bitmap-clear ./build/linux/bitmap-clear-paged + ./build/linux/bulk-fill + ./build/linux/bulk-fill-paged ./build/linux/reference-persistence ./build/linux/weapon-range ./build/linux/ip-training @@ -718,3 +720,9 @@ build/linux/bitmap-clear build/linux/bitmap-clear-paged: tests/bitmap_clear.c ga $(CC) $(CPPFLAGS) $(CFLAGS) $(if $(filter %-paged,$@),-U__linux__) -ffunction-sections -fdata-sections $(filter %.c,$^) -Wl,--gc-sections -lm -o $@ test: build/linux/bitmap-clear build/linux/bitmap-clear-paged + +build/linux/bulk-fill build/linux/bulk-fill-paged: tests/bulk_fill.c game/bbr.dll/lifted-0041.c vendor/msvcp60/source/lifted-0004.c runtime/guest_memory.c runtime/recomp_state.c runtime/recomp_types.h runtime/guest_memory.h + @mkdir -p $(@D) + $(CC) $(CPPFLAGS) $(CFLAGS) $(if $(filter %-paged,$@),-U__linux__) -ffunction-sections -fdata-sections $(filter %.c,$^) -Wl,--gc-sections -lm -o $@ + +test: build/linux/bulk-fill build/linux/bulk-fill-paged diff --git a/client/Makefile.wasm b/client/Makefile.wasm @@ -242,6 +242,10 @@ build/wasm/bitmap-clear.js: tests/bitmap_clear.c game/bbr.dll/lifted-0040.c runt @mkdir -p $(@D) $(CC) $(CPPFLAGS) $(CFLAGS) -ffunction-sections -fdata-sections $(filter %.c,$^) -Wl,--gc-sections -o $@ +build/wasm/bulk-fill.js: tests/bulk_fill.c game/bbr.dll/lifted-0041.c vendor/msvcp60/source/lifted-0004.c runtime/guest_memory.c runtime/recomp_state.c runtime/recomp_types.h runtime/guest_memory.h + @mkdir -p $(@D) + $(CC) $(CPPFLAGS) $(CFLAGS) -ffunction-sections -fdata-sections $(filter %.c,$^) -Wl,--gc-sections -lm -o $@ + build/wasm/inflate-fast.js: tests/inflate_fast.c game/bbr.dll/lifted-0044.c runtime/guest_memory.c runtime/recomp_state.c runtime/recomp_types.h runtime/guest_memory.h @mkdir -p $(@D) $(CC) $(CPPFLAGS) $(CFLAGS) -ffunction-sections -fdata-sections $(filter %.c,$^) -Wl,--gc-sections -lm -o $@ diff --git a/client/game/aar.dll/lifted-0000.c b/client/game/aar.dll/lifted-0000.c @@ -1326,7 +1326,7 @@ L_200017A9: _flag_k = FK_TEST; ecx = 0xC8u; /* 0x200017C3: mov ecx, 0xc8 */ edi = esi + 0x320; /* 0x200017C8: lea edi, [esi + 0x320] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x200017CE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x200017CE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(esi + 0x708); /* 0x200017D0: mov eax, dword ptr [esi + 0x708] */ ecx = MEM32(eax + 0x4); /* 0x200017D6: mov ecx, dword ptr [eax + 4] */ eax = MEM32(ecx); /* 0x200017D9: mov eax, dword ptr [ecx] */ diff --git a/client/game/bbr.dll/lifted-0000.c b/client/game/bbr.dll/lifted-0000.c @@ -579,7 +579,7 @@ L_250012E0: ecx = 0x6Bu; /* 0x2500131A: mov ecx, 0x6b */ edi = ebp + (-0x1D0); /* 0x2500131F: lea edi, [ebp - 0x1d0] */ PUSH32(esp, 0x1B0u); /* 0x25001325: push 0x1b0 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2500132A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2500132A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = ebp + (-0x1D4); /* 0x2500132C: lea eax, [ebp - 0x1d4] */ PUSH32(esp, 0x3Eu); /* 0x25001332: push 0x3e */ PUSH32(esp, eax); /* 0x25001334: push eax */ @@ -597,7 +597,7 @@ L_250012E0: _flag_k = FK_TEST; ecx = 6; /* 0x25001351: mov ecx, 6 */ edi = ebp + (-0x20); /* 0x25001356: lea edi, [ebp - 0x20] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25001359: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25001359: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = ebp + (-0x1D4); /* 0x2500135B: lea ecx, [ebp - 0x1d4] */ eax = ebp + (-0x24); /* 0x25001361: lea eax, [ebp - 0x24] */ PUSH32(esp, 1); /* 0x25001364: push 1 */ @@ -3915,7 +3915,7 @@ L_250029FE: _flag_k = FK_TEST; ecx = 0x1Fu; /* 0x25002A3B: mov ecx, 0x1f */ edi = ebp + (-0xAC); /* 0x25002A40: lea edi, [ebp - 0xac] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25002A46: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25002A46: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + (-0x18)); /* 0x25002A48: mov eax, dword ptr [ebp - 0x18] */ ecx = MEM32(ebp + (-0x14)); /* 0x25002A4B: mov ecx, dword ptr [ebp - 0x14] */ PUSH32(esp, 0x58u); /* 0x25002A4E: push 0x58 */ @@ -3983,7 +3983,7 @@ L_25002AA4: _cf = 0; _flag_k = FK_TEST; ecx = 8; /* 0x25002AFC: mov ecx, 8 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25002B01: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25002B01: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebx + 0xD8); /* 0x25002B03: mov ecx, dword ptr [ebx + 0xd8] */ MEM32(ecx) = 0x20u; /* 0x25002B09: mov dword ptr [ecx], 0x20 */ ecx = MEM32(ebx + 0xD8); /* 0x25002B0F: mov ecx, dword ptr [ebx + 0xd8] */ @@ -4173,7 +4173,7 @@ L_250029FE: _flag_k = FK_TEST; ecx = 0x1Fu; /* 0x25002A3B: mov ecx, 0x1f */ edi = ebp + (-0xAC); /* 0x25002A40: lea edi, [ebp - 0xac] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25002A46: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25002A46: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + (-0x18)); /* 0x25002A48: mov eax, dword ptr [ebp - 0x18] */ ecx = MEM32(ebp + (-0x14)); /* 0x25002A4B: mov ecx, dword ptr [ebp - 0x14] */ PUSH32(esp, 0x58u); /* 0x25002A4E: push 0x58 */ @@ -4241,7 +4241,7 @@ L_25002AA4: _cf = 0; _flag_k = FK_TEST; ecx = 8; /* 0x25002AFC: mov ecx, 8 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25002B01: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25002B01: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebx + 0xD8); /* 0x25002B03: mov ecx, dword ptr [ebx + 0xd8] */ MEM32(ecx) = 0x20u; /* 0x25002B09: mov dword ptr [ecx], 0x20 */ ecx = MEM32(ebx + 0xD8); /* 0x25002B0F: mov ecx, dword ptr [ebx + 0xd8] */ @@ -4405,7 +4405,7 @@ L_25002AA4: _cf = 0; _flag_k = FK_TEST; ecx = 8; /* 0x25002AFC: mov ecx, 8 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25002B01: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25002B01: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebx + 0xD8); /* 0x25002B03: mov ecx, dword ptr [ebx + 0xd8] */ MEM32(ecx) = 0x20u; /* 0x25002B09: mov dword ptr [ecx], 0x20 */ ecx = MEM32(ebx + 0xD8); /* 0x25002B0F: mov ecx, dword ptr [ebx + 0xd8] */ @@ -5770,7 +5770,7 @@ L_25003123: eax = MEM32(ebp + 0xC); /* 0x25003123: mov eax, dword ptr [ebp + 0xc] */ edi = edx; /* 0x25003126: mov edi, edx */ ecx = esi; /* 0x25003128: mov ecx, esi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2500312A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2500312A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edx = edx + esi * 4; /* 0x2500312C: lea edx, [edx + esi*4] */ L_2500312F: ecx = MEM32(ebp + (-0x4)); /* 0x2500312F: mov ecx, dword ptr [ebp - 4] */ @@ -5846,12 +5846,12 @@ L_25003188: if (1u) { _flag_a = recomp_flags_pack((ecx >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } ecx = ecx >> 1u; /* 0x25003198: shr ecx, 1 */ eax = edx; /* 0x2500319A: mov eax, edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2500319C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2500319C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } { uint32_t _aa = ecx, _ab = ecx, _ac = _cf; /* 0x2500319E: adc ecx, ecx */ ecx = _aa + _ab + _ac; _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } - { uint32_t _n = ecx, _b = _n * 2u; /* 0x250031A0: rep stosw word ptr es:[edi], ax */ if (_df > 0) { MEMSET16((void*)ADDR(edi), (uint16_t)LO16(eax), _n); edi += _b; } else { MEMSET16((void*)ADDR(edi - _b + 2u), (uint16_t)LO16(eax), _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 2u; /* 0x250031A0: rep stosw word ptr es:[edi], ax */ if (_df > 0) { MEMSET16((void*)ADDR(edi), (uint16_t)LO16(eax), _n); edi += _b; } else { MEMSET16((void*)ADDR(edi - _b + 2u), (uint16_t)LO16(eax), _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + 0x8); /* 0x250031A3: mov eax, dword ptr [ebp + 8] */ edx = eax + esi * 2; /* 0x250031A6: lea edx, [eax + esi*2] */ L_250031A9: @@ -5927,12 +5927,12 @@ L_250031F2: if (1u) { _flag_a = recomp_flags_pack((ecx >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } ecx = ecx >> 1u; /* 0x25003202: shr ecx, 1 */ eax = edx; /* 0x25003204: mov eax, edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25003206: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25003206: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } { uint32_t _aa = ecx, _ab = ecx, _ac = _cf; /* 0x25003208: adc ecx, ecx */ ecx = _aa + _ab + _ac; _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } - { uint32_t _n = ecx, _b = _n * 2u; /* 0x2500320A: rep stosw word ptr es:[edi], ax */ if (_df > 0) { MEMSET16((void*)ADDR(edi), (uint16_t)LO16(eax), _n); edi += _b; } else { MEMSET16((void*)ADDR(edi - _b + 2u), (uint16_t)LO16(eax), _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 2u; /* 0x2500320A: rep stosw word ptr es:[edi], ax */ if (_df > 0) { MEMSET16((void*)ADDR(edi), (uint16_t)LO16(eax), _n); edi += _b; } else { MEMSET16((void*)ADDR(edi - _b + 2u), (uint16_t)LO16(eax), _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + 0x8); /* 0x2500320D: mov eax, dword ptr [ebp + 8] */ edx = eax + esi * 2; /* 0x25003210: lea edx, [eax + esi*2] */ L_25003213: @@ -6083,7 +6083,7 @@ L_25003123: eax = MEM32(ebp + 0xC); /* 0x25003123: mov eax, dword ptr [ebp + 0xc] */ edi = edx; /* 0x25003126: mov edi, edx */ ecx = esi; /* 0x25003128: mov ecx, esi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2500312A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2500312A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edx = edx + esi * 4; /* 0x2500312C: lea edx, [edx + esi*4] */ L_2500312F: ecx = MEM32(ebp + (-0x4)); /* 0x2500312F: mov ecx, dword ptr [ebp - 4] */ @@ -6159,12 +6159,12 @@ L_25003188: if (1u) { _flag_a = recomp_flags_pack((ecx >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } ecx = ecx >> 1u; /* 0x25003198: shr ecx, 1 */ eax = edx; /* 0x2500319A: mov eax, edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2500319C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2500319C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } { uint32_t _aa = ecx, _ab = ecx, _ac = _cf; /* 0x2500319E: adc ecx, ecx */ ecx = _aa + _ab + _ac; _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } - { uint32_t _n = ecx, _b = _n * 2u; /* 0x250031A0: rep stosw word ptr es:[edi], ax */ if (_df > 0) { MEMSET16((void*)ADDR(edi), (uint16_t)LO16(eax), _n); edi += _b; } else { MEMSET16((void*)ADDR(edi - _b + 2u), (uint16_t)LO16(eax), _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 2u; /* 0x250031A0: rep stosw word ptr es:[edi], ax */ if (_df > 0) { MEMSET16((void*)ADDR(edi), (uint16_t)LO16(eax), _n); edi += _b; } else { MEMSET16((void*)ADDR(edi - _b + 2u), (uint16_t)LO16(eax), _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + 0x8); /* 0x250031A3: mov eax, dword ptr [ebp + 8] */ edx = eax + esi * 2; /* 0x250031A6: lea edx, [eax + esi*2] */ L_250031A9: @@ -6240,12 +6240,12 @@ L_250031F2: if (1u) { _flag_a = recomp_flags_pack((ecx >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } ecx = ecx >> 1u; /* 0x25003202: shr ecx, 1 */ eax = edx; /* 0x25003204: mov eax, edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25003206: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25003206: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } { uint32_t _aa = ecx, _ab = ecx, _ac = _cf; /* 0x25003208: adc ecx, ecx */ ecx = _aa + _ab + _ac; _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } - { uint32_t _n = ecx, _b = _n * 2u; /* 0x2500320A: rep stosw word ptr es:[edi], ax */ if (_df > 0) { MEMSET16((void*)ADDR(edi), (uint16_t)LO16(eax), _n); edi += _b; } else { MEMSET16((void*)ADDR(edi - _b + 2u), (uint16_t)LO16(eax), _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 2u; /* 0x2500320A: rep stosw word ptr es:[edi], ax */ if (_df > 0) { MEMSET16((void*)ADDR(edi), (uint16_t)LO16(eax), _n); edi += _b; } else { MEMSET16((void*)ADDR(edi - _b + 2u), (uint16_t)LO16(eax), _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + 0x8); /* 0x2500320D: mov eax, dword ptr [ebp + 8] */ edx = eax + esi * 2; /* 0x25003210: lea edx, [eax + esi*2] */ L_25003213: @@ -7852,7 +7852,7 @@ L_250039AD: _flag_k = FK_TEST; ecx = 0x1Fu; /* 0x250039B2: mov ecx, 0x1f */ edi = ebp + (-0xAC); /* 0x250039B7: lea edi, [ebp - 0xac] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250039BD: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250039BD: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + (-0x10)); /* 0x250039BF: mov eax, dword ptr [ebp - 0x10] */ MEM32(ebp + (-0xA4)) = eax; /* 0x250039C2: mov dword ptr [ebp - 0xa4], eax */ MEM32(ebp + (-0xAC)) = 0x7Cu; /* 0x250039C8: mov dword ptr [ebp - 0xac], 0x7c */ @@ -7865,7 +7865,7 @@ L_250039AD: _flag_k = FK_TEST; ecx = 8; /* 0x250039EB: mov ecx, 8 */ edi = ebp + (-0x64); /* 0x250039F0: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250039F3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250039F3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = ebp + (-0x64); /* 0x250039F5: lea ecx, [ebp - 0x64] */ MEM32(ebp + (-0x64)) = 0x20u; /* 0x250039F8: mov dword ptr [ebp - 0x64], 0x20 */ edx = MEM32(ebx + 0x28); /* 0x250039FF: mov edx, dword ptr [ebx + 0x28] */ @@ -7936,7 +7936,7 @@ L_25003A86: _flag_k = FK_TEST; ecx = 0x19u; /* 0x25003A88: mov ecx, 0x19 */ edi = ebp + (-0x110); /* 0x25003A8D: lea edi, [ebp - 0x110] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25003A93: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25003A93: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = ebp + (-0x110); /* 0x25003A95: lea ecx, [ebp - 0x110] */ PUSH32(esp, ecx); /* 0x25003A9B: push ecx */ ecx = MEM32(0x25238B58); /* 0x25003A9C: mov ecx, dword ptr [0x25238b58] */ @@ -8056,7 +8056,7 @@ L_25003B58: _flag_k = FK_TEST; ecx = 0x2FDu; /* 0x25003B6A: mov ecx, 0x2fd */ PUSH32(esp, edx); /* 0x25003B6F: push edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25003B70: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25003B70: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(MEM32(0x2515102C)); /* 0x25003B72: call dword ptr [0x2515102c] */ RECOMP_FLAGS_IN(); /* test eax, eax */ /* 0x25003B78: test eax, eax */ @@ -8578,7 +8578,7 @@ L_25003CD0: PUSH32(esp, eax); /* 0x25003CE1: push eax */ ecx = 0x1Fu; /* 0x25003CE2: mov ecx, 0x1f */ edi = ebp + (-0x7C); /* 0x25003CE7: lea edi, [ebp - 0x7c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25003CEA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25003CEA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebp + 0x8); /* 0x25003CEC: mov ecx, dword ptr [ebp + 8] */ PUSH32(esp, 0x801u); /* 0x25003CEF: push 0x801 */ eax = ebp + (-0x7C); /* 0x25003CF4: lea eax, [ebp - 0x7c] */ @@ -8684,7 +8684,7 @@ L_25003D50: _flag_k = FK_TEST; ecx = 0x1Fu; /* 0x25003DBC: mov ecx, 0x1f */ edi = ebp + (-0x108); /* 0x25003DC1: lea edi, [ebp - 0x108] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25003DC7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25003DC7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x25238B94); /* 0x25003DC9: mov ecx, dword ptr [0x25238b94] */ MEM32(ebp + (-0x4)) = 0; /* 0x25003DCF: mov dword ptr [ebp - 4], 0 */ MEM32(ebp + (-0x48)) = edx; /* 0x25003DD6: mov dword ptr [ebp - 0x48], edx */ diff --git a/client/game/bbr.dll/lifted-0006.c b/client/game/bbr.dll/lifted-0006.c @@ -7955,7 +7955,7 @@ L_2501CF53: _cf = 0; _flag_k = FK_TEST; MEM32(esi + 0x1E0) = edi; /* 0x2501CF66: mov dword ptr [esi + 0x1e0], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2501CF6C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2501CF6C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x2501CF6E: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x2501CF70: and ecx, 3 */ diff --git a/client/game/bbr.dll/lifted-0008.c b/client/game/bbr.dll/lifted-0008.c @@ -2209,7 +2209,7 @@ L_25027360: MEM32(esi + 0x804) = 0; /* 0x25027369: mov dword ptr [esi + 0x804], 0 */ ecx = 0x200u; /* 0x25027373: mov ecx, 0x200 */ edi = esi; /* 0x25027378: mov edi, esi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2502737A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2502737A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + 0x8); /* 0x2502737C: mov eax, dword ptr [ebp + 8] */ PUSH32(esp, eax); /* 0x2502737F: push eax */ ecx = esi; /* 0x25027380: mov ecx, esi */ @@ -2467,7 +2467,7 @@ L_2502744E: eax = 0; /* 0x2502744E: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25027450: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25027450: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edi = POP32_VAL(esp); /* 0x25027452: pop edi */ ebp = POP32_VAL(esp); /* 0x25027453: pop ebp */ RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25027454: ret 4 */ diff --git a/client/game/bbr.dll/lifted-0018.c b/client/game/bbr.dll/lifted-0018.c @@ -1733,7 +1733,7 @@ L_250551F4: eax = 0; /* 0x250551FA: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250551FC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250551FC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_250551FE: ecx = 0x251C7698u; /* 0x250551FE: mov ecx, 0x251c7698 */ RECOMP_ICALL(0x2505CD80u); /* 0x25055203: call 0x2505cd80 */ /* not lifted */ diff --git a/client/game/bbr.dll/lifted-0019.c b/client/game/bbr.dll/lifted-0019.c @@ -53351,7 +53351,7 @@ L_2505C9AE: eax = 0; /* 0x2505C9B4: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2505C9B6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2505C9B6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_2505C9B8: /* cmp MEM32(0x251C7698), 0xCAFEBABEu */ /* 0x2505C9B8: cmp dword ptr [0x251c7698], 0xcafebabe */ _flag_a = (uint32_t)(MEM32(0x251C7698)); _flag_b = (uint32_t)(0xCAFEBABEu); @@ -53371,7 +53371,7 @@ L_2505C9CE: eax = 0; /* 0x2505C9D4: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2505C9D6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2505C9D6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_2505C9D8: edi = POP32_VAL(esp); /* 0x2505C9D8: pop edi */ esi = POP32_VAL(esp); /* 0x2505C9D9: pop esi */ @@ -53494,7 +53494,7 @@ L_2505C9AE: eax = 0; /* 0x2505C9B4: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2505C9B6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2505C9B6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_2505C9B8: /* cmp MEM32(0x251C7698), 0xCAFEBABEu */ /* 0x2505C9B8: cmp dword ptr [0x251c7698], 0xcafebabe */ _flag_a = (uint32_t)(MEM32(0x251C7698)); _flag_b = (uint32_t)(0xCAFEBABEu); @@ -53514,7 +53514,7 @@ L_2505C9CE: eax = 0; /* 0x2505C9D4: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2505C9D6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2505C9D6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_2505C9D8: edi = POP32_VAL(esp); /* 0x2505C9D8: pop edi */ esi = POP32_VAL(esp); /* 0x2505C9D9: pop esi */ @@ -53638,7 +53638,7 @@ L_2505C9AE: eax = 0; /* 0x2505C9B4: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2505C9B6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2505C9B6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_2505C9B8: /* cmp MEM32(0x251C7698), 0xCAFEBABEu */ /* 0x2505C9B8: cmp dword ptr [0x251c7698], 0xcafebabe */ _flag_a = (uint32_t)(MEM32(0x251C7698)); _flag_b = (uint32_t)(0xCAFEBABEu); @@ -53658,7 +53658,7 @@ L_2505C9CE: eax = 0; /* 0x2505C9D4: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2505C9D6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2505C9D6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_2505C9D8: edi = POP32_VAL(esp); /* 0x2505C9D8: pop edi */ esi = POP32_VAL(esp); /* 0x2505C9D9: pop esi */ @@ -53782,7 +53782,7 @@ L_2505C9AE: eax = 0; /* 0x2505C9B4: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2505C9B6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2505C9B6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_2505C9B8: /* cmp MEM32(0x251C7698), 0xCAFEBABEu */ /* 0x2505C9B8: cmp dword ptr [0x251c7698], 0xcafebabe */ _flag_a = (uint32_t)(MEM32(0x251C7698)); _flag_b = (uint32_t)(0xCAFEBABEu); @@ -53802,7 +53802,7 @@ L_2505C9CE: eax = 0; /* 0x2505C9D4: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2505C9D6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2505C9D6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_2505C9D8: edi = POP32_VAL(esp); /* 0x2505C9D8: pop edi */ esi = POP32_VAL(esp); /* 0x2505C9D9: pop esi */ @@ -57706,7 +57706,7 @@ L_2505CD91: eax = 0; /* 0x2505CD95: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2505CD97: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2505CD97: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edi = POP32_VAL(esp); /* 0x2505CD99: pop edi */ L_2505CD9A: RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2505CD9A: ret */ @@ -57961,7 +57961,7 @@ L_2505CEAF: _flag_k = FK_TEST; ecx = 9; /* 0x2505CEB5: mov ecx, 9 */ edi = edx; /* 0x2505CEBA: mov edi, edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2505CEBC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2505CEBC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = edx; /* 0x2505CEBE: mov eax, edx */ edi = POP32_VAL(esp); /* 0x2505CEC0: pop edi */ ebp = POP32_VAL(esp); /* 0x2505CEC1: pop ebp */ @@ -58287,7 +58287,7 @@ L_2505D030: _flag_k = FK_TEST; ecx = 9; /* 0x2505D036: mov ecx, 9 */ edi = edx; /* 0x2505D03B: mov edi, edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2505D03D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2505D03D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = edx; /* 0x2505D03F: mov eax, edx */ edi = POP32_VAL(esp); /* 0x2505D041: pop edi */ RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2505D042: ret 4 */ diff --git a/client/game/bbr.dll/lifted-0020.c b/client/game/bbr.dll/lifted-0020.c @@ -15408,7 +15408,7 @@ L_2505FAD4: eax = 0; /* 0x2505FAEB: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2505FAED: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2505FAED: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x2505FAEF: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x2505FAF1: and ecx, 3 */ @@ -19316,7 +19316,7 @@ L_25060BE0: _cf = 0; _flag_k = FK_TEST; edi = edx + 0x224; /* 0x25060BEA: lea edi, [edx + 0x224] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25060BF0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25060BF0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM32(edx + 0x72A4) = 0x3F000000u; /* 0x25060BF2: mov dword ptr [edx + 0x72a4], 0x3f000000 */ edi = POP32_VAL(esp); /* 0x25060BFC: pop edi */ RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25060BFD: ret */ @@ -20012,7 +20012,7 @@ L_25061303: _flag_k = FK_TEST; edi = esi + 0x224; /* 0x25061361: lea edi, [esi + 0x224] */ ecx = 0xE10u; /* 0x25061367: mov ecx, 0xe10 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2506136C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2506136C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebp + (-0xC)); /* 0x2506136E: mov ecx, dword ptr [ebp - 0xc] */ edi = POP32_VAL(esp); /* 0x25061371: pop edi */ MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25061372: mov dword ptr [esi + 0x72a4], 0x3f000000 */ @@ -20129,7 +20129,7 @@ L_25061303: _flag_k = FK_TEST; edi = esi + 0x224; /* 0x25061361: lea edi, [esi + 0x224] */ ecx = 0xE10u; /* 0x25061367: mov ecx, 0xe10 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2506136C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2506136C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebp + (-0xC)); /* 0x2506136E: mov ecx, dword ptr [ebp - 0xc] */ edi = POP32_VAL(esp); /* 0x25061371: pop edi */ MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25061372: mov dword ptr [esi + 0x72a4], 0x3f000000 */ @@ -20177,7 +20177,7 @@ L_25061303: _flag_k = FK_TEST; edi = esi + 0x224; /* 0x25061361: lea edi, [esi + 0x224] */ ecx = 0xE10u; /* 0x25061367: mov ecx, 0xe10 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2506136C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2506136C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebp + (-0xC)); /* 0x2506136E: mov ecx, dword ptr [ebp - 0xc] */ edi = POP32_VAL(esp); /* 0x25061371: pop edi */ MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25061372: mov dword ptr [esi + 0x72a4], 0x3f000000 */ @@ -20448,7 +20448,7 @@ L_25061520: _cf = 0; _flag_k = FK_TEST; MEM32(esi + 0x1E0) = edi; /* 0x25061533: mov dword ptr [esi + 0x1e0], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25061539: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25061539: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = ebx; /* 0x2506153B: mov ecx, ebx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x2506153D: and ecx, 3 */ @@ -20889,7 +20889,7 @@ L_25061860: _cf = 0; _flag_k = FK_TEST; edi = esi + 0x224; /* 0x25061867: lea edi, [esi + 0x224] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2506186D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2506186D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_2506186F: eax = MEM32(0x251B3178); /* 0x2506186F: mov eax, dword ptr [0x251b3178] */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -23771,7 +23771,7 @@ L_25062B13: eax = 0; /* 0x25062BB4: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25062BB6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25062BB6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); esp = esp + 4; /* 0x25062BB8: add esp, 4 */ @@ -23912,7 +23912,7 @@ L_25062B13: eax = 0; /* 0x25062BB4: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25062BB6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25062BB6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); esp = esp + 4; /* 0x25062BB8: add esp, 4 */ @@ -23984,7 +23984,7 @@ L_25062B13: eax = 0; /* 0x25062BB4: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25062BB6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25062BB6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); esp = esp + 4; /* 0x25062BB8: add esp, 4 */ @@ -24222,7 +24222,7 @@ L_25062D30: eax = 0; /* 0x25062D79: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25062D7B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25062D7B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x25062D7D: mov ecx, edx */ _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); @@ -24619,7 +24619,7 @@ L_25063123: eax = 0; /* 0x250631C4: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250631C6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250631C6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); esp = esp + 4; /* 0x250631C8: add esp, 4 */ @@ -24760,7 +24760,7 @@ L_25063123: eax = 0; /* 0x250631C4: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250631C6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250631C6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); esp = esp + 4; /* 0x250631C8: add esp, 4 */ @@ -24832,7 +24832,7 @@ L_25063123: eax = 0; /* 0x250631C4: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250631C6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250631C6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); esp = esp + 4; /* 0x250631C8: add esp, 4 */ @@ -25349,7 +25349,7 @@ L_25063673: eax = 0; /* 0x25063714: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25063716: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25063716: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); esp = esp + 4; /* 0x25063718: add esp, 4 */ @@ -25490,7 +25490,7 @@ L_25063673: eax = 0; /* 0x25063714: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25063716: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25063716: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); esp = esp + 4; /* 0x25063718: add esp, 4 */ @@ -25562,7 +25562,7 @@ L_25063673: eax = 0; /* 0x25063714: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25063716: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25063716: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); esp = esp + 4; /* 0x25063718: add esp, 4 */ @@ -25862,7 +25862,7 @@ L_250638F7: _cf = 0; _flag_k = FK_TEST; MEM32(esi + 0x1E0) = edi; /* 0x2506390A: mov dword ptr [esi + 0x1e0], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25063910: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25063910: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x25063912: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x25063914: and ecx, 3 */ diff --git a/client/game/bbr.dll/lifted-0021.c b/client/game/bbr.dll/lifted-0021.c @@ -3255,7 +3255,7 @@ L_25063E30: _flag_k = FK_TEST; MEM32(ebp + (-0x3B0)) = 0x55EEu; /* 0x25063E94: mov dword ptr [ebp - 0x3b0], 0x55ee */ { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x210) = _v; } /* 0x25063E9E: fstp dword ptr [esi + 0x210] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25063EA4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25063EA4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x25063EA6: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x25063EA8: and ecx, 3 */ @@ -4421,7 +4421,7 @@ L_25064E27: _cf = 0; _flag_k = FK_TEST; MEM32(esi + 0x1E0) = edi; /* 0x25064E3A: mov dword ptr [esi + 0x1e0], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25064E40: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25064E40: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x25064E42: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x25064E44: and ecx, 3 */ @@ -9693,7 +9693,7 @@ L_25066447: _cf = 0; _flag_k = FK_TEST; MEM32(esi + 0x1E0) = edi; /* 0x2506645A: mov dword ptr [esi + 0x1e0], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25066460: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25066460: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x25066462: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x25066464: and ecx, 3 */ @@ -22175,7 +22175,7 @@ L_25068B20: eax = 0; /* 0x25068B66: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25068B68: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25068B68: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x25068B6A: mov ecx, edx */ _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); @@ -22507,7 +22507,7 @@ L_25068EB3: eax = 0; /* 0x25068F52: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25068F54: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25068F54: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); esp = esp + 4; /* 0x25068F56: add esp, 4 */ @@ -22649,7 +22649,7 @@ L_25068EB3: eax = 0; /* 0x25068F52: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25068F54: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25068F54: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); esp = esp + 4; /* 0x25068F56: add esp, 4 */ @@ -22722,7 +22722,7 @@ L_25068EB3: eax = 0; /* 0x25068F52: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25068F54: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25068F54: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); esp = esp + 4; /* 0x25068F56: add esp, 4 */ @@ -23020,7 +23020,7 @@ L_25069129: _cf = 0; _flag_k = FK_TEST; MEM32(esi + 0x1E0) = edi; /* 0x2506913C: mov dword ptr [esi + 0x1e0], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25069142: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25069142: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x25069144: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x25069146: and ecx, 3 */ diff --git a/client/game/bbr.dll/lifted-0022.c b/client/game/bbr.dll/lifted-0022.c @@ -50332,7 +50332,7 @@ L_25070F84: _cf = 0; _flag_k = FK_TEST; MEM32(esi + 0x1E0) = edi; /* 0x25070F97: mov dword ptr [esi + 0x1e0], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25070F9D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25070F9D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x25070F9F: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x25070FA1: and ecx, 3 */ @@ -53703,7 +53703,7 @@ L_25071F51: _cf = 0; _flag_k = FK_TEST; MEM32(esi + 0x1E0) = edi; /* 0x25071F64: mov dword ptr [esi + 0x1e0], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25071F6A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25071F6A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x25071F6C: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x25071F6E: and ecx, 3 */ @@ -55064,7 +55064,7 @@ L_25072A24: _cf = 0; _flag_k = FK_TEST; MEM32(esi + 0x1EC) = edi; /* 0x25072A37: mov dword ptr [esi + 0x1ec], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25072A3D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25072A3D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x25072A3F: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x25072A41: and ecx, 3 */ diff --git a/client/game/bbr.dll/lifted-0023.c b/client/game/bbr.dll/lifted-0023.c @@ -5782,7 +5782,7 @@ L_25074E37: eax = 0; /* 0x25074E3C: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25074E3E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25074E3E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25074E40: edi = POP32_VAL(esp); /* 0x25074E40: pop edi */ RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25074E41: ret */ @@ -9423,7 +9423,7 @@ L_25075CF4: _cf = 0; _flag_k = FK_TEST; MEM32(esi + 0x1E0) = edi; /* 0x25075D07: mov dword ptr [esi + 0x1e0], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25075D0D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25075D0D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x25075D0F: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x25075D11: and ecx, 3 */ diff --git a/client/game/bbr.dll/lifted-0024.c b/client/game/bbr.dll/lifted-0024.c @@ -5454,7 +5454,7 @@ L_25079285: eax = 0; /* 0x2507929C: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2507929E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2507929E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x250792A0: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x250792A2: and ecx, 3 */ @@ -7463,7 +7463,7 @@ L_25079AB1: eax = 0; /* 0x25079ACE: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25079AD0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25079AD0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x25079AD2: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x25079AD4: and ecx, 3 */ diff --git a/client/game/bbr.dll/lifted-0025.c b/client/game/bbr.dll/lifted-0025.c @@ -8819,7 +8819,7 @@ L_2507FE7D: eax = 0; /* 0x2507FE80: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2507FE82: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2507FE82: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_2507FE84: edi = MEM32(esi + 0x718); /* 0x2507FE84: mov edi, dword ptr [esi + 0x718] */ eax = MEM32(edi + 0x10C); /* 0x2507FE8A: mov eax, dword ptr [edi + 0x10c] */ @@ -9340,7 +9340,7 @@ L_2507FE7D: eax = 0; /* 0x2507FE80: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2507FE82: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2507FE82: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_2507FE84: edi = MEM32(esi + 0x718); /* 0x2507FE84: mov edi, dword ptr [esi + 0x718] */ eax = MEM32(edi + 0x10C); /* 0x2507FE8A: mov eax, dword ptr [edi + 0x10c] */ @@ -9608,7 +9608,7 @@ L_2507FE7D: eax = 0; /* 0x2507FE80: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2507FE82: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2507FE82: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_2507FE84: edi = MEM32(esi + 0x718); /* 0x2507FE84: mov edi, dword ptr [esi + 0x718] */ eax = MEM32(edi + 0x10C); /* 0x2507FE8A: mov eax, dword ptr [edi + 0x10c] */ @@ -9877,7 +9877,7 @@ L_2507FE7D: eax = 0; /* 0x2507FE80: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2507FE82: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2507FE82: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_2507FE84: edi = MEM32(esi + 0x718); /* 0x2507FE84: mov edi, dword ptr [esi + 0x718] */ eax = MEM32(edi + 0x10C); /* 0x2507FE8A: mov eax, dword ptr [edi + 0x10c] */ @@ -10146,7 +10146,7 @@ L_2507FE7D: eax = 0; /* 0x2507FE80: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2507FE82: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2507FE82: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_2507FE84: edi = MEM32(esi + 0x718); /* 0x2507FE84: mov edi, dword ptr [esi + 0x718] */ eax = MEM32(edi + 0x10C); /* 0x2507FE8A: mov eax, dword ptr [edi + 0x10c] */ @@ -10627,7 +10627,7 @@ L_250801A6: L_250801AC: ecx = 0x54u; /* 0x250801AC: mov ecx, 0x54 */ L_250801B1: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250801B1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250801B1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_250801B3: eax = 0x14u; /* 0x250801B3: mov eax, 0x14 */ L_250801B8: @@ -13667,7 +13667,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -19599,7 +19599,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -25314,7 +25314,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -31029,7 +31029,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -36744,7 +36744,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -42459,7 +42459,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -48174,7 +48174,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -53889,7 +53889,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -59604,7 +59604,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -65319,7 +65319,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -71034,7 +71034,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -76749,7 +76749,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -82464,7 +82464,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -88179,7 +88179,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -93894,7 +93894,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -99609,7 +99609,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -105324,7 +105324,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -111039,7 +111039,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -116754,7 +116754,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -122469,7 +122469,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -128184,7 +128184,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -133899,7 +133899,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: diff --git a/client/game/bbr.dll/lifted-0026.c b/client/game/bbr.dll/lifted-0026.c @@ -2870,7 +2870,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -8585,7 +8585,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -14300,7 +14300,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -20015,7 +20015,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -25730,7 +25730,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -31445,7 +31445,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -37160,7 +37160,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -42875,7 +42875,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -48590,7 +48590,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -54305,7 +54305,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -60020,7 +60020,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -65735,7 +65735,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -71450,7 +71450,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -77165,7 +77165,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -82880,7 +82880,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -88595,7 +88595,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -94310,7 +94310,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -100025,7 +100025,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -105740,7 +105740,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -111455,7 +111455,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -117170,7 +117170,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -122885,7 +122885,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -128600,7 +128600,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -134315,7 +134315,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -140030,7 +140030,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -145745,7 +145745,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -151460,7 +151460,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -157175,7 +157175,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -162890,7 +162890,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -168605,7 +168605,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -174320,7 +174320,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -180035,7 +180035,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -185750,7 +185750,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -191465,7 +191465,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -197180,7 +197180,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -202895,7 +202895,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -208610,7 +208610,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -214325,7 +214325,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -220040,7 +220040,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -225755,7 +225755,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -231470,7 +231470,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -237185,7 +237185,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -242900,7 +242900,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -248615,7 +248615,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -254330,7 +254330,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: @@ -260045,7 +260045,7 @@ L_25081949: L_2508194B: edi = esi + 0x224; /* 0x2508194B: lea edi, [esi + 0x224] */ L_25081951: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25081951: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_25081953: MEM32(esi + 0x72A4) = 0x3F000000u; /* 0x25081953: mov dword ptr [esi + 0x72a4], 0x3f000000 */ L_2508195D: diff --git a/client/game/bbr.dll/lifted-0028.c b/client/game/bbr.dll/lifted-0028.c @@ -6877,7 +6877,7 @@ L_250881A8: _cf = 0; _flag_k = FK_TEST; MEM32(esi + 0x1E0) = edi; /* 0x250881BB: mov dword ptr [esi + 0x1e0], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250881C1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250881C1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x250881C3: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x250881C5: and ecx, 3 */ diff --git a/client/game/bbr.dll/lifted-0029.c b/client/game/bbr.dll/lifted-0029.c @@ -4813,7 +4813,7 @@ L_2508B2D7: eax = 0; /* 0x2508B2F0: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2508B2F2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2508B2F2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x2508B2F4: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x2508B2F6: and ecx, 3 */ @@ -5311,7 +5311,7 @@ L_2508B704: eax = 0; /* 0x2508B71D: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2508B71F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2508B71F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x2508B721: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x2508B723: and ecx, 3 */ @@ -38706,7 +38706,7 @@ L_2508D657: _cf = 0; _flag_k = FK_TEST; MEM32(esi + 0x1E4) = edi; /* 0x2508D66A: mov dword ptr [esi + 0x1e4], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2508D670: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2508D670: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = ebx; /* 0x2508D672: mov ecx, ebx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x2508D674: and ecx, 3 */ @@ -42922,7 +42922,7 @@ L_2508E637: eax = 0; /* 0x2508E64E: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2508E650: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2508E650: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x2508E652: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x2508E654: and ecx, 3 */ @@ -44127,7 +44127,7 @@ L_2508F187: _cf = 0; _flag_k = FK_TEST; MEM32(esi + 0x1E0) = edi; /* 0x2508F19A: mov dword ptr [esi + 0x1e0], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2508F1A0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2508F1A0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x2508F1A2: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x2508F1A4: and ecx, 3 */ @@ -44988,7 +44988,7 @@ L_2508F9D7: _cf = 0; _flag_k = FK_TEST; MEM32(esi + 0x1E0) = edi; /* 0x2508F9EA: mov dword ptr [esi + 0x1e0], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2508F9F0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2508F9F0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = ebx; /* 0x2508F9F2: mov ecx, ebx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x2508F9F4: and ecx, 3 */ diff --git a/client/game/bbr.dll/lifted-0030.c b/client/game/bbr.dll/lifted-0030.c @@ -2458,7 +2458,7 @@ L_250911D0: _flag_k = FK_TEST; ecx = 8; /* 0x25091222: mov ecx, 8 */ edi = esi; /* 0x25091227: mov edi, esi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25091229: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25091229: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 0x20u); /* 0x2509122B: push 0x20 */ PUSH32(esp, esi); /* 0x2509122D: push esi */ ecx = ebp + (-0x84); /* 0x2509122E: lea ecx, [ebp - 0x84] */ diff --git a/client/game/bbr.dll/lifted-0031.c b/client/game/bbr.dll/lifted-0031.c @@ -1141,7 +1141,7 @@ L_25092330: _flag_k = FK_TEST; edi = edx; /* 0x2509237A: mov edi, edx */ ecx = 0xBu; /* 0x2509237C: mov ecx, 0xb */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25092381: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25092381: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(esi); /* 0x25092383: mov eax, dword ptr [esi] */ PUSH32(esp, edx); /* 0x25092385: push edx */ MEM32(edx) = 0x2Cu; /* 0x25092386: mov dword ptr [edx], 0x2c */ diff --git a/client/game/bbr.dll/lifted-0036.c b/client/game/bbr.dll/lifted-0036.c @@ -17157,10 +17157,10 @@ L_250A3B80: MEM32(edx) = 0x25156394u; /* 0x250A3C23: mov dword ptr [edx], 0x25156394 */ ecx = 0x80u; /* 0x250A3C29: mov ecx, 0x80 */ edi = edx + 0x28; /* 0x250A3C2E: lea edi, [edx + 0x28] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A3C31: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A3C31: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0x2000u; /* 0x250A3C33: mov ecx, 0x2000 */ edi = edx + 0x23C; /* 0x250A3C38: lea edi, [edx + 0x23c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A3C3E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A3C3E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = edx; /* 0x250A3C40: mov eax, edx */ edi = POP32_VAL(esp); /* 0x250A3C42: pop edi */ ebp = POP32_VAL(esp); /* 0x250A3C43: pop ebp */ diff --git a/client/game/bbr.dll/lifted-0037.c b/client/game/bbr.dll/lifted-0037.c @@ -1042,7 +1042,7 @@ L_250A4976: eax = 0; /* 0x250A49BB: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A49BD: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A49BD: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x250A49BF: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x250A49C1: and ecx, 3 */ diff --git a/client/game/bbr.dll/lifted-0038.c b/client/game/bbr.dll/lifted-0038.c @@ -998,10 +998,10 @@ L_250A76DB: _flag_k = FK_TEST; ecx = 0x200u; /* 0x250A76E6: mov ecx, 0x200 */ edi = ebp + (-0x840); /* 0x250A76EB: lea edi, [ebp - 0x840] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A76F1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A76F1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0x800u; /* 0x250A76F3: mov ecx, 0x800 */ edi = ebp + (-0x2840); /* 0x250A76F8: lea edi, [ebp - 0x2840] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A76FE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A76FE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + 0xC); /* 0x250A7700: mov eax, dword ptr [ebp + 0xc] */ MEM8(esi + 0x66) = (uint8_t)(1); /* 0x250A7703: mov byte ptr [esi + 0x66], 1 */ MEM8(esi + 0xDD) = (uint8_t)(1); /* 0x250A7707: mov byte ptr [esi + 0xdd], 1 */ @@ -1419,7 +1419,7 @@ L_250A7944: MEM32(ebp + (-0x4)) = 2; /* 0x250A7951: mov dword ptr [ebp - 4], 2 */ MEM8(ebp + (-0x4)) = (uint8_t)(8); /* 0x250A7958: mov byte ptr [ebp - 4], 8 */ MEM32(ebp + 0x14) = 0x80u; /* 0x250A795C: mov dword ptr [ebp + 0x14], 0x80 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7963: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7963: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); edx = 0; /* 0x250A7965: xor edx, edx */ _cf = 0; @@ -1534,7 +1534,7 @@ L_250A7A0A: _flag_k = FK_TEST; edi = ebp + (-0x4840); /* 0x250A7A11: lea edi, [ebp - 0x4840] */ MEM32(ebp + (-0x4)) = 2; /* 0x250A7A17: mov dword ptr [ebp - 4], 2 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7A1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7A1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM8(ebp + (-0x4)) = (uint8_t)(0xAu); /* 0x250A7A20: mov byte ptr [ebp - 4], 0xa */ ecx = 0x83E0u; /* 0x250A7A24: mov ecx, 0x83e0 */ L_250A7A29: @@ -1748,7 +1748,7 @@ L_250A7944: MEM32(ebp + (-0x4)) = 2; /* 0x250A7951: mov dword ptr [ebp - 4], 2 */ MEM8(ebp + (-0x4)) = (uint8_t)(8); /* 0x250A7958: mov byte ptr [ebp - 4], 8 */ MEM32(ebp + 0x14) = 0x80u; /* 0x250A795C: mov dword ptr [ebp + 0x14], 0x80 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7963: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7963: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); edx = 0; /* 0x250A7965: xor edx, edx */ _cf = 0; @@ -1857,7 +1857,7 @@ L_250A7A0A: _flag_k = FK_TEST; edi = ebp + (-0x4840); /* 0x250A7A11: lea edi, [ebp - 0x4840] */ MEM32(ebp + (-0x4)) = 2; /* 0x250A7A17: mov dword ptr [ebp - 4], 2 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7A1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7A1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM8(ebp + (-0x4)) = (uint8_t)(0xAu); /* 0x250A7A20: mov byte ptr [ebp - 4], 0xa */ ecx = 0x83E0u; /* 0x250A7A24: mov ecx, 0x83e0 */ L_250A7A29: @@ -2033,7 +2033,7 @@ L_250A7944: MEM32(ebp + (-0x4)) = 2; /* 0x250A7951: mov dword ptr [ebp - 4], 2 */ MEM8(ebp + (-0x4)) = (uint8_t)(8); /* 0x250A7958: mov byte ptr [ebp - 4], 8 */ MEM32(ebp + 0x14) = 0x80u; /* 0x250A795C: mov dword ptr [ebp + 0x14], 0x80 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7963: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7963: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); edx = 0; /* 0x250A7965: xor edx, edx */ _cf = 0; @@ -2142,7 +2142,7 @@ L_250A7A0A: _flag_k = FK_TEST; edi = ebp + (-0x4840); /* 0x250A7A11: lea edi, [ebp - 0x4840] */ MEM32(ebp + (-0x4)) = 2; /* 0x250A7A17: mov dword ptr [ebp - 4], 2 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7A1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7A1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM8(ebp + (-0x4)) = (uint8_t)(0xAu); /* 0x250A7A20: mov byte ptr [ebp - 4], 0xa */ ecx = 0x83E0u; /* 0x250A7A24: mov ecx, 0x83e0 */ L_250A7A29: @@ -2315,7 +2315,7 @@ L_250A793F: MEM32(ebp + (-0x4)) = 2; /* 0x250A7951: mov dword ptr [ebp - 4], 2 */ MEM8(ebp + (-0x4)) = (uint8_t)(8); /* 0x250A7958: mov byte ptr [ebp - 4], 8 */ MEM32(ebp + 0x14) = 0x80u; /* 0x250A795C: mov dword ptr [ebp + 0x14], 0x80 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7963: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7963: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); edx = 0; /* 0x250A7965: xor edx, edx */ _cf = 0; @@ -2424,7 +2424,7 @@ L_250A7A0A: _flag_k = FK_TEST; edi = ebp + (-0x4840); /* 0x250A7A11: lea edi, [ebp - 0x4840] */ MEM32(ebp + (-0x4)) = 2; /* 0x250A7A17: mov dword ptr [ebp - 4], 2 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7A1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7A1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM8(ebp + (-0x4)) = (uint8_t)(0xAu); /* 0x250A7A20: mov byte ptr [ebp - 4], 0xa */ ecx = 0x83E0u; /* 0x250A7A24: mov ecx, 0x83e0 */ L_250A7A29: @@ -2574,7 +2574,7 @@ L_250A7944: MEM32(ebp + (-0x4)) = 2; /* 0x250A7951: mov dword ptr [ebp - 4], 2 */ MEM8(ebp + (-0x4)) = (uint8_t)(8); /* 0x250A7958: mov byte ptr [ebp - 4], 8 */ MEM32(ebp + 0x14) = 0x80u; /* 0x250A795C: mov dword ptr [ebp + 0x14], 0x80 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7963: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7963: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); edx = 0; /* 0x250A7965: xor edx, edx */ _cf = 0; @@ -2683,7 +2683,7 @@ L_250A7A0A: _flag_k = FK_TEST; edi = ebp + (-0x4840); /* 0x250A7A11: lea edi, [ebp - 0x4840] */ MEM32(ebp + (-0x4)) = 2; /* 0x250A7A17: mov dword ptr [ebp - 4], 2 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7A1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7A1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM8(ebp + (-0x4)) = (uint8_t)(0xAu); /* 0x250A7A20: mov byte ptr [ebp - 4], 0xa */ ecx = 0x83E0u; /* 0x250A7A24: mov ecx, 0x83e0 */ L_250A7A29: @@ -2927,7 +2927,7 @@ L_250A7A0A: _flag_k = FK_TEST; edi = ebp + (-0x4840); /* 0x250A7A11: lea edi, [ebp - 0x4840] */ MEM32(ebp + (-0x4)) = 2; /* 0x250A7A17: mov dword ptr [ebp - 4], 2 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7A1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7A1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM8(ebp + (-0x4)) = (uint8_t)(0xAu); /* 0x250A7A20: mov byte ptr [ebp - 4], 0xa */ ecx = 0x83E0u; /* 0x250A7A24: mov ecx, 0x83e0 */ L_250A7A29: @@ -3172,7 +3172,7 @@ L_250A7A0A: _flag_k = FK_TEST; edi = ebp + (-0x4840); /* 0x250A7A11: lea edi, [ebp - 0x4840] */ MEM32(ebp + (-0x4)) = 2; /* 0x250A7A17: mov dword ptr [ebp - 4], 2 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7A1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7A1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM8(ebp + (-0x4)) = (uint8_t)(0xAu); /* 0x250A7A20: mov byte ptr [ebp - 4], 0xa */ ecx = 0x83E0u; /* 0x250A7A24: mov ecx, 0x83e0 */ L_250A7A29: @@ -3343,7 +3343,7 @@ L_250A7A05: _flag_k = FK_TEST; edi = ebp + (-0x4840); /* 0x250A7A11: lea edi, [ebp - 0x4840] */ MEM32(ebp + (-0x4)) = 2; /* 0x250A7A17: mov dword ptr [ebp - 4], 2 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7A1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7A1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM8(ebp + (-0x4)) = (uint8_t)(0xAu); /* 0x250A7A20: mov byte ptr [ebp - 4], 0xa */ ecx = 0x83E0u; /* 0x250A7A24: mov ecx, 0x83e0 */ L_250A7A29: @@ -3491,7 +3491,7 @@ L_250A7A0A: _flag_k = FK_TEST; edi = ebp + (-0x4840); /* 0x250A7A11: lea edi, [ebp - 0x4840] */ MEM32(ebp + (-0x4)) = 2; /* 0x250A7A17: mov dword ptr [ebp - 4], 2 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7A1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250A7A1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM8(ebp + (-0x4)) = (uint8_t)(0xAu); /* 0x250A7A20: mov byte ptr [ebp - 4], 0xa */ ecx = 0x83E0u; /* 0x250A7A24: mov ecx, 0x83e0 */ L_250A7A29: diff --git a/client/game/bbr.dll/lifted-0040.c b/client/game/bbr.dll/lifted-0040.c @@ -1828,7 +1828,7 @@ L_250AF41E: eax = MEM32(ebp + 0x10); /* 0x250AF41E: mov eax, dword ptr [ebp + 0x10] */ edi = edx; /* 0x250AF421: mov edi, edx */ ecx = esi; /* 0x250AF423: mov ecx, esi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250AF425: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250AF425: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edx = edx + esi * 4; /* 0x250AF427: lea edx, [edx + esi*4] */ L_250AF42A: _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + 0xC)); @@ -1992,7 +1992,7 @@ L_250AF4E8: if (1u) { _flag_a = recomp_flags_pack((ecx >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } ecx = ecx >> 1u; /* 0x250AF4FB: shr ecx, 1 */ eax = edx; /* 0x250AF4FD: mov eax, edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250AF4FF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250AF4FF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } { uint32_t _aa = ecx, _ab = ecx, _ac = _cf; /* 0x250AF501: adc ecx, ecx */ ecx = _aa + _ab + _ac; _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; @@ -6789,7 +6789,7 @@ L_250B0E3E: _flag_k = FK_TEST; ecx = 0x6Cu; /* 0x250B0E47: mov ecx, 0x6c */ edi = esi; /* 0x250B0E4C: mov edi, esi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250B0E4E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250B0E4E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, esi); /* 0x250B0E50: push esi */ MEM32(esi) = edx; /* 0x250B0E51: mov dword ptr [esi], edx */ MEM32(esi + 0xC) = ebx; /* 0x250B0E53: mov dword ptr [esi + 0xc], ebx */ diff --git a/client/game/bbr.dll/lifted-0041.c b/client/game/bbr.dll/lifted-0041.c @@ -2506,7 +2506,7 @@ L_250B49B0: _flag_k = FK_TEST; edi = edx + (-0x100); /* 0x250B49D7: lea edi, [edx - 0x100] */ MEM32(esi + 0x120) = edx; /* 0x250B49DD: mov dword ptr [esi + 0x120], edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250B49E3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250B49E3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_250B49E5: MEM8(eax + edx) = (uint8_t)(LO8(eax)); /* 0x250B49E5: mov byte ptr [eax + edx], al */ _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); @@ -2529,14 +2529,14 @@ L_250B49F0: _flag_k = FK_TEST; edi = edx + 0x80; /* 0x250B49F9: lea edi, [edx + 0x80] */ ecx = 0x60u; /* 0x250B49FF: mov ecx, 0x60 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250B4A04: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250B4A04: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0x60u; /* 0x250B4A06: mov ecx, 0x60 */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); eax = 0; /* 0x250B4A0B: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; edi = edx + 0x200; /* 0x250B4A0D: lea edi, [edx + 0x200] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250B4A13: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250B4A13: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } esi = MEM32(esi + 0x120); /* 0x250B4A15: mov esi, dword ptr [esi + 0x120] */ edi = edx + 0x380; /* 0x250B4A1B: lea edi, [edx + 0x380] */ ecx = 0x20u; /* 0x250B4A21: mov ecx, 0x20 */ @@ -3129,7 +3129,7 @@ L_250B4C80: eax = 0; /* 0x250B4C8F: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250B4C91: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250B4C91: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x250B4C93: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x250B4C95: and ecx, 3 */ @@ -9788,7 +9788,7 @@ L_250B6513: if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x250B6533: shr ecx, 2 */ if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } ecx = ecx >> 2u; /* 0x250B6533: shr ecx, 2 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250B6536: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250B6536: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x250B6538: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x250B653A: and ecx, 3 */ @@ -9952,7 +9952,7 @@ L_250B6600: ecx = 0x100u; /* 0x250B6602: mov ecx, 0x100 */ edi = edx + 0x90; /* 0x250B6607: lea edi, [edx + 0x90] */ MEM32(edx + 0x44) = 0x000FFFFFu; /* 0x250B660D: mov dword ptr [edx + 0x44], 0xfffff */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250B6614: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250B6614: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 7; /* 0x250B6616: mov ecx, 7 */ MEM32(ebp + (-0x8)) = eax; /* 0x250B661B: mov dword ptr [ebp - 8], eax */ ebx = 1; /* 0x250B661E: mov ebx, 1 */ @@ -20695,7 +20695,7 @@ L_250B6FA2: _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); edx = edx + 0x100u; /* 0x250B6FAC: add edx, 0x100 */ _flag_k = FK_ADD; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250B6FB2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250B6FB2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(esi + 0x24); /* 0x250B6FB4: mov eax, dword ptr [esi + 0x24] */ _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); ebx = ebx + 1; /* 0x250B6FB7: inc ebx */ diff --git a/client/game/bbr.dll/lifted-0042.c b/client/game/bbr.dll/lifted-0042.c @@ -72,7 +72,7 @@ L_250B7C2E: _flag_k = FK_TEST; MEM32(edx) = edi; /* 0x250B7C42: mov dword ptr [edx], edi */ ecx = 0x40u; /* 0x250B7C44: mov ecx, 0x40 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250B7C49: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250B7C49: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + 0x8); /* 0x250B7C4B: mov eax, dword ptr [ebp + 8] */ MEM32(eax) = 0xFFFFFFFFu; /* 0x250B7C4E: mov dword ptr [eax], 0xffffffff */ _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); @@ -6283,7 +6283,7 @@ L_250B85C6: eax = eax << 16u; /* 0x250B85D5: shl eax, 0x10 */ SET_LO16(eax, LO16(ebx)); /* 0x250B85D8: mov ax, bx */ ebx = MEM32(ebp + 0x8); /* 0x250B85DB: mov ebx, dword ptr [ebp + 8] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250B85DE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250B85DE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x250B85E0: mov ecx, edx */ edx = MEM32(ebp + 0x10); /* 0x250B85E2: mov edx, dword ptr [ebp + 0x10] */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); @@ -12025,7 +12025,7 @@ L_250B9C30: eax = 0x7FFFFFFFu; /* 0x250B9C3A: mov eax, 0x7fffffff */ ecx = 0x80u; /* 0x250B9C3F: mov ecx, 0x80 */ edi = ebp + (-0x228); /* 0x250B9C44: lea edi, [ebp - 0x228] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250B9C4A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250B9C4A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebp + 0x18); /* 0x250B9C4C: mov ecx, dword ptr [ebp + 0x18] */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); eax = 0; /* 0x250B9C4F: xor eax, eax */ @@ -15377,7 +15377,7 @@ L_250BAA69: ecx = esi; /* 0x250BAA6C: mov ecx, esi */ eax = ebx; /* 0x250BAA6E: mov eax, ebx */ edx = esi; /* 0x250BAA70: mov edx, esi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250BAA72: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250BAA72: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_250BAA74: ecx = MEM32(ebp + (-0x8)); /* 0x250BAA74: mov ecx, dword ptr [ebp - 8] */ ecx = (uint32_t)((int32_t)ecx * (int32_t)ebx); /* 0x250BAA77: imul ecx, ebx */ diff --git a/client/game/bbr.dll/lifted-0043.c b/client/game/bbr.dll/lifted-0043.c @@ -5372,7 +5372,7 @@ L_250BD119: eax = 0; /* 0x250BD135: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250BD137: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250BD137: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x250BD139: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x250BD13B: and ecx, 3 */ @@ -5845,7 +5845,7 @@ L_250BD350: eax = 0; /* 0x250BD37D: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250BD37F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250BD37F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = ebx; /* 0x250BD381: mov ecx, ebx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x250BD383: and ecx, 3 */ @@ -23104,7 +23104,7 @@ L_250BEFF0: PUSH32(esp, edi); /* 0x250BF01F: push edi */ edi = edx + 0xB34; /* 0x250BF020: lea edi, [edx + 0xb34] */ ecx = 8; /* 0x250BF026: mov ecx, 8 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250BF02B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250BF02B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(edx + 0x144C); /* 0x250BF02D: mov eax, dword ptr [edx + 0x144c] */ ecx = MEM32(edx + eax * 4 + 0xB54); /* 0x250BF033: mov ecx, dword ptr [edx + eax*4 + 0xb54] */ MEM16(ebx + ecx * 4 + 0x2) = (uint16_t)(0); /* 0x250BF03A: mov word ptr [ebx + ecx*4 + 2], 0 */ diff --git a/client/game/bbr.dll/lifted-0045.c b/client/game/bbr.dll/lifted-0045.c @@ -2872,7 +2872,7 @@ L_250C336B: eax = 0; /* 0x250C33B3: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C33B5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C33B5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebp + 0xC); /* 0x250C33B7: mov ecx, dword ptr [ebp + 0xc] */ MEM32(ebx + 0x44) = esi; /* 0x250C33BA: mov dword ptr [ebx + 0x44], esi */ MEM32(ebx + 0x48) = ecx; /* 0x250C33BD: mov dword ptr [ebx + 0x48], ecx */ @@ -5533,7 +5533,7 @@ L_250C3F41: _cf = 0; _flag_k = FK_TEST; MEM32(ebp + (-0xC)) = edi; /* 0x250C3F5E: mov dword ptr [ebp - 0xc], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C3F61: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C3F61: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM32(ebp + (-0x8)) = 0x60u; /* 0x250C3F63: mov dword ptr [ebp - 8], 0x60 */ L_250C3F6A: eax = ebx + (-0x1); /* 0x250C3F6A: lea eax, [ebx - 1] */ @@ -6044,7 +6044,7 @@ L_250C420B: PUSH32(esp, 0x8000u); /* 0x250C4225: push 0x8000 */ ecx = 0x2000u; /* 0x250C422A: mov ecx, 0x2000 */ PUSH32(esp, edx); /* 0x250C422F: push edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C4230: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C4230: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x250C8E60u); /* 0x250C4232: call 0x250c8e60 */ /* not lifted */ RECOMP_FLAGS_IN(); edi = eax; /* 0x250C4237: mov edi, eax */ @@ -6062,7 +6062,7 @@ L_250C420B: _flag_k = FK_TEST; ecx = 0x2000u; /* 0x250C4241: mov ecx, 0x2000 */ MEM32(ebp + (-0x18)) = edi; /* 0x250C4246: mov dword ptr [ebp - 0x18], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C4249: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C4249: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM32(ebp + 0x14) = 0; /* 0x250C424B: mov dword ptr [ebp + 0x14], 0 */ if (TEST_LE(_flag_a, _flag_b)) goto L_250C4351; /* 0x250C4252: jle 0x250c4351 */ L_250C4258: @@ -6370,7 +6370,7 @@ L_250C420B: PUSH32(esp, 0x8000u); /* 0x250C4225: push 0x8000 */ ecx = 0x2000u; /* 0x250C422A: mov ecx, 0x2000 */ PUSH32(esp, edx); /* 0x250C422F: push edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C4230: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C4230: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x250C8E60u); /* 0x250C4232: call 0x250c8e60 */ /* not lifted */ RECOMP_FLAGS_IN(); edi = eax; /* 0x250C4237: mov edi, eax */ @@ -6388,7 +6388,7 @@ L_250C420B: _flag_k = FK_TEST; ecx = 0x2000u; /* 0x250C4241: mov ecx, 0x2000 */ MEM32(ebp + (-0x18)) = edi; /* 0x250C4246: mov dword ptr [ebp - 0x18], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C4249: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C4249: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM32(ebp + 0x14) = 0; /* 0x250C424B: mov dword ptr [ebp + 0x14], 0 */ if (TEST_LE(_flag_a, _flag_b)) goto L_250C4351; /* 0x250C4252: jle 0x250c4351 */ L_250C4258: @@ -6684,7 +6684,7 @@ L_250C420B: PUSH32(esp, 0x8000u); /* 0x250C4225: push 0x8000 */ ecx = 0x2000u; /* 0x250C422A: mov ecx, 0x2000 */ PUSH32(esp, edx); /* 0x250C422F: push edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C4230: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C4230: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x250C8E60u); /* 0x250C4232: call 0x250c8e60 */ /* not lifted */ RECOMP_FLAGS_IN(); edi = eax; /* 0x250C4237: mov edi, eax */ @@ -6702,7 +6702,7 @@ L_250C420B: _flag_k = FK_TEST; ecx = 0x2000u; /* 0x250C4241: mov ecx, 0x2000 */ MEM32(ebp + (-0x18)) = edi; /* 0x250C4246: mov dword ptr [ebp - 0x18], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C4249: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C4249: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM32(ebp + 0x14) = 0; /* 0x250C424B: mov dword ptr [ebp + 0x14], 0 */ if (TEST_LE(_flag_a, _flag_b)) goto L_250C4351; /* 0x250C4252: jle 0x250c4351 */ L_250C4258: diff --git a/client/game/bbr.dll/lifted-0046.c b/client/game/bbr.dll/lifted-0046.c @@ -4203,14 +4203,14 @@ L_250C86A3: _flag_k = FK_TEST; ecx = 0x2000u; /* 0x250C86A5: mov ecx, 0x2000 */ edi = edx; /* 0x250C86AA: mov edi, edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C86AC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C86AC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = esi + (-0x8000); /* 0x250C86AE: lea ecx, [esi - 0x8000] */ esi = ecx; /* 0x250C86B4: mov esi, ecx */ if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x250C86B6: shr ecx, 2 */ if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } ecx = ecx >> 2u; /* 0x250C86B6: shr ecx, 2 */ edi = edx + 0x8000; /* 0x250C86B9: lea edi, [edx + 0x8000] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C86BF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C86BF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = esi; /* 0x250C86C1: mov ecx, esi */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x250C86C3: and ecx, 3 */ @@ -4232,7 +4232,7 @@ L_250C86CE: _cf = 0; _flag_k = FK_TEST; edi = edx; /* 0x250C86D5: mov edi, edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C86D7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C86D7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = esi; /* 0x250C86D9: mov ecx, esi */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x250C86DB: and ecx, 3 */ @@ -4493,7 +4493,7 @@ L_250C87E0: eax = 0; /* 0x250C87EC: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C87EE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C87EE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edi = POP32_VAL(esp); /* 0x250C87F0: pop edi */ ebp = POP32_VAL(esp); /* 0x250C87F1: pop ebp */ RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250C87F2: ret */ @@ -5752,7 +5752,7 @@ L_250C8E1D: _cf = 0; _flag_k = FK_TEST; edi = edx; /* 0x250C8E25: mov edi, edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C8E27: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C8E27: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = esi; /* 0x250C8E29: mov ecx, esi */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x250C8E2B: and ecx, 3 */ @@ -5986,7 +5986,7 @@ L_250C8EF0: if (16u) { _flag_a = recomp_flags_pack((eax << 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } eax = eax << 16u; /* 0x250C8F0C: shl eax, 0x10 */ SET_LO16(eax, LO16(ebx)); /* 0x250C8F0F: mov ax, bx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C8F12: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250C8F12: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x250C8F14: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x250C8F16: and ecx, 3 */ diff --git a/client/game/bbr.dll/lifted-0050.c b/client/game/bbr.dll/lifted-0050.c @@ -3275,7 +3275,7 @@ L_250D4233: _flag_k = FK_TEST; ecx = 0x1Fu; /* 0x250D423B: mov ecx, 0x1f */ edi = ebp + (-0xBC); /* 0x250D4240: lea edi, [ebp - 0xbc] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250D4246: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250D4246: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x25238B68); /* 0x250D4248: mov ecx, dword ptr [0x25238b68] */ eax = MEM32(0x25238B70); /* 0x250D424E: mov eax, dword ptr [0x25238b70] */ edi = MEM32(0x25238B6C); /* 0x250D4253: mov edi, dword ptr [0x25238b6c] */ @@ -3406,7 +3406,7 @@ L_250D433C: edx = MEM32(0x25238B74); /* 0x250D433E: mov edx, dword ptr [0x25238b74] */ ecx = 0x1Fu; /* 0x250D4344: mov ecx, 0x1f */ edi = ebp + (-0xBC); /* 0x250D4349: lea edi, [ebp - 0xbc] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250D434F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250D434F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(0x251B9BEC); /* 0x250D4351: mov eax, dword ptr [0x251b9bec] */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); _cf = (eax) != 0; @@ -3438,7 +3438,7 @@ L_250D433C: ecx = 8; /* 0x250D437A: mov ecx, 8 */ edi = ebp + (-0x74); /* 0x250D437F: lea edi, [ebp - 0x74] */ MEM32(ebp + (-0xB8)) = 0x1007u; /* 0x250D4382: mov dword ptr [ebp - 0xb8], 0x1007 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250D438C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250D438C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x25238B70); /* 0x250D438E: mov ecx, dword ptr [0x25238b70] */ edi = MEM32(0x25238B6C); /* 0x250D4394: mov edi, dword ptr [0x25238b6c] */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); @@ -4229,7 +4229,7 @@ L_250D49CB: PUSH32(esp, 0); /* 0x250D49CD: push 0 */ ecx = 0x5Fu; /* 0x250D49CF: mov ecx, 0x5f */ edi = ebp + (-0x4EC); /* 0x250D49D4: lea edi, [ebp - 0x4ec] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250D49DA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250D49DA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + (-0x10)); /* 0x250D49DC: mov eax, dword ptr [ebp - 0x10] */ edx = ebp + (-0x4EC); /* 0x250D49DF: lea edx, [ebp - 0x4ec] */ PUSH32(esp, edx); /* 0x250D49E5: push edx */ @@ -4920,7 +4920,7 @@ L_250D4EAB: _flag_k = FK_TEST; ecx = 0x50u; /* 0x250D4EB8: mov ecx, 0x50 */ edi = ebp + (-0x248); /* 0x250D4EBD: lea edi, [ebp - 0x248] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250D4EC3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250D4EC3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebp + 0x8); /* 0x250D4EC5: mov ecx, dword ptr [ebp + 8] */ eax = ebp + (-0x248); /* 0x250D4EC8: lea eax, [ebp - 0x248] */ PUSH32(esp, eax); /* 0x250D4ECE: push eax */ @@ -5060,7 +5060,7 @@ L_250D4FA3: _flag_k = FK_TEST; ecx = 0x1Fu; /* 0x250D4FB9: mov ecx, 0x1f */ edi = ebp + (-0xB8); /* 0x250D4FBE: lea edi, [ebp - 0xb8] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250D4FC4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250D4FC4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } /* cmp MEM8(0x25238BB0), 1 */ /* 0x250D4FC6: cmp byte ptr [0x25238bb0], 1 */ _flag_a = (uint32_t)(MEM8(0x25238BB0)) << 24; _flag_b = (uint32_t)(1) << 24; _cf = (uint32_t)CMP_B(_flag_a, _flag_b); @@ -5212,7 +5212,7 @@ L_250D50D7: _flag_k = FK_TEST; ecx = 8; /* 0x250D50D9: mov ecx, 8 */ edi = ebp + (-0x3C); /* 0x250D50DE: lea edi, [ebp - 0x3c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250D50E1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250D50E1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x25238B9C); /* 0x250D50E3: mov ecx, dword ptr [0x25238b9c] */ edx = ebp + (-0x3C); /* 0x250D50E9: lea edx, [ebp - 0x3c] */ MEM32(ebp + (-0x3C)) = 0x20u; /* 0x250D50EC: mov dword ptr [ebp - 0x3c], 0x20 */ @@ -7293,7 +7293,7 @@ L_250D54C4: _flag_k = FK_TEST; ecx = 0x1Fu; /* 0x250D54DA: mov ecx, 0x1f */ edi = ebp + (-0xB8); /* 0x250D54DF: lea edi, [ebp - 0xb8] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250D54E5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250D54E5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } /* cmp MEM8(0x25238BB0), 1 */ /* 0x250D54E7: cmp byte ptr [0x25238bb0], 1 */ _flag_a = (uint32_t)(MEM8(0x25238BB0)) << 24; _flag_b = (uint32_t)(1) << 24; _cf = (uint32_t)CMP_B(_flag_a, _flag_b); @@ -7429,7 +7429,7 @@ L_250D55F7: _flag_k = FK_TEST; ecx = esi; /* 0x250D55FE: mov ecx, esi */ edi = ebp + (-0x3C); /* 0x250D5600: lea edi, [ebp - 0x3c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250D5603: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250D5603: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x25238B9C); /* 0x250D5605: mov ecx, dword ptr [0x25238b9c] */ edi = 0x20u; /* 0x250D560B: mov edi, 0x20 */ edx = ebp + (-0x3C); /* 0x250D5610: lea edx, [ebp - 0x3c] */ @@ -7717,7 +7717,7 @@ L_250D57C0: _flag_k = FK_TEST; ecx = 0x5Fu; /* 0x250D5856: mov ecx, 0x5f */ edi = edx; /* 0x250D585B: mov edi, edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250D585D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250D585D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } /* cmp MEM8(esi + 0x1C), LO8(ebx) */ /* 0x250D585F: cmp byte ptr [esi + 0x1c], bl */ _flag_a = (uint32_t)(MEM8(esi + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; _cf = (uint32_t)CMP_B(_flag_a, _flag_b); @@ -7742,7 +7742,7 @@ L_250D5870: _flag_k = FK_TEST; edi = edx; /* 0x250D5883: mov edi, edx */ ecx = 0x3Bu; /* 0x250D5885: mov ecx, 0x3b */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250D588A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250D588A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x25238B58); /* 0x250D588C: mov ecx, dword ptr [0x25238b58] */ PUSH32(esp, edx); /* 0x250D5892: push edx */ RECOMP_ICALL(0x250D04F0u); /* 0x250D5893: call 0x250d04f0 */ /* not lifted */ diff --git a/client/game/bbr.dll/lifted-0051.c b/client/game/bbr.dll/lifted-0051.c @@ -710,7 +710,7 @@ L_250D5FC0: _flag_k = FK_TEST; ecx = 0x1Fu; /* 0x250D5FC9: mov ecx, 0x1f */ edi = ebp + (-0x7C); /* 0x250D5FCE: lea edi, [ebp - 0x7c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250D5FD1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250D5FD1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x25238BA0); /* 0x250D5FD3: mov ecx, dword ptr [0x25238ba0] */ eax = ebp + (-0x7C); /* 0x250D5FD9: lea eax, [ebp - 0x7c] */ MEM32(ebp + (-0x7C)) = 0x7Cu; /* 0x250D5FDC: mov dword ptr [ebp - 0x7c], 0x7c */ diff --git a/client/game/bbr.dll/lifted-0053.c b/client/game/bbr.dll/lifted-0053.c @@ -3507,7 +3507,7 @@ L_250DAE95: _cf = 0; _flag_k = FK_TEST; edi = esi; /* 0x250DAEA1: mov edi, esi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250DAEA3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250DAEA3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x250DAEA5: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x250DAEA7: and ecx, 3 */ @@ -3659,7 +3659,7 @@ L_250DAE95: _cf = 0; _flag_k = FK_TEST; edi = esi; /* 0x250DAEA1: mov edi, esi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250DAEA3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250DAEA3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x250DAEA5: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x250DAEA7: and ecx, 3 */ @@ -3775,7 +3775,7 @@ L_250DAE95: _cf = 0; _flag_k = FK_TEST; edi = esi; /* 0x250DAEA1: mov edi, esi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250DAEA3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250DAEA3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x250DAEA5: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x250DAEA7: and ecx, 3 */ @@ -3861,7 +3861,7 @@ L_250DAE95: _cf = 0; _flag_k = FK_TEST; edi = esi; /* 0x250DAEA1: mov edi, esi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250DAEA3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250DAEA3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x250DAEA5: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x250DAEA7: and ecx, 3 */ @@ -3911,7 +3911,7 @@ L_250DAE95: _cf = 0; _flag_k = FK_TEST; edi = esi; /* 0x250DAEA1: mov edi, esi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250DAEA3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250DAEA3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x250DAEA5: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x250DAEA7: and ecx, 3 */ diff --git a/client/game/bbr.dll/lifted-0056.c b/client/game/bbr.dll/lifted-0056.c @@ -1656,7 +1656,7 @@ L_250E3FB5: eax = 0; /* 0x250E3FC4: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250E3FC6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250E3FC6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x250E3FC8: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x250E3FCA: and ecx, 3 */ @@ -1999,7 +1999,7 @@ L_250E3FB5: eax = 0; /* 0x250E3FC4: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250E3FC6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250E3FC6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x250E3FC8: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x250E3FCA: and ecx, 3 */ @@ -2343,7 +2343,7 @@ L_250E3FB5: eax = 0; /* 0x250E3FC4: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250E3FC6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250E3FC6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x250E3FC8: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x250E3FCA: and ecx, 3 */ @@ -2687,7 +2687,7 @@ L_250E3FB5: eax = 0; /* 0x250E3FC4: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250E3FC6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250E3FC6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x250E3FC8: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x250E3FCA: and ecx, 3 */ diff --git a/client/game/bbr.dll/lifted-0057.c b/client/game/bbr.dll/lifted-0057.c @@ -13351,7 +13351,7 @@ L_250EA81E: eax = 0; /* 0x250EA828: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250EA82A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250EA82A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x250EA82C: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x250EA82E: and ecx, 3 */ @@ -13565,7 +13565,7 @@ L_250EA955: _flag_k = FK_TEST; { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x250EAA74: fstp dword ptr [ebp - 0x40] */ edi = ebx; /* 0x250EAA77: mov edi, ebx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250EAA79: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250EAA79: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + (-0x48)); /* 0x250EAA7B: mov eax, dword ptr [ebp - 0x48] */ ecx = MEM32(ebp + (-0x44)); /* 0x250EAA7E: mov ecx, dword ptr [ebp - 0x44] */ edx = ebx; /* 0x250EAA81: mov edx, ebx */ @@ -14671,7 +14671,7 @@ L_250EB26A: PUSH32(esp, eax); /* 0x250EB2A2: push eax */ ecx = 0x1Eu; /* 0x250EB2A3: mov ecx, 0x1e */ edi = ebp + (-0x9C); /* 0x250EB2A8: lea edi, [ebp - 0x9c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250EB2AE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250EB2AE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = ebp + (-0xA0); /* 0x250EB2B0: lea ecx, [ebp - 0xa0] */ PUSH32(esp, ecx); /* 0x250EB2B6: push ecx */ ecx = MEM32(0x25238B58); /* 0x250EB2B7: mov ecx, dword ptr [0x25238b58] */ @@ -14684,7 +14684,7 @@ L_250EB26A: edi = MEM32(ebp + (-0x7C)); /* 0x250EB2D0: mov edi, dword ptr [ebp - 0x7c] */ eax = 0xFFBBFFBBu; /* 0x250EB2D3: mov eax, 0xffbbffbb */ ecx = 0x80u; /* 0x250EB2D8: mov ecx, 0x80 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250EB2DD: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250EB2DD: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x2524C67C); /* 0x250EB2DF: mov ecx, dword ptr [0x2524c67c] */ edx = MEM32(ecx); /* 0x250EB2E5: mov edx, dword ptr [ecx] */ ecx = MEM32(0x25238B58); /* 0x250EB2E7: mov ecx, dword ptr [0x25238b58] */ diff --git a/client/game/bbr.dll/lifted-0058.c b/client/game/bbr.dll/lifted-0058.c @@ -1632,7 +1632,7 @@ L_250EBCC0: _flag_k = FK_TEST; ecx = 0x1Eu; /* 0x250EBCD8: mov ecx, 0x1e */ edi = ebp + (-0x78); /* 0x250EBCDD: lea edi, [ebp - 0x78] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250EBCE0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250EBCE0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebp + 0xC); /* 0x250EBCE2: mov ecx, dword ptr [ebp + 0xc] */ PUSH32(esp, eax); /* 0x250EBCE5: push eax */ _flag_a = (uint32_t)((ecx | 0x801u)); _flag_b = (uint32_t)((ecx | 0x801u)); @@ -2075,7 +2075,7 @@ L_250EBEA3: _flag_k = FK_TEST; edi = edx; /* 0x250EBEA9: mov edi, edx */ ecx = 0x1Fu; /* 0x250EBEAB: mov ecx, 0x1f */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250EBEB0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250EBEB0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, edx); /* 0x250EBEB2: push edx */ MEM32(edx) = 0x7Cu; /* 0x250EBEB3: mov dword ptr [edx], 0x7c */ MEM32(edx + 0x48) = 0x20u; /* 0x250EBEB9: mov dword ptr [edx + 0x48], 0x20 */ @@ -2338,7 +2338,7 @@ L_250EBFCF: _flag_k = FK_TEST; ecx = 0x1Eu; /* 0x250EBFD4: mov ecx, 0x1e */ edi = ebp + (-0xEC); /* 0x250EBFD9: lea edi, [ebp - 0xec] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250EBFDF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250EBFDF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 0x11u); /* 0x250EBFE1: push 0x11 */ eax = ebp + (-0xF0); /* 0x250EBFE3: lea eax, [ebp - 0xf0] */ PUSH32(esp, eax); /* 0x250EBFE9: push eax */ @@ -2356,7 +2356,7 @@ L_250EBFCF: edx = MEM32(ebp + (-0x98)); /* 0x250EC005: mov edx, dword ptr [ebp - 0x98] */ ecx = 0x1Au; /* 0x250EC00B: mov ecx, 0x1a */ edi = ebp + (-0x70); /* 0x250EC010: lea edi, [ebp - 0x70] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250EC013: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250EC013: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + (-0x9C)); /* 0x250EC015: mov eax, dword ptr [ebp - 0x9c] */ ecx = MEM32(ebp + (-0xE4)); /* 0x250EC01B: mov ecx, dword ptr [ebp - 0xe4] */ MEM16(ebp + (-0x66)) = (uint16_t)(LO16(eax)); /* 0x250EC021: mov word ptr [ebp - 0x66], ax */ @@ -2655,7 +2655,7 @@ L_250EC1E7: _flag_k = FK_TEST; ecx = 7; /* 0x250EC1EA: mov ecx, 7 */ edi = ebp + (-0x1C); /* 0x250EC1EF: lea edi, [ebp - 0x1c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250EC1F2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250EC1F2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x25238B58); /* 0x250EC1F4: mov ecx, dword ptr [0x25238b58] */ eax = ebp + (-0x20); /* 0x250EC1FA: lea eax, [ebp - 0x20] */ PUSH32(esp, eax); /* 0x250EC1FD: push eax */ @@ -3066,7 +3066,7 @@ L_250EC3F0: esi = ecx; /* 0x250EC3FD: mov esi, ecx */ ecx = 0x18u; /* 0x250EC3FF: mov ecx, 0x18 */ edi = ebp + (-0x60); /* 0x250EC404: lea edi, [ebp - 0x60] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250EC407: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250EC407: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebp + 0xC); /* 0x250EC409: mov ecx, dword ptr [ebp + 0xc] */ eax = ecx; /* 0x250EC40C: mov eax, ecx */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); diff --git a/client/game/bbr.dll/lifted-0060.c b/client/game/bbr.dll/lifted-0060.c @@ -2479,7 +2479,7 @@ L_250F07DC: eax = 0; /* 0x250F07EB: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250F07ED: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250F07ED: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x250F07EF: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x250F07F1: and ecx, 3 */ diff --git a/client/game/bbr.dll/lifted-0064.c b/client/game/bbr.dll/lifted-0064.c @@ -1994,7 +1994,7 @@ L_250FD980: _cf = 0; _flag_k = FK_TEST; MEM32(esi) = edi; /* 0x250FD9BC: mov dword ptr [esi], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250FD9BE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250FD9BE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x250FD9C0: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x250FD9C2: and ecx, 3 */ @@ -2018,7 +2018,7 @@ L_250FD980: eax = 0; /* 0x250FD9E5: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x250FD9E7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250FD9E7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); esp = esp + 8; /* 0x250FD9E9: add esp, 8 */ diff --git a/client/game/bbr.dll/lifted-0065.c b/client/game/bbr.dll/lifted-0065.c @@ -3700,7 +3700,7 @@ L_25104C40: MEM32(esi + 0x50) = 0x25158EECu; /* 0x25104C6A: mov dword ptr [esi + 0x50], 0x25158eec */ edi = esi + 0x138; /* 0x25104C71: lea edi, [esi + 0x138] */ ecx = 0x1Au; /* 0x25104C77: mov ecx, 0x1a */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25104C7C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25104C7C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM32(esi + 0x1A0) = eax; /* 0x25104C7E: mov dword ptr [esi + 0x1a0], eax */ MEM32(esi + 0x1A4) = eax; /* 0x25104C84: mov dword ptr [esi + 0x1a4], eax */ MEM8(esi + 0x1A8) = (uint8_t)(LO8(eax)); /* 0x25104C8A: mov byte ptr [esi + 0x1a8], al */ @@ -3840,7 +3840,7 @@ L_25104D00: ebx = 0; /* 0x25104D64: xor ebx, ebx */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25104D66: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25104D66: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, edx); /* 0x25104D68: push edx */ ecx = esi; /* 0x25104D69: mov ecx, esi */ MEM32(ebp + (-0x4)) = ebx; /* 0x25104D6B: mov dword ptr [ebp - 4], ebx */ @@ -4017,7 +4017,7 @@ L_25104F00: _flag_k = FK_TEST; edi = ebx + 0x138; /* 0x25104F5F: lea edi, [ebx + 0x138] */ ecx = 0x1Au; /* 0x25104F65: mov ecx, 0x1a */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25104F6A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25104F6A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM8(ebx + 0x1A8) = (uint8_t)(LO8(eax)); /* 0x25104F6C: mov byte ptr [ebx + 0x1a8], al */ PUSH32(esp, esi); /* 0x25104F72: push esi */ eax = ebp + (-0x14); /* 0x25104F73: lea eax, [ebp - 0x14] */ @@ -15713,7 +15713,7 @@ L_25107310: edi = esi + 0x1000; /* 0x2510732A: lea edi, [esi + 0x1000] */ MEM32(esi + 0x1040) = 0; /* 0x25107330: mov dword ptr [esi + 0x1040], 0 */ ecx = 0x10u; /* 0x2510733A: mov ecx, 0x10 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2510733F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2510733F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edi = POP32_VAL(esp); /* 0x25107341: pop edi */ eax = esi; /* 0x25107342: mov eax, esi */ esi = POP32_VAL(esp); /* 0x25107344: pop esi */ diff --git a/client/game/bbr.dll/lifted-0068.c b/client/game/bbr.dll/lifted-0068.c @@ -34423,10 +34423,10 @@ L_25110DC3: _flag_k = FK_TEST; ecx = 0x1Au; /* 0x25110DD9: mov ecx, 0x1a */ edi = ebp + (-0x26C); /* 0x25110DDE: lea edi, [ebp - 0x26c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0x11u; /* 0x25110DE6: mov ecx, 0x11 */ edi = ebp + (-0x2B0); /* 0x25110DEB: lea edi, [ebp - 0x2b0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x2528D728); /* 0x25110DF3: mov ecx, dword ptr [0x2528d728] */ edx = ecx; /* 0x25110DF9: mov edx, ecx */ MEM32(ebp + (-0x22C)) = eax; /* 0x25110DFB: mov dword ptr [ebp - 0x22c], eax */ @@ -36425,10 +36425,10 @@ L_25110DC3: _flag_k = FK_TEST; ecx = 0x1Au; /* 0x25110DD9: mov ecx, 0x1a */ edi = ebp + (-0x26C); /* 0x25110DDE: lea edi, [ebp - 0x26c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0x11u; /* 0x25110DE6: mov ecx, 0x11 */ edi = ebp + (-0x2B0); /* 0x25110DEB: lea edi, [ebp - 0x2b0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x2528D728); /* 0x25110DF3: mov ecx, dword ptr [0x2528d728] */ edx = ecx; /* 0x25110DF9: mov edx, ecx */ MEM32(ebp + (-0x22C)) = eax; /* 0x25110DFB: mov dword ptr [ebp - 0x22c], eax */ @@ -38426,10 +38426,10 @@ L_25110DC3: _flag_k = FK_TEST; ecx = 0x1Au; /* 0x25110DD9: mov ecx, 0x1a */ edi = ebp + (-0x26C); /* 0x25110DDE: lea edi, [ebp - 0x26c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0x11u; /* 0x25110DE6: mov ecx, 0x11 */ edi = ebp + (-0x2B0); /* 0x25110DEB: lea edi, [ebp - 0x2b0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x2528D728); /* 0x25110DF3: mov ecx, dword ptr [0x2528d728] */ edx = ecx; /* 0x25110DF9: mov edx, ecx */ MEM32(ebp + (-0x22C)) = eax; /* 0x25110DFB: mov dword ptr [ebp - 0x22c], eax */ @@ -40427,10 +40427,10 @@ L_25110DC3: _flag_k = FK_TEST; ecx = 0x1Au; /* 0x25110DD9: mov ecx, 0x1a */ edi = ebp + (-0x26C); /* 0x25110DDE: lea edi, [ebp - 0x26c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0x11u; /* 0x25110DE6: mov ecx, 0x11 */ edi = ebp + (-0x2B0); /* 0x25110DEB: lea edi, [ebp - 0x2b0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x2528D728); /* 0x25110DF3: mov ecx, dword ptr [0x2528d728] */ edx = ecx; /* 0x25110DF9: mov edx, ecx */ MEM32(ebp + (-0x22C)) = eax; /* 0x25110DFB: mov dword ptr [ebp - 0x22c], eax */ @@ -42428,10 +42428,10 @@ L_25110DC3: _flag_k = FK_TEST; ecx = 0x1Au; /* 0x25110DD9: mov ecx, 0x1a */ edi = ebp + (-0x26C); /* 0x25110DDE: lea edi, [ebp - 0x26c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0x11u; /* 0x25110DE6: mov ecx, 0x11 */ edi = ebp + (-0x2B0); /* 0x25110DEB: lea edi, [ebp - 0x2b0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x2528D728); /* 0x25110DF3: mov ecx, dword ptr [0x2528d728] */ edx = ecx; /* 0x25110DF9: mov edx, ecx */ MEM32(ebp + (-0x22C)) = eax; /* 0x25110DFB: mov dword ptr [ebp - 0x22c], eax */ @@ -44429,10 +44429,10 @@ L_25110DC3: _flag_k = FK_TEST; ecx = 0x1Au; /* 0x25110DD9: mov ecx, 0x1a */ edi = ebp + (-0x26C); /* 0x25110DDE: lea edi, [ebp - 0x26c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0x11u; /* 0x25110DE6: mov ecx, 0x11 */ edi = ebp + (-0x2B0); /* 0x25110DEB: lea edi, [ebp - 0x2b0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x2528D728); /* 0x25110DF3: mov ecx, dword ptr [0x2528d728] */ edx = ecx; /* 0x25110DF9: mov edx, ecx */ MEM32(ebp + (-0x22C)) = eax; /* 0x25110DFB: mov dword ptr [ebp - 0x22c], eax */ @@ -46430,10 +46430,10 @@ L_25110DC3: _flag_k = FK_TEST; ecx = 0x1Au; /* 0x25110DD9: mov ecx, 0x1a */ edi = ebp + (-0x26C); /* 0x25110DDE: lea edi, [ebp - 0x26c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0x11u; /* 0x25110DE6: mov ecx, 0x11 */ edi = ebp + (-0x2B0); /* 0x25110DEB: lea edi, [ebp - 0x2b0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x2528D728); /* 0x25110DF3: mov ecx, dword ptr [0x2528d728] */ edx = ecx; /* 0x25110DF9: mov edx, ecx */ MEM32(ebp + (-0x22C)) = eax; /* 0x25110DFB: mov dword ptr [ebp - 0x22c], eax */ @@ -48431,10 +48431,10 @@ L_25110DC3: _flag_k = FK_TEST; ecx = 0x1Au; /* 0x25110DD9: mov ecx, 0x1a */ edi = ebp + (-0x26C); /* 0x25110DDE: lea edi, [ebp - 0x26c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0x11u; /* 0x25110DE6: mov ecx, 0x11 */ edi = ebp + (-0x2B0); /* 0x25110DEB: lea edi, [ebp - 0x2b0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x2528D728); /* 0x25110DF3: mov ecx, dword ptr [0x2528d728] */ edx = ecx; /* 0x25110DF9: mov edx, ecx */ MEM32(ebp + (-0x22C)) = eax; /* 0x25110DFB: mov dword ptr [ebp - 0x22c], eax */ @@ -50432,10 +50432,10 @@ L_25110DC3: _flag_k = FK_TEST; ecx = 0x1Au; /* 0x25110DD9: mov ecx, 0x1a */ edi = ebp + (-0x26C); /* 0x25110DDE: lea edi, [ebp - 0x26c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0x11u; /* 0x25110DE6: mov ecx, 0x11 */ edi = ebp + (-0x2B0); /* 0x25110DEB: lea edi, [ebp - 0x2b0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x2528D728); /* 0x25110DF3: mov ecx, dword ptr [0x2528d728] */ edx = ecx; /* 0x25110DF9: mov edx, ecx */ MEM32(ebp + (-0x22C)) = eax; /* 0x25110DFB: mov dword ptr [ebp - 0x22c], eax */ @@ -52433,10 +52433,10 @@ L_25110DC3: _flag_k = FK_TEST; ecx = 0x1Au; /* 0x25110DD9: mov ecx, 0x1a */ edi = ebp + (-0x26C); /* 0x25110DDE: lea edi, [ebp - 0x26c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0x11u; /* 0x25110DE6: mov ecx, 0x11 */ edi = ebp + (-0x2B0); /* 0x25110DEB: lea edi, [ebp - 0x2b0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x2528D728); /* 0x25110DF3: mov ecx, dword ptr [0x2528d728] */ edx = ecx; /* 0x25110DF9: mov edx, ecx */ MEM32(ebp + (-0x22C)) = eax; /* 0x25110DFB: mov dword ptr [ebp - 0x22c], eax */ @@ -54434,10 +54434,10 @@ L_25110DC3: _flag_k = FK_TEST; ecx = 0x1Au; /* 0x25110DD9: mov ecx, 0x1a */ edi = ebp + (-0x26C); /* 0x25110DDE: lea edi, [ebp - 0x26c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0x11u; /* 0x25110DE6: mov ecx, 0x11 */ edi = ebp + (-0x2B0); /* 0x25110DEB: lea edi, [ebp - 0x2b0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x2528D728); /* 0x25110DF3: mov ecx, dword ptr [0x2528d728] */ edx = ecx; /* 0x25110DF9: mov edx, ecx */ MEM32(ebp + (-0x22C)) = eax; /* 0x25110DFB: mov dword ptr [ebp - 0x22c], eax */ @@ -56435,10 +56435,10 @@ L_25110DC3: _flag_k = FK_TEST; ecx = 0x1Au; /* 0x25110DD9: mov ecx, 0x1a */ edi = ebp + (-0x26C); /* 0x25110DDE: lea edi, [ebp - 0x26c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0x11u; /* 0x25110DE6: mov ecx, 0x11 */ edi = ebp + (-0x2B0); /* 0x25110DEB: lea edi, [ebp - 0x2b0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x2528D728); /* 0x25110DF3: mov ecx, dword ptr [0x2528d728] */ edx = ecx; /* 0x25110DF9: mov edx, ecx */ MEM32(ebp + (-0x22C)) = eax; /* 0x25110DFB: mov dword ptr [ebp - 0x22c], eax */ @@ -58436,10 +58436,10 @@ L_25110DC3: _flag_k = FK_TEST; ecx = 0x1Au; /* 0x25110DD9: mov ecx, 0x1a */ edi = ebp + (-0x26C); /* 0x25110DDE: lea edi, [ebp - 0x26c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0x11u; /* 0x25110DE6: mov ecx, 0x11 */ edi = ebp + (-0x2B0); /* 0x25110DEB: lea edi, [ebp - 0x2b0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x2528D728); /* 0x25110DF3: mov ecx, dword ptr [0x2528d728] */ edx = ecx; /* 0x25110DF9: mov edx, ecx */ MEM32(ebp + (-0x22C)) = eax; /* 0x25110DFB: mov dword ptr [ebp - 0x22c], eax */ @@ -60437,10 +60437,10 @@ L_25110DC3: _flag_k = FK_TEST; ecx = 0x1Au; /* 0x25110DD9: mov ecx, 0x1a */ edi = ebp + (-0x26C); /* 0x25110DDE: lea edi, [ebp - 0x26c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0x11u; /* 0x25110DE6: mov ecx, 0x11 */ edi = ebp + (-0x2B0); /* 0x25110DEB: lea edi, [ebp - 0x2b0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x2528D728); /* 0x25110DF3: mov ecx, dword ptr [0x2528d728] */ edx = ecx; /* 0x25110DF9: mov edx, ecx */ MEM32(ebp + (-0x22C)) = eax; /* 0x25110DFB: mov dword ptr [ebp - 0x22c], eax */ @@ -62438,10 +62438,10 @@ L_25110DC3: _flag_k = FK_TEST; ecx = 0x1Au; /* 0x25110DD9: mov ecx, 0x1a */ edi = ebp + (-0x26C); /* 0x25110DDE: lea edi, [ebp - 0x26c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0x11u; /* 0x25110DE6: mov ecx, 0x11 */ edi = ebp + (-0x2B0); /* 0x25110DEB: lea edi, [ebp - 0x2b0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x2528D728); /* 0x25110DF3: mov ecx, dword ptr [0x2528d728] */ edx = ecx; /* 0x25110DF9: mov edx, ecx */ MEM32(ebp + (-0x22C)) = eax; /* 0x25110DFB: mov dword ptr [ebp - 0x22c], eax */ @@ -64439,10 +64439,10 @@ L_25110DC3: _flag_k = FK_TEST; ecx = 0x1Au; /* 0x25110DD9: mov ecx, 0x1a */ edi = ebp + (-0x26C); /* 0x25110DDE: lea edi, [ebp - 0x26c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DE4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0x11u; /* 0x25110DE6: mov ecx, 0x11 */ edi = ebp + (-0x2B0); /* 0x25110DEB: lea edi, [ebp - 0x2b0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25110DF1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(0x2528D728); /* 0x25110DF3: mov ecx, dword ptr [0x2528d728] */ edx = ecx; /* 0x25110DF9: mov edx, ecx */ MEM32(ebp + (-0x22C)) = eax; /* 0x25110DFB: mov dword ptr [ebp - 0x22c], eax */ diff --git a/client/game/bbr.dll/lifted-0071.c b/client/game/bbr.dll/lifted-0071.c @@ -313,7 +313,7 @@ L_25118BEE: eax = 0; /* 0x25118BFC: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25118BFE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25118BFE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x25118C00: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x25118C02: and ecx, 3 */ diff --git a/client/game/bbr.dll/lifted-0073.c b/client/game/bbr.dll/lifted-0073.c @@ -9816,7 +9816,7 @@ L_2512666E: eax = 0; /* 0x2512667D: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2512667F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2512667F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x25126681: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x25126683: and ecx, 3 */ diff --git a/client/game/bbr.dll/lifted-0074.c b/client/game/bbr.dll/lifted-0074.c @@ -4371,7 +4371,7 @@ L_25128365: _flag_k = FK_TEST; ecx = 0x64u; /* 0x25128378: mov ecx, 0x64 */ edi = ebp + (-0x1A4); /* 0x2512837D: lea edi, [ebp - 0x1a4] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25128383: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25128383: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } if (TEST_Z(_flag_a, _flag_b)) goto L_251283B3; /* 0x25128385: jbe 0x251283b3 */ L_25128387: eax = MEM32(esi + 0x94); /* 0x25128387: mov eax, dword ptr [esi + 0x94] */ @@ -4598,7 +4598,7 @@ L_251284C1: eax = eax | 0xFFFFFFFFu; /* 0x251284CB: or eax, 0xffffffff */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x251284CE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x251284CE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x251284D0: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x251284D2: and ecx, 3 */ diff --git a/client/game/bbr.dll/lifted-0076.c b/client/game/bbr.dll/lifted-0076.c @@ -676,7 +676,7 @@ L_2512D674: ecx = ecx >> 2u; /* 0x2512D678: shr ecx, 2 */ eax = 0x20202020u; /* 0x2512D67B: mov eax, 0x20202020 */ edi = ebp + (-0x414); /* 0x2512D680: lea edi, [ebp - 0x414] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2512D686: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2512D686: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = esi; /* 0x2512D688: mov ecx, esi */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x2512D68A: and ecx, 3 */ diff --git a/client/game/bbr.dll/lifted-0078.c b/client/game/bbr.dll/lifted-0078.c @@ -9761,7 +9761,7 @@ L_2513519B: eax = 0; /* 0x251351B6: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x251351B8: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x251351B8: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); esp = esp + 4; /* 0x251351BA: add esp, 4 */ diff --git a/client/game/bbr.dll/lifted-0080.c b/client/game/bbr.dll/lifted-0080.c @@ -1439,7 +1439,7 @@ L_25138599: _flag_k = FK_TEST; ecx = POP32_VAL(esp); /* 0x2513859D: pop ecx */ edi = ebp + (-0x7C); /* 0x2513859E: lea edi, [ebp - 0x7c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x251385A1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x251385A1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(edx); /* 0x251385A3: mov eax, dword ptr [edx] */ ecx = ebp + (-0x7C); /* 0x251385A5: lea ecx, [ebp - 0x7c] */ PUSH32(esp, ecx); /* 0x251385A8: push ecx */ @@ -1673,7 +1673,7 @@ L_25138679: _flag_k = FK_TEST; ecx = POP32_VAL(esp); /* 0x2513868C: pop ecx */ edi = ebp + (-0x8C); /* 0x2513868D: lea edi, [ebp - 0x8c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25138693: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25138693: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(esi); /* 0x25138695: mov eax, dword ptr [esi] */ ecx = ebp + (-0x8C); /* 0x25138697: lea ecx, [ebp - 0x8c] */ PUSH32(esp, ecx); /* 0x2513869D: push ecx */ @@ -1945,7 +1945,7 @@ L_251387C7: _cf = 0; _flag_k = FK_TEST; edi = ebp + (-0x11C); /* 0x251387E8: lea edi, [ebp - 0x11c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x251387EE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x251387EE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(esi); /* 0x251387F0: mov eax, dword ptr [esi] */ ecx = ebp + (-0x11C); /* 0x251387F2: lea ecx, [ebp - 0x11c] */ PUSH32(esp, ecx); /* 0x251387F8: push ecx */ @@ -1991,7 +1991,7 @@ L_25138837: _flag_k = FK_TEST; ecx = POP32_VAL(esp); /* 0x2513883B: pop ecx */ edi = ebp + (-0x314); /* 0x2513883C: lea edi, [ebp - 0x314] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25138842: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25138842: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + (-0xC)); /* 0x25138844: mov eax, dword ptr [ebp - 0xc] */ edx = ebp + (-0x314); /* 0x25138847: lea edx, [ebp - 0x314] */ MEM32(ebp + (-0x314)) = 0x17Cu; /* 0x2513884D: mov dword ptr [ebp - 0x314], 0x17c */ @@ -2121,7 +2121,7 @@ L_251388F9: _flag_k = FK_TEST; ecx = POP32_VAL(esp); /* 0x251388FD: pop ecx */ edi = ebp + (-0x198); /* 0x251388FE: lea edi, [ebp - 0x198] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25138904: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25138904: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + (-0xC)); /* 0x25138906: mov eax, dword ptr [ebp - 0xc] */ edx = ebp + (-0x198); /* 0x25138909: lea edx, [ebp - 0x198] */ MEM32(ebp + (-0x198)) = 0x7Cu; /* 0x2513890F: mov dword ptr [ebp - 0x198], 0x7c */ @@ -2710,7 +2710,7 @@ L_25138B8D: _flag_k = FK_TEST; ecx = POP32_VAL(esp); /* 0x25138B91: pop ecx */ edi = ebp + (-0x98); /* 0x25138B92: lea edi, [ebp - 0x98] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25138B98: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25138B98: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + 0x10); /* 0x25138B9A: mov eax, dword ptr [ebp + 0x10] */ MEM32(ebp + (-0x98)) = 0x7Cu; /* 0x25138B9D: mov dword ptr [ebp - 0x98], 0x7c */ MEM32(ebp + (-0x94)) = 0x00101007u; /* 0x25138BA7: mov dword ptr [ebp - 0x94], 0x101007 */ @@ -2760,7 +2760,7 @@ L_25138BF8: _flag_k = FK_TEST; ecx = POP32_VAL(esp); /* 0x25138BFC: pop ecx */ edi = ebp + (-0x184); /* 0x25138BFD: lea edi, [ebp - 0x184] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25138C03: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25138C03: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + 0x8); /* 0x25138C05: mov eax, dword ptr [ebp + 8] */ edx = ebp + (-0x184); /* 0x25138C08: lea edx, [ebp - 0x184] */ PUSH32(esp, edx); /* 0x25138C0E: push edx */ @@ -3173,7 +3173,7 @@ L_25138E13: _flag_k = FK_TEST; ecx = POP32_VAL(esp); /* 0x25138E17: pop ecx */ edi = ebp + (-0xCC); /* 0x25138E18: lea edi, [ebp - 0xcc] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25138E1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25138E1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + 0x14); /* 0x25138E20: mov eax, dword ptr [ebp + 0x14] */ edx = ebp + (-0xCC); /* 0x25138E23: lea edx, [ebp - 0xcc] */ PUSH32(esp, edx); /* 0x25138E29: push edx */ @@ -3305,7 +3305,7 @@ L_25138EED: _flag_k = FK_TEST; ecx = POP32_VAL(esp); /* 0x25138EF1: pop ecx */ edi = ebp + (-0xCC); /* 0x25138EF2: lea edi, [ebp - 0xcc] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25138EF8: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25138EF8: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + 0x18); /* 0x25138EFA: mov eax, dword ptr [ebp + 0x18] */ edx = ebp + (-0xCC); /* 0x25138EFD: lea edx, [ebp - 0xcc] */ MEM32(ebp + (-0xCC)) = 0x7Cu; /* 0x25138F03: mov dword ptr [ebp - 0xcc], 0x7c */ @@ -3569,7 +3569,7 @@ L_25139037: _flag_k = FK_TEST; ecx = POP32_VAL(esp); /* 0x2513903B: pop ecx */ edi = ebp + (-0xA8); /* 0x2513903C: lea edi, [ebp - 0xa8] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25139042: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25139042: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + 0xC); /* 0x25139044: mov eax, dword ptr [ebp + 0xc] */ edx = ebp + (-0xA8); /* 0x25139047: lea edx, [ebp - 0xa8] */ MEM32(ebp + (-0xA8)) = 0x7Cu; /* 0x2513904D: mov dword ptr [ebp - 0xa8], 0x7c */ @@ -7999,7 +7999,7 @@ L_2513A65C: _flag_k = FK_TEST; edi = 0x2529F250u; /* 0x2513A662: mov edi, 0x2529f250 */ PUSH32(esp, 0xCu); /* 0x2513A667: push 0xc */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513A669: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513A669: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x251380D0u); /* 0x2513A66B: call 0x251380d0 */ /* not lifted */ RECOMP_FLAGS_IN(); /* cmp eax, esi */ /* 0x2513A670: cmp eax, esi */ @@ -8298,7 +8298,7 @@ L_2513A7E3: ecx = POP32_VAL(esp); /* 0x2513A7E7: pop ecx */ edi = 0x2529F250u; /* 0x2513A7E8: mov edi, 0x2529f250 */ PUSH32(esp, MEM32(0x2529F0B8)); /* 0x2513A7ED: push dword ptr [0x2529f0b8] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513A7F3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513A7F3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x251381B8u); /* 0x2513A7F5: call 0x251381b8 */ /* not lifted */ RECOMP_FLAGS_IN(); _flag_a = (uint32_t)(MEM32(0x2529F0B8)); _flag_b = (uint32_t)(0); @@ -8827,7 +8827,7 @@ L_2513AAEB: _flag_k = FK_TEST; ecx = POP32_VAL(esp); /* 0x2513AAF8: pop ecx */ edi = ebx; /* 0x2513AAF9: mov edi, ebx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513AAFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513AAFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + 0x24); /* 0x2513AAFD: mov eax, dword ptr [ebp + 0x24] */ /* cmp eax, 0xFFFFFFFFu */ /* 0x2513AB00: cmp eax, -1 */ _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); diff --git a/client/game/bbr.dll/lifted-0081.c b/client/game/bbr.dll/lifted-0081.c @@ -827,7 +827,7 @@ L_2513B95C: _flag_k = FK_TEST; ecx = POP32_VAL(esp); /* 0x2513B960: pop ecx */ edi = ebp + (-0x88); /* 0x2513B961: lea edi, [ebp - 0x88] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513B967: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513B967: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } /* cmp ebx, edx */ /* 0x2513B969: cmp ebx, edx */ _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); _cf = (uint32_t)CMP_B(_flag_a, _flag_b); @@ -969,7 +969,7 @@ L_2513BA57: _flag_k = FK_TEST; edi = ebp + (-0x488); /* 0x2513BA5E: lea edi, [ebp - 0x488] */ PUSH32(esp, 0); /* 0x2513BA64: push 0 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513BA66: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513BA66: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(esi); /* 0x2513BA68: mov eax, dword ptr [esi] */ ecx = ebp + (-0x8); /* 0x2513BA6A: lea ecx, [ebp - 8] */ PUSH32(esp, ecx); /* 0x2513BA6D: push ecx */ @@ -1328,7 +1328,7 @@ L_2513B95C: _flag_k = FK_TEST; ecx = POP32_VAL(esp); /* 0x2513B960: pop ecx */ edi = ebp + (-0x88); /* 0x2513B961: lea edi, [ebp - 0x88] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513B967: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513B967: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } /* cmp ebx, edx */ /* 0x2513B969: cmp ebx, edx */ _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); _cf = (uint32_t)CMP_B(_flag_a, _flag_b); @@ -1470,7 +1470,7 @@ L_2513BA57: _flag_k = FK_TEST; edi = ebp + (-0x488); /* 0x2513BA5E: lea edi, [ebp - 0x488] */ PUSH32(esp, 0); /* 0x2513BA64: push 0 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513BA66: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513BA66: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(esi); /* 0x2513BA68: mov eax, dword ptr [esi] */ ecx = ebp + (-0x8); /* 0x2513BA6A: lea ecx, [ebp - 8] */ PUSH32(esp, ecx); /* 0x2513BA6D: push ecx */ @@ -1763,7 +1763,7 @@ L_2513B95C: _flag_k = FK_TEST; ecx = POP32_VAL(esp); /* 0x2513B960: pop ecx */ edi = ebp + (-0x88); /* 0x2513B961: lea edi, [ebp - 0x88] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513B967: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513B967: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } /* cmp ebx, edx */ /* 0x2513B969: cmp ebx, edx */ _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); _cf = (uint32_t)CMP_B(_flag_a, _flag_b); @@ -1905,7 +1905,7 @@ L_2513BA57: _flag_k = FK_TEST; edi = ebp + (-0x488); /* 0x2513BA5E: lea edi, [ebp - 0x488] */ PUSH32(esp, 0); /* 0x2513BA64: push 0 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513BA66: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513BA66: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(esi); /* 0x2513BA68: mov eax, dword ptr [esi] */ ecx = ebp + (-0x8); /* 0x2513BA6A: lea ecx, [ebp - 8] */ PUSH32(esp, ecx); /* 0x2513BA6D: push ecx */ @@ -3141,7 +3141,7 @@ L_2513BE7C: ecx = POP32_VAL(esp); /* 0x2513BE80: pop ecx */ edi = ebx + 0x8; /* 0x2513BE81: lea edi, [ebx + 8] */ MEM32(ebx) = edx; /* 0x2513BE84: mov dword ptr [ebx], edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513BE86: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513BE86: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM32(ebx + 0x4) = edx; /* 0x2513BE88: mov dword ptr [ebx + 4], edx */ MEM32(ebx + 0x28) = edx; /* 0x2513BE8B: mov dword ptr [ebx + 0x28], edx */ goto L_2513BE92; /* 0x2513BE8E: jmp 0x2513be92 */ @@ -3293,18 +3293,18 @@ L_2513BF4D: _cf = 0; _flag_k = FK_TEST; PUSH32(esp, 0x5Fu); /* 0x2513BF7A: push 0x5f */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513BF7C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513BF7C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = POP32_VAL(esp); /* 0x2513BF7E: pop ecx */ edi = edx + 0x18C; /* 0x2513BF7F: lea edi, [edx + 0x18c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513BF85: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513BF85: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 0x3Bu); /* 0x2513BF87: push 0x3b */ edi = edx + 0x308; /* 0x2513BF89: lea edi, [edx + 0x308] */ ecx = POP32_VAL(esp); /* 0x2513BF8F: pop ecx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513BF90: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513BF90: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 0x50u); /* 0x2513BF92: push 0x50 */ edi = edx + 0x404; /* 0x2513BF94: lea edi, [edx + 0x404] */ ecx = POP32_VAL(esp); /* 0x2513BF9A: pop ecx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513BF9B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513BF9B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = edx; /* 0x2513BF9D: mov eax, edx */ edi = POP32_VAL(esp); /* 0x2513BF9F: pop edi */ RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2513BFA0: ret */ @@ -4880,7 +4880,7 @@ L_2513C592: edi = edx + 0x8; /* 0x2513C597: lea edi, [edx + 8] */ MEM32(edx) = esi; /* 0x2513C59A: mov dword ptr [edx], esi */ MEM32(ebp + (-0x4)) = edx; /* 0x2513C59C: mov dword ptr [ebp - 4], edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513C59F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513C59F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM32(edx + 0x4) = esi; /* 0x2513C5A1: mov dword ptr [edx + 4], esi */ MEM32(edx + 0x28) = esi; /* 0x2513C5A4: mov dword ptr [edx + 0x28], esi */ goto L_2513C5AC; /* 0x2513C5A7: jmp 0x2513c5ac */ @@ -5136,7 +5136,7 @@ L_2513C710: _flag_k = FK_TEST; ecx = POP32_VAL(esp); /* 0x2513C737: pop ecx */ edi = ebp + (-0x154); /* 0x2513C738: lea edi, [ebp - 0x154] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513C73E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513C73E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + 0x8); /* 0x2513C740: mov eax, dword ptr [ebp + 8] */ MEM32(edx) = 0x2515A978u; /* 0x2513C743: mov dword ptr [edx], 0x2515a978 */ MEM32(ebp + (-0x4)) = esi; /* 0x2513C749: mov dword ptr [ebp - 4], esi */ @@ -6845,7 +6845,7 @@ L_2513D015: _flag_k = FK_TEST; ecx = POP32_VAL(esp); /* 0x2513D019: pop ecx */ edi = ebp + (-0x1A4); /* 0x2513D01A: lea edi, [ebp - 0x1a4] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513D020: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513D020: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(esi + 0x94); /* 0x2513D022: mov eax, dword ptr [esi + 0x94] */ MEM32(ebp + (-0x14)) = edx; /* 0x2513D028: mov dword ptr [ebp - 0x14], edx */ MEM32(ebp + (-0x18)) = edx; /* 0x2513D02B: mov dword ptr [ebp - 0x18], edx */ @@ -7051,7 +7051,7 @@ L_2513D1BB: _flag_k = FK_TEST; ecx = POP32_VAL(esp); /* 0x2513D1BF: pop ecx */ edi = ebp + (-0x11C); /* 0x2513D1C0: lea edi, [ebp - 0x11c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513D1C6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513D1C6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = ebp + (-0x11C); /* 0x2513D1C8: lea ecx, [ebp - 0x11c] */ MEM32(ebp + (-0x11C)) = 0x7Cu; /* 0x2513D1CE: mov dword ptr [ebp - 0x11c], 0x7c */ eax = MEM32(edx); /* 0x2513D1D8: mov eax, dword ptr [edx] */ @@ -7465,7 +7465,7 @@ L_2513D1BB: _flag_k = FK_TEST; ecx = POP32_VAL(esp); /* 0x2513D1BF: pop ecx */ edi = ebp + (-0x11C); /* 0x2513D1C0: lea edi, [ebp - 0x11c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513D1C6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513D1C6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = ebp + (-0x11C); /* 0x2513D1C8: lea ecx, [ebp - 0x11c] */ MEM32(ebp + (-0x11C)) = 0x7Cu; /* 0x2513D1CE: mov dword ptr [ebp - 0x11c], 0x7c */ eax = MEM32(edx); /* 0x2513D1D8: mov eax, dword ptr [edx] */ @@ -8170,7 +8170,7 @@ L_2513D1BB: _flag_k = FK_TEST; ecx = POP32_VAL(esp); /* 0x2513D1BF: pop ecx */ edi = ebp + (-0x11C); /* 0x2513D1C0: lea edi, [ebp - 0x11c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513D1C6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513D1C6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = ebp + (-0x11C); /* 0x2513D1C8: lea ecx, [ebp - 0x11c] */ MEM32(ebp + (-0x11C)) = 0x7Cu; /* 0x2513D1CE: mov dword ptr [ebp - 0x11c], 0x7c */ eax = MEM32(edx); /* 0x2513D1D8: mov eax, dword ptr [edx] */ @@ -9428,7 +9428,7 @@ L_2513D95D: _flag_k = FK_TEST; ecx = POP32_VAL(esp); /* 0x2513D96F: pop ecx */ edi = ebp + (-0x10C); /* 0x2513D970: lea edi, [ebp - 0x10c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513D976: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513D976: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x8C); /* 0x2513D978: mov eax, dword ptr [ebx + 0x8c] */ edx = ebp + (-0x10C); /* 0x2513D97E: lea edx, [ebp - 0x10c] */ MEM32(ebp + (-0x10C)) = 0x7Cu; /* 0x2513D984: mov dword ptr [ebp - 0x10c], 0x7c */ @@ -9796,7 +9796,7 @@ L_2513DBE3: _flag_k = FK_TEST; ecx = POP32_VAL(esp); /* 0x2513DBF3: pop ecx */ edi = ebp + (-0x18); /* 0x2513DBF4: lea edi, [ebp - 0x18] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513DBF7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513DBF7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } fp_push(0.0); /* 0x2513DBF9: fldz */ { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2513DBFB: fstp dword ptr [ebp - 8] */ fp_push(1.0); /* 0x2513DBFE: fld1 */ @@ -10325,7 +10325,7 @@ L_2513DEB7: _flag_k = FK_TEST; ecx = POP32_VAL(esp); /* 0x2513DEBB: pop ecx */ edi = ebp + (-0x108); /* 0x2513DEBC: lea edi, [ebp - 0x108] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513DEC2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513DEC2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x3C); /* 0x2513DEC4: mov eax, dword ptr [ebx + 0x3c] */ esi = MEM32(ebp + (-0x4)); /* 0x2513DEC7: mov esi, dword ptr [ebp - 4] */ MEM32(ebp + (-0xFC)) = eax; /* 0x2513DECA: mov dword ptr [ebp - 0xfc], eax */ @@ -11191,7 +11191,7 @@ L_2513E450: _flag_k = FK_TEST; ecx = POP32_VAL(esp); /* 0x2513E454: pop ecx */ edi = ebp + (-0x108); /* 0x2513E455: lea edi, [ebp - 0x108] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513E45B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513E45B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x3C); /* 0x2513E45D: mov eax, dword ptr [ebx + 0x3c] */ MEM32(ebp + (-0x108)) = 0x7Cu; /* 0x2513E460: mov dword ptr [ebp - 0x108], 0x7c */ MEM32(ebp + (-0xFC)) = eax; /* 0x2513E46A: mov dword ptr [ebp - 0xfc], eax */ @@ -11405,7 +11405,7 @@ L_2513E5C1: _flag_k = FK_TEST; ecx = POP32_VAL(esp); /* 0x2513E5C5: pop ecx */ edi = ebp + (-0x7C); /* 0x2513E5C6: lea edi, [ebp - 0x7c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513E5C9: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513E5C9: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x3C); /* 0x2513E5CB: mov eax, dword ptr [ebx + 0x3c] */ ecx = MEM32(ebx + 0x20); /* 0x2513E5CE: mov ecx, dword ptr [ebx + 0x20] */ MEM32(ebp + (-0x70)) = eax; /* 0x2513E5D1: mov dword ptr [ebp - 0x70], eax */ diff --git a/client/game/bbr.dll/lifted-0082.c b/client/game/bbr.dll/lifted-0082.c @@ -34,7 +34,7 @@ L_2513E870: PUSH32(esp, 0x1Fu); /* 0x2513E871: push 0x1f */ ecx = POP32_VAL(esp); /* 0x2513E873: pop ecx */ edi = ebp + (-0x7C); /* 0x2513E874: lea edi, [ebp - 0x7c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513E877: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513E877: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(edx + 0x7C); /* 0x2513E879: mov eax, dword ptr [edx + 0x7c] */ edx = ebp + (-0x7C); /* 0x2513E87C: lea edx, [ebp - 0x7c] */ MEM32(ebp + (-0x7C)) = 0x7Cu; /* 0x2513E87F: mov dword ptr [ebp - 0x7c], 0x7c */ @@ -214,7 +214,7 @@ L_2513E97B: edi = ebp + (-0xA0); /* 0x2513E980: lea edi, [ebp - 0xa0] */ PUSH32(esp, 0x40u); /* 0x2513E986: push 0x40 */ edx = ebp + (-0x1C); /* 0x2513E988: lea edx, [ebp - 0x1c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513E98B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513E98B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = POP32_VAL(esp); /* 0x2513E98D: pop eax */ MEM32(ebp + (-0xA0)) = 0x7Cu; /* 0x2513E98E: mov dword ptr [ebp - 0xa0], 0x7c */ PUSH32(esp, 0x20u); /* 0x2513E998: push 0x20 */ @@ -1001,7 +1001,7 @@ L_2513EE91: edi = ebp + (-0xA4); /* 0x2513EE96: lea edi, [ebp - 0xa4] */ PUSH32(esp, 0x40u); /* 0x2513EE9C: push 0x40 */ edx = ebp + (-0x4); /* 0x2513EE9E: lea edx, [ebp - 4] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513EEA1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513EEA1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = POP32_VAL(esp); /* 0x2513EEA3: pop eax */ MEM32(ebp + (-0xA4)) = 0x7Cu; /* 0x2513EEA4: mov dword ptr [ebp - 0xa4], 0x7c */ PUSH32(esp, 0x20u); /* 0x2513EEAE: push 0x20 */ @@ -1342,7 +1342,7 @@ L_2513F090: _cf = 0; _flag_k = FK_TEST; MEM32(edx) = esi; /* 0x2513F0B3: mov dword ptr [edx], esi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513F0B5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513F0B5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM32(edx + 0x4) = esi; /* 0x2513F0B7: mov dword ptr [edx + 4], esi */ edi = POP32_VAL(esp); /* 0x2513F0BA: pop edi */ eax = edx; /* 0x2513F0BB: mov eax, edx */ @@ -1784,7 +1784,7 @@ L_2513F27D: if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2513F289: shr ecx, 2 */ if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } ecx = ecx >> 2u; /* 0x2513F289: shr ecx, 2 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513F28C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513F28C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = esi; /* 0x2513F28E: mov ecx, esi */ MEM32(esp + 0x14) = 1; /* 0x2513F290: mov dword ptr [esp + 0x14], 1 */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); @@ -3756,7 +3756,7 @@ L_2513FB72: edi = ebp + (-0x78); /* 0x2513FB7B: lea edi, [ebp - 0x78] */ MEM32(ebp + (-0x7C)) = 0x7Cu; /* 0x2513FB7E: mov dword ptr [ebp - 0x7c], 0x7c */ PUSH32(esp, 1); /* 0x2513FB85: push 1 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513FB87: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513FB87: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebp + 0xC); /* 0x2513FB89: mov ecx, dword ptr [ebp + 0xc] */ eax = POP32_VAL(esp); /* 0x2513FB8C: pop eax */ MEM32(ebp + (-0x78)) = eax; /* 0x2513FB8D: mov dword ptr [ebp - 0x78], eax */ @@ -4319,7 +4319,7 @@ L_2513FF2E: edi = ebp + (-0xF0); /* 0x2513FF33: lea edi, [ebp - 0xf0] */ PUSH32(esp, 0x40u); /* 0x2513FF39: push 0x40 */ edx = ebp + (-0x10); /* 0x2513FF3B: lea edx, [ebp - 0x10] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513FF3E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513FF3E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = POP32_VAL(esp); /* 0x2513FF40: pop eax */ MEM32(ebp + (-0xF0)) = 0x7Cu; /* 0x2513FF41: mov dword ptr [ebp - 0xf0], 0x7c */ MEM32(ebp + (-0xE8)) = eax; /* 0x2513FF4B: mov dword ptr [ebp - 0xe8], eax */ @@ -4395,7 +4395,7 @@ L_2513FFCF: edx = ebp + (-0x1C); /* 0x2513FFDC: lea edx, [ebp - 0x1c] */ PUSH32(esp, ebx); /* 0x2513FFDF: push ebx */ PUSH32(esp, edx); /* 0x2513FFE0: push edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513FFE1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2513FFE1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(esi + 0x20); /* 0x2513FFE3: mov eax, dword ptr [esi + 0x20] */ edx = ebp + (-0x578); /* 0x2513FFE6: lea edx, [ebp - 0x578] */ PUSH32(esp, edx); /* 0x2513FFEC: push edx */ diff --git a/client/game/bbr.dll/lifted-0083.c b/client/game/bbr.dll/lifted-0083.c @@ -7039,7 +7039,7 @@ L_25143A4C: _cf = 0; _flag_k = FK_TEST; edi = ebx; /* 0x25143A59: mov edi, ebx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25143A5B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25143A5B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(esi + 0x4); /* 0x25143A5D: mov eax, dword ptr [esi + 4] */ edx = ebp + (-0x4); /* 0x25143A60: lea edx, [ebp - 4] */ PUSH32(esp, edx); /* 0x25143A63: push edx */ @@ -12407,7 +12407,7 @@ L_25144D68: _cf = 0; _flag_k = FK_TEST; edi = esi + 0x8; /* 0x25144D70: lea edi, [esi + 8] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25144D73: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25144D73: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(MEM32(esi + 0x4)); _flag_b = (uint32_t)(eax); MEM32(esi + 0x4) = MEM32(esi + 0x4) & eax; /* 0x25144D75: and dword ptr [esi + 4], eax */ _cf = 0; @@ -12606,7 +12606,7 @@ L_25144D68: _cf = 0; _flag_k = FK_TEST; edi = esi + 0x8; /* 0x25144D70: lea edi, [esi + 8] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25144D73: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25144D73: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(MEM32(esi + 0x4)); _flag_b = (uint32_t)(eax); MEM32(esi + 0x4) = MEM32(esi + 0x4) & eax; /* 0x25144D75: and dword ptr [esi + 4], eax */ _cf = 0; @@ -12805,7 +12805,7 @@ L_25144D68: _cf = 0; _flag_k = FK_TEST; edi = esi + 0x8; /* 0x25144D70: lea edi, [esi + 8] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x25144D73: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25144D73: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(MEM32(esi + 0x4)); _flag_b = (uint32_t)(eax); MEM32(esi + 0x4) = MEM32(esi + 0x4) & eax; /* 0x25144D75: and dword ptr [esi + 4], eax */ _cf = 0; diff --git a/client/game/br.dll/lifted-0000.c b/client/game/br.dll/lifted-0000.c @@ -3279,7 +3279,7 @@ L_260020C6: if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x260020D5: shr ecx, 2 */ if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } ecx = ecx >> 2u; /* 0x260020D5: shr ecx, 2 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x260020D8: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x260020D8: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x260020DA: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x260020DC: and ecx, 3 */ diff --git a/client/game/ccr.dll/lifted-0000.c b/client/game/ccr.dll/lifted-0000.c @@ -9262,7 +9262,7 @@ L_27002D92: ecx = 0x1Du; /* 0x27002E6D: mov ecx, 0x1d */ eax = 0x01010101u; /* 0x27002E72: mov eax, 0x1010101 */ edi = esi + 0x17C; /* 0x27002E77: lea edi, [esi + 0x17c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x27002E7D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x27002E7D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x27002E7F: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x27002E81: stosb byte ptr es:[edi], al */ /* cmp MEM32(0x27048B4C), ebx */ /* 0x27002E82: cmp dword ptr [0x27048b4c], ebx */ @@ -9287,7 +9287,7 @@ L_27002E9D: _flag_k = FK_TEST; edi = esi + 0x5B; /* 0x27002EA6: lea edi, [esi + 0x5b] */ ecx = 0xFu; /* 0x27002EA9: mov ecx, 0xf */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x27002EAE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x27002EAE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x27002EB0: stosw word ptr es:[edi], ax */ PUSH32(esp, 1); /* 0x27002EB2: push 1 */ ecx = esi; /* 0x27002EB4: mov ecx, esi */ @@ -9799,7 +9799,7 @@ L_270031EB: PUSH32(esp, 0xAu); /* 0x270031ED: push 0xa */ ecx = 0x100u; /* 0x270031EF: mov ecx, 0x100 */ edi = ebp + (-0x42C); /* 0x270031F4: lea edi, [ebp - 0x42c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x270031FA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x270031FA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 0x400u); /* 0x270031FC: push 0x400 */ ecx = ebp + (-0x42C); /* 0x27003201: lea ecx, [ebp - 0x42c] */ PUSH32(esp, ecx); /* 0x27003207: push ecx */ diff --git a/client/game/ccr.dll/lifted-0001.c b/client/game/ccr.dll/lifted-0001.c @@ -1263,7 +1263,7 @@ L_27003E70: _cf = 0; _flag_k = FK_TEST; ecx = 0xFu; /* 0x27003E76: mov ecx, 0xf */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x27003E7B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x27003E7B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x27003E7D: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x27003E7F: stosb byte ptr es:[edi], al */ edi = POP32_VAL(esp); /* 0x27003E80: pop edi */ @@ -5487,7 +5487,7 @@ L_27004ED0: edi = ecx + 0x17C; /* 0x27004ED1: lea edi, [ecx + 0x17c] */ ecx = 0x1Du; /* 0x27004ED7: mov ecx, 0x1d */ eax = 0x01010101u; /* 0x27004EDC: mov eax, 0x1010101 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x27004EE1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x27004EE1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x27004EE3: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x27004EE5: stosb byte ptr es:[edi], al */ edi = POP32_VAL(esp); /* 0x27004EE6: pop edi */ diff --git a/client/game/ccr.dll/lifted-0003.c b/client/game/ccr.dll/lifted-0003.c @@ -12536,7 +12536,7 @@ L_2700B58B: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2700B590: mov ecx, 0xc */ edi = ebp + (-0x40); /* 0x2700B595: lea edi, [ebp - 0x40] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2700B598: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2700B598: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edi = MEM32(ebp + 0xC); /* 0x2700B59A: mov edi, dword ptr [ebp + 0xc] */ PUSH32(esp, 0xBCu); /* 0x2700B59D: push 0xbc */ MEM32(ebp + (-0x40)) = 1; /* 0x2700B5A2: mov dword ptr [ebp - 0x40], 1 */ diff --git a/client/game/ccr.dll/lifted-0004.c b/client/game/ccr.dll/lifted-0004.c @@ -19790,10 +19790,10 @@ L_2700EFF3: _cf = 0; _flag_k = FK_TEST; ecx = 0x3FCu; /* 0x2700F02E: mov ecx, 0x3fc */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2700F033: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2700F033: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0xFFu; /* 0x2700F035: mov ecx, 0xff */ edi = edx + 0x101C; /* 0x2700F03A: lea edi, [edx + 0x101c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2700F040: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2700F040: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebp + (-0xC)); /* 0x2700F042: mov ecx, dword ptr [ebp - 0xc] */ edi = POP32_VAL(esp); /* 0x2700F045: pop edi */ esi = POP32_VAL(esp); /* 0x2700F046: pop esi */ @@ -20221,7 +20221,7 @@ L_2700F27F: ecx = 0x80u; /* 0x2700F282: mov ecx, 0x80 */ edi = ebp + (-0x250); /* 0x2700F287: lea edi, [ebp - 0x250] */ PUSH32(esp, 0); /* 0x2700F28D: push 0 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2700F28F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2700F28F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(MEM32(0x27029004)); /* 0x2700F291: call dword ptr [0x27029004] */ RECOMP_FLAGS_IN(); edi = eax; /* 0x2700F297: mov edi, eax */ diff --git a/client/game/ccr.dll/lifted-0005.c b/client/game/ccr.dll/lifted-0005.c @@ -12140,7 +12140,7 @@ L_270110AC: _flag_k = FK_TEST; ecx = 0xCu; /* 0x270110EA: mov ecx, 0xc */ edi = ebp + (-0xA4); /* 0x270110EF: lea edi, [ebp - 0xa4] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x270110F5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x270110F5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + 0x1C); /* 0x270110F7: mov eax, dword ptr [ebp + 0x1c] */ MEM32(ebp + (-0x90)) = eax; /* 0x270110FA: mov dword ptr [ebp - 0x90], eax */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -12149,7 +12149,7 @@ L_270110AC: _flag_k = FK_TEST; ecx = 0xCu; /* 0x27011102: mov ecx, 0xc */ edi = ebp + (-0x74); /* 0x27011107: lea edi, [ebp - 0x74] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2701110A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2701110A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebp + 0x20); /* 0x2701110C: mov ecx, dword ptr [ebp + 0x20] */ PUSH32(esp, 0xCu); /* 0x2701110F: push 0xc */ MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x27011111: mov dword ptr [ebp - 4], 0xffffffff */ diff --git a/client/game/ccr.dll/lifted-0006.c b/client/game/ccr.dll/lifted-0006.c @@ -428,7 +428,7 @@ L_27011A80: MEM32(ebp + (-0x38)) = ebx; /* 0x27011AAA: mov dword ptr [ebp - 0x38], ebx */ ecx = 0xAu; /* 0x27011AAD: mov ecx, 0xa */ edi = ebp + (-0x3C); /* 0x27011AB2: lea edi, [ebp - 0x3c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x27011AB5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x27011AB5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(esi + 0x3C); /* 0x27011AB7: mov eax, dword ptr [esi + 0x3c] */ ecx = MEM32(esi + 0x44); /* 0x27011ABA: mov ecx, dword ptr [esi + 0x44] */ PUSH32(esp, 0xB0u); /* 0x27011ABD: push 0xb0 */ @@ -1055,7 +1055,7 @@ L_27011D90: _flag_k = FK_TEST; ecx = 0xAu; /* 0x27011D99: mov ecx, 0xa */ edi = ebp + (-0x30); /* 0x27011D9E: lea edi, [ebp - 0x30] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x27011DA1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x27011DA1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + 0xC); /* 0x27011DA3: mov eax, dword ptr [ebp + 0xc] */ _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x54u); _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); diff --git a/client/game/ccr.dll/lifted-0009.c b/client/game/ccr.dll/lifted-0009.c @@ -5541,7 +5541,7 @@ L_2701A426: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2701A43D: mov ecx, 0xc */ edi = ebp + (-0xA0); /* 0x2701A442: lea edi, [ebp - 0xa0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2701A448: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2701A448: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0xC); /* 0x2701A44A: mov eax, dword ptr [ebx + 0xc] */ ecx = MEM32(ebx + 0x38); /* 0x2701A44D: mov ecx, dword ptr [ebx + 0x38] */ PUSH32(esp, 0xBCu); /* 0x2701A450: push 0xbc */ @@ -5633,7 +5633,7 @@ L_2701A4DA: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2701A4F1: mov ecx, 0xc */ edi = ebp + (-0xD0); /* 0x2701A4F6: lea edi, [ebp - 0xd0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2701A4FC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2701A4FC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0xC); /* 0x2701A4FE: mov eax, dword ptr [ebx + 0xc] */ ecx = MEM32(ebx + 0x40); /* 0x2701A501: mov ecx, dword ptr [ebx + 0x40] */ PUSH32(esp, 0xBCu); /* 0x2701A504: push 0xbc */ diff --git a/client/game/ccr.dll/lifted-0011.c b/client/game/ccr.dll/lifted-0011.c @@ -16353,7 +16353,7 @@ L_2701FDB8: if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } ecx = ecx >> 2u; /* 0x2701FDBC: shr ecx, 2 */ eax = 0x2A2A2A2Au; /* 0x2701FDBF: mov eax, 0x2a2a2a2a */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2701FDC4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2701FDC4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x2701FDC6: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x2701FDC8: and ecx, 3 */ diff --git a/client/game/ccr.dll/lifted-0012.c b/client/game/ccr.dll/lifted-0012.c @@ -4640,7 +4640,7 @@ L_27004ED0: edi = ecx + 0x17C; /* 0x27004ED1: lea edi, [ecx + 0x17c] */ ecx = 0x1Du; /* 0x27004ED7: mov ecx, 0x1d */ eax = 0x01010101u; /* 0x27004EDC: mov eax, 0x1010101 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x27004EE1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x27004EE1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x27004EE3: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x27004EE5: stosb byte ptr es:[edi], al */ edi = POP32_VAL(esp); /* 0x27004EE6: pop edi */ diff --git a/client/game/cr.dll/lifted-0000.c b/client/game/cr.dll/lifted-0000.c @@ -280,7 +280,7 @@ L_2A001170: _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); esp = esp + 4; /* 0x2A001194: add esp, 4 */ _flag_k = FK_ADD; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2A001197: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2A001197: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x2A001199: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x2A00119B: and ecx, 3 */ diff --git a/client/game/ddr.dll/lifted-0000.c b/client/game/ddr.dll/lifted-0000.c @@ -2537,7 +2537,7 @@ L_2B001EF6: _flag_k = FK_TEST; ecx = 0xFFu; /* 0x2B001EFF: mov ecx, 0xff */ edi = ebp + (-0x45F); /* 0x2B001F04: lea edi, [ebp - 0x45f] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B001F0A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B001F0A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, ebx); /* 0x2B001F0C: push ebx */ MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B001F0D: stosw word ptr es:[edi], ax */ ecx = ebp + (-0x460); /* 0x2B001F0F: lea ecx, [ebp - 0x460] */ @@ -2746,7 +2746,7 @@ L_2B001EF6: _flag_k = FK_TEST; ecx = 0xFFu; /* 0x2B001EFF: mov ecx, 0xff */ edi = ebp + (-0x45F); /* 0x2B001F04: lea edi, [ebp - 0x45f] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B001F0A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B001F0A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, ebx); /* 0x2B001F0C: push ebx */ MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B001F0D: stosw word ptr es:[edi], ax */ ecx = ebp + (-0x460); /* 0x2B001F0F: lea ecx, [ebp - 0x460] */ @@ -14699,13 +14699,13 @@ L_2B004097: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B0040E1: mov ecx, 0xc */ edi = ebp + (-0xD0); /* 0x2B0040E6: lea edi, [ebp - 0xd0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0040EC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0040EC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); edx = edx + 1; /* 0x2B0040EE: inc edx */ _flag_k = FK_INC; ecx = 0xCu; /* 0x2B0040EF: mov ecx, 0xc */ edi = ebp + (-0xA0); /* 0x2B0040F4: lea edi, [ebp - 0xa0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0040FA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0040FA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + 0x18); /* 0x2B0040FC: mov eax, dword ptr [ebp + 0x18] */ PUSH32(esp, 0xCu); /* 0x2B0040FF: push 0xc */ MEM32(ebp + (-0x5C)) = 0x26u; /* 0x2B004101: mov dword ptr [ebp - 0x5c], 0x26 */ diff --git a/client/game/ddr.dll/lifted-0005.c b/client/game/ddr.dll/lifted-0005.c @@ -18335,7 +18335,7 @@ L_2B0170AD: _flag_k = FK_TEST; ecx = 0x1Eu; /* 0x2B0170B5: mov ecx, 0x1e */ edi = 0x2B0EE6D4u; /* 0x2B0170BA: mov edi, 0x2b0ee6d4 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0170BF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0170BF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebp + (-0xC)); /* 0x2B0170C1: mov ecx, dword ptr [ebp - 0xc] */ edi = POP32_VAL(esp); /* 0x2B0170C4: pop edi */ MEM32(ebx + 0x94) = eax; /* 0x2B0170C5: mov dword ptr [ebx + 0x94], eax */ @@ -19421,7 +19421,7 @@ L_2B0175D0: _flag_k = FK_TEST; edi = ebx + 0x68; /* 0x2B017635: lea edi, [ebx + 0x68] */ ecx = 0xAu; /* 0x2B017638: mov ecx, 0xa */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B01763D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B01763D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); edi = 0; /* 0x2B01763F: xor edi, edi */ _cf = 0; diff --git a/client/game/ddr.dll/lifted-0006.c b/client/game/ddr.dll/lifted-0006.c @@ -14959,7 +14959,7 @@ L_2B01B05B: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B01B129: mov ecx, 0xc */ edi = ebp + (-0x74); /* 0x2B01B12E: lea edi, [ebp - 0x74] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B01B131: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B01B131: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x38); /* 0x2B01B133: mov eax, dword ptr [ebx + 0x38] */ PUSH32(esp, 2); /* 0x2B01B136: push 2 */ ecx = ebp + (-0x14); /* 0x2B01B138: lea ecx, [ebp - 0x14] */ @@ -15085,7 +15085,7 @@ L_2B01B1FF: PUSH32(esp, 2); /* 0x2B01B272: push 2 */ ecx = 0xCu; /* 0x2B01B274: mov ecx, 0xc */ edi = ebp + (-0x74); /* 0x2B01B279: lea edi, [ebp - 0x74] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B01B27C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B01B27C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebx + 0x38); /* 0x2B01B27E: mov ecx, dword ptr [ebx + 0x38] */ edx = ebp + (-0x14); /* 0x2B01B281: lea edx, [ebp - 0x14] */ PUSH32(esp, 0x19Bu); /* 0x2B01B284: push 0x19b */ @@ -15210,7 +15210,7 @@ L_2B01B348: PUSH32(esp, 2); /* 0x2B01B3BB: push 2 */ ecx = 0xCu; /* 0x2B01B3BD: mov ecx, 0xc */ edi = ebp + (-0x74); /* 0x2B01B3C2: lea edi, [ebp - 0x74] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B01B3C5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B01B3C5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebx + 0x38); /* 0x2B01B3C7: mov ecx, dword ptr [ebx + 0x38] */ edx = ebp + (-0x14); /* 0x2B01B3CA: lea edx, [ebp - 0x14] */ PUSH32(esp, 0x19Eu); /* 0x2B01B3CD: push 0x19e */ @@ -15335,7 +15335,7 @@ L_2B01B491: PUSH32(esp, 2); /* 0x2B01B504: push 2 */ ecx = 0xCu; /* 0x2B01B506: mov ecx, 0xc */ edi = ebp + (-0x74); /* 0x2B01B50B: lea edi, [ebp - 0x74] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B01B50E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B01B50E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebx + 0x38); /* 0x2B01B510: mov ecx, dword ptr [ebx + 0x38] */ edx = ebp + (-0x14); /* 0x2B01B513: lea edx, [ebp - 0x14] */ PUSH32(esp, 0x1A1u); /* 0x2B01B516: push 0x1a1 */ @@ -15460,7 +15460,7 @@ L_2B01B5DA: PUSH32(esp, 2); /* 0x2B01B64D: push 2 */ ecx = 0xCu; /* 0x2B01B64F: mov ecx, 0xc */ edi = ebp + (-0x74); /* 0x2B01B654: lea edi, [ebp - 0x74] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B01B657: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B01B657: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebx + 0x38); /* 0x2B01B659: mov ecx, dword ptr [ebx + 0x38] */ edx = ebp + (-0x14); /* 0x2B01B65C: lea edx, [ebp - 0x14] */ PUSH32(esp, 0x19Bu); /* 0x2B01B65F: push 0x19b */ @@ -15585,7 +15585,7 @@ L_2B01B723: PUSH32(esp, 2); /* 0x2B01B796: push 2 */ ecx = 0xCu; /* 0x2B01B798: mov ecx, 0xc */ edi = ebp + (-0x74); /* 0x2B01B79D: lea edi, [ebp - 0x74] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B01B7A0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B01B7A0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebx + 0x38); /* 0x2B01B7A2: mov ecx, dword ptr [ebx + 0x38] */ edx = ebp + (-0x14); /* 0x2B01B7A5: lea edx, [ebp - 0x14] */ PUSH32(esp, 0x1A4u); /* 0x2B01B7A8: push 0x1a4 */ @@ -15710,7 +15710,7 @@ L_2B01B86C: PUSH32(esp, 2); /* 0x2B01B8DF: push 2 */ ecx = 0xCu; /* 0x2B01B8E1: mov ecx, 0xc */ edi = ebp + (-0x74); /* 0x2B01B8E6: lea edi, [ebp - 0x74] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B01B8E9: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B01B8E9: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebx + 0x38); /* 0x2B01B8EB: mov ecx, dword ptr [ebx + 0x38] */ edx = ebp + (-0x14); /* 0x2B01B8EE: lea edx, [ebp - 0x14] */ PUSH32(esp, 0x1A7u); /* 0x2B01B8F1: push 0x1a7 */ @@ -15835,7 +15835,7 @@ L_2B01B9B5: PUSH32(esp, 2); /* 0x2B01BA28: push 2 */ ecx = 0xCu; /* 0x2B01BA2A: mov ecx, 0xc */ edi = ebp + (-0x74); /* 0x2B01BA2F: lea edi, [ebp - 0x74] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B01BA32: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B01BA32: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebx + 0x38); /* 0x2B01BA34: mov ecx, dword ptr [ebx + 0x38] */ edx = ebp + (-0x30); /* 0x2B01BA37: lea edx, [ebp - 0x30] */ PUSH32(esp, 0x1AAu); /* 0x2B01BA3A: push 0x1aa */ diff --git a/client/game/ddr.dll/lifted-0013.c b/client/game/ddr.dll/lifted-0013.c @@ -392,7 +392,7 @@ L_2B032EBB: PUSH32(esp, 2); /* 0x2B032EBD: push 2 */ ecx = 0xCu; /* 0x2B032EBF: mov ecx, 0xc */ edi = ebp + (-0x98); /* 0x2B032EC4: lea edi, [ebp - 0x98] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B032ECA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B032ECA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebx + 0x38); /* 0x2B032ECC: mov ecx, dword ptr [ebx + 0x38] */ edx = ebp + (-0x64); /* 0x2B032ECF: lea edx, [ebp - 0x64] */ PUSH32(esp, 0x1ADu); /* 0x2B032ED2: push 0x1ad */ @@ -517,7 +517,7 @@ L_2B032F94: PUSH32(esp, 2); /* 0x2B032FF5: push 2 */ ecx = 0xCu; /* 0x2B032FF7: mov ecx, 0xc */ edi = ebp + (-0x98); /* 0x2B032FFC: lea edi, [ebp - 0x98] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B033002: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B033002: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebx + 0x38); /* 0x2B033004: mov ecx, dword ptr [ebx + 0x38] */ edx = ebp + (-0x64); /* 0x2B033007: lea edx, [ebp - 0x64] */ PUSH32(esp, 0x1B0u); /* 0x2B03300A: push 0x1b0 */ @@ -9486,7 +9486,7 @@ L_2B0360B8: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B0360BD: mov ecx, 0xc */ edi = ebp + (-0xDC); /* 0x2B0360C2: lea edi, [ebp - 0xdc] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0360C8: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0360C8: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM32(ebp + (-0xC4)) = edx; /* 0x2B0360CA: mov dword ptr [ebp - 0xc4], edx */ MEM32(ebp + (-0x48)) = eax; /* 0x2B0360D0: mov dword ptr [ebp - 0x48], eax */ MEM32(ebp + (-0x44)) = eax; /* 0x2B0360D3: mov dword ptr [ebp - 0x44], eax */ @@ -14304,7 +14304,7 @@ L_2B037910: fp_push(*(float*)&MEM32(ebx + 0x54)); /* 0x2B0379C7: fld dword ptr [ebx + 0x54] */ edi = ebp + (-0x6C); /* 0x2B0379CA: lea edi, [ebp - 0x6c] */ _st[0] *= (double)*(float*)ADDR(0x2B0B6860); /* 0x2B0379CD: fmul dword ptr [0x2b0b6860] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0379D3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0379D3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } { float _v = (float)fp_pop(); *(float*)ADDR(ebx + 0x4C) = _v; } /* 0x2B0379D5: fstp dword ptr [ebx + 0x4c] */ PUSH32(esp, 2); /* 0x2B0379D8: push 2 */ _st[0] *= (double)*(float*)ADDR(0x2B0B685C); /* 0x2B0379DA: fmul dword ptr [0x2b0b685c] */ @@ -14428,7 +14428,7 @@ L_2B037AC0: PUSH32(esp, 2); /* 0x2B037AFE: push 2 */ ecx = 0xCu; /* 0x2B037B00: mov ecx, 0xc */ edi = ebp + (-0x6C); /* 0x2B037B05: lea edi, [ebp - 0x6c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B037B08: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B037B08: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebx + 0x38); /* 0x2B037B0A: mov ecx, dword ptr [ebx + 0x38] */ edx = ebp + (-0x28); /* 0x2B037B0D: lea edx, [ebp - 0x28] */ PUSH32(esp, 0x1C2u); /* 0x2B037B10: push 0x1c2 */ @@ -14543,7 +14543,7 @@ L_2B037BD8: PUSH32(esp, 2); /* 0x2B037C16: push 2 */ ecx = 0xCu; /* 0x2B037C18: mov ecx, 0xc */ edi = ebp + (-0x6C); /* 0x2B037C1D: lea edi, [ebp - 0x6c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B037C20: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B037C20: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebx + 0x38); /* 0x2B037C22: mov ecx, dword ptr [ebx + 0x38] */ edx = ebp + (-0x28); /* 0x2B037C25: lea edx, [ebp - 0x28] */ PUSH32(esp, 0x1C5u); /* 0x2B037C28: push 0x1c5 */ diff --git a/client/game/ddr.dll/lifted-0015.c b/client/game/ddr.dll/lifted-0015.c @@ -3436,7 +3436,7 @@ L_2B03C014: esi = MEM32(ecx + 0x10); /* 0x2B03C020: mov esi, dword ptr [ecx + 0x10] */ ecx = 0xCu; /* 0x2B03C023: mov ecx, 0xc */ edi = ebp + (-0x60); /* 0x2B03C028: lea edi, [ebp - 0x60] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B03C02B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B03C02B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebx + 0x4); /* 0x2B03C02D: mov ecx, dword ptr [ebx + 4] */ MEM32(ebp + (-0x4C)) = eax; /* 0x2B03C030: mov dword ptr [ebp - 0x4c], eax */ eax = MEM32(ebp + 0x18); /* 0x2B03C033: mov eax, dword ptr [ebp + 0x18] */ diff --git a/client/game/ddr.dll/lifted-0016.c b/client/game/ddr.dll/lifted-0016.c @@ -212,7 +212,7 @@ L_2B03E8C3: MEM32(ebp + (-0x24)) = esi; /* 0x2B03E8CC: mov dword ptr [ebp - 0x24], esi */ ecx = 0xAu; /* 0x2B03E8CF: mov ecx, 0xa */ edi = ebp + (-0x28); /* 0x2B03E8D4: lea edi, [ebp - 0x28] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B03E8D7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B03E8D7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM32(ebp + (-0xC)) = 0x30u; /* 0x2B03E8D9: mov dword ptr [ebp - 0xc], 0x30 */ MEM32(ebp + (-0x10)) = 0xDu; /* 0x2B03E8E0: mov dword ptr [ebp - 0x10], 0xd */ RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B03E8E7: call dword ptr [0x2b0b5d6c] */ @@ -2347,7 +2347,7 @@ L_2B03E2DD: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B03E2F7: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B03E2FC: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B03E2FF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B03E2FF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 0xBCu); /* 0x2B03E301: push 0xbc */ MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B03E306: mov dword ptr [ebp - 4], 0xffffffff */ MEM32(ebp + (-0x54)) = 0xA4u; /* 0x2B03E30D: mov dword ptr [ebp - 0x54], 0xa4 */ @@ -2601,7 +2601,7 @@ L_2B03E2DD: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B03E2F7: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B03E2FC: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B03E2FF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B03E2FF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 0xBCu); /* 0x2B03E301: push 0xbc */ MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B03E306: mov dword ptr [ebp - 4], 0xffffffff */ MEM32(ebp + (-0x54)) = 0xA4u; /* 0x2B03E30D: mov dword ptr [ebp - 0x54], 0xa4 */ @@ -3928,7 +3928,7 @@ L_2B03E8C3: MEM32(ebp + (-0x24)) = esi; /* 0x2B03E8CC: mov dword ptr [ebp - 0x24], esi */ ecx = 0xAu; /* 0x2B03E8CF: mov ecx, 0xa */ edi = ebp + (-0x28); /* 0x2B03E8D4: lea edi, [ebp - 0x28] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B03E8D7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B03E8D7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM32(ebp + (-0xC)) = 0x30u; /* 0x2B03E8D9: mov dword ptr [ebp - 0xc], 0x30 */ MEM32(ebp + (-0x10)) = 0xDu; /* 0x2B03E8E0: mov dword ptr [ebp - 0x10], 0xd */ RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B03E8E7: call dword ptr [0x2b0b5d6c] */ @@ -10016,7 +10016,7 @@ L_2B03FD10: edi = ebp + (-0x3C); /* 0x2B03FD39: lea edi, [ebp - 0x3c] */ MEM32(ebp + (-0x3C)) = edx; /* 0x2B03FD3C: mov dword ptr [ebp - 0x3c], edx */ MEM32(ebp + (-0x38)) = edx; /* 0x2B03FD3F: mov dword ptr [ebp - 0x38], edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B03FD42: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B03FD42: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + 0xC); /* 0x2B03FD44: mov eax, dword ptr [ebp + 0xc] */ /* cmp eax, 0xFFFFFFFFu */ /* 0x2B03FD47: cmp eax, -1 */ _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); @@ -12823,10 +12823,10 @@ L_2B040E91: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B040ECD: mov ecx, 0xc */ edi = ebp + (-0x118); /* 0x2B040ED2: lea edi, [ebp - 0x118] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B040ED8: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B040ED8: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0xCu; /* 0x2B040EDA: mov ecx, 0xc */ edi = ebp + (-0xE8); /* 0x2B040EDF: lea edi, [ebp - 0xe8] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B040EE5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B040EE5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 0xCu); /* 0x2B040EE7: push 0xc */ MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B040EE9: mov byte ptr [ebp - 4], bl */ MEM32(ebp + (-0xB4)) = 0x26u; /* 0x2B040EEC: mov dword ptr [ebp - 0xb4], 0x26 */ diff --git a/client/game/ddr.dll/lifted-0017.c b/client/game/ddr.dll/lifted-0017.c @@ -15974,7 +15974,7 @@ L_2B044771: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B044783: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B044788: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04478B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04478B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(edx + 0x14); /* 0x2B04478D: mov eax, dword ptr [edx + 0x14] */ eax = MEM32(eax + 0xC); /* 0x2B044790: mov eax, dword ptr [eax + 0xc] */ _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFu); @@ -16337,7 +16337,7 @@ L_2B044771: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B044783: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B044788: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04478B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04478B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(edx + 0x14); /* 0x2B04478D: mov eax, dword ptr [edx + 0x14] */ eax = MEM32(eax + 0xC); /* 0x2B044790: mov eax, dword ptr [eax + 0xc] */ _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFu); @@ -16697,7 +16697,7 @@ L_2B044771: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B044783: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B044788: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04478B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04478B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(edx + 0x14); /* 0x2B04478D: mov eax, dword ptr [edx + 0x14] */ eax = MEM32(eax + 0xC); /* 0x2B044790: mov eax, dword ptr [eax + 0xc] */ _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFu); @@ -16987,7 +16987,7 @@ L_2B044771: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B044783: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B044788: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04478B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04478B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(edx + 0x14); /* 0x2B04478D: mov eax, dword ptr [edx + 0x14] */ eax = MEM32(eax + 0xC); /* 0x2B044790: mov eax, dword ptr [eax + 0xc] */ _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFu); @@ -17232,7 +17232,7 @@ L_2B044771: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B044783: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B044788: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04478B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04478B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(edx + 0x14); /* 0x2B04478D: mov eax, dword ptr [edx + 0x14] */ eax = MEM32(eax + 0xC); /* 0x2B044790: mov eax, dword ptr [eax + 0xc] */ _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFu); @@ -17429,7 +17429,7 @@ L_2B044771: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B044783: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B044788: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04478B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04478B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(edx + 0x14); /* 0x2B04478D: mov eax, dword ptr [edx + 0x14] */ eax = MEM32(eax + 0xC); /* 0x2B044790: mov eax, dword ptr [eax + 0xc] */ _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFu); @@ -17579,7 +17579,7 @@ L_2B044771: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B044783: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B044788: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04478B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04478B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(edx + 0x14); /* 0x2B04478D: mov eax, dword ptr [edx + 0x14] */ eax = MEM32(eax + 0xC); /* 0x2B044790: mov eax, dword ptr [eax + 0xc] */ _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFu); @@ -19170,7 +19170,7 @@ L_2B0450D0: _flag_k = FK_TEST; ecx = 0xAu; /* 0x2B0450DB: mov ecx, 0xa */ edi = ebp + (-0x28); /* 0x2B0450E0: lea edi, [ebp - 0x28] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0450E3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0450E3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + 0x8); /* 0x2B0450E5: mov eax, dword ptr [ebp + 8] */ ecx = MEM32(eax); /* 0x2B0450E8: mov ecx, dword ptr [eax] */ eax = MEM32(eax + 0x4); /* 0x2B0450EA: mov eax, dword ptr [eax + 4] */ diff --git a/client/game/ddr.dll/lifted-0018.c b/client/game/ddr.dll/lifted-0018.c @@ -357,7 +357,7 @@ L_2B046090: MEM32(ebp + (-0x38)) = esi; /* 0x2B0460A2: mov dword ptr [ebp - 0x38], esi */ ecx = 0xAu; /* 0x2B0460A5: mov ecx, 0xa */ edi = ebp + (-0x3C); /* 0x2B0460AA: lea edi, [ebp - 0x3c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0460AD: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0460AD: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = ebx; /* 0x2B0460AF: mov ecx, ebx */ MEM32(ebp + (-0x20)) = 0x30u; /* 0x2B0460B1: mov dword ptr [ebp - 0x20], 0x30 */ RECOMP_ICALL(0x2B0461A0u); /* 0x2B0460B8: call 0x2b0461a0 */ /* not lifted */ @@ -1265,7 +1265,7 @@ L_2B0465FB: MEM32(ebp + (-0x28)) = eax; /* 0x2B046600: mov dword ptr [ebp - 0x28], eax */ ecx = 0xAu; /* 0x2B046603: mov ecx, 0xa */ edi = ebp + (-0x2C); /* 0x2B046608: lea edi, [ebp - 0x2c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04660B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04660B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM32(ebp + (-0x10)) = 0x30u; /* 0x2B04660D: mov dword ptr [ebp - 0x10], 0x30 */ eax = MEM32(ebx + 0x4); /* 0x2B046614: mov eax, dword ptr [ebx + 4] */ esi = MEM32(eax); /* 0x2B046617: mov esi, dword ptr [eax] */ @@ -2282,7 +2282,7 @@ L_2B046BFE: _cf = 0; _flag_k = FK_TEST; edi = ebp + (-0x68); /* 0x2B046C0B: lea edi, [ebp - 0x68] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B046C0E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B046C0E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edx = esi + 0x38; /* 0x2B046C10: lea edx, [esi + 0x38] */ MEM32(ebp + (-0x68)) = 1; /* 0x2B046C13: mov dword ptr [ebp - 0x68], 1 */ MEM32(ebp + (-0x58)) = ebx; /* 0x2B046C1A: mov dword ptr [ebp - 0x58], ebx */ @@ -3153,7 +3153,7 @@ L_2B047180: _flag_k = FK_TEST; ecx = 0xAu; /* 0x2B047197: mov ecx, 0xa */ edi = ebp + (-0x2C); /* 0x2B04719C: lea edi, [ebp - 0x2c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04719F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04719F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx); /* 0x2B0471A1: mov eax, dword ptr [ebx] */ ecx = MEM32(ebx + 0x4); /* 0x2B0471A3: mov ecx, dword ptr [ebx + 4] */ MEM32(ebp + (-0x4)) = edx; /* 0x2B0471A6: mov dword ptr [ebp - 4], edx */ @@ -6795,7 +6795,7 @@ L_2B048A35: _flag_k = FK_TEST; ecx = 0xAu; /* 0x2B048A3A: mov ecx, 0xa */ edi = ebp + (-0x28); /* 0x2B048A3F: lea edi, [ebp - 0x28] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B048A42: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B048A42: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edi = MEM32(ebp + 0xC); /* 0x2B048A44: mov edi, dword ptr [ebp + 0xc] */ ecx = MEM32(edi + 0x4); /* 0x2B048A47: mov ecx, dword ptr [edi + 4] */ eax = MEM32(edi); /* 0x2B048A4A: mov eax, dword ptr [edi] */ diff --git a/client/game/ddr.dll/lifted-0019.c b/client/game/ddr.dll/lifted-0019.c @@ -653,7 +653,7 @@ L_2B0496AF: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B0496C2: mov ecx, 0xc */ edi = ebp + (-0x58); /* 0x2B0496C7: lea edi, [ebp - 0x58] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0496CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0496CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 0xBCu); /* 0x2B0496CC: push 0xbc */ MEM32(ebp + (-0x40)) = 0xFA4u; /* 0x2B0496D1: mov dword ptr [ebp - 0x40], 0xfa4 */ MEM32(ebp + (-0x38)) = 0x16Eu; /* 0x2B0496D8: mov dword ptr [ebp - 0x38], 0x16e */ @@ -5470,7 +5470,7 @@ L_2B04A965: _flag_k = FK_TEST; ecx = 0x10u; /* 0x2B04A984: mov ecx, 0x10 */ edi = ebp + (-0x5C); /* 0x2B04A989: lea edi, [ebp - 0x5c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04A98C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04A98C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(esi); /* 0x2B04A98E: mov ecx, dword ptr [esi] */ esi = MEM32(ebp + 0xC); /* 0x2B04A990: mov esi, dword ptr [ebp + 0xc] */ MEM32(ebp + (-0x5C)) = ecx; /* 0x2B04A993: mov dword ptr [ebp - 0x5c], ecx */ @@ -10973,11 +10973,11 @@ L_2B04BD8C: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B04BDA0: mov ecx, 0xc */ edi = ebp + (-0x10C); /* 0x2B04BDA5: lea edi, [ebp - 0x10c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04BDAB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04BDAB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edx = 0xFBAu; /* 0x2B04BDAD: mov edx, 0xfba */ ecx = 0xCu; /* 0x2B04BDB2: mov ecx, 0xc */ edi = ebp + (-0x16C); /* 0x2B04BDB7: lea edi, [ebp - 0x16c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04BDBD: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04BDBD: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 0xCu); /* 0x2B04BDBF: push 0xc */ MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B04BDC1: mov byte ptr [ebp - 4], 1 */ MEM32(ebp + (-0xA8)) = 0x26u; /* 0x2B04BDC5: mov dword ptr [ebp - 0xa8], 0x26 */ @@ -11198,7 +11198,7 @@ L_2B04BFF9: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B04BFFB: mov ecx, 0xc */ edi = ebp + (-0xDC); /* 0x2B04C000: lea edi, [ebp - 0xdc] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04C006: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04C006: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 0xBCu); /* 0x2B04C008: push 0xbc */ MEM32(ebp + (-0xC4)) = 0xFBAu; /* 0x2B04C00D: mov dword ptr [ebp - 0xc4], 0xfba */ MEM32(ebp + (-0xBC)) = 0x117u; /* 0x2B04C017: mov dword ptr [ebp - 0xbc], 0x117 */ @@ -11357,7 +11357,7 @@ L_2B04C14B: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B04C173: mov ecx, 0xc */ edi = ebp + (-0x13C); /* 0x2B04C178: lea edi, [ebp - 0x13c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04C17E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04C17E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = 1; /* 0x2B04C180: mov eax, 1 */ PUSH32(esp, 0xBCu); /* 0x2B04C185: push 0xbc */ MEM32(ebp + (-0x124)) = 0xFBAu; /* 0x2B04C18A: mov dword ptr [ebp - 0x124], 0xfba */ diff --git a/client/game/ddr.dll/lifted-0022.c b/client/game/ddr.dll/lifted-0022.c @@ -1517,12 +1517,12 @@ L_2B055640: MEM32(esi + 0x60) = ebx; /* 0x2B055686: mov dword ptr [esi + 0x60], ebx */ ecx = 0xBu; /* 0x2B055689: mov ecx, 0xb */ edi = ebp + (-0x88); /* 0x2B05568E: lea edi, [ebp - 0x88] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B055694: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B055694: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM32(esi + 0x64) = ebx; /* 0x2B055696: mov dword ptr [esi + 0x64], ebx */ MEM32(esi + 0x68) = ebx; /* 0x2B055699: mov dword ptr [esi + 0x68], ebx */ ecx = 0xCu; /* 0x2B05569C: mov ecx, 0xc */ edi = ebp + (-0xB8); /* 0x2B0556A1: lea edi, [ebp - 0xb8] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0556A7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0556A7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 2); /* 0x2B0556A9: push 2 */ MEM32(esi) = 0x2B0B6AECu; /* 0x2B0556AB: mov dword ptr [esi], 0x2b0b6aec */ PUSH32(esp, 0x149u); /* 0x2B0556B1: push 0x149 */ @@ -1805,7 +1805,7 @@ L_2B055930: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B055945: mov ecx, 0xc */ edi = ebp + (-0x4C); /* 0x2B05594A: lea edi, [ebp - 0x4c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B05594D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B05594D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 2); /* 0x2B05594F: push 2 */ eax = ebp + (-0x1C); /* 0x2B055951: lea eax, [ebp - 0x1c] */ PUSH32(esp, 0x14Bu); /* 0x2B055954: push 0x14b */ @@ -1882,7 +1882,7 @@ L_2B0559FD: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B0559FF: mov ecx, 0xc */ edi = ebp + (-0x4C); /* 0x2B055A04: lea edi, [ebp - 0x4c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B055A07: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B055A07: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 2); /* 0x2B055A09: push 2 */ ecx = ebp + (-0x1C); /* 0x2B055A0B: lea ecx, [ebp - 0x1c] */ PUSH32(esp, 0x14Eu); /* 0x2B055A0E: push 0x14e */ @@ -1944,7 +1944,7 @@ L_2B055A77: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B055A9A: mov ecx, 0xc */ edi = ebp + (-0x4C); /* 0x2B055A9F: lea edi, [ebp - 0x4c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B055AA2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B055AA2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 2); /* 0x2B055AA4: push 2 */ ecx = ebp + (-0x1C); /* 0x2B055AA6: lea ecx, [ebp - 0x1c] */ PUSH32(esp, 0x151u); /* 0x2B055AA9: push 0x151 */ @@ -6816,7 +6816,7 @@ L_2B057356: MEM32(ebp + (-0x24)) = esi; /* 0x2B05735F: mov dword ptr [ebp - 0x24], esi */ ecx = 0xAu; /* 0x2B057362: mov ecx, 0xa */ edi = ebp + (-0x28); /* 0x2B057367: lea edi, [ebp - 0x28] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B05736A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B05736A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebx + 0x28); /* 0x2B05736C: mov ecx, dword ptr [ebx + 0x28] */ MEM32(ebp + (-0xC)) = 0x30u; /* 0x2B05736F: mov dword ptr [ebp - 0xc], 0x30 */ RECOMP_ICALL(MEM32(0x2B0B58CC)); /* 0x2B057376: call dword ptr [0x2b0b58cc] */ @@ -6926,7 +6926,7 @@ L_2B057356: MEM32(ebp + (-0x24)) = esi; /* 0x2B05735F: mov dword ptr [ebp - 0x24], esi */ ecx = 0xAu; /* 0x2B057362: mov ecx, 0xa */ edi = ebp + (-0x28); /* 0x2B057367: lea edi, [ebp - 0x28] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B05736A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B05736A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebx + 0x28); /* 0x2B05736C: mov ecx, dword ptr [ebx + 0x28] */ MEM32(ebp + (-0xC)) = 0x30u; /* 0x2B05736F: mov dword ptr [ebp - 0xc], 0x30 */ RECOMP_ICALL(MEM32(0x2B0B58CC)); /* 0x2B057376: call dword ptr [0x2b0b58cc] */ diff --git a/client/game/ddr.dll/lifted-0023.c b/client/game/ddr.dll/lifted-0023.c @@ -150,7 +150,7 @@ L_2B057356: MEM32(ebp + (-0x24)) = esi; /* 0x2B05735F: mov dword ptr [ebp - 0x24], esi */ ecx = 0xAu; /* 0x2B057362: mov ecx, 0xa */ edi = ebp + (-0x28); /* 0x2B057367: lea edi, [ebp - 0x28] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B05736A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B05736A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebx + 0x28); /* 0x2B05736C: mov ecx, dword ptr [ebx + 0x28] */ MEM32(ebp + (-0xC)) = 0x30u; /* 0x2B05736F: mov dword ptr [ebp - 0xc], 0x30 */ RECOMP_ICALL(MEM32(0x2B0B58CC)); /* 0x2B057376: call dword ptr [0x2b0b58cc] */ diff --git a/client/game/ddr.dll/lifted-0024.c b/client/game/ddr.dll/lifted-0024.c @@ -1164,7 +1164,7 @@ L_2B059C9D: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B059CAF: mov ecx, 0xc */ edi = ebp + (-0x4C); /* 0x2B059CB4: lea edi, [ebp - 0x4c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B059CB7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B059CB7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(esi + 0x4); /* 0x2B059CB9: mov eax, dword ptr [esi + 4] */ ecx = MEM32(esi + 0x8); /* 0x2B059CBC: mov ecx, dword ptr [esi + 8] */ _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); diff --git a/client/game/ddr.dll/lifted-0025.c b/client/game/ddr.dll/lifted-0025.c @@ -1110,11 +1110,11 @@ L_2B05CEE3: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B05CEF1: mov ecx, 0xc */ edi = ebp + (-0x90); /* 0x2B05CEF6: lea edi, [ebp - 0x90] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B05CEFC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B05CEFC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edx = 0xFBEu; /* 0x2B05CEFE: mov edx, 0xfbe */ ecx = 0xCu; /* 0x2B05CF03: mov ecx, 0xc */ edi = ebp + (-0xC0); /* 0x2B05CF08: lea edi, [ebp - 0xc0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B05CF0E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B05CF0E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 0xCu); /* 0x2B05CF10: push 0xc */ MEM32(ebp + (-0x5C)) = 0x26u; /* 0x2B05CF12: mov dword ptr [ebp - 0x5c], 0x26 */ MEM32(ebp + (-0x58)) = ebx; /* 0x2B05CF19: mov dword ptr [ebp - 0x58], ebx */ @@ -7548,7 +7548,7 @@ L_2B05F0F6: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B05F0F8: mov ecx, 0xc */ edi = ebp + (-0x40); /* 0x2B05F0FD: lea edi, [ebp - 0x40] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B05F100: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B05F100: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = 1; /* 0x2B05F102: mov eax, 1 */ PUSH32(esp, 0xBCu); /* 0x2B05F107: push 0xbc */ MEM32(ebp + (-0x28)) = 0xFA4u; /* 0x2B05F10C: mov dword ptr [ebp - 0x28], 0xfa4 */ @@ -8198,7 +8198,7 @@ L_2B05F4E0: _flag_k = FK_TEST; ecx = 0xEu; /* 0x2B05F4F1: mov ecx, 0xe */ edi = ebp + (-0x50); /* 0x2B05F4F6: lea edi, [ebp - 0x50] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B05F4F9: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B05F4F9: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 0xC0u); /* 0x2B05F4FB: push 0xc0 */ MEM32(ebp + (-0x50)) = 0x191u; /* 0x2B05F500: mov dword ptr [ebp - 0x50], 0x191 */ MEM32(ebp + (-0x4C)) = 3; /* 0x2B05F507: mov dword ptr [ebp - 0x4c], 3 */ diff --git a/client/game/ddr.dll/lifted-0028.c b/client/game/ddr.dll/lifted-0028.c @@ -4824,7 +4824,7 @@ L_2B066F48: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B066F9E: mov ecx, 0xc */ edi = ebp + (-0x70); /* 0x2B066FA3: lea edi, [ebp - 0x70] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B066FA6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B066FA6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edx = 0xD1u; /* 0x2B066FA8: mov edx, 0xd1 */ MEM32(ebp + (-0x14)) = 0x26u; /* 0x2B066FAD: mov dword ptr [ebp - 0x14], 0x26 */ ecx = MEM32(ebp + (-0x14)); /* 0x2B066FB4: mov ecx, dword ptr [ebp - 0x14] */ @@ -6684,7 +6684,7 @@ L_2B067C2D: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B067C4A: mov ecx, 0xc */ edi = ebp + (-0x54); /* 0x2B067C4F: lea edi, [ebp - 0x54] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B067C52: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B067C52: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 0xBCu); /* 0x2B067C54: push 0xbc */ MEM32(ebp + (-0x14)) = edx; /* 0x2B067C59: mov dword ptr [ebp - 0x14], edx */ MEM32(ebp + (-0x10)) = ebx; /* 0x2B067C5C: mov dword ptr [ebp - 0x10], ebx */ @@ -6746,7 +6746,7 @@ L_2B067CAE: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B067CE7: mov ecx, 0xc */ edi = ebp + (-0x54); /* 0x2B067CEC: lea edi, [ebp - 0x54] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B067CEF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B067CEF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 0xBCu); /* 0x2B067CF1: push 0xbc */ MEM32(ebp + (-0x14)) = edx; /* 0x2B067CF6: mov dword ptr [ebp - 0x14], edx */ MEM32(ebp + (-0x10)) = ebx; /* 0x2B067CF9: mov dword ptr [ebp - 0x10], ebx */ @@ -8922,7 +8922,7 @@ L_2B068A82: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B068AA0: mov ecx, 0xc */ edi = ebp + (-0x84); /* 0x2B068AA5: lea edi, [ebp - 0x84] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B068AAB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B068AAB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); edx = 0; /* 0x2B068AAD: xor edx, edx */ _cf = 0; @@ -9438,7 +9438,7 @@ L_2B068A82: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B068AA0: mov ecx, 0xc */ edi = ebp + (-0x84); /* 0x2B068AA5: lea edi, [ebp - 0x84] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B068AAB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B068AAB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); edx = 0; /* 0x2B068AAD: xor edx, edx */ _cf = 0; @@ -12823,7 +12823,7 @@ L_2B069506: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06951D: mov ecx, 0xc */ edi = ebp + (-0x7C); /* 0x2B069522: lea edi, [ebp - 0x7c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B069525: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B069525: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = 0xD7u; /* 0x2B069527: mov eax, 0xd7 */ PUSH32(esp, 0xBCu); /* 0x2B06952C: push 0xbc */ MEM32(ebp + (-0x64)) = 0x5209u; /* 0x2B069531: mov dword ptr [ebp - 0x64], 0x5209 */ @@ -12929,7 +12929,7 @@ L_2B0695E4: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B0695FB: mov ecx, 0xc */ edi = ebp + (-0x7C); /* 0x2B069600: lea edi, [ebp - 0x7c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B069603: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B069603: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = 0xD9u; /* 0x2B069605: mov eax, 0xd9 */ PUSH32(esp, 0xBCu); /* 0x2B06960A: push 0xbc */ MEM32(ebp + (-0x64)) = 0x5209u; /* 0x2B06960F: mov dword ptr [ebp - 0x64], 0x5209 */ diff --git a/client/game/ddr.dll/lifted-0029.c b/client/game/ddr.dll/lifted-0029.c @@ -6257,10 +6257,10 @@ L_2B06BDFB: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BE16: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BE1B: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0xCu; /* 0x2B06BE20: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BE25: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE28: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE28: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BE2A: mov eax, dword ptr [ebx + 0x7c] */ PUSH32(esp, 0xBCu); /* 0x2B06BE2D: push 0xbc */ MEM32(ebp + (-0x58)) = 0x2B0EB4A8u; /* 0x2B06BE32: mov dword ptr [ebp - 0x58], 0x2b0eb4a8 */ @@ -6312,7 +6312,7 @@ L_2B06BE8C: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BEA4: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BEA9: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BEAC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BEAC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BEAE: mov eax, dword ptr [ebx + 0x7c] */ if (1u) _cf = (((eax) >> 31) & 1u); /* 0x2B06BEB1: shl eax, 1 */ if (1u) { _flag_a = recomp_flags_pack((eax << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } @@ -6371,7 +6371,7 @@ L_2B06BF12: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BF37: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BF3C: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BF3F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BF3F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BF41: mov eax, dword ptr [ebx + 0x7c] */ eax = eax + eax * 2; /* 0x2B06BF44: lea eax, [eax + eax*2] */ PUSH32(esp, 0xBCu); /* 0x2B06BF47: push 0xbc */ @@ -6735,7 +6735,7 @@ L_2B06C24C: edi = ebp + (-0xA8); /* 0x2B06C2BB: lea edi, [ebp - 0xa8] */ PUSH32(esp, 0xC8u); /* 0x2B06C2C1: push 0xc8 */ MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B06C2C6: mov byte ptr [ebp - 4], 1 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x2B0AB212u); /* 0x2B06C2CC: call 0x2b0ab212 */ /* not lifted */ RECOMP_FLAGS_IN(); edi = eax; /* 0x2B06C2D1: mov edi, eax */ @@ -7236,10 +7236,10 @@ L_2B06BDFB: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BE16: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BE1B: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0xCu; /* 0x2B06BE20: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BE25: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE28: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE28: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BE2A: mov eax, dword ptr [ebx + 0x7c] */ PUSH32(esp, 0xBCu); /* 0x2B06BE2D: push 0xbc */ MEM32(ebp + (-0x58)) = 0x2B0EB4A8u; /* 0x2B06BE32: mov dword ptr [ebp - 0x58], 0x2b0eb4a8 */ @@ -7291,7 +7291,7 @@ L_2B06BE8C: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BEA4: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BEA9: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BEAC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BEAC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BEAE: mov eax, dword ptr [ebx + 0x7c] */ if (1u) _cf = (((eax) >> 31) & 1u); /* 0x2B06BEB1: shl eax, 1 */ if (1u) { _flag_a = recomp_flags_pack((eax << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } @@ -7350,7 +7350,7 @@ L_2B06BF12: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BF37: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BF3C: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BF3F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BF3F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BF41: mov eax, dword ptr [ebx + 0x7c] */ eax = eax + eax * 2; /* 0x2B06BF44: lea eax, [eax + eax*2] */ PUSH32(esp, 0xBCu); /* 0x2B06BF47: push 0xbc */ @@ -7714,7 +7714,7 @@ L_2B06C24C: edi = ebp + (-0xA8); /* 0x2B06C2BB: lea edi, [ebp - 0xa8] */ PUSH32(esp, 0xC8u); /* 0x2B06C2C1: push 0xc8 */ MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B06C2C6: mov byte ptr [ebp - 4], 1 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x2B0AB212u); /* 0x2B06C2CC: call 0x2b0ab212 */ /* not lifted */ RECOMP_FLAGS_IN(); edi = eax; /* 0x2B06C2D1: mov edi, eax */ @@ -8150,10 +8150,10 @@ L_2B06BDFB: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BE16: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BE1B: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0xCu; /* 0x2B06BE20: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BE25: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE28: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE28: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BE2A: mov eax, dword ptr [ebx + 0x7c] */ PUSH32(esp, 0xBCu); /* 0x2B06BE2D: push 0xbc */ MEM32(ebp + (-0x58)) = 0x2B0EB4A8u; /* 0x2B06BE32: mov dword ptr [ebp - 0x58], 0x2b0eb4a8 */ @@ -8205,7 +8205,7 @@ L_2B06BE8C: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BEA4: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BEA9: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BEAC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BEAC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BEAE: mov eax, dword ptr [ebx + 0x7c] */ if (1u) _cf = (((eax) >> 31) & 1u); /* 0x2B06BEB1: shl eax, 1 */ if (1u) { _flag_a = recomp_flags_pack((eax << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } @@ -8264,7 +8264,7 @@ L_2B06BF12: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BF37: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BF3C: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BF3F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BF3F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BF41: mov eax, dword ptr [ebx + 0x7c] */ eax = eax + eax * 2; /* 0x2B06BF44: lea eax, [eax + eax*2] */ PUSH32(esp, 0xBCu); /* 0x2B06BF47: push 0xbc */ @@ -8628,7 +8628,7 @@ L_2B06C24C: edi = ebp + (-0xA8); /* 0x2B06C2BB: lea edi, [ebp - 0xa8] */ PUSH32(esp, 0xC8u); /* 0x2B06C2C1: push 0xc8 */ MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B06C2C6: mov byte ptr [ebp - 4], 1 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x2B0AB212u); /* 0x2B06C2CC: call 0x2b0ab212 */ /* not lifted */ RECOMP_FLAGS_IN(); edi = eax; /* 0x2B06C2D1: mov edi, eax */ @@ -9015,10 +9015,10 @@ L_2B06BDFB: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BE16: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BE1B: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0xCu; /* 0x2B06BE20: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BE25: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE28: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE28: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BE2A: mov eax, dword ptr [ebx + 0x7c] */ PUSH32(esp, 0xBCu); /* 0x2B06BE2D: push 0xbc */ MEM32(ebp + (-0x58)) = 0x2B0EB4A8u; /* 0x2B06BE32: mov dword ptr [ebp - 0x58], 0x2b0eb4a8 */ @@ -9070,7 +9070,7 @@ L_2B06BE8C: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BEA4: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BEA9: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BEAC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BEAC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BEAE: mov eax, dword ptr [ebx + 0x7c] */ if (1u) _cf = (((eax) >> 31) & 1u); /* 0x2B06BEB1: shl eax, 1 */ if (1u) { _flag_a = recomp_flags_pack((eax << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } @@ -9129,7 +9129,7 @@ L_2B06BF12: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BF37: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BF3C: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BF3F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BF3F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BF41: mov eax, dword ptr [ebx + 0x7c] */ eax = eax + eax * 2; /* 0x2B06BF44: lea eax, [eax + eax*2] */ PUSH32(esp, 0xBCu); /* 0x2B06BF47: push 0xbc */ @@ -9493,7 +9493,7 @@ L_2B06C24C: edi = ebp + (-0xA8); /* 0x2B06C2BB: lea edi, [ebp - 0xa8] */ PUSH32(esp, 0xC8u); /* 0x2B06C2C1: push 0xc8 */ MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B06C2C6: mov byte ptr [ebp - 4], 1 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x2B0AB212u); /* 0x2B06C2CC: call 0x2b0ab212 */ /* not lifted */ RECOMP_FLAGS_IN(); edi = eax; /* 0x2B06C2D1: mov edi, eax */ @@ -9828,10 +9828,10 @@ L_2B06BDFB: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BE16: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BE1B: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0xCu; /* 0x2B06BE20: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BE25: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE28: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE28: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BE2A: mov eax, dword ptr [ebx + 0x7c] */ PUSH32(esp, 0xBCu); /* 0x2B06BE2D: push 0xbc */ MEM32(ebp + (-0x58)) = 0x2B0EB4A8u; /* 0x2B06BE32: mov dword ptr [ebp - 0x58], 0x2b0eb4a8 */ @@ -9883,7 +9883,7 @@ L_2B06BE8C: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BEA4: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BEA9: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BEAC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BEAC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BEAE: mov eax, dword ptr [ebx + 0x7c] */ if (1u) _cf = (((eax) >> 31) & 1u); /* 0x2B06BEB1: shl eax, 1 */ if (1u) { _flag_a = recomp_flags_pack((eax << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } @@ -9942,7 +9942,7 @@ L_2B06BF12: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BF37: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BF3C: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BF3F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BF3F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BF41: mov eax, dword ptr [ebx + 0x7c] */ eax = eax + eax * 2; /* 0x2B06BF44: lea eax, [eax + eax*2] */ PUSH32(esp, 0xBCu); /* 0x2B06BF47: push 0xbc */ @@ -10306,7 +10306,7 @@ L_2B06C24C: edi = ebp + (-0xA8); /* 0x2B06C2BB: lea edi, [ebp - 0xa8] */ PUSH32(esp, 0xC8u); /* 0x2B06C2C1: push 0xc8 */ MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B06C2C6: mov byte ptr [ebp - 4], 1 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x2B0AB212u); /* 0x2B06C2CC: call 0x2b0ab212 */ /* not lifted */ RECOMP_FLAGS_IN(); edi = eax; /* 0x2B06C2D1: mov edi, eax */ @@ -10587,10 +10587,10 @@ L_2B06BDFB: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BE16: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BE1B: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0xCu; /* 0x2B06BE20: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BE25: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE28: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE28: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BE2A: mov eax, dword ptr [ebx + 0x7c] */ PUSH32(esp, 0xBCu); /* 0x2B06BE2D: push 0xbc */ MEM32(ebp + (-0x58)) = 0x2B0EB4A8u; /* 0x2B06BE32: mov dword ptr [ebp - 0x58], 0x2b0eb4a8 */ @@ -10642,7 +10642,7 @@ L_2B06BE8C: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BEA4: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BEA9: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BEAC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BEAC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BEAE: mov eax, dword ptr [ebx + 0x7c] */ if (1u) _cf = (((eax) >> 31) & 1u); /* 0x2B06BEB1: shl eax, 1 */ if (1u) { _flag_a = recomp_flags_pack((eax << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } @@ -10701,7 +10701,7 @@ L_2B06BF12: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BF37: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BF3C: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BF3F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BF3F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BF41: mov eax, dword ptr [ebx + 0x7c] */ eax = eax + eax * 2; /* 0x2B06BF44: lea eax, [eax + eax*2] */ PUSH32(esp, 0xBCu); /* 0x2B06BF47: push 0xbc */ @@ -11065,7 +11065,7 @@ L_2B06C24C: edi = ebp + (-0xA8); /* 0x2B06C2BB: lea edi, [ebp - 0xa8] */ PUSH32(esp, 0xC8u); /* 0x2B06C2C1: push 0xc8 */ MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B06C2C6: mov byte ptr [ebp - 4], 1 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x2B0AB212u); /* 0x2B06C2CC: call 0x2b0ab212 */ /* not lifted */ RECOMP_FLAGS_IN(); edi = eax; /* 0x2B06C2D1: mov edi, eax */ @@ -11274,10 +11274,10 @@ L_2B06BDFB: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BE16: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BE1B: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0xCu; /* 0x2B06BE20: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BE25: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE28: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE28: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BE2A: mov eax, dword ptr [ebx + 0x7c] */ PUSH32(esp, 0xBCu); /* 0x2B06BE2D: push 0xbc */ MEM32(ebp + (-0x58)) = 0x2B0EB4A8u; /* 0x2B06BE32: mov dword ptr [ebp - 0x58], 0x2b0eb4a8 */ @@ -11329,7 +11329,7 @@ L_2B06BE8C: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BEA4: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BEA9: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BEAC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BEAC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BEAE: mov eax, dword ptr [ebx + 0x7c] */ if (1u) _cf = (((eax) >> 31) & 1u); /* 0x2B06BEB1: shl eax, 1 */ if (1u) { _flag_a = recomp_flags_pack((eax << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } @@ -11388,7 +11388,7 @@ L_2B06BF12: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BF37: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BF3C: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BF3F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BF3F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BF41: mov eax, dword ptr [ebx + 0x7c] */ eax = eax + eax * 2; /* 0x2B06BF44: lea eax, [eax + eax*2] */ PUSH32(esp, 0xBCu); /* 0x2B06BF47: push 0xbc */ @@ -11752,7 +11752,7 @@ L_2B06C24C: edi = ebp + (-0xA8); /* 0x2B06C2BB: lea edi, [ebp - 0xa8] */ PUSH32(esp, 0xC8u); /* 0x2B06C2C1: push 0xc8 */ MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B06C2C6: mov byte ptr [ebp - 4], 1 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x2B0AB212u); /* 0x2B06C2CC: call 0x2b0ab212 */ /* not lifted */ RECOMP_FLAGS_IN(); edi = eax; /* 0x2B06C2D1: mov edi, eax */ @@ -11912,10 +11912,10 @@ L_2B06BDFB: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BE16: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BE1B: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE1E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 0xCu; /* 0x2B06BE20: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BE25: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE28: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BE28: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BE2A: mov eax, dword ptr [ebx + 0x7c] */ PUSH32(esp, 0xBCu); /* 0x2B06BE2D: push 0xbc */ MEM32(ebp + (-0x58)) = 0x2B0EB4A8u; /* 0x2B06BE32: mov dword ptr [ebp - 0x58], 0x2b0eb4a8 */ @@ -11967,7 +11967,7 @@ L_2B06BE8C: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BEA4: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BEA9: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BEAC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BEAC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BEAE: mov eax, dword ptr [ebx + 0x7c] */ if (1u) _cf = (((eax) >> 31) & 1u); /* 0x2B06BEB1: shl eax, 1 */ if (1u) { _flag_a = recomp_flags_pack((eax << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } @@ -12026,7 +12026,7 @@ L_2B06BF12: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BF37: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BF3C: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BF3F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BF3F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BF41: mov eax, dword ptr [ebx + 0x7c] */ eax = eax + eax * 2; /* 0x2B06BF44: lea eax, [eax + eax*2] */ PUSH32(esp, 0xBCu); /* 0x2B06BF47: push 0xbc */ @@ -12390,7 +12390,7 @@ L_2B06C24C: edi = ebp + (-0xA8); /* 0x2B06C2BB: lea edi, [ebp - 0xa8] */ PUSH32(esp, 0xC8u); /* 0x2B06C2C1: push 0xc8 */ MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B06C2C6: mov byte ptr [ebp - 4], 1 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x2B0AB212u); /* 0x2B06C2CC: call 0x2b0ab212 */ /* not lifted */ RECOMP_FLAGS_IN(); edi = eax; /* 0x2B06C2D1: mov edi, eax */ @@ -12547,7 +12547,7 @@ L_2B06BE8C: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BEA4: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BEA9: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BEAC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BEAC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BEAE: mov eax, dword ptr [ebx + 0x7c] */ if (1u) _cf = (((eax) >> 31) & 1u); /* 0x2B06BEB1: shl eax, 1 */ if (1u) { _flag_a = recomp_flags_pack((eax << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } @@ -12606,7 +12606,7 @@ L_2B06BF12: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BF37: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BF3C: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BF3F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BF3F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BF41: mov eax, dword ptr [ebx + 0x7c] */ eax = eax + eax * 2; /* 0x2B06BF44: lea eax, [eax + eax*2] */ PUSH32(esp, 0xBCu); /* 0x2B06BF47: push 0xbc */ @@ -12970,7 +12970,7 @@ L_2B06C24C: edi = ebp + (-0xA8); /* 0x2B06C2BB: lea edi, [ebp - 0xa8] */ PUSH32(esp, 0xC8u); /* 0x2B06C2C1: push 0xc8 */ MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B06C2C6: mov byte ptr [ebp - 4], 1 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x2B0AB212u); /* 0x2B06C2CC: call 0x2b0ab212 */ /* not lifted */ RECOMP_FLAGS_IN(); edi = eax; /* 0x2B06C2D1: mov edi, eax */ @@ -13131,7 +13131,7 @@ L_2B06BF12: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B06BF37: mov ecx, 0xc */ edi = ebp + (-0x64); /* 0x2B06BF3C: lea edi, [ebp - 0x64] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BF3F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06BF3F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x7C); /* 0x2B06BF41: mov eax, dword ptr [ebx + 0x7c] */ eax = eax + eax * 2; /* 0x2B06BF44: lea eax, [eax + eax*2] */ PUSH32(esp, 0xBCu); /* 0x2B06BF47: push 0xbc */ @@ -13495,7 +13495,7 @@ L_2B06C24C: edi = ebp + (-0xA8); /* 0x2B06C2BB: lea edi, [ebp - 0xa8] */ PUSH32(esp, 0xC8u); /* 0x2B06C2C1: push 0xc8 */ MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B06C2C6: mov byte ptr [ebp - 4], 1 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x2B0AB212u); /* 0x2B06C2CC: call 0x2b0ab212 */ /* not lifted */ RECOMP_FLAGS_IN(); edi = eax; /* 0x2B06C2D1: mov edi, eax */ @@ -13963,7 +13963,7 @@ L_2B06C24C: edi = ebp + (-0xA8); /* 0x2B06C2BB: lea edi, [ebp - 0xa8] */ PUSH32(esp, 0xC8u); /* 0x2B06C2C1: push 0xc8 */ MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B06C2C6: mov byte ptr [ebp - 4], 1 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x2B0AB212u); /* 0x2B06C2CC: call 0x2b0ab212 */ /* not lifted */ RECOMP_FLAGS_IN(); edi = eax; /* 0x2B06C2D1: mov edi, eax */ @@ -14378,7 +14378,7 @@ L_2B06C24C: edi = ebp + (-0xA8); /* 0x2B06C2BB: lea edi, [ebp - 0xa8] */ PUSH32(esp, 0xC8u); /* 0x2B06C2C1: push 0xc8 */ MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B06C2C6: mov byte ptr [ebp - 4], 1 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x2B0AB212u); /* 0x2B06C2CC: call 0x2b0ab212 */ /* not lifted */ RECOMP_FLAGS_IN(); edi = eax; /* 0x2B06C2D1: mov edi, eax */ @@ -14744,7 +14744,7 @@ L_2B06C24C: edi = ebp + (-0xA8); /* 0x2B06C2BB: lea edi, [ebp - 0xa8] */ PUSH32(esp, 0xC8u); /* 0x2B06C2C1: push 0xc8 */ MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B06C2C6: mov byte ptr [ebp - 4], 1 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x2B0AB212u); /* 0x2B06C2CC: call 0x2b0ab212 */ /* not lifted */ RECOMP_FLAGS_IN(); edi = eax; /* 0x2B06C2D1: mov edi, eax */ @@ -15061,7 +15061,7 @@ L_2B06C24C: edi = ebp + (-0xA8); /* 0x2B06C2BB: lea edi, [ebp - 0xa8] */ PUSH32(esp, 0xC8u); /* 0x2B06C2C1: push 0xc8 */ MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B06C2C6: mov byte ptr [ebp - 4], 1 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x2B0AB212u); /* 0x2B06C2CC: call 0x2b0ab212 */ /* not lifted */ RECOMP_FLAGS_IN(); edi = eax; /* 0x2B06C2D1: mov edi, eax */ @@ -15329,7 +15329,7 @@ L_2B06C24C: edi = ebp + (-0xA8); /* 0x2B06C2BB: lea edi, [ebp - 0xa8] */ PUSH32(esp, 0xC8u); /* 0x2B06C2C1: push 0xc8 */ MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B06C2C6: mov byte ptr [ebp - 4], 1 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x2B0AB212u); /* 0x2B06C2CC: call 0x2b0ab212 */ /* not lifted */ RECOMP_FLAGS_IN(); edi = eax; /* 0x2B06C2D1: mov edi, eax */ @@ -15548,7 +15548,7 @@ L_2B06C24C: edi = ebp + (-0xA8); /* 0x2B06C2BB: lea edi, [ebp - 0xa8] */ PUSH32(esp, 0xC8u); /* 0x2B06C2C1: push 0xc8 */ MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B06C2C6: mov byte ptr [ebp - 4], 1 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x2B0AB212u); /* 0x2B06C2CC: call 0x2b0ab212 */ /* not lifted */ RECOMP_FLAGS_IN(); edi = eax; /* 0x2B06C2D1: mov edi, eax */ @@ -15718,7 +15718,7 @@ L_2B06C24C: edi = ebp + (-0xA8); /* 0x2B06C2BB: lea edi, [ebp - 0xa8] */ PUSH32(esp, 0xC8u); /* 0x2B06C2C1: push 0xc8 */ MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B06C2C6: mov byte ptr [ebp - 4], 1 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06C2CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x2B0AB212u); /* 0x2B06C2CC: call 0x2b0ab212 */ /* not lifted */ RECOMP_FLAGS_IN(); edi = eax; /* 0x2B06C2D1: mov edi, eax */ diff --git a/client/game/ddr.dll/lifted-0030.c b/client/game/ddr.dll/lifted-0030.c @@ -34977,7 +34977,7 @@ L_2B0731CF: edi = ebp + (-0x4C); /* 0x2B0731E7: lea edi, [ebp - 0x4c] */ MEM32(ebp + (-0x4C)) = eax; /* 0x2B0731EA: mov dword ptr [ebp - 0x4c], eax */ MEM32(ebp + (-0x48)) = eax; /* 0x2B0731ED: mov dword ptr [ebp - 0x48], eax */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0731F0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0731F0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } if (CMP_EQ(_flag_a, _flag_b)) goto L_2B07322C; /* 0x2B0731F2: je 0x2b07322c */ L_2B0731F4: edi = MEM32(0x2B0B58D0); /* 0x2B0731F4: mov edi, dword ptr [0x2b0b58d0] */ diff --git a/client/game/ddr.dll/lifted-0031.c b/client/game/ddr.dll/lifted-0031.c @@ -906,7 +906,7 @@ L_2B0768AD: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B0768C6: mov ecx, 0xc */ edi = ebp + (-0x7C); /* 0x2B0768CB: lea edi, [ebp - 0x7c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0768CE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0768CE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(esi); /* 0x2B0768D0: mov eax, dword ptr [esi] */ _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); eax = eax + 1; /* 0x2B0768D2: inc eax */ @@ -8415,7 +8415,7 @@ L_2B078121: _flag_k = FK_TEST; ecx = 0xAu; /* 0x2B078129: mov ecx, 0xa */ edi = ebp + (-0x68); /* 0x2B07812E: lea edi, [ebp - 0x68] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B078131: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B078131: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(esi); /* 0x2B078133: mov eax, dword ptr [esi] */ _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); @@ -8815,7 +8815,7 @@ L_2B078354: _flag_k = FK_TEST; ecx = 0xAu; /* 0x2B078356: mov ecx, 0xa */ edi = ebp + (-0x6C); /* 0x2B07835B: lea edi, [ebp - 0x6c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07835E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07835E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(esi); /* 0x2B078360: mov eax, dword ptr [esi] */ edi = MEM32(ebp + 0x8); /* 0x2B078362: mov edi, dword ptr [ebp + 8] */ edx = MEM32(edi); /* 0x2B078365: mov edx, dword ptr [edi] */ @@ -12520,7 +12520,7 @@ L_2B07932C: _flag_k = FK_TEST; ecx = 0xAu; /* 0x2B07932E: mov ecx, 0xa */ edi = ebp + (-0x38); /* 0x2B079333: lea edi, [ebp - 0x38] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B079336: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B079336: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = 0xFFFFFFC0u; /* 0x2B079338: mov eax, 0xffffffc0 */ MEM32(ebp + (-0x28)) = eax; /* 0x2B07933D: mov dword ptr [ebp - 0x28], eax */ MEM32(ebp + (-0x24)) = eax; /* 0x2B079340: mov dword ptr [ebp - 0x24], eax */ @@ -16855,7 +16855,7 @@ L_2B07BA6B: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B07BAA0: mov ecx, 0xc */ edi = ebp + (-0xE4); /* 0x2B07BAA5: lea edi, [ebp - 0xe4] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07BAAB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07BAAB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(esi + 0x10); /* 0x2B07BAAD: mov ecx, dword ptr [esi + 0x10] */ PUSH32(esp, 2); /* 0x2B07BAB0: push 2 */ edx = ebp + (-0x48); /* 0x2B07BAB2: lea edx, [ebp - 0x48] */ @@ -18479,7 +18479,7 @@ L_2B07C594: MEM8(ebp + (-0x974)) = (uint8_t)(LO8(eax)); /* 0x2B07C594: mov byte ptr [ebp - 0x974], al */ ecx = 0x63u; /* 0x2B07C59A: mov ecx, 0x63 */ edi = ebp + (-0x973); /* 0x2B07C59F: lea edi, [ebp - 0x973] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5A5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5A5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5A7: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5A9: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -18489,7 +18489,7 @@ L_2B07C594: MEM8(ebp + (-0x7E4)) = (uint8_t)(0); /* 0x2B07C5AC: mov byte ptr [ebp - 0x7e4], 0 */ ecx = 0x63u; /* 0x2B07C5B3: mov ecx, 0x63 */ edi = ebp + (-0x7E3); /* 0x2B07C5B8: lea edi, [ebp - 0x7e3] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5BE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5BE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5C0: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5C2: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -18499,7 +18499,7 @@ L_2B07C594: MEM8(ebp + (-0x654)) = (uint8_t)(0); /* 0x2B07C5C5: mov byte ptr [ebp - 0x654], 0 */ ecx = 0x63u; /* 0x2B07C5CC: mov ecx, 0x63 */ edi = ebp + (-0x653); /* 0x2B07C5D1: lea edi, [ebp - 0x653] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5D7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5D7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5D9: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5DB: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -18509,7 +18509,7 @@ L_2B07C594: MEM8(ebp + (-0x4C4)) = (uint8_t)(0); /* 0x2B07C5DE: mov byte ptr [ebp - 0x4c4], 0 */ ecx = 0x63u; /* 0x2B07C5E5: mov ecx, 0x63 */ edi = ebp + (-0x4C3); /* 0x2B07C5EA: lea edi, [ebp - 0x4c3] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5F0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5F0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5F2: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5F4: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -18519,7 +18519,7 @@ L_2B07C594: MEM8(ebp + (-0x334)) = (uint8_t)(0); /* 0x2B07C5F7: mov byte ptr [ebp - 0x334], 0 */ ecx = 0x63u; /* 0x2B07C5FE: mov ecx, 0x63 */ edi = ebp + (-0x333); /* 0x2B07C603: lea edi, [ebp - 0x333] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C609: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C609: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C60B: stosw word ptr es:[edi], ax */ ecx = ebp + (-0x334); /* 0x2B07C60D: lea ecx, [ebp - 0x334] */ PUSH32(esp, ecx); /* 0x2B07C613: push ecx */ @@ -19558,7 +19558,7 @@ L_2B07C594: MEM8(ebp + (-0x974)) = (uint8_t)(LO8(eax)); /* 0x2B07C594: mov byte ptr [ebp - 0x974], al */ ecx = 0x63u; /* 0x2B07C59A: mov ecx, 0x63 */ edi = ebp + (-0x973); /* 0x2B07C59F: lea edi, [ebp - 0x973] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5A5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5A5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5A7: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5A9: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -19568,7 +19568,7 @@ L_2B07C594: MEM8(ebp + (-0x7E4)) = (uint8_t)(0); /* 0x2B07C5AC: mov byte ptr [ebp - 0x7e4], 0 */ ecx = 0x63u; /* 0x2B07C5B3: mov ecx, 0x63 */ edi = ebp + (-0x7E3); /* 0x2B07C5B8: lea edi, [ebp - 0x7e3] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5BE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5BE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5C0: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5C2: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -19578,7 +19578,7 @@ L_2B07C594: MEM8(ebp + (-0x654)) = (uint8_t)(0); /* 0x2B07C5C5: mov byte ptr [ebp - 0x654], 0 */ ecx = 0x63u; /* 0x2B07C5CC: mov ecx, 0x63 */ edi = ebp + (-0x653); /* 0x2B07C5D1: lea edi, [ebp - 0x653] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5D7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5D7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5D9: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5DB: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -19588,7 +19588,7 @@ L_2B07C594: MEM8(ebp + (-0x4C4)) = (uint8_t)(0); /* 0x2B07C5DE: mov byte ptr [ebp - 0x4c4], 0 */ ecx = 0x63u; /* 0x2B07C5E5: mov ecx, 0x63 */ edi = ebp + (-0x4C3); /* 0x2B07C5EA: lea edi, [ebp - 0x4c3] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5F0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5F0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5F2: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5F4: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -19598,7 +19598,7 @@ L_2B07C594: MEM8(ebp + (-0x334)) = (uint8_t)(0); /* 0x2B07C5F7: mov byte ptr [ebp - 0x334], 0 */ ecx = 0x63u; /* 0x2B07C5FE: mov ecx, 0x63 */ edi = ebp + (-0x333); /* 0x2B07C603: lea edi, [ebp - 0x333] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C609: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C609: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C60B: stosw word ptr es:[edi], ax */ ecx = ebp + (-0x334); /* 0x2B07C60D: lea ecx, [ebp - 0x334] */ PUSH32(esp, ecx); /* 0x2B07C613: push ecx */ @@ -20638,7 +20638,7 @@ L_2B07C594: MEM8(ebp + (-0x974)) = (uint8_t)(LO8(eax)); /* 0x2B07C594: mov byte ptr [ebp - 0x974], al */ ecx = 0x63u; /* 0x2B07C59A: mov ecx, 0x63 */ edi = ebp + (-0x973); /* 0x2B07C59F: lea edi, [ebp - 0x973] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5A5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5A5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5A7: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5A9: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -20648,7 +20648,7 @@ L_2B07C594: MEM8(ebp + (-0x7E4)) = (uint8_t)(0); /* 0x2B07C5AC: mov byte ptr [ebp - 0x7e4], 0 */ ecx = 0x63u; /* 0x2B07C5B3: mov ecx, 0x63 */ edi = ebp + (-0x7E3); /* 0x2B07C5B8: lea edi, [ebp - 0x7e3] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5BE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5BE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5C0: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5C2: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -20658,7 +20658,7 @@ L_2B07C594: MEM8(ebp + (-0x654)) = (uint8_t)(0); /* 0x2B07C5C5: mov byte ptr [ebp - 0x654], 0 */ ecx = 0x63u; /* 0x2B07C5CC: mov ecx, 0x63 */ edi = ebp + (-0x653); /* 0x2B07C5D1: lea edi, [ebp - 0x653] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5D7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5D7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5D9: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5DB: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -20668,7 +20668,7 @@ L_2B07C594: MEM8(ebp + (-0x4C4)) = (uint8_t)(0); /* 0x2B07C5DE: mov byte ptr [ebp - 0x4c4], 0 */ ecx = 0x63u; /* 0x2B07C5E5: mov ecx, 0x63 */ edi = ebp + (-0x4C3); /* 0x2B07C5EA: lea edi, [ebp - 0x4c3] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5F0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5F0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5F2: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5F4: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -20678,7 +20678,7 @@ L_2B07C594: MEM8(ebp + (-0x334)) = (uint8_t)(0); /* 0x2B07C5F7: mov byte ptr [ebp - 0x334], 0 */ ecx = 0x63u; /* 0x2B07C5FE: mov ecx, 0x63 */ edi = ebp + (-0x333); /* 0x2B07C603: lea edi, [ebp - 0x333] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C609: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C609: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C60B: stosw word ptr es:[edi], ax */ ecx = ebp + (-0x334); /* 0x2B07C60D: lea ecx, [ebp - 0x334] */ PUSH32(esp, ecx); /* 0x2B07C613: push ecx */ @@ -21718,7 +21718,7 @@ L_2B07C594: MEM8(ebp + (-0x974)) = (uint8_t)(LO8(eax)); /* 0x2B07C594: mov byte ptr [ebp - 0x974], al */ ecx = 0x63u; /* 0x2B07C59A: mov ecx, 0x63 */ edi = ebp + (-0x973); /* 0x2B07C59F: lea edi, [ebp - 0x973] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5A5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5A5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5A7: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5A9: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -21728,7 +21728,7 @@ L_2B07C594: MEM8(ebp + (-0x7E4)) = (uint8_t)(0); /* 0x2B07C5AC: mov byte ptr [ebp - 0x7e4], 0 */ ecx = 0x63u; /* 0x2B07C5B3: mov ecx, 0x63 */ edi = ebp + (-0x7E3); /* 0x2B07C5B8: lea edi, [ebp - 0x7e3] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5BE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5BE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5C0: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5C2: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -21738,7 +21738,7 @@ L_2B07C594: MEM8(ebp + (-0x654)) = (uint8_t)(0); /* 0x2B07C5C5: mov byte ptr [ebp - 0x654], 0 */ ecx = 0x63u; /* 0x2B07C5CC: mov ecx, 0x63 */ edi = ebp + (-0x653); /* 0x2B07C5D1: lea edi, [ebp - 0x653] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5D7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5D7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5D9: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5DB: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -21748,7 +21748,7 @@ L_2B07C594: MEM8(ebp + (-0x4C4)) = (uint8_t)(0); /* 0x2B07C5DE: mov byte ptr [ebp - 0x4c4], 0 */ ecx = 0x63u; /* 0x2B07C5E5: mov ecx, 0x63 */ edi = ebp + (-0x4C3); /* 0x2B07C5EA: lea edi, [ebp - 0x4c3] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5F0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5F0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5F2: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5F4: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -21758,7 +21758,7 @@ L_2B07C594: MEM8(ebp + (-0x334)) = (uint8_t)(0); /* 0x2B07C5F7: mov byte ptr [ebp - 0x334], 0 */ ecx = 0x63u; /* 0x2B07C5FE: mov ecx, 0x63 */ edi = ebp + (-0x333); /* 0x2B07C603: lea edi, [ebp - 0x333] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C609: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C609: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C60B: stosw word ptr es:[edi], ax */ ecx = ebp + (-0x334); /* 0x2B07C60D: lea ecx, [ebp - 0x334] */ PUSH32(esp, ecx); /* 0x2B07C613: push ecx */ diff --git a/client/game/ddr.dll/lifted-0032.c b/client/game/ddr.dll/lifted-0032.c @@ -42,7 +42,7 @@ L_2B07C594: MEM8(ebp + (-0x974)) = (uint8_t)(LO8(eax)); /* 0x2B07C594: mov byte ptr [ebp - 0x974], al */ ecx = 0x63u; /* 0x2B07C59A: mov ecx, 0x63 */ edi = ebp + (-0x973); /* 0x2B07C59F: lea edi, [ebp - 0x973] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5A5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5A5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5A7: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5A9: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -52,7 +52,7 @@ L_2B07C594: MEM8(ebp + (-0x7E4)) = (uint8_t)(0); /* 0x2B07C5AC: mov byte ptr [ebp - 0x7e4], 0 */ ecx = 0x63u; /* 0x2B07C5B3: mov ecx, 0x63 */ edi = ebp + (-0x7E3); /* 0x2B07C5B8: lea edi, [ebp - 0x7e3] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5BE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5BE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5C0: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5C2: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -62,7 +62,7 @@ L_2B07C594: MEM8(ebp + (-0x654)) = (uint8_t)(0); /* 0x2B07C5C5: mov byte ptr [ebp - 0x654], 0 */ ecx = 0x63u; /* 0x2B07C5CC: mov ecx, 0x63 */ edi = ebp + (-0x653); /* 0x2B07C5D1: lea edi, [ebp - 0x653] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5D7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5D7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5D9: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5DB: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -72,7 +72,7 @@ L_2B07C594: MEM8(ebp + (-0x4C4)) = (uint8_t)(0); /* 0x2B07C5DE: mov byte ptr [ebp - 0x4c4], 0 */ ecx = 0x63u; /* 0x2B07C5E5: mov ecx, 0x63 */ edi = ebp + (-0x4C3); /* 0x2B07C5EA: lea edi, [ebp - 0x4c3] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5F0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5F0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5F2: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5F4: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -82,7 +82,7 @@ L_2B07C594: MEM8(ebp + (-0x334)) = (uint8_t)(0); /* 0x2B07C5F7: mov byte ptr [ebp - 0x334], 0 */ ecx = 0x63u; /* 0x2B07C5FE: mov ecx, 0x63 */ edi = ebp + (-0x333); /* 0x2B07C603: lea edi, [ebp - 0x333] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C609: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C609: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C60B: stosw word ptr es:[edi], ax */ ecx = ebp + (-0x334); /* 0x2B07C60D: lea ecx, [ebp - 0x334] */ PUSH32(esp, ecx); /* 0x2B07C613: push ecx */ @@ -1122,7 +1122,7 @@ L_2B07C594: MEM8(ebp + (-0x974)) = (uint8_t)(LO8(eax)); /* 0x2B07C594: mov byte ptr [ebp - 0x974], al */ ecx = 0x63u; /* 0x2B07C59A: mov ecx, 0x63 */ edi = ebp + (-0x973); /* 0x2B07C59F: lea edi, [ebp - 0x973] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5A5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5A5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5A7: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5A9: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -1132,7 +1132,7 @@ L_2B07C594: MEM8(ebp + (-0x7E4)) = (uint8_t)(0); /* 0x2B07C5AC: mov byte ptr [ebp - 0x7e4], 0 */ ecx = 0x63u; /* 0x2B07C5B3: mov ecx, 0x63 */ edi = ebp + (-0x7E3); /* 0x2B07C5B8: lea edi, [ebp - 0x7e3] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5BE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5BE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5C0: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5C2: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -1142,7 +1142,7 @@ L_2B07C594: MEM8(ebp + (-0x654)) = (uint8_t)(0); /* 0x2B07C5C5: mov byte ptr [ebp - 0x654], 0 */ ecx = 0x63u; /* 0x2B07C5CC: mov ecx, 0x63 */ edi = ebp + (-0x653); /* 0x2B07C5D1: lea edi, [ebp - 0x653] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5D7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5D7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5D9: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5DB: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -1152,7 +1152,7 @@ L_2B07C594: MEM8(ebp + (-0x4C4)) = (uint8_t)(0); /* 0x2B07C5DE: mov byte ptr [ebp - 0x4c4], 0 */ ecx = 0x63u; /* 0x2B07C5E5: mov ecx, 0x63 */ edi = ebp + (-0x4C3); /* 0x2B07C5EA: lea edi, [ebp - 0x4c3] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5F0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5F0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5F2: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5F4: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -1162,7 +1162,7 @@ L_2B07C594: MEM8(ebp + (-0x334)) = (uint8_t)(0); /* 0x2B07C5F7: mov byte ptr [ebp - 0x334], 0 */ ecx = 0x63u; /* 0x2B07C5FE: mov ecx, 0x63 */ edi = ebp + (-0x333); /* 0x2B07C603: lea edi, [ebp - 0x333] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C609: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C609: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C60B: stosw word ptr es:[edi], ax */ ecx = ebp + (-0x334); /* 0x2B07C60D: lea ecx, [ebp - 0x334] */ PUSH32(esp, ecx); /* 0x2B07C613: push ecx */ @@ -2202,7 +2202,7 @@ L_2B07C594: MEM8(ebp + (-0x974)) = (uint8_t)(LO8(eax)); /* 0x2B07C594: mov byte ptr [ebp - 0x974], al */ ecx = 0x63u; /* 0x2B07C59A: mov ecx, 0x63 */ edi = ebp + (-0x973); /* 0x2B07C59F: lea edi, [ebp - 0x973] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5A5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5A5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5A7: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5A9: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -2212,7 +2212,7 @@ L_2B07C594: MEM8(ebp + (-0x7E4)) = (uint8_t)(0); /* 0x2B07C5AC: mov byte ptr [ebp - 0x7e4], 0 */ ecx = 0x63u; /* 0x2B07C5B3: mov ecx, 0x63 */ edi = ebp + (-0x7E3); /* 0x2B07C5B8: lea edi, [ebp - 0x7e3] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5BE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5BE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5C0: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5C2: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -2222,7 +2222,7 @@ L_2B07C594: MEM8(ebp + (-0x654)) = (uint8_t)(0); /* 0x2B07C5C5: mov byte ptr [ebp - 0x654], 0 */ ecx = 0x63u; /* 0x2B07C5CC: mov ecx, 0x63 */ edi = ebp + (-0x653); /* 0x2B07C5D1: lea edi, [ebp - 0x653] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5D7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5D7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5D9: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5DB: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -2232,7 +2232,7 @@ L_2B07C594: MEM8(ebp + (-0x4C4)) = (uint8_t)(0); /* 0x2B07C5DE: mov byte ptr [ebp - 0x4c4], 0 */ ecx = 0x63u; /* 0x2B07C5E5: mov ecx, 0x63 */ edi = ebp + (-0x4C3); /* 0x2B07C5EA: lea edi, [ebp - 0x4c3] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5F0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5F0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5F2: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5F4: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -2242,7 +2242,7 @@ L_2B07C594: MEM8(ebp + (-0x334)) = (uint8_t)(0); /* 0x2B07C5F7: mov byte ptr [ebp - 0x334], 0 */ ecx = 0x63u; /* 0x2B07C5FE: mov ecx, 0x63 */ edi = ebp + (-0x333); /* 0x2B07C603: lea edi, [ebp - 0x333] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C609: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C609: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C60B: stosw word ptr es:[edi], ax */ ecx = ebp + (-0x334); /* 0x2B07C60D: lea ecx, [ebp - 0x334] */ PUSH32(esp, ecx); /* 0x2B07C613: push ecx */ @@ -3282,7 +3282,7 @@ L_2B07C594: MEM8(ebp + (-0x974)) = (uint8_t)(LO8(eax)); /* 0x2B07C594: mov byte ptr [ebp - 0x974], al */ ecx = 0x63u; /* 0x2B07C59A: mov ecx, 0x63 */ edi = ebp + (-0x973); /* 0x2B07C59F: lea edi, [ebp - 0x973] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5A5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5A5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5A7: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5A9: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -3292,7 +3292,7 @@ L_2B07C594: MEM8(ebp + (-0x7E4)) = (uint8_t)(0); /* 0x2B07C5AC: mov byte ptr [ebp - 0x7e4], 0 */ ecx = 0x63u; /* 0x2B07C5B3: mov ecx, 0x63 */ edi = ebp + (-0x7E3); /* 0x2B07C5B8: lea edi, [ebp - 0x7e3] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5BE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5BE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5C0: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5C2: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -3302,7 +3302,7 @@ L_2B07C594: MEM8(ebp + (-0x654)) = (uint8_t)(0); /* 0x2B07C5C5: mov byte ptr [ebp - 0x654], 0 */ ecx = 0x63u; /* 0x2B07C5CC: mov ecx, 0x63 */ edi = ebp + (-0x653); /* 0x2B07C5D1: lea edi, [ebp - 0x653] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5D7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5D7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5D9: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5DB: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -3312,7 +3312,7 @@ L_2B07C594: MEM8(ebp + (-0x4C4)) = (uint8_t)(0); /* 0x2B07C5DE: mov byte ptr [ebp - 0x4c4], 0 */ ecx = 0x63u; /* 0x2B07C5E5: mov ecx, 0x63 */ edi = ebp + (-0x4C3); /* 0x2B07C5EA: lea edi, [ebp - 0x4c3] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5F0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5F0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5F2: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5F4: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -3322,7 +3322,7 @@ L_2B07C594: MEM8(ebp + (-0x334)) = (uint8_t)(0); /* 0x2B07C5F7: mov byte ptr [ebp - 0x334], 0 */ ecx = 0x63u; /* 0x2B07C5FE: mov ecx, 0x63 */ edi = ebp + (-0x333); /* 0x2B07C603: lea edi, [ebp - 0x333] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C609: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C609: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C60B: stosw word ptr es:[edi], ax */ ecx = ebp + (-0x334); /* 0x2B07C60D: lea ecx, [ebp - 0x334] */ PUSH32(esp, ecx); /* 0x2B07C613: push ecx */ @@ -4362,7 +4362,7 @@ L_2B07C594: MEM8(ebp + (-0x974)) = (uint8_t)(LO8(eax)); /* 0x2B07C594: mov byte ptr [ebp - 0x974], al */ ecx = 0x63u; /* 0x2B07C59A: mov ecx, 0x63 */ edi = ebp + (-0x973); /* 0x2B07C59F: lea edi, [ebp - 0x973] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5A5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5A5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5A7: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5A9: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -4372,7 +4372,7 @@ L_2B07C594: MEM8(ebp + (-0x7E4)) = (uint8_t)(0); /* 0x2B07C5AC: mov byte ptr [ebp - 0x7e4], 0 */ ecx = 0x63u; /* 0x2B07C5B3: mov ecx, 0x63 */ edi = ebp + (-0x7E3); /* 0x2B07C5B8: lea edi, [ebp - 0x7e3] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5BE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5BE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5C0: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5C2: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -4382,7 +4382,7 @@ L_2B07C594: MEM8(ebp + (-0x654)) = (uint8_t)(0); /* 0x2B07C5C5: mov byte ptr [ebp - 0x654], 0 */ ecx = 0x63u; /* 0x2B07C5CC: mov ecx, 0x63 */ edi = ebp + (-0x653); /* 0x2B07C5D1: lea edi, [ebp - 0x653] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5D7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5D7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5D9: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5DB: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -4392,7 +4392,7 @@ L_2B07C594: MEM8(ebp + (-0x4C4)) = (uint8_t)(0); /* 0x2B07C5DE: mov byte ptr [ebp - 0x4c4], 0 */ ecx = 0x63u; /* 0x2B07C5E5: mov ecx, 0x63 */ edi = ebp + (-0x4C3); /* 0x2B07C5EA: lea edi, [ebp - 0x4c3] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5F0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C5F0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C5F2: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B07C5F4: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -4402,7 +4402,7 @@ L_2B07C594: MEM8(ebp + (-0x334)) = (uint8_t)(0); /* 0x2B07C5F7: mov byte ptr [ebp - 0x334], 0 */ ecx = 0x63u; /* 0x2B07C5FE: mov ecx, 0x63 */ edi = ebp + (-0x333); /* 0x2B07C603: lea edi, [ebp - 0x333] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C609: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B07C609: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B07C60B: stosw word ptr es:[edi], ax */ ecx = ebp + (-0x334); /* 0x2B07C60D: lea ecx, [ebp - 0x334] */ PUSH32(esp, ecx); /* 0x2B07C613: push ecx */ diff --git a/client/game/ddr.dll/lifted-0033.c b/client/game/ddr.dll/lifted-0033.c @@ -21704,7 +21704,7 @@ L_2B081EDB: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B081EE7: mov ecx, 0xc */ edi = ebp + (-0x8C); /* 0x2B081EEC: lea edi, [ebp - 0x8c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B081EF2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B081EF2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 0xBCu); /* 0x2B081EF4: push 0xbc */ MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B081EF9: mov dword ptr [ebp - 4], 0xffffffff */ MEM32(ebp + (-0x8C)) = ebx; /* 0x2B081F00: mov dword ptr [ebp - 0x8c], ebx */ diff --git a/client/game/ddr.dll/lifted-0034.c b/client/game/ddr.dll/lifted-0034.c @@ -5045,7 +5045,7 @@ L_2B08437D: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B084394: mov ecx, 0xc */ edi = ebp + (-0x94); /* 0x2B084399: lea edi, [ebp - 0x94] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08439F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08439F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x2C); /* 0x2B0843A1: mov eax, dword ptr [ebx + 0x2c] */ PUSH32(esp, 0xBCu); /* 0x2B0843A4: push 0xbc */ MEM32(ebp + (-0x84)) = eax; /* 0x2B0843A9: mov dword ptr [ebp - 0x84], eax */ @@ -7409,7 +7409,7 @@ L_2B085270: _flag_k = FK_TEST; edi = ebx + 0x4; /* 0x2B085303: lea edi, [ebx + 4] */ ecx = 6; /* 0x2B085306: mov ecx, 6 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08530B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08530B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = 0x1E0u; /* 0x2B08530D: mov eax, 0x1e0 */ ecx = 0xAu; /* 0x2B085312: mov ecx, 0xa */ esi = ebx; /* 0x2B085317: mov esi, ebx */ @@ -7671,7 +7671,7 @@ L_2B085535: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B08553D: mov ecx, 0xc */ edi = ebp + (-0x44); /* 0x2B085542: lea edi, [ebp - 0x44] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B085545: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B085545: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(esi); /* 0x2B085547: mov eax, dword ptr [esi] */ _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFu); _cf = (uint32_t)CMP_B(_flag_a, _flag_b); @@ -7778,7 +7778,7 @@ L_2B085622: _flag_k = FK_TEST; ecx = 0xEu; /* 0x2B085634: mov ecx, 0xe */ edi = ebp + (-0x8C); /* 0x2B085639: lea edi, [ebp - 0x8c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08563F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08563F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = 0x88u; /* 0x2B085641: mov eax, 0x88 */ PUSH32(esp, 0xC0u); /* 0x2B085646: push 0xc0 */ MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B08564B: mov byte ptr [ebp - 4], 0 */ @@ -7850,7 +7850,7 @@ L_2B0856DD: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B085722: mov ecx, 0xc */ edi = ebp + (-0x44); /* 0x2B085727: lea edi, [ebp - 0x44] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08572A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08572A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 0xBCu); /* 0x2B08572C: push 0xbc */ MEM32(ebp + (-0x34)) = 0xDu; /* 0x2B085731: mov dword ptr [ebp - 0x34], 0xd */ MEM32(ebp + (-0x30)) = 0x99u; /* 0x2B085738: mov dword ptr [ebp - 0x30], 0x99 */ @@ -7903,7 +7903,7 @@ L_2B085797: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B0857B1: mov ecx, 0xc */ edi = ebp + (-0x44); /* 0x2B0857B6: lea edi, [ebp - 0x44] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0857B9: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0857B9: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = 0x90u; /* 0x2B0857BB: mov eax, 0x90 */ PUSH32(esp, 0xBCu); /* 0x2B0857C0: push 0xbc */ MEM32(ebp + (-0x44)) = 1; /* 0x2B0857C5: mov dword ptr [ebp - 0x44], 1 */ @@ -8329,7 +8329,7 @@ L_2B085BDC: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B085BE4: mov ecx, 0xc */ edi = ebp + (-0x44); /* 0x2B085BE9: lea edi, [ebp - 0x44] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B085BEC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B085BEC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = 4; /* 0x2B085BEE: mov eax, 4 */ PUSH32(esp, 0xBCu); /* 0x2B085BF3: push 0xbc */ MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B085BF8: mov byte ptr [ebp - 4], 0 */ @@ -8389,7 +8389,7 @@ L_2B085C60: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B085C88: mov ecx, 0xc */ edi = ebp + (-0x44); /* 0x2B085C8D: lea edi, [ebp - 0x44] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B085C90: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B085C90: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 0xBCu); /* 0x2B085C92: push 0xbc */ MEM32(ebp + (-0x34)) = 0x96u; /* 0x2B085C97: mov dword ptr [ebp - 0x34], 0x96 */ MEM32(ebp + (-0x30)) = 4; /* 0x2B085C9E: mov dword ptr [ebp - 0x30], 4 */ @@ -8880,7 +8880,7 @@ L_2B085FA9: MEM32(ebp + (-0x40)) = edx; /* 0x2B085FBF: mov dword ptr [ebp - 0x40], edx */ ecx = 0xAu; /* 0x2B085FC2: mov ecx, 0xa */ edi = ebp + (-0x44); /* 0x2B085FC7: lea edi, [ebp - 0x44] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B085FCA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B085FCA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM32(ebp + (-0x3C)) = 3; /* 0x2B085FCC: mov dword ptr [ebp - 0x3c], 3 */ MEM32(ebp + (-0x38)) = 0x6592u; /* 0x2B085FD3: mov dword ptr [ebp - 0x38], 0x6592 */ MEM32(ebp + (-0x2C)) = edx; /* 0x2B085FDA: mov dword ptr [ebp - 0x2c], edx */ diff --git a/client/game/ddr.dll/lifted-0035.c b/client/game/ddr.dll/lifted-0035.c @@ -239,7 +239,7 @@ L_2B085FA9: MEM32(ebp + (-0x40)) = edx; /* 0x2B085FBF: mov dword ptr [ebp - 0x40], edx */ ecx = 0xAu; /* 0x2B085FC2: mov ecx, 0xa */ edi = ebp + (-0x44); /* 0x2B085FC7: lea edi, [ebp - 0x44] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B085FCA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B085FCA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM32(ebp + (-0x3C)) = 3; /* 0x2B085FCC: mov dword ptr [ebp - 0x3c], 3 */ MEM32(ebp + (-0x38)) = 0x6592u; /* 0x2B085FD3: mov dword ptr [ebp - 0x38], 0x6592 */ MEM32(ebp + (-0x2C)) = edx; /* 0x2B085FDA: mov dword ptr [ebp - 0x2c], edx */ @@ -1194,7 +1194,7 @@ L_2B08707D: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B087082: mov ecx, 0xc */ edi = ebp + (-0x60); /* 0x2B087087: lea edi, [ebp - 0x60] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08708A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08708A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(esi + 0x8); /* 0x2B08708C: mov eax, dword ptr [esi + 8] */ _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFu); _cf = (uint32_t)CMP_B(_flag_a, _flag_b); @@ -1343,7 +1343,7 @@ L_2B0871B8: _flag_k = FK_TEST; ecx = 0xAu; /* 0x2B0871BD: mov ecx, 0xa */ edi = ebp + (-0xB0); /* 0x2B0871C2: lea edi, [ebp - 0xb0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0871C8: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0871C8: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 0xA4u); /* 0x2B0871CA: push 0xa4 */ MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B0871CF: mov byte ptr [ebp - 4], bl */ MEM32(ebp + (-0xB0)) = 0x7Du; /* 0x2B0871D2: mov dword ptr [ebp - 0xb0], 0x7d */ @@ -1653,7 +1653,7 @@ L_2B0874A3: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B0874DD: mov ecx, 0xc */ edi = ebp + (-0x60); /* 0x2B0874E2: lea edi, [ebp - 0x60] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0874E5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0874E5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = esi + 0x7C; /* 0x2B0874E7: lea eax, [esi + 0x7c] */ MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B0874EA: mov byte ptr [ebp - 4], bl */ MEM32(ebp + (-0x78)) = 2; /* 0x2B0874ED: mov dword ptr [ebp - 0x78], 2 */ @@ -2182,7 +2182,7 @@ L_2B087A02: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B087A04: mov ecx, 0xc */ edi = ebp + (-0x60); /* 0x2B087A09: lea edi, [ebp - 0x60] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B087A0C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B087A0C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebp + edx * 4 + (-0x84)); /* 0x2B087A0E: mov ecx, dword ptr [ebp + edx*4 - 0x84] */ edx = MEM32(ebp + edx * 4 + (-0x74)); /* 0x2B087A15: mov edx, dword ptr [ebp + edx*4 - 0x74] */ eax = 1; /* 0x2B087A19: mov eax, 1 */ @@ -2258,7 +2258,7 @@ L_2B087AA8: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B087AAA: mov ecx, 0xc */ edi = ebp + (-0x60); /* 0x2B087AAF: lea edi, [ebp - 0x60] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B087AB2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B087AB2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 0xBCu); /* 0x2B087AB4: push 0xbc */ MEM32(esi + 0x3C) = 0xFFFFFFFFu; /* 0x2B087AB9: mov dword ptr [esi + 0x3c], 0xffffffff */ MEM32(ebp + (-0x50)) = 9; /* 0x2B087AC0: mov dword ptr [ebp - 0x50], 9 */ @@ -2341,7 +2341,7 @@ L_2B0879FF: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B087A04: mov ecx, 0xc */ edi = ebp + (-0x60); /* 0x2B087A09: lea edi, [ebp - 0x60] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B087A0C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B087A0C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebp + edx * 4 + (-0x84)); /* 0x2B087A0E: mov ecx, dword ptr [ebp + edx*4 - 0x84] */ edx = MEM32(ebp + edx * 4 + (-0x74)); /* 0x2B087A15: mov edx, dword ptr [ebp + edx*4 - 0x74] */ eax = 1; /* 0x2B087A19: mov eax, 1 */ @@ -2417,7 +2417,7 @@ L_2B087AA8: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B087AAA: mov ecx, 0xc */ edi = ebp + (-0x60); /* 0x2B087AAF: lea edi, [ebp - 0x60] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B087AB2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B087AB2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 0xBCu); /* 0x2B087AB4: push 0xbc */ MEM32(esi + 0x3C) = 0xFFFFFFFFu; /* 0x2B087AB9: mov dword ptr [esi + 0x3c], 0xffffffff */ MEM32(ebp + (-0x50)) = 9; /* 0x2B087AC0: mov dword ptr [ebp - 0x50], 9 */ @@ -2502,7 +2502,7 @@ L_2B087A02: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B087A04: mov ecx, 0xc */ edi = ebp + (-0x60); /* 0x2B087A09: lea edi, [ebp - 0x60] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B087A0C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B087A0C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebp + edx * 4 + (-0x84)); /* 0x2B087A0E: mov ecx, dword ptr [ebp + edx*4 - 0x84] */ edx = MEM32(ebp + edx * 4 + (-0x74)); /* 0x2B087A15: mov edx, dword ptr [ebp + edx*4 - 0x74] */ eax = 1; /* 0x2B087A19: mov eax, 1 */ @@ -2578,7 +2578,7 @@ L_2B087AA8: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B087AAA: mov ecx, 0xc */ edi = ebp + (-0x60); /* 0x2B087AAF: lea edi, [ebp - 0x60] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B087AB2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B087AB2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 0xBCu); /* 0x2B087AB4: push 0xbc */ MEM32(esi + 0x3C) = 0xFFFFFFFFu; /* 0x2B087AB9: mov dword ptr [esi + 0x3c], 0xffffffff */ MEM32(ebp + (-0x50)) = 9; /* 0x2B087AC0: mov dword ptr [ebp - 0x50], 9 */ @@ -2662,7 +2662,7 @@ L_2B0879FF: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B087A04: mov ecx, 0xc */ edi = ebp + (-0x60); /* 0x2B087A09: lea edi, [ebp - 0x60] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B087A0C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B087A0C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebp + edx * 4 + (-0x84)); /* 0x2B087A0E: mov ecx, dword ptr [ebp + edx*4 - 0x84] */ edx = MEM32(ebp + edx * 4 + (-0x74)); /* 0x2B087A15: mov edx, dword ptr [ebp + edx*4 - 0x74] */ eax = 1; /* 0x2B087A19: mov eax, 1 */ @@ -2738,7 +2738,7 @@ L_2B087AA8: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B087AAA: mov ecx, 0xc */ edi = ebp + (-0x60); /* 0x2B087AAF: lea edi, [ebp - 0x60] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B087AB2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B087AB2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 0xBCu); /* 0x2B087AB4: push 0xbc */ MEM32(esi + 0x3C) = 0xFFFFFFFFu; /* 0x2B087AB9: mov dword ptr [esi + 0x3c], 0xffffffff */ MEM32(ebp + (-0x50)) = 9; /* 0x2B087AC0: mov dword ptr [ebp - 0x50], 9 */ @@ -3344,7 +3344,7 @@ L_2B087DEA: _flag_k = FK_TEST; ecx = 0xAu; /* 0x2B087E12: mov ecx, 0xa */ edi = ebp + (-0x30); /* 0x2B087E17: lea edi, [ebp - 0x30] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B087E1A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B087E1A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x4); /* 0x2B087E1C: mov eax, dword ptr [ebx + 4] */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); edi = 0; /* 0x2B087E1F: xor edi, edi */ @@ -3565,7 +3565,7 @@ L_2B087F90: _flag_k = FK_TEST; ecx = 0xFFu; /* 0x2B087FAB: mov ecx, 0xff */ edi = ebp + (-0x4DB); /* 0x2B087FB0: lea edi, [ebp - 0x4db] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B087FB6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B087FB6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(esi + 0x24); /* 0x2B087FB8: mov ecx, dword ptr [esi + 0x24] */ MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B087FBB: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B087FBD: stosb byte ptr es:[edi], al */ @@ -3956,7 +3956,7 @@ L_2B08826C: _flag_k = FK_TEST; ecx = 0xAu; /* 0x2B08826E: mov ecx, 0xa */ edi = ebp + (-0x30); /* 0x2B088273: lea edi, [ebp - 0x30] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B088276: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B088276: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebx + 0x4); /* 0x2B088278: mov ecx, dword ptr [ebx + 4] */ eax = MEM32(ebx); /* 0x2B08827B: mov eax, dword ptr [ebx] */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -4756,7 +4756,7 @@ L_2B0886E1: _flag_k = FK_TEST; ecx = 0xFFu; /* 0x2B088777: mov ecx, 0xff */ edi = ebp + (-0x43F); /* 0x2B08877C: lea edi, [ebp - 0x43f] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B088782: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B088782: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2B088784: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2B088786: stosb byte ptr es:[edi], al */ eax = MEM32(esi + 0xB0); /* 0x2B088787: mov eax, dword ptr [esi + 0xb0] */ @@ -7939,7 +7939,7 @@ L_2B08986F: _flag_k = FK_TEST; ecx = 0xAu; /* 0x2B089874: mov ecx, 0xa */ edi = ebp + (-0xAC); /* 0x2B089879: lea edi, [ebp - 0xac] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08987F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08987F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebp + 0x8); /* 0x2B089881: mov eax, dword ptr [ebp + 8] */ ecx = MEM32(ebp + 0xC); /* 0x2B089884: mov ecx, dword ptr [ebp + 0xc] */ MEM32(ebp + (-0xAC)) = eax; /* 0x2B089887: mov dword ptr [ebp - 0xac], eax */ @@ -7975,7 +7975,7 @@ L_2B08986F: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B089901: mov ecx, 0xc */ edi = ebp + (-0x84); /* 0x2B089906: lea edi, [ebp - 0x84] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08990C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08990C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edx = esi + 0x18; /* 0x2B08990E: lea edx, [esi + 0x18] */ MEM32(ebp + (-0x6C)) = 0x6786u; /* 0x2B089911: mov dword ptr [ebp - 0x6c], 0x6786 */ MEM32(ebp + (-0x74)) = 0x46u; /* 0x2B089918: mov dword ptr [ebp - 0x74], 0x46 */ @@ -9773,7 +9773,7 @@ L_2B08A442: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B08A464: mov ecx, 0xc */ edi = ebp + (-0x74); /* 0x2B08A469: lea edi, [ebp - 0x74] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08A46C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08A46C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 2); /* 0x2B08A46E: push 2 */ eax = ebp + (-0x1C); /* 0x2B08A470: lea eax, [ebp - 0x1c] */ _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); diff --git a/client/game/ddr.dll/lifted-0036.c b/client/game/ddr.dll/lifted-0036.c @@ -3599,7 +3599,7 @@ L_2B08BECE: _flag_k = FK_TEST; ecx = 0x35u; /* 0x2B08BEE5: mov ecx, 0x35 */ edi = ebp + (-0x111); /* 0x2B08BEEA: lea edi, [ebp - 0x111] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08BEF0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08BEF0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM8(edi) = LO8(eax); edi += _df; /* 0x2B08BEF2: stosb byte ptr es:[edi], al */ eax = MEM32(ebp + 0x10); /* 0x2B08BEF3: mov eax, dword ptr [ebp + 0x10] */ /* cmp eax, ebx */ /* 0x2B08BEF6: cmp eax, ebx */ @@ -19725,7 +19725,7 @@ L_2B08DA20: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B08DA46: mov ecx, 0xc */ edi = ebp + (-0x58); /* 0x2B08DA4B: lea edi, [ebp - 0x58] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08DA4E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08DA4E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 2); /* 0x2B08DA50: push 2 */ eax = ebp + (-0x28); /* 0x2B08DA52: lea eax, [ebp - 0x28] */ PUSH32(esp, 0xDDu); /* 0x2B08DA55: push 0xdd */ diff --git a/client/game/ddr.dll/lifted-0037.c b/client/game/ddr.dll/lifted-0037.c @@ -5547,7 +5547,7 @@ L_2B08EE1E: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B08EE44: mov ecx, 0xc */ edi = ebp + (-0x90); /* 0x2B08EE49: lea edi, [ebp - 0x90] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08EE4F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08EE4F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 2); /* 0x2B08EE51: push 2 */ eax = ebp + (-0x2C); /* 0x2B08EE53: lea eax, [ebp - 0x2c] */ _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); diff --git a/client/game/ddr.dll/lifted-0038.c b/client/game/ddr.dll/lifted-0038.c @@ -2307,7 +2307,7 @@ L_2B092698: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B09269A: mov ecx, 0xc */ edi = ebp + (-0x58); /* 0x2B09269F: lea edi, [ebp - 0x58] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0926A2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0926A2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(esi + 0x8); /* 0x2B0926A4: mov eax, dword ptr [esi + 8] */ MEM32(ebp + (-0x18)) = ebx; /* 0x2B0926A7: mov dword ptr [ebp - 0x18], ebx */ MEM32(ebp + (-0x14)) = ebx; /* 0x2B0926AA: mov dword ptr [ebp - 0x14], ebx */ @@ -3788,7 +3788,7 @@ L_2B09309B: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B0930A0: mov ecx, 0xc */ edi = ebp + (-0x94); /* 0x2B0930A5: lea edi, [ebp - 0x94] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0930AB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0930AB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebx + 0x84); /* 0x2B0930AD: mov ecx, dword ptr [ebx + 0x84] */ edi = MEM32(0x2B0B5F80); /* 0x2B0930B3: mov edi, dword ptr [0x2b0b5f80] */ PUSH32(esp, 2); /* 0x2B0930B9: push 2 */ @@ -6166,7 +6166,7 @@ L_2B093FE6: _flag_k = FK_TEST; ecx = 0xAu; /* 0x2B093FFC: mov ecx, 0xa */ edi = ebp + (-0x60); /* 0x2B094001: lea edi, [ebp - 0x60] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B094004: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B094004: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = 1; /* 0x2B094006: mov eax, 1 */ MEM32(ebp + (-0x54)) = eax; /* 0x2B09400B: mov dword ptr [ebp - 0x54], eax */ MEM32(ebp + (-0x44)) = eax; /* 0x2B09400E: mov dword ptr [ebp - 0x44], eax */ @@ -6254,7 +6254,7 @@ L_2B09405A: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B0940D8: mov ecx, 0xc */ edi = ebp + (-0x90); /* 0x2B0940DD: lea edi, [ebp - 0x90] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0940E3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0940E3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 2); /* 0x2B0940E5: push 2 */ eax = ebp + (-0x2C); /* 0x2B0940E7: lea eax, [ebp - 0x2c] */ _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); @@ -16442,7 +16442,7 @@ L_2B09523E: _flag_k = FK_TEST; ecx = 0xAu; /* 0x2B095240: mov ecx, 0xa */ edi = ebp + (-0x30); /* 0x2B095245: lea edi, [ebp - 0x30] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B095248: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B095248: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebx + 0xC); /* 0x2B09524A: mov ecx, dword ptr [ebx + 0xc] */ eax = MEM32(ebx + 0x8); /* 0x2B09524D: mov eax, dword ptr [ebx + 8] */ edx = ebp + (-0x30); /* 0x2B095250: lea edx, [ebp - 0x30] */ @@ -17798,7 +17798,7 @@ L_2B095ACA: _flag_k = FK_TEST; ecx = 0xAu; /* 0x2B095ACC: mov ecx, 0xa */ edi = ebp + (-0x38); /* 0x2B095AD1: lea edi, [ebp - 0x38] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B095AD4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B095AD4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebx + 0xC); /* 0x2B095AD6: mov ecx, dword ptr [ebx + 0xc] */ eax = MEM32(ebx + 0x8); /* 0x2B095AD9: mov eax, dword ptr [ebx + 8] */ edx = ebp + (-0x38); /* 0x2B095ADC: lea edx, [ebp - 0x38] */ diff --git a/client/game/ddr.dll/lifted-0039.c b/client/game/ddr.dll/lifted-0039.c @@ -3775,7 +3775,7 @@ L_2B0970AE: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B0970DA: mov ecx, 0xc */ edi = ebp + (-0x8C); /* 0x2B0970DF: lea edi, [ebp - 0x8c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0970E5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0970E5: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 2); /* 0x2B0970E7: push 2 */ eax = ebp + (-0x14); /* 0x2B0970E9: lea eax, [ebp - 0x14] */ _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); @@ -9827,7 +9827,7 @@ L_2B099BA4: _flag_k = FK_TEST; ecx = 0xCu; /* 0x2B099BCD: mov ecx, 0xc */ edi = ebp + (-0x9C); /* 0x2B099BD2: lea edi, [ebp - 0x9c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B099BD8: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B099BD8: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, 2); /* 0x2B099BDA: push 2 */ eax = ebp + (-0x14); /* 0x2B099BDC: lea eax, [ebp - 0x14] */ _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); @@ -13687,7 +13687,7 @@ L_2B09B1AD: _flag_k = FK_TEST; ecx = 0xAu; /* 0x2B09B1B1: mov ecx, 0xa */ edi = ebp + (-0x68); /* 0x2B09B1B6: lea edi, [ebp - 0x68] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B09B1B9: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B09B1B9: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(esi + 0x88); /* 0x2B09B1BB: mov ecx, dword ptr [esi + 0x88] */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); @@ -13892,7 +13892,7 @@ L_2B09B1AD: _flag_k = FK_TEST; ecx = 0xAu; /* 0x2B09B1B1: mov ecx, 0xa */ edi = ebp + (-0x68); /* 0x2B09B1B6: lea edi, [ebp - 0x68] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B09B1B9: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B09B1B9: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(esi + 0x88); /* 0x2B09B1BB: mov ecx, dword ptr [esi + 0x88] */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); diff --git a/client/game/dr.dll/lifted-0000.c b/client/game/dr.dll/lifted-0000.c @@ -2796,7 +2796,7 @@ L_2C001B9A: if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2C001BB0: shr ecx, 2 */ if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } ecx = ecx >> 2u; /* 0x2C001BB0: shr ecx, 2 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2C001BB3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2C001BB3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x2C001BB5: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x2C001BB7: and ecx, 3 */ diff --git a/client/game/er.dll/lifted-0000.c b/client/game/er.dll/lifted-0000.c @@ -1059,7 +1059,7 @@ L_2E00170B: PUSH32(esp, 0x2E019140u); /* 0x2E001719: push 0x2e019140 */ PUSH32(esp, ebx); /* 0x2E00171E: push ebx */ PUSH32(esp, edx); /* 0x2E00171F: push edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2E001720: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2E001720: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM32(esi + 0x30) = 0x2E001760u; /* 0x2E001722: mov dword ptr [esi + 0x30], 0x2e001760 */ MEM32(esi + 0x34) = 0x2E001780u; /* 0x2E001729: mov dword ptr [esi + 0x34], 0x2e001780 */ RECOMP_ICALL(0x2E00B7F0u); /* 0x2E001730: call 0x2e00b7f0 */ /* not lifted */ @@ -1194,7 +1194,7 @@ L_2E0017C1: PUSH32(esp, 0x38u); /* 0x2E0017CE: push 0x38 */ PUSH32(esp, 0x2E019140u); /* 0x2E0017D0: push 0x2e019140 */ PUSH32(esp, edx); /* 0x2E0017D5: push edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2E0017D6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2E0017D6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x2E00CCF0u); /* 0x2E0017D8: call 0x2e00ccf0 */ /* not lifted */ RECOMP_FLAGS_IN(); _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); diff --git a/client/game/er.dll/lifted-0002.c b/client/game/er.dll/lifted-0002.c @@ -11176,7 +11176,7 @@ L_2E008670: _cf = 0; _flag_k = FK_TEST; edi = esi + 0x10; /* 0x2E00869F: lea edi, [esi + 0x10] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2E0086A2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2E0086A2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = esi; /* 0x2E0086A4: mov eax, esi */ edi = POP32_VAL(esp); /* 0x2E0086A6: pop edi */ esi = POP32_VAL(esp); /* 0x2E0086A7: pop esi */ diff --git a/client/game/er.dll/lifted-0004.c b/client/game/er.dll/lifted-0004.c @@ -3675,7 +3675,7 @@ L_2E00BC99: eax = 0; /* 0x2E00BCB5: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2E00BCB7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2E00BCB7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x2E00BCB9: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x2E00BCBB: and ecx, 3 */ @@ -4148,7 +4148,7 @@ L_2E00BED0: eax = 0; /* 0x2E00BEFD: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2E00BEFF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2E00BEFF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = ebx; /* 0x2E00BF01: mov ecx, ebx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x2E00BF03: and ecx, 3 */ diff --git a/client/game/er.dll/lifted-0005.c b/client/game/er.dll/lifted-0005.c @@ -13338,7 +13338,7 @@ L_2E00DBA0: PUSH32(esp, edi); /* 0x2E00DBCF: push edi */ edi = edx + 0xB34; /* 0x2E00DBD0: lea edi, [edx + 0xb34] */ ecx = 8; /* 0x2E00DBD6: mov ecx, 8 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2E00DBDB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2E00DBDB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(edx + 0x144C); /* 0x2E00DBDD: mov eax, dword ptr [edx + 0x144c] */ ecx = MEM32(edx + eax * 4 + 0xB54); /* 0x2E00DBE3: mov ecx, dword ptr [edx + eax*4 + 0xb54] */ MEM16(ebx + ecx * 4 + 0x2) = (uint16_t)(0); /* 0x2E00DBEA: mov word ptr [ebx + ecx*4 + 2], 0 */ diff --git a/client/game/ffr.dll/lifted-0000.c b/client/game/ffr.dll/lifted-0000.c @@ -11265,7 +11265,7 @@ L_2F003E00: esi = 0; /* 0x2F003E30: xor esi, esi */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2F003E32: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2F003E32: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(ebx + 0x5C); /* 0x2F003E34: mov eax, dword ptr [ebx + 0x5c] */ /* cmp eax, esi */ /* 0x2F003E37: cmp eax, esi */ _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); @@ -11804,7 +11804,7 @@ L_2F004290: _flag_k = FK_TEST; ecx = 0xAu; /* 0x2F0042C2: mov ecx, 0xa */ edi = ebp + (-0x78); /* 0x2F0042C7: lea edi, [ebp - 0x78] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2F0042CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2F0042CA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(esi + 0x5C); /* 0x2F0042CC: mov eax, dword ptr [esi + 0x5c] */ /* test eax, eax */ /* 0x2F0042CF: test eax, eax */ _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); diff --git a/client/game/ffr.dll/lifted-0002.c b/client/game/ffr.dll/lifted-0002.c @@ -8045,7 +8045,7 @@ L_2F00A090: MEM8(ebp + (-0x64)) = (uint8_t)(0); /* 0x2F00A0A6: mov byte ptr [ebp - 0x64], 0 */ ecx = 0x18u; /* 0x2F00A0AA: mov ecx, 0x18 */ edi = ebp + (-0x63); /* 0x2F00A0AF: lea edi, [ebp - 0x63] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2F00A0B2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2F00A0B2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2F00A0B4: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2F00A0B6: stosb byte ptr es:[edi], al */ eax = MEM32(esi); /* 0x2F00A0B7: mov eax, dword ptr [esi] */ @@ -8090,7 +8090,7 @@ L_2F00A0EB: MEM8(ebp + (-0x864)) = (uint8_t)(0); /* 0x2F00A0ED: mov byte ptr [ebp - 0x864], 0 */ ecx = 0x1FFu; /* 0x2F00A0F4: mov ecx, 0x1ff */ edi = ebp + (-0x863); /* 0x2F00A0F9: lea edi, [ebp - 0x863] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2F00A0FF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2F00A0FF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2F00A101: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2F00A103: stosb byte ptr es:[edi], al */ eax = MEM32(esi); /* 0x2F00A104: mov eax, dword ptr [esi] */ @@ -8441,7 +8441,7 @@ L_2F00A33D: _cf = 0; _flag_k = FK_TEST; ecx = 0x00040000u; /* 0x2F00A33F: mov ecx, 0x40000 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2F00A344: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2F00A344: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edi = POP32_VAL(esp); /* 0x2F00A346: pop edi */ eax = esi; /* 0x2F00A347: mov eax, esi */ esi = POP32_VAL(esp); /* 0x2F00A349: pop esi */ @@ -10609,7 +10609,7 @@ L_2F00AF64: _flag_k = FK_TEST; ecx = 0x40u; /* 0x2F00AF71: mov ecx, 0x40 */ edi = ebp + (-0x107); /* 0x2F00AF76: lea edi, [ebp - 0x107] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2F00AF7C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2F00AF7C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2F00AF7E: stosw word ptr es:[edi], ax */ ecx = ebp + 0x8; /* 0x2F00AF80: lea ecx, [ebp + 8] */ PUSH32(esp, ecx); /* 0x2F00AF83: push ecx */ @@ -10767,7 +10767,7 @@ L_2F00AF64: _flag_k = FK_TEST; ecx = 0x40u; /* 0x2F00AF71: mov ecx, 0x40 */ edi = ebp + (-0x107); /* 0x2F00AF76: lea edi, [ebp - 0x107] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2F00AF7C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2F00AF7C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2F00AF7E: stosw word ptr es:[edi], ax */ ecx = ebp + 0x8; /* 0x2F00AF80: lea ecx, [ebp + 8] */ PUSH32(esp, ecx); /* 0x2F00AF83: push ecx */ @@ -10926,7 +10926,7 @@ L_2F00AF64: _flag_k = FK_TEST; ecx = 0x40u; /* 0x2F00AF71: mov ecx, 0x40 */ edi = ebp + (-0x107); /* 0x2F00AF76: lea edi, [ebp - 0x107] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2F00AF7C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2F00AF7C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2F00AF7E: stosw word ptr es:[edi], ax */ ecx = ebp + 0x8; /* 0x2F00AF80: lea ecx, [ebp + 8] */ PUSH32(esp, ecx); /* 0x2F00AF83: push ecx */ diff --git a/client/game/ffr.dll/lifted-0003.c b/client/game/ffr.dll/lifted-0003.c @@ -1933,7 +1933,7 @@ L_2F00CA5D: _flag_k = FK_TEST; ecx = 0x3Fu; /* 0x2F00CA6F: mov ecx, 0x3f */ edi = ebp + (-0x184); /* 0x2F00CA74: lea edi, [ebp - 0x184] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2F00CA7A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2F00CA7A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2F00CA7C: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2F00CA7E: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -1942,7 +1942,7 @@ L_2F00CA5D: _flag_k = FK_TEST; ecx = 0x3Fu; /* 0x2F00CA81: mov ecx, 0x3f */ edi = ebp + (-0x284); /* 0x2F00CA86: lea edi, [ebp - 0x284] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x2F00CA8C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2F00CA8C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x2F00CA8E: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x2F00CA90: stosb byte ptr es:[edi], al */ edx = MEM32(ebx); /* 0x2F00CA91: mov edx, dword ptr [ebx] */ diff --git a/client/game/ggr.dll/lifted-0005.c b/client/game/ggr.dll/lifted-0005.c @@ -2087,7 +2087,7 @@ L_30010280: _flag_k = FK_TEST; edi = ebp + (-0x9C); /* 0x300102E0: lea edi, [ebp - 0x9c] */ edx = ebp + (-0x9C); /* 0x300102E6: lea edx, [ebp - 0x9c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x300102EC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x300102EC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edi = MEM32(0x3001E308); /* 0x300102EE: mov edi, dword ptr [0x3001e308] */ _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); ecx = ecx | 0xFFFFFFFFu; /* 0x300102F4: or ecx, 0xffffffff */ diff --git a/client/game/hhr.dll/lifted-0000.c b/client/game/hhr.dll/lifted-0000.c @@ -129,7 +129,7 @@ L_31001060: ecx = 0xAu; /* 0x31001081: mov ecx, 0xa */ edi = ebp + (-0x2C); /* 0x31001086: lea edi, [ebp - 0x2c] */ PUSH32(esp, 0x31051180u); /* 0x31001089: push 0x31051180 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3100108E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3100108E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = ebp + (-0x2C); /* 0x31001090: lea ecx, [ebp - 0x2c] */ PUSH32(esp, 0x28u); /* 0x31001093: push 0x28 */ PUSH32(esp, ecx); /* 0x31001095: push ecx */ @@ -1836,17 +1836,17 @@ L_31001A0B: _flag_k = FK_TEST; ecx = 0x15u; /* 0x31001A0D: mov ecx, 0x15 */ edi = edx; /* 0x31001A12: mov edi, edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x31001A14: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x31001A14: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx + 0x54; /* 0x31001A16: lea ecx, [edx + 0x54] */ MEM32(ecx) = eax; /* 0x31001A19: mov dword ptr [ecx], eax */ MEM32(ecx + 0x4) = eax; /* 0x31001A1B: mov dword ptr [ecx + 4], eax */ MEM32(ecx + 0x8) = eax; /* 0x31001A1E: mov dword ptr [ecx + 8], eax */ ecx = 8; /* 0x31001A21: mov ecx, 8 */ edi = edx + 0x60; /* 0x31001A26: lea edi, [edx + 0x60] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x31001A29: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x31001A29: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 9; /* 0x31001A2B: mov ecx, 9 */ edi = edx + 0x80; /* 0x31001A30: lea edi, [edx + 0x80] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x31001A36: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x31001A36: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } goto L_31001A3C; /* 0x31001A38: jmp 0x31001a3c */ L_31001A3A: _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -2875,13 +2875,13 @@ L_310020A0: _flag_k = FK_TEST; ecx = 8; /* 0x310020AC: mov ecx, 8 */ edi = ebp + (-0x2C); /* 0x310020B1: lea edi, [ebp - 0x2c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x310020B4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x310020B4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM32(ebp + (-0xC)) = eax; /* 0x310020B6: mov dword ptr [ebp - 0xc], eax */ MEM32(ebp + (-0x8)) = eax; /* 0x310020B9: mov dword ptr [ebp - 8], eax */ MEM32(ebp + (-0x4)) = eax; /* 0x310020BC: mov dword ptr [ebp - 4], eax */ ecx = 9; /* 0x310020BF: mov ecx, 9 */ edi = ebp + (-0x50); /* 0x310020C4: lea edi, [ebp - 0x50] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x310020C7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x310020C7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 4; /* 0x310020C9: mov ecx, 4 */ MEM16(ebp + (-0xA)) = (uint16_t)(LO16(ecx)); /* 0x310020CE: mov word ptr [ebp - 0xa], cx */ MEM16(ebp + (-0x6)) = (uint16_t)(LO16(ecx)); /* 0x310020D2: mov word ptr [ebp - 6], cx */ @@ -7399,17 +7399,17 @@ L_31003F4D: _flag_k = FK_TEST; ecx = 0x15u; /* 0x31003F4F: mov ecx, 0x15 */ edi = edx; /* 0x31003F54: mov edi, edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x31003F56: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x31003F56: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx + 0x54; /* 0x31003F58: lea ecx, [edx + 0x54] */ MEM32(ecx) = eax; /* 0x31003F5B: mov dword ptr [ecx], eax */ MEM32(ecx + 0x4) = eax; /* 0x31003F5D: mov dword ptr [ecx + 4], eax */ MEM32(ecx + 0x8) = eax; /* 0x31003F60: mov dword ptr [ecx + 8], eax */ ecx = 8; /* 0x31003F63: mov ecx, 8 */ edi = edx + 0x60; /* 0x31003F68: lea edi, [edx + 0x60] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x31003F6B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x31003F6B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = 9; /* 0x31003F6D: mov ecx, 9 */ edi = edx + 0x80; /* 0x31003F72: lea edi, [edx + 0x80] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x31003F78: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x31003F78: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } goto L_31003F7E; /* 0x31003F7A: jmp 0x31003f7e */ L_31003F7C: _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); diff --git a/client/game/ir.dll/lifted-0000.c b/client/game/ir.dll/lifted-0000.c @@ -588,7 +588,7 @@ L_3400130B: _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); esp = esp + 4; /* 0x3400132C: add esp, 4 */ _flag_k = FK_ADD; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3400132F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3400132F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x34001331: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x34001333: and ecx, 3 */ diff --git a/client/game/kkr.dll/lifted-0000.c b/client/game/kkr.dll/lifted-0000.c @@ -1005,7 +1005,7 @@ L_36001585: MEM8(ebp + (-0x15C)) = (uint8_t)(LO8(eax)); /* 0x36001585: mov byte ptr [ebp - 0x15c], al */ ecx = 0x13u; /* 0x3600158B: mov ecx, 0x13 */ edi = ebp + (-0x15B); /* 0x36001590: lea edi, [ebp - 0x15b] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x36001596: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36001596: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x36001598: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x3600159A: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -1015,7 +1015,7 @@ L_36001585: MEM8(ebp + (-0x10C)) = (uint8_t)(0); /* 0x3600159D: mov byte ptr [ebp - 0x10c], 0 */ ecx = 0x13u; /* 0x360015A4: mov ecx, 0x13 */ edi = ebp + (-0x10B); /* 0x360015A9: lea edi, [ebp - 0x10b] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x360015AF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360015AF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x360015B1: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x360015B3: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -1024,7 +1024,7 @@ L_36001585: _flag_k = FK_TEST; ecx = 0x14u; /* 0x360015B6: mov ecx, 0x14 */ edi = ebp + (-0xBC); /* 0x360015BB: lea edi, [ebp - 0xbc] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x360015C1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360015C1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edx = ebp + (-0xBC); /* 0x360015C3: lea edx, [ebp - 0xbc] */ PUSH32(esp, edx); /* 0x360015C9: push edx */ eax = ebp + (-0x10C); /* 0x360015CA: lea eax, [ebp - 0x10c] */ @@ -1163,7 +1163,7 @@ L_36001585: MEM8(ebp + (-0x15C)) = (uint8_t)(LO8(eax)); /* 0x36001585: mov byte ptr [ebp - 0x15c], al */ ecx = 0x13u; /* 0x3600158B: mov ecx, 0x13 */ edi = ebp + (-0x15B); /* 0x36001590: lea edi, [ebp - 0x15b] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x36001596: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36001596: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x36001598: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x3600159A: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -1173,7 +1173,7 @@ L_36001585: MEM8(ebp + (-0x10C)) = (uint8_t)(0); /* 0x3600159D: mov byte ptr [ebp - 0x10c], 0 */ ecx = 0x13u; /* 0x360015A4: mov ecx, 0x13 */ edi = ebp + (-0x10B); /* 0x360015A9: lea edi, [ebp - 0x10b] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x360015AF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360015AF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x360015B1: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x360015B3: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -1182,7 +1182,7 @@ L_36001585: _flag_k = FK_TEST; ecx = 0x14u; /* 0x360015B6: mov ecx, 0x14 */ edi = ebp + (-0xBC); /* 0x360015BB: lea edi, [ebp - 0xbc] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x360015C1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360015C1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edx = ebp + (-0xBC); /* 0x360015C3: lea edx, [ebp - 0xbc] */ PUSH32(esp, edx); /* 0x360015C9: push edx */ eax = ebp + (-0x10C); /* 0x360015CA: lea eax, [ebp - 0x10c] */ @@ -1323,7 +1323,7 @@ L_36001585: MEM8(ebp + (-0x15C)) = (uint8_t)(LO8(eax)); /* 0x36001585: mov byte ptr [ebp - 0x15c], al */ ecx = 0x13u; /* 0x3600158B: mov ecx, 0x13 */ edi = ebp + (-0x15B); /* 0x36001590: lea edi, [ebp - 0x15b] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x36001596: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36001596: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x36001598: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x3600159A: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -1333,7 +1333,7 @@ L_36001585: MEM8(ebp + (-0x10C)) = (uint8_t)(0); /* 0x3600159D: mov byte ptr [ebp - 0x10c], 0 */ ecx = 0x13u; /* 0x360015A4: mov ecx, 0x13 */ edi = ebp + (-0x10B); /* 0x360015A9: lea edi, [ebp - 0x10b] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x360015AF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360015AF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x360015B1: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x360015B3: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -1342,7 +1342,7 @@ L_36001585: _flag_k = FK_TEST; ecx = 0x14u; /* 0x360015B6: mov ecx, 0x14 */ edi = ebp + (-0xBC); /* 0x360015BB: lea edi, [ebp - 0xbc] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x360015C1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360015C1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edx = ebp + (-0xBC); /* 0x360015C3: lea edx, [ebp - 0xbc] */ PUSH32(esp, edx); /* 0x360015C9: push edx */ eax = ebp + (-0x10C); /* 0x360015CA: lea eax, [ebp - 0x10c] */ diff --git a/client/game/kkr.dll/lifted-0013.c b/client/game/kkr.dll/lifted-0013.c @@ -1590,7 +1590,7 @@ L_3601EDAF: _flag_k = FK_TEST; ecx = 0x1Fu; /* 0x3601EDCF: mov ecx, 0x1f */ edi = ebp + (-0x97); /* 0x3601EDD4: lea edi, [ebp - 0x97] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3601EDDA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3601EDDA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x3601EDDC: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x3601EDDE: stosb byte ptr es:[edi], al */ RECOMP_ICALL(MEM32(0x3616FA10)); /* 0x3601EDDF: call dword ptr [0x3616fa10] */ diff --git a/client/game/kkr.dll/lifted-0015.c b/client/game/kkr.dll/lifted-0015.c @@ -27657,7 +27657,7 @@ L_36001585: MEM8(ebp + (-0x15C)) = (uint8_t)(LO8(eax)); /* 0x36001585: mov byte ptr [ebp - 0x15c], al */ ecx = 0x13u; /* 0x3600158B: mov ecx, 0x13 */ edi = ebp + (-0x15B); /* 0x36001590: lea edi, [ebp - 0x15b] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x36001596: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36001596: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x36001598: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x3600159A: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -27667,7 +27667,7 @@ L_36001585: MEM8(ebp + (-0x10C)) = (uint8_t)(0); /* 0x3600159D: mov byte ptr [ebp - 0x10c], 0 */ ecx = 0x13u; /* 0x360015A4: mov ecx, 0x13 */ edi = ebp + (-0x10B); /* 0x360015A9: lea edi, [ebp - 0x10b] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x360015AF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360015AF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x360015B1: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x360015B3: stosb byte ptr es:[edi], al */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -27676,7 +27676,7 @@ L_36001585: _flag_k = FK_TEST; ecx = 0x14u; /* 0x360015B6: mov ecx, 0x14 */ edi = ebp + (-0xBC); /* 0x360015BB: lea edi, [ebp - 0xbc] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x360015C1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360015C1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edx = ebp + (-0xBC); /* 0x360015C3: lea edx, [ebp - 0xbc] */ PUSH32(esp, edx); /* 0x360015C9: push edx */ eax = ebp + (-0x10C); /* 0x360015CA: lea eax, [ebp - 0x10c] */ diff --git a/client/game/kkr.dll/lifted-0026.c b/client/game/kkr.dll/lifted-0026.c @@ -10859,7 +10859,7 @@ L_360557EC: L_360557F1: edi = ebp + (-0x3F6); /* 0x360557F1: lea edi, [ebp - 0x3f6] */ L_360557F7: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x360557F7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360557F7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_360557F9: PUSH32(esp, ebx); /* 0x360557F9: push ebx */ L_360557FA: @@ -11250,7 +11250,7 @@ L_360559A4: L_360559A9: edi = ebp + (-0x3F6); /* 0x360559A9: lea edi, [ebp - 0x3f6] */ L_360559AF: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x360559AF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360559AF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_360559B1: PUSH32(esp, ebx); /* 0x360559B1: push ebx */ L_360559B2: @@ -20839,7 +20839,7 @@ L_360557EC: L_360557F1: edi = ebp + (-0x3F6); /* 0x360557F1: lea edi, [ebp - 0x3f6] */ L_360557F7: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x360557F7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360557F7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_360557F9: PUSH32(esp, ebx); /* 0x360557F9: push ebx */ L_360557FA: @@ -21230,7 +21230,7 @@ L_360559A4: L_360559A9: edi = ebp + (-0x3F6); /* 0x360559A9: lea edi, [ebp - 0x3f6] */ L_360559AF: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x360559AF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360559AF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_360559B1: PUSH32(esp, ebx); /* 0x360559B1: push ebx */ L_360559B2: @@ -30383,7 +30383,7 @@ L_360557EC: L_360557F1: edi = ebp + (-0x3F6); /* 0x360557F1: lea edi, [ebp - 0x3f6] */ L_360557F7: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x360557F7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360557F7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_360557F9: PUSH32(esp, ebx); /* 0x360557F9: push ebx */ L_360557FA: @@ -30774,7 +30774,7 @@ L_360559A4: L_360559A9: edi = ebp + (-0x3F6); /* 0x360559A9: lea edi, [ebp - 0x3f6] */ L_360559AF: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x360559AF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360559AF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_360559B1: PUSH32(esp, ebx); /* 0x360559B1: push ebx */ L_360559B2: @@ -34722,7 +34722,7 @@ L_360557D9: MEM16(ebp + (-0x3F8)) = (uint16_t)(LO16(edx)); /* 0x360557E5: mov word ptr [ebp - 0x3f8], dx */ ecx = 0x7Fu; /* 0x360557EC: mov ecx, 0x7f */ edi = ebp + (-0x3F6); /* 0x360557F1: lea edi, [ebp - 0x3f6] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x360557F7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360557F7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, ebx); /* 0x360557F9: push ebx */ MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x360557FA: stosw word ptr es:[edi], ax */ eax = ebp + (-0x3F8); /* 0x360557FC: lea eax, [ebp - 0x3f8] */ @@ -34988,7 +34988,7 @@ L_36055991: _flag_k = FK_TEST; ecx = 0x7Fu; /* 0x360559A4: mov ecx, 0x7f */ edi = ebp + (-0x3F6); /* 0x360559A9: lea edi, [ebp - 0x3f6] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x360559AF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360559AF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } PUSH32(esp, ebx); /* 0x360559B1: push ebx */ edx = ebp + (-0x3F8); /* 0x360559B2: lea edx, [ebp - 0x3f8] */ PUSH32(esp, 0x361C1E94u); /* 0x360559B8: push 0x361c1e94 */ @@ -40691,7 +40691,7 @@ L_360557EC: L_360557F1: edi = ebp + (-0x3F6); /* 0x360557F1: lea edi, [ebp - 0x3f6] */ L_360557F7: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x360557F7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360557F7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_360557F9: PUSH32(esp, ebx); /* 0x360557F9: push ebx */ L_360557FA: @@ -41082,7 +41082,7 @@ L_360559A4: L_360559A9: edi = ebp + (-0x3F6); /* 0x360559A9: lea edi, [ebp - 0x3f6] */ L_360559AF: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x360559AF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360559AF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_360559B1: PUSH32(esp, ebx); /* 0x360559B1: push ebx */ L_360559B2: diff --git a/client/game/kkr.dll/lifted-0027.c b/client/game/kkr.dll/lifted-0027.c @@ -16950,7 +16950,7 @@ L_36059770: _flag_k = FK_TEST; edi = esi + 0x44; /* 0x36059862: lea edi, [esi + 0x44] */ ecx = 8; /* 0x36059865: mov ecx, 8 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3605986A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3605986A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(esi + 0x40); /* 0x3605986C: mov ecx, dword ptr [esi + 0x40] */ edx = MEM32(ecx + 0xE4); /* 0x3605986F: mov edx, dword ptr [ecx + 0xe4] */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u); diff --git a/client/game/kkr.dll/lifted-0035.c b/client/game/kkr.dll/lifted-0035.c @@ -1294,7 +1294,7 @@ L_3607849B: ecx = 0x10u; /* 0x360784A3: mov ecx, 0x10 */ PUSH32(esp, 0x14u); /* 0x360784A8: push 0x14 */ MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360784AA: mov dword ptr [ebp - 4], 0xffffffff */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x360784B1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360784B1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x3615FD6Au); /* 0x360784B3: call 0x3615fd6a */ /* not lifted */ RECOMP_FLAGS_IN(); edi = eax; /* 0x360784B8: mov edi, eax */ diff --git a/client/game/kkr.dll/lifted-0038.c b/client/game/kkr.dll/lifted-0038.c @@ -6738,7 +6738,7 @@ L_36083005: _cf = 0; _flag_k = FK_TEST; MEM32(ebp + (-0x20)) = edi; /* 0x36083094: mov dword ptr [ebp - 0x20], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x36083097: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36083097: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x36083099: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x3608309B: and ecx, 3 */ diff --git a/client/game/kkr.dll/lifted-0045.c b/client/game/kkr.dll/lifted-0045.c @@ -10936,7 +10936,7 @@ L_36097F08: L_36097F0D: edi = ebp + (-0x8B); /* 0x36097F0D: lea edi, [ebp - 0x8b] */ L_36097F13: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x36097F13: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36097F13: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_36097F15: MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x36097F15: stosw word ptr es:[edi], ax */ L_36097F17: diff --git a/client/game/kkr.dll/lifted-0060.c b/client/game/kkr.dll/lifted-0060.c @@ -1570,7 +1570,7 @@ L_360CC2B0: _flag_k = FK_TEST; edi = edx + 0x12C; /* 0x360CC2C6: lea edi, [edx + 0x12c] */ ecx = 9; /* 0x360CC2CC: mov ecx, 9 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x360CC2D1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360CC2D1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = edx + 0x150; /* 0x360CC2D3: lea eax, [edx + 0x150] */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); ecx = 0; /* 0x360CC2D9: xor ecx, ecx */ diff --git a/client/game/kkr.dll/lifted-0063.c b/client/game/kkr.dll/lifted-0063.c @@ -7367,7 +7367,7 @@ L_360D9D5F: eax = 0; /* 0x360D9D67: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x360D9D69: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360D9D69: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebx + 0x50); /* 0x360D9D6B: mov ecx, dword ptr [ebx + 0x50] */ MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360D9D6E: mov dword ptr [ebp - 4], 0xffffffff */ MEM32(ebx + 0x4) = ecx; /* 0x360D9D75: mov dword ptr [ebx + 4], ecx */ @@ -7612,7 +7612,7 @@ L_360D9F6C: _cf = 0; _flag_k = FK_TEST; MEM32(ebx + 0x54) = edi; /* 0x360D9F88: mov dword ptr [ebx + 0x54], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x360D9F8B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360D9F8B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x360D9F8D: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x360D9F8F: and ecx, 3 */ diff --git a/client/game/kkr.dll/lifted-0070.c b/client/game/kkr.dll/lifted-0070.c @@ -2692,7 +2692,7 @@ L_360F0191: L_360F0196: edi = ebp + (-0x5E8); /* 0x360F0196: lea edi, [ebp - 0x5e8] */ L_360F019C: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x360F019C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360F019C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_360F019E: ecx = MEM32(ebp + (-0x1C)); /* 0x360F019E: mov ecx, dword ptr [ebp - 0x1c] */ L_360F01A1: diff --git a/client/game/kkr.dll/lifted-0072.c b/client/game/kkr.dll/lifted-0072.c @@ -4150,7 +4150,7 @@ L_360F6380: _flag_k = FK_TEST; ecx = 6; /* 0x360F6385: mov ecx, 6 */ edi = edx; /* 0x360F638A: mov edi, edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x360F638C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360F638C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = edx; /* 0x360F638E: mov eax, edx */ edi = POP32_VAL(esp); /* 0x360F6390: pop edi */ RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360F6391: ret */ diff --git a/client/game/kkr.dll/lifted-0084.c b/client/game/kkr.dll/lifted-0084.c @@ -16521,7 +16521,7 @@ L_36127B53: _cf = 0; _flag_k = FK_TEST; L_36127B55: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x36127B55: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36127B55: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_36127B57: edi = POP32_VAL(esp); /* 0x36127B57: pop edi */ L_36127B58: @@ -16703,7 +16703,7 @@ L_36127C37: L_36127C3D: ecx = 0x80u; /* 0x36127C3D: mov ecx, 0x80 */ L_36127C42: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x36127C42: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36127C42: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_36127C44: ecx = esi + 0x3C; /* 0x36127C44: lea ecx, [esi + 0x3c] */ L_36127C47: @@ -16797,7 +16797,7 @@ L_36127CCE: L_36127CD3: eax = 0xC2C80000u; /* 0x36127CD3: mov eax, 0xc2c80000 */ L_36127CD8: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x36127CD8: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36127CD8: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_36127CDA: edi = POP32_VAL(esp); /* 0x36127CDA: pop edi */ L_36127CDB: diff --git a/client/game/kkr.dll/lifted-0087.c b/client/game/kkr.dll/lifted-0087.c @@ -13379,7 +13379,7 @@ L_36137120: _flag_k = FK_TEST; ecx = 0x1000u; /* 0x36137125: mov ecx, 0x1000 */ edi = edx; /* 0x3613712A: mov edi, edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3613712C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3613712C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM32(edx + 0x4000) = eax; /* 0x3613712E: mov dword ptr [edx + 0x4000], eax */ eax = edx; /* 0x36137134: mov eax, edx */ edi = POP32_VAL(esp); /* 0x36137136: pop edi */ diff --git a/client/game/kkr.dll/lifted-0090.c b/client/game/kkr.dll/lifted-0090.c @@ -389,7 +389,7 @@ L_3613DDB2: _flag_k = FK_TEST; edi = esi + 0x2C; /* 0x3613DDC9: lea edi, [esi + 0x2c] */ ecx = 0x19u; /* 0x3613DDCC: mov ecx, 0x19 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3613DDD1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3613DDD1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(0x3630D8E4); /* 0x3613DDD3: mov eax, dword ptr [0x3630d8e4] */ /* cmp eax, ebx */ /* 0x3613DDD8: cmp eax, ebx */ _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); diff --git a/client/game/kkr.dll/lifted-0095.c b/client/game/kkr.dll/lifted-0095.c @@ -2209,7 +2209,7 @@ L_3614C231: _flag_k = FK_TEST; ecx = 0xEu; /* 0x3614C233: mov ecx, 0xe */ edi = ebp + (-0x48); /* 0x3614C238: lea edi, [ebp - 0x48] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3614C23B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3614C23B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebp + 0x8); /* 0x3614C23D: mov ecx, dword ptr [ebp + 8] */ edi = MEM32(ecx + 0x10); /* 0x3614C240: mov edi, dword ptr [ecx + 0x10] */ RECOMP_ICALL(MEM32(0x3616FAC0)); /* 0x3614C243: call dword ptr [0x3616fac0] */ diff --git a/client/game/kr.dll/lifted-0000.c b/client/game/kr.dll/lifted-0000.c @@ -3623,7 +3623,7 @@ L_37002342: eax = 0; /* 0x37002347: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x37002349: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x37002349: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_3700234B: ecx = MEM32(esi + 0x1C); /* 0x3700234B: mov ecx, dword ptr [esi + 0x1c] */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -4423,7 +4423,7 @@ L_37002839: eax = 0; /* 0x3700283E: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x37002840: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x37002840: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebp + (-0x8)); /* 0x37002842: mov ecx, dword ptr [ebp - 8] */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); edi = 0; /* 0x37002845: xor edi, edi */ @@ -7183,7 +7183,7 @@ L_37003570: if (TEST_LE(_flag_a, _flag_b)) goto L_370035C6; /* 0x37003593: jle 0x370035c6 */ L_37003595: ecx = edx; /* 0x37003595: mov ecx, edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x37003597: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x37003597: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edi = POP32_VAL(esp); /* 0x37003599: pop edi */ esi = POP32_VAL(esp); /* 0x3700359A: pop esi */ ebx = POP32_VAL(esp); /* 0x3700359B: pop ebx */ @@ -7402,7 +7402,7 @@ L_37003686: _flag_k = FK_CMP; edi = eax + edx * 4; /* 0x3700368E: lea edi, [eax + edx*4] */ eax = MEM32(ebp + 0x18); /* 0x37003691: mov eax, dword ptr [ebp + 0x18] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x37003694: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x37003694: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edi = POP32_VAL(esp); /* 0x37003696: pop edi */ esi = POP32_VAL(esp); /* 0x37003697: pop esi */ ebx = POP32_VAL(esp); /* 0x37003698: pop ebx */ @@ -10271,7 +10271,7 @@ L_37004360: _cf = 0; _flag_k = FK_TEST; edi = ebx; /* 0x37004446: mov edi, ebx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x37004448: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x37004448: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebp + 0x8); /* 0x3700444A: mov ecx, dword ptr [ebp + 8] */ MEM32(ebx + 0x44) = esi; /* 0x3700444D: mov dword ptr [ebx + 0x44], esi */ MEM32(ebx + 0x48) = ecx; /* 0x37004450: mov dword ptr [ebx + 0x48], ecx */ diff --git a/client/game/kr.dll/lifted-0001.c b/client/game/kr.dll/lifted-0001.c @@ -1350,14 +1350,14 @@ L_370051F3: _flag_k = FK_TEST; ecx = 0x2000u; /* 0x370051F5: mov ecx, 0x2000 */ edi = edx; /* 0x370051FA: mov edi, edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x370051FC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x370051FC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = esi + (-0x8000); /* 0x370051FE: lea ecx, [esi - 0x8000] */ esi = ecx; /* 0x37005204: mov esi, ecx */ if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x37005206: shr ecx, 2 */ if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } ecx = ecx >> 2u; /* 0x37005206: shr ecx, 2 */ edi = edx + 0x8000; /* 0x37005209: lea edi, [edx + 0x8000] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3700520F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3700520F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = esi; /* 0x37005211: mov ecx, esi */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x37005213: and ecx, 3 */ @@ -1379,7 +1379,7 @@ L_3700521E: _cf = 0; _flag_k = FK_TEST; edi = edx; /* 0x37005225: mov edi, edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x37005227: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x37005227: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = esi; /* 0x37005229: mov ecx, esi */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x3700522B: and ecx, 3 */ @@ -1640,7 +1640,7 @@ L_37005330: eax = 0; /* 0x3700533C: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3700533E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3700533E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edi = POP32_VAL(esp); /* 0x37005340: pop edi */ ebp = POP32_VAL(esp); /* 0x37005341: pop ebp */ RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x37005342: ret */ @@ -9911,7 +9911,7 @@ L_370068FB: eax = 0; /* 0x37006943: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x37006945: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x37006945: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebp + 0xC); /* 0x37006947: mov ecx, dword ptr [ebp + 0xc] */ MEM32(ebx + 0x44) = esi; /* 0x3700694A: mov dword ptr [ebx + 0x44], esi */ MEM32(ebx + 0x48) = ecx; /* 0x3700694D: mov dword ptr [ebx + 0x48], ecx */ @@ -11328,7 +11328,7 @@ L_37006FB1: _cf = 0; _flag_k = FK_TEST; MEM32(ebp + (-0xC)) = edi; /* 0x37006FCE: mov dword ptr [ebp - 0xc], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x37006FD1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x37006FD1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM32(ebp + (-0x8)) = 0x60u; /* 0x37006FD3: mov dword ptr [ebp - 8], 0x60 */ L_37006FDA: eax = ebx + (-0x1); /* 0x37006FDA: lea eax, [ebx - 1] */ @@ -11839,7 +11839,7 @@ L_3700727B: PUSH32(esp, 0x8000u); /* 0x37007295: push 0x8000 */ ecx = 0x2000u; /* 0x3700729A: mov ecx, 0x2000 */ PUSH32(esp, edx); /* 0x3700729F: push edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x370072A0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x370072A0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x3700E5F0u); /* 0x370072A2: call 0x3700e5f0 */ /* not lifted */ RECOMP_FLAGS_IN(); edi = eax; /* 0x370072A7: mov edi, eax */ @@ -11857,7 +11857,7 @@ L_3700727B: _flag_k = FK_TEST; ecx = 0x2000u; /* 0x370072B1: mov ecx, 0x2000 */ MEM32(ebp + (-0x18)) = edi; /* 0x370072B6: mov dword ptr [ebp - 0x18], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x370072B9: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x370072B9: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM32(ebp + 0x14) = 0; /* 0x370072BB: mov dword ptr [ebp + 0x14], 0 */ if (TEST_LE(_flag_a, _flag_b)) goto L_370073C1; /* 0x370072C2: jle 0x370073c1 */ L_370072C8: @@ -12165,7 +12165,7 @@ L_3700727B: PUSH32(esp, 0x8000u); /* 0x37007295: push 0x8000 */ ecx = 0x2000u; /* 0x3700729A: mov ecx, 0x2000 */ PUSH32(esp, edx); /* 0x3700729F: push edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x370072A0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x370072A0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x3700E5F0u); /* 0x370072A2: call 0x3700e5f0 */ /* not lifted */ RECOMP_FLAGS_IN(); edi = eax; /* 0x370072A7: mov edi, eax */ @@ -12183,7 +12183,7 @@ L_3700727B: _flag_k = FK_TEST; ecx = 0x2000u; /* 0x370072B1: mov ecx, 0x2000 */ MEM32(ebp + (-0x18)) = edi; /* 0x370072B6: mov dword ptr [ebp - 0x18], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x370072B9: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x370072B9: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM32(ebp + 0x14) = 0; /* 0x370072BB: mov dword ptr [ebp + 0x14], 0 */ if (TEST_LE(_flag_a, _flag_b)) goto L_370073C1; /* 0x370072C2: jle 0x370073c1 */ L_370072C8: @@ -12479,7 +12479,7 @@ L_3700727B: PUSH32(esp, 0x8000u); /* 0x37007295: push 0x8000 */ ecx = 0x2000u; /* 0x3700729A: mov ecx, 0x2000 */ PUSH32(esp, edx); /* 0x3700729F: push edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x370072A0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x370072A0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x3700E5F0u); /* 0x370072A2: call 0x3700e5f0 */ /* not lifted */ RECOMP_FLAGS_IN(); edi = eax; /* 0x370072A7: mov edi, eax */ @@ -12497,7 +12497,7 @@ L_3700727B: _flag_k = FK_TEST; ecx = 0x2000u; /* 0x370072B1: mov ecx, 0x2000 */ MEM32(ebp + (-0x18)) = edi; /* 0x370072B6: mov dword ptr [ebp - 0x18], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x370072B9: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x370072B9: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM32(ebp + 0x14) = 0; /* 0x370072BB: mov dword ptr [ebp + 0x14], 0 */ if (TEST_LE(_flag_a, _flag_b)) goto L_370073C1; /* 0x370072C2: jle 0x370073c1 */ L_370072C8: diff --git a/client/game/kr.dll/lifted-0002.c b/client/game/kr.dll/lifted-0002.c @@ -25071,7 +25071,7 @@ L_3700D1ED: _cf = 0; _flag_k = FK_TEST; MEM32(esi + 0xF4) = edi; /* 0x3700D200: mov dword ptr [esi + 0xf4], edi */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3700D206: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3700D206: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x3700D208: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x3700D20A: and ecx, 3 */ @@ -25387,7 +25387,7 @@ L_3700D408: eax = 0; /* 0x3700D42E: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3700D430: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3700D430: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x3700D432: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x3700D434: and ecx, 3 */ @@ -25576,7 +25576,7 @@ L_3700D408: eax = 0; /* 0x3700D42E: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3700D430: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3700D430: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x3700D432: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x3700D434: and ecx, 3 */ diff --git a/client/game/kr.dll/lifted-0003.c b/client/game/kr.dll/lifted-0003.c @@ -22365,7 +22365,7 @@ L_3700E5AD: _cf = 0; _flag_k = FK_TEST; edi = edx; /* 0x3700E5B5: mov edi, edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3700E5B7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3700E5B7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = esi; /* 0x3700E5B9: mov ecx, esi */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x3700E5BB: and ecx, 3 */ @@ -22599,7 +22599,7 @@ L_3700E680: if (16u) { _flag_a = recomp_flags_pack((eax << 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } eax = eax << 16u; /* 0x3700E69C: shl eax, 0x10 */ SET_LO16(eax, LO16(ebx)); /* 0x3700E69F: mov ax, bx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3700E6A2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3700E6A2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x3700E6A4: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x3700E6A6: and ecx, 3 */ @@ -25151,7 +25151,7 @@ L_3700F219: eax = 0; /* 0x3700F235: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3700F237: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3700F237: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x3700F239: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x3700F23B: and ecx, 3 */ @@ -25624,7 +25624,7 @@ L_3700F450: eax = 0; /* 0x3700F47D: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3700F47F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3700F47F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = ebx; /* 0x3700F481: mov ecx, ebx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x3700F483: and ecx, 3 */ diff --git a/client/game/kr.dll/lifted-0005.c b/client/game/kr.dll/lifted-0005.c @@ -1854,7 +1854,7 @@ L_370150D0: PUSH32(esp, edi); /* 0x370150FF: push edi */ edi = edx + 0xB34; /* 0x37015100: lea edi, [edx + 0xb34] */ ecx = 8; /* 0x37015106: mov ecx, 8 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3701510B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3701510B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(edx + 0x144C); /* 0x3701510D: mov eax, dword ptr [edx + 0x144c] */ ecx = MEM32(edx + eax * 4 + 0xB54); /* 0x37015113: mov ecx, dword ptr [edx + eax*4 + 0xb54] */ MEM16(ebx + ecx * 4 + 0x2) = (uint16_t)(0); /* 0x3701511A: mov word ptr [ebx + ecx*4 + 2], 0 */ diff --git a/client/game/llr.dll/lifted-0012.c b/client/game/llr.dll/lifted-0012.c @@ -5580,7 +5580,7 @@ L_3801FA00: ecx = 0x3E8u; /* 0x3801FB13: mov ecx, 0x3e8 */ _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3801FB18: fmul dword ptr [ebp - 0x20] */ edi = ebp + (-0x1148); /* 0x3801FB1B: lea edi, [ebp - 0x1148] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3801FB21: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3801FB21: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } _st[0] = -_st[0]; /* 0x3801FB23: fchs */ { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x3801FB25: fstp dword ptr [ebp - 0x60] */ ecx = MEM32(ebp + (-0x3C)); /* 0x3801FB28: mov ecx, dword ptr [ebp - 0x3c] */ diff --git a/client/game/llr.dll/lifted-0021.c b/client/game/llr.dll/lifted-0021.c @@ -7404,7 +7404,7 @@ L_38038144: eax = 0; /* 0x38038184: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x38038186: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x38038186: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x38038188: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x3803818A: and ecx, 3 */ @@ -7451,7 +7451,7 @@ L_38038144: eax = 0; /* 0x380381D1: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x380381D3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x380381D3: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x380381D5: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x380381D7: and ecx, 3 */ diff --git a/client/game/llr.dll/lifted-0026.c b/client/game/llr.dll/lifted-0026.c @@ -1640,7 +1640,7 @@ L_38040EBB: _flag_k = FK_TEST; edi = esi + 0x20; /* 0x38040EC0: lea edi, [esi + 0x20] */ ecx = 8; /* 0x38040EC3: mov ecx, 8 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x38040EC8: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x38040EC8: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebp + (-0xC)); /* 0x38040ECA: mov ecx, dword ptr [ebp - 0xc] */ MEM8(edi) = LO8(eax); edi += _df; /* 0x38040ECD: stosb byte ptr es:[edi], al */ edi = POP32_VAL(esp); /* 0x38040ECE: pop edi */ diff --git a/client/game/lr.dll/lifted-0000.c b/client/game/lr.dll/lifted-0000.c @@ -1443,7 +1443,7 @@ L_39001876: edi = ebp + (-0x373); /* 0x3900187B: lea edi, [ebp - 0x373] */ MEM8(ebp + (-0x374)) = (uint8_t)(LO8(eax)); /* 0x39001881: mov byte ptr [ebp - 0x374], al */ edx = ebp + (-0x1E4); /* 0x39001887: lea edx, [ebp - 0x1e4] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3900188D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3900188D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x3900188F: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x39001891: stosb byte ptr es:[edi], al */ ecx = 0x63u; /* 0x39001892: mov ecx, 0x63 */ @@ -1453,7 +1453,7 @@ L_39001876: _flag_k = FK_TEST; edi = ebp + (-0x1E3); /* 0x39001899: lea edi, [ebp - 0x1e3] */ MEM8(ebp + (-0x1E4)) = (uint8_t)(0); /* 0x3900189F: mov byte ptr [ebp - 0x1e4], 0 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x390018A6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x390018A6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x390018A8: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x390018AA: stosb byte ptr es:[edi], al */ eax = ebp + (-0x374); /* 0x390018AB: lea eax, [ebp - 0x374] */ @@ -1903,7 +1903,7 @@ L_39001876: edi = ebp + (-0x373); /* 0x3900187B: lea edi, [ebp - 0x373] */ MEM8(ebp + (-0x374)) = (uint8_t)(LO8(eax)); /* 0x39001881: mov byte ptr [ebp - 0x374], al */ edx = ebp + (-0x1E4); /* 0x39001887: lea edx, [ebp - 0x1e4] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3900188D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3900188D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x3900188F: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x39001891: stosb byte ptr es:[edi], al */ ecx = 0x63u; /* 0x39001892: mov ecx, 0x63 */ @@ -1913,7 +1913,7 @@ L_39001876: _flag_k = FK_TEST; edi = ebp + (-0x1E3); /* 0x39001899: lea edi, [ebp - 0x1e3] */ MEM8(ebp + (-0x1E4)) = (uint8_t)(0); /* 0x3900189F: mov byte ptr [ebp - 0x1e4], 0 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x390018A6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x390018A6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x390018A8: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x390018AA: stosb byte ptr es:[edi], al */ eax = ebp + (-0x374); /* 0x390018AB: lea eax, [ebp - 0x374] */ @@ -2220,7 +2220,7 @@ L_39001876: edi = ebp + (-0x373); /* 0x3900187B: lea edi, [ebp - 0x373] */ MEM8(ebp + (-0x374)) = (uint8_t)(LO8(eax)); /* 0x39001881: mov byte ptr [ebp - 0x374], al */ edx = ebp + (-0x1E4); /* 0x39001887: lea edx, [ebp - 0x1e4] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3900188D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3900188D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x3900188F: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x39001891: stosb byte ptr es:[edi], al */ ecx = 0x63u; /* 0x39001892: mov ecx, 0x63 */ @@ -2230,7 +2230,7 @@ L_39001876: _flag_k = FK_TEST; edi = ebp + (-0x1E3); /* 0x39001899: lea edi, [ebp - 0x1e3] */ MEM8(ebp + (-0x1E4)) = (uint8_t)(0); /* 0x3900189F: mov byte ptr [ebp - 0x1e4], 0 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x390018A6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x390018A6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x390018A8: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x390018AA: stosb byte ptr es:[edi], al */ eax = ebp + (-0x374); /* 0x390018AB: lea eax, [ebp - 0x374] */ @@ -2538,7 +2538,7 @@ L_39001876: edi = ebp + (-0x373); /* 0x3900187B: lea edi, [ebp - 0x373] */ MEM8(ebp + (-0x374)) = (uint8_t)(LO8(eax)); /* 0x39001881: mov byte ptr [ebp - 0x374], al */ edx = ebp + (-0x1E4); /* 0x39001887: lea edx, [ebp - 0x1e4] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3900188D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3900188D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x3900188F: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x39001891: stosb byte ptr es:[edi], al */ ecx = 0x63u; /* 0x39001892: mov ecx, 0x63 */ @@ -2548,7 +2548,7 @@ L_39001876: _flag_k = FK_TEST; edi = ebp + (-0x1E3); /* 0x39001899: lea edi, [ebp - 0x1e3] */ MEM8(ebp + (-0x1E4)) = (uint8_t)(0); /* 0x3900189F: mov byte ptr [ebp - 0x1e4], 0 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x390018A6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x390018A6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x390018A8: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x390018AA: stosb byte ptr es:[edi], al */ eax = ebp + (-0x374); /* 0x390018AB: lea eax, [ebp - 0x374] */ diff --git a/client/game/lr.dll/lifted-0002.c b/client/game/lr.dll/lifted-0002.c @@ -7164,7 +7164,7 @@ L_39007A8D: edi = ebp + (-0x18F); /* 0x39007A92: lea edi, [ebp - 0x18f] */ MEM8(ebp + (-0x190)) = (uint8_t)(LO8(eax)); /* 0x39007A98: mov byte ptr [ebp - 0x190], al */ edx = ebp + (-0xF0); /* 0x39007A9E: lea edx, [ebp - 0xf0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007AA4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007AA4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x39007AA6: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x39007AA8: stosb byte ptr es:[edi], al */ ecx = 0x13u; /* 0x39007AA9: mov ecx, 0x13 */ @@ -7174,7 +7174,7 @@ L_39007A8D: _flag_k = FK_TEST; edi = ebp + (-0x13F); /* 0x39007AB0: lea edi, [ebp - 0x13f] */ MEM8(ebp + (-0x140)) = (uint8_t)(0); /* 0x39007AB6: mov byte ptr [ebp - 0x140], 0 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007ABD: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007ABD: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x39007ABF: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x39007AC1: stosb byte ptr es:[edi], al */ ecx = 0x14u; /* 0x39007AC2: mov ecx, 0x14 */ @@ -7184,7 +7184,7 @@ L_39007A8D: _flag_k = FK_TEST; edi = ebp + (-0xF0); /* 0x39007AC9: lea edi, [ebp - 0xf0] */ PUSH32(esp, edx); /* 0x39007ACF: push edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007AD0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007AD0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = ebp + (-0x140); /* 0x39007AD2: lea eax, [ebp - 0x140] */ ecx = ebp + (-0x190); /* 0x39007AD8: lea ecx, [ebp - 0x190] */ PUSH32(esp, eax); /* 0x39007ADE: push eax */ @@ -7811,7 +7811,7 @@ L_39007A8D: edi = ebp + (-0x18F); /* 0x39007A92: lea edi, [ebp - 0x18f] */ MEM8(ebp + (-0x190)) = (uint8_t)(LO8(eax)); /* 0x39007A98: mov byte ptr [ebp - 0x190], al */ edx = ebp + (-0xF0); /* 0x39007A9E: lea edx, [ebp - 0xf0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007AA4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007AA4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x39007AA6: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x39007AA8: stosb byte ptr es:[edi], al */ ecx = 0x13u; /* 0x39007AA9: mov ecx, 0x13 */ @@ -7821,7 +7821,7 @@ L_39007A8D: _flag_k = FK_TEST; edi = ebp + (-0x13F); /* 0x39007AB0: lea edi, [ebp - 0x13f] */ MEM8(ebp + (-0x140)) = (uint8_t)(0); /* 0x39007AB6: mov byte ptr [ebp - 0x140], 0 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007ABD: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007ABD: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x39007ABF: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x39007AC1: stosb byte ptr es:[edi], al */ ecx = 0x14u; /* 0x39007AC2: mov ecx, 0x14 */ @@ -7831,7 +7831,7 @@ L_39007A8D: _flag_k = FK_TEST; edi = ebp + (-0xF0); /* 0x39007AC9: lea edi, [ebp - 0xf0] */ PUSH32(esp, edx); /* 0x39007ACF: push edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007AD0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007AD0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = ebp + (-0x140); /* 0x39007AD2: lea eax, [ebp - 0x140] */ ecx = ebp + (-0x190); /* 0x39007AD8: lea ecx, [ebp - 0x190] */ PUSH32(esp, eax); /* 0x39007ADE: push eax */ @@ -8458,7 +8458,7 @@ L_39007A8D: edi = ebp + (-0x18F); /* 0x39007A92: lea edi, [ebp - 0x18f] */ MEM8(ebp + (-0x190)) = (uint8_t)(LO8(eax)); /* 0x39007A98: mov byte ptr [ebp - 0x190], al */ edx = ebp + (-0xF0); /* 0x39007A9E: lea edx, [ebp - 0xf0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007AA4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007AA4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x39007AA6: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x39007AA8: stosb byte ptr es:[edi], al */ ecx = 0x13u; /* 0x39007AA9: mov ecx, 0x13 */ @@ -8468,7 +8468,7 @@ L_39007A8D: _flag_k = FK_TEST; edi = ebp + (-0x13F); /* 0x39007AB0: lea edi, [ebp - 0x13f] */ MEM8(ebp + (-0x140)) = (uint8_t)(0); /* 0x39007AB6: mov byte ptr [ebp - 0x140], 0 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007ABD: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007ABD: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x39007ABF: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x39007AC1: stosb byte ptr es:[edi], al */ ecx = 0x14u; /* 0x39007AC2: mov ecx, 0x14 */ @@ -8478,7 +8478,7 @@ L_39007A8D: _flag_k = FK_TEST; edi = ebp + (-0xF0); /* 0x39007AC9: lea edi, [ebp - 0xf0] */ PUSH32(esp, edx); /* 0x39007ACF: push edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007AD0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007AD0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = ebp + (-0x140); /* 0x39007AD2: lea eax, [ebp - 0x140] */ ecx = ebp + (-0x190); /* 0x39007AD8: lea ecx, [ebp - 0x190] */ PUSH32(esp, eax); /* 0x39007ADE: push eax */ @@ -9105,7 +9105,7 @@ L_39007A8D: edi = ebp + (-0x18F); /* 0x39007A92: lea edi, [ebp - 0x18f] */ MEM8(ebp + (-0x190)) = (uint8_t)(LO8(eax)); /* 0x39007A98: mov byte ptr [ebp - 0x190], al */ edx = ebp + (-0xF0); /* 0x39007A9E: lea edx, [ebp - 0xf0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007AA4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007AA4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x39007AA6: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x39007AA8: stosb byte ptr es:[edi], al */ ecx = 0x13u; /* 0x39007AA9: mov ecx, 0x13 */ @@ -9115,7 +9115,7 @@ L_39007A8D: _flag_k = FK_TEST; edi = ebp + (-0x13F); /* 0x39007AB0: lea edi, [ebp - 0x13f] */ MEM8(ebp + (-0x140)) = (uint8_t)(0); /* 0x39007AB6: mov byte ptr [ebp - 0x140], 0 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007ABD: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007ABD: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x39007ABF: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x39007AC1: stosb byte ptr es:[edi], al */ ecx = 0x14u; /* 0x39007AC2: mov ecx, 0x14 */ @@ -9125,7 +9125,7 @@ L_39007A8D: _flag_k = FK_TEST; edi = ebp + (-0xF0); /* 0x39007AC9: lea edi, [ebp - 0xf0] */ PUSH32(esp, edx); /* 0x39007ACF: push edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007AD0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007AD0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = ebp + (-0x140); /* 0x39007AD2: lea eax, [ebp - 0x140] */ ecx = ebp + (-0x190); /* 0x39007AD8: lea ecx, [ebp - 0x190] */ PUSH32(esp, eax); /* 0x39007ADE: push eax */ @@ -9752,7 +9752,7 @@ L_39007A8D: edi = ebp + (-0x18F); /* 0x39007A92: lea edi, [ebp - 0x18f] */ MEM8(ebp + (-0x190)) = (uint8_t)(LO8(eax)); /* 0x39007A98: mov byte ptr [ebp - 0x190], al */ edx = ebp + (-0xF0); /* 0x39007A9E: lea edx, [ebp - 0xf0] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007AA4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007AA4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x39007AA6: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x39007AA8: stosb byte ptr es:[edi], al */ ecx = 0x13u; /* 0x39007AA9: mov ecx, 0x13 */ @@ -9762,7 +9762,7 @@ L_39007A8D: _flag_k = FK_TEST; edi = ebp + (-0x13F); /* 0x39007AB0: lea edi, [ebp - 0x13f] */ MEM8(ebp + (-0x140)) = (uint8_t)(0); /* 0x39007AB6: mov byte ptr [ebp - 0x140], 0 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007ABD: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007ABD: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x39007ABF: stosw word ptr es:[edi], ax */ MEM8(edi) = LO8(eax); edi += _df; /* 0x39007AC1: stosb byte ptr es:[edi], al */ ecx = 0x14u; /* 0x39007AC2: mov ecx, 0x14 */ @@ -9772,7 +9772,7 @@ L_39007A8D: _flag_k = FK_TEST; edi = ebp + (-0xF0); /* 0x39007AC9: lea edi, [ebp - 0xf0] */ PUSH32(esp, edx); /* 0x39007ACF: push edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007AD0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x39007AD0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = ebp + (-0x140); /* 0x39007AD2: lea eax, [ebp - 0x140] */ ecx = ebp + (-0x190); /* 0x39007AD8: lea ecx, [ebp - 0x190] */ PUSH32(esp, eax); /* 0x39007ADE: push eax */ diff --git a/client/game/mmr.dll/lifted-0000.c b/client/game/mmr.dll/lifted-0000.c @@ -594,7 +594,7 @@ L_3A001254: MEM8(edx + 0x165) = (uint8_t)(1); /* 0x3A00133E: mov byte ptr [edx + 0x165], 1 */ MEM8(edx + 0x194) = (uint8_t)(1); /* 0x3A001345: mov byte ptr [edx + 0x194], 1 */ MEM8(edx + 0x19C) = (uint8_t)(0x64u); /* 0x3A00134C: mov byte ptr [edx + 0x19c], 0x64 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3A001353: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3A001353: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edi = POP32_VAL(esp); /* 0x3A001355: pop edi */ esi = POP32_VAL(esp); /* 0x3A001356: pop esi */ MEM8(edx + 0x258) = (uint8_t)(LO8(ebx)); /* 0x3A001357: mov byte ptr [edx + 0x258], bl */ @@ -2315,7 +2315,7 @@ L_3A001BC0: _flag_k = FK_TEST; edi = esi + 0xC4; /* 0x3A001D04: lea edi, [esi + 0xc4] */ ecx = 0x11u; /* 0x3A001D0A: mov ecx, 0x11 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3A001D0F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3A001D0F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } RECOMP_ICALL(0x3A008190u); /* 0x3A001D11: call 0x3a008190 */ /* not lifted */ RECOMP_FLAGS_IN(); ecx = MEM32(ebp + 0x8); /* 0x3A001D16: mov ecx, dword ptr [ebp + 8] */ diff --git a/client/game/mmr.dll/lifted-0001.c b/client/game/mmr.dll/lifted-0001.c @@ -998,7 +998,7 @@ L_3A00487C: _flag_k = FK_TEST; edi = esi + 0xC4; /* 0x3A00487F: lea edi, [esi + 0xc4] */ ecx = 0x11u; /* 0x3A004885: mov ecx, 0x11 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3A00488A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3A00488A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(0x3A00D2DC); /* 0x3A00488C: mov eax, dword ptr [0x3a00d2dc] */ ecx = MEM32(eax + 0x18); /* 0x3A004891: mov ecx, dword ptr [eax + 0x18] */ /* test ecx, ecx */ /* 0x3A004894: test ecx, ecx */ diff --git a/client/game/oor.dll/lifted-0000.c b/client/game/oor.dll/lifted-0000.c @@ -6620,7 +6620,7 @@ L_3E003164: if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } ecx = ecx >> 2u; /* 0x3E003183: shr ecx, 2 */ eax = 0x23232323u; /* 0x3E003186: mov eax, 0x23232323 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3E00318B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3E00318B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x3E00318D: mov ecx, edx */ _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); @@ -7015,7 +7015,7 @@ L_3E003164: if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } ecx = ecx >> 2u; /* 0x3E003183: shr ecx, 2 */ eax = 0x23232323u; /* 0x3E003186: mov eax, 0x23232323 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x3E00318B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3E00318B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x3E00318D: mov ecx, edx */ _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); diff --git a/client/game/ppr.dll/lifted-0000.c b/client/game/ppr.dll/lifted-0000.c @@ -3688,13 +3688,13 @@ L_400023EF: _flag_k = FK_TEST; edi = esi + 0x70; /* 0x4000241F: lea edi, [esi + 0x70] */ ecx = 0x14u; /* 0x40002422: mov ecx, 0x14 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x40002427: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x40002427: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edi = esi + 0xC0; /* 0x40002429: lea edi, [esi + 0xc0] */ ecx = 0x14u; /* 0x4000242F: mov ecx, 0x14 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x40002434: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x40002434: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edi = esi + 0x110; /* 0x40002436: lea edi, [esi + 0x110] */ ecx = 0x14u; /* 0x4000243C: mov ecx, 0x14 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x40002441: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x40002441: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(ebp + (-0xC)); /* 0x40002443: mov ecx, dword ptr [ebp - 0xc] */ edi = POP32_VAL(esp); /* 0x40002446: pop edi */ eax = esi; /* 0x40002447: mov eax, esi */ diff --git a/client/game/sr.dll/lifted-0000.c b/client/game/sr.dll/lifted-0000.c @@ -1023,7 +1023,7 @@ L_43001548: if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } ecx = ecx >> 2u; /* 0x43001548: shr ecx, 2 */ L_4300154B: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x4300154B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4300154B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_4300154D: ecx = edx; /* 0x4300154D: mov ecx, edx */ L_4300154F: @@ -1079,7 +1079,7 @@ L_43001588: _cf = 0; _flag_k = FK_TEST; L_4300158A: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x4300158A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4300158A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_4300158C: MEM32(edx + 0xC) = 0; /* 0x4300158C: mov dword ptr [edx + 0xc], 0 */ L_43001593: @@ -1164,7 +1164,7 @@ L_430015F7: _cf = 0; _flag_k = FK_TEST; L_430015F9: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x430015F9: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x430015F9: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_430015FB: eax = MEM32(ebp + 0xC); /* 0x430015FB: mov eax, dword ptr [ebp + 0xc] */ L_430015FE: @@ -2021,7 +2021,7 @@ L_43001850: _cf = 0; _flag_k = FK_TEST; L_43001852: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x43001852: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x43001852: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_43001854: ecx = MEM32(ebx + 0x180044); /* 0x43001854: mov ecx, dword ptr [ebx + 0x180044] */ L_4300185A: @@ -2048,7 +2048,7 @@ L_43001871: _cf = 0; _flag_k = FK_TEST; L_43001873: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x43001873: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x43001873: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_43001875: eax = MEM32(esi + 0x4); /* 0x43001875: mov eax, dword ptr [esi + 4] */ L_43001878: @@ -2123,7 +2123,7 @@ L_430018BE: _cf = 0; _flag_k = FK_TEST; L_430018C0: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x430018C0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x430018C0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_430018C2: MEM32(ebx + 0x180048) = 0; /* 0x430018C2: mov dword ptr [ebx + 0x180048], 0 */ L_430018CC: diff --git a/client/game/tr.dll/lifted-0000.c b/client/game/tr.dll/lifted-0000.c @@ -498,7 +498,7 @@ L_44001209: edi = ebp + (-0x1FC); /* 0x44001211: lea edi, [ebp - 0x1fc] */ MEM32(ebp + (-0x200)) = 0; /* 0x44001217: mov dword ptr [ebp - 0x200], 0 */ PUSH32(esp, 0x80u); /* 0x44001221: push 0x80 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x44001226: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x44001226: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } eax = MEM32(edx); /* 0x44001228: mov eax, dword ptr [edx] */ ecx = ebp + (-0x200); /* 0x4400122A: lea ecx, [ebp - 0x200] */ PUSH32(esp, ecx); /* 0x44001230: push ecx */ diff --git a/client/tests/bulk_fill.c b/client/tests/bulk_fill.c @@ -0,0 +1,48 @@ +#include "recomp_types.h" +#include <assert.h> + +void sub_250B4C80(void); +void sub_460035B5(void); + +recomp_func_t recomp_lookup(uint32_t address) { abort(); } +recomp_func_t recomp_lookup_import(uint32_t address) { abort(); } +recomp_func_t recomp_lookup_manual(uint32_t address) { return NULL; } + +int main(void) +{ + assert(guest_map("fill output", 0x50000000, 0x10000)); + assert(guest_map("fill value and stack", 0x51000000, 0x10000)); + const unsigned counts[][7] = {{0, 1, 2, 3, 4, 5, 65536}, {2, 0, 1, 3, 4, 5, 32768}}; + for (unsigned wide = 0; wide < 2; ++wide) { + for (unsigned i = 0; i < 7; ++i) { + unsigned count = counts[wide][i], size = count * (wide ? 2 : 1); + uint32_t output = 0x50010000 - size; + memset((void *)ADDR(0x50000000), 0xa5, 0x10000); + MEM16(0x51000000) = 0x9234; + g_esp = 0x5100ff00; + g_ebp = 123; g_ebx = 234; g_esi = 345; g_edi = 456; + MEM32(g_esp + 4) = output; + MEM32(g_esp + 8) = count; + MEM32(g_esp + 12) = 0x51000000; + printf("bulk fill: %s count %u at %08x\n", wide ? "wide" : "byte", count, output); + fflush(stdout); + + if (wide) sub_460035B5(); + else sub_250B4C80(); + + assert(g_esp == 0x5100ff04 && g_ebp == 123); + assert(g_ebx == 234 && g_esi == 345 && g_edi == 456); + assert(g_ecx == 0); + if (wide) { + assert(g_eax == output); + assert(recomp_eflags(g_flag_k, g_flag_a, g_flag_b, g_flag_cf, 1) == + (count & 1 ? 0x202 : 0x246)); + } + for (unsigned j = 0; j < size; ++j) + assert(MEM8(output + j) == (wide ? (j & 1 ? 0x92 : 0x34) : 0)); + if (size < 0x10000) assert(MEM8(output - 1) == 0xa5); + assert(MEM16(0x51000000) == 0x9234); + } + } + puts("bulk fill: empty and page-ending byte/wide fills, remainders, canaries and ABI passed"); +} diff --git a/client/vendor/ace/source/lifted-0000.c b/client/vendor/ace/source/lifted-0000.c @@ -2379,7 +2379,7 @@ L_47001A70: if (16u) { _flag_a = recomp_flags_pack((eax << 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } eax = eax << 16u; /* 0x47001A8C: shl eax, 0x10 */ SET_LO16(eax, LO16(ebx)); /* 0x47001A8F: mov ax, bx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47001A92: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47001A92: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x47001A94: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x47001A96: and ecx, 3 */ diff --git a/client/vendor/ace/source/lifted-0005.c b/client/vendor/ace/source/lifted-0005.c @@ -3529,7 +3529,7 @@ L_47009A98: eax = eax << 16u; /* 0x47009AAD: shl eax, 0x10 */ SET_LO16(eax, LO16(ebx)); /* 0x47009AB0: mov ax, bx */ ebx = POP32_VAL(esp); /* 0x47009AB3: pop ebx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47009AB4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47009AB4: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x47009AB6: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x47009AB8: and ecx, 3 */ @@ -3677,7 +3677,7 @@ L_47009B30: if (16u) { _flag_a = recomp_flags_pack((eax << 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } eax = eax << 16u; /* 0x47009B53: shl eax, 0x10 */ SET_LO16(eax, LO16(ebx)); /* 0x47009B56: mov ax, bx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47009B59: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47009B59: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x47009B5B: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x47009B5D: and ecx, 3 */ diff --git a/client/vendor/ace/source/lifted-0018.c b/client/vendor/ace/source/lifted-0018.c @@ -10947,7 +10947,7 @@ L_47025C15: eax = eax << 16u; /* 0x47025C2A: shl eax, 0x10 */ SET_LO16(eax, LO16(ebx)); /* 0x47025C2D: mov ax, bx */ ebx = POP32_VAL(esp); /* 0x47025C30: pop ebx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47025C31: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47025C31: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x47025C33: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x47025C35: and ecx, 3 */ @@ -11639,7 +11639,7 @@ L_47026005: eax = eax << 16u; /* 0x4702601A: shl eax, 0x10 */ SET_LO16(eax, LO16(ebx)); /* 0x4702601D: mov ax, bx */ ebx = POP32_VAL(esp); /* 0x47026020: pop ebx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47026021: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47026021: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x47026023: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x47026025: and ecx, 3 */ diff --git a/client/vendor/ace/source/lifted-0020.c b/client/vendor/ace/source/lifted-0020.c @@ -941,7 +941,7 @@ L_47028E40: _flag_k = FK_TEST; edi = esi + 0xC; /* 0x47028E58: lea edi, [esi + 0xc] */ ecx = 0x40u; /* 0x47028E5B: mov ecx, 0x40 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47028E60: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47028E60: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM8(edi) = LO8(eax); edi += _df; /* 0x47028E62: stosb byte ptr es:[edi], al */ edi = POP32_VAL(esp); /* 0x47028E63: pop edi */ eax = esi; /* 0x47028E64: mov eax, esi */ @@ -1061,7 +1061,7 @@ L_47028EED: _cf = 0; _flag_k = FK_TEST; ecx = 0x40u; /* 0x47028EF2: mov ecx, 0x40 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47028EF7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47028EF7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM8(edi) = LO8(eax); edi += _df; /* 0x47028EF9: stosb byte ptr es:[edi], al */ edi = POP32_VAL(esp); /* 0x47028EFA: pop edi */ _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); @@ -1149,7 +1149,7 @@ L_47028F72: _cf = 0; _flag_k = FK_TEST; edi = ebx + 0xC; /* 0x47028F79: lea edi, [ebx + 0xc] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47028F7C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47028F7C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM8(edi) = LO8(eax); edi += _df; /* 0x47028F7E: stosb byte ptr es:[edi], al */ goto L_47028F98; /* 0x47028F7F: jmp 0x47028f98 */ L_47028F81: diff --git a/client/vendor/ace/source/lifted-0023.c b/client/vendor/ace/source/lifted-0023.c @@ -1871,7 +1871,7 @@ L_4702E6E0: MEM32(edx + 0x258) = eax; /* 0x4702E6FD: mov dword ptr [edx + 0x258], eax */ MEM32(edx) = eax; /* 0x4702E703: mov dword ptr [edx], eax */ MEM32(edx + 0x250) = eax; /* 0x4702E705: mov dword ptr [edx + 0x250], eax */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x4702E70B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4702E70B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edi = POP32_VAL(esp); /* 0x4702E70D: pop edi */ RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702E70E: ret */ RECOMP_REGS_OUT(); @@ -1931,7 +1931,7 @@ L_4702E710: _flag_k = FK_TEST; edi = esi + 0x22C; /* 0x4702E792: lea edi, [esi + 0x22c] */ ecx = 9; /* 0x4702E798: mov ecx, 9 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x4702E79D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4702E79D: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(esp + 0x10); /* 0x4702E79F: mov ecx, dword ptr [esp + 0x10] */ edi = POP32_VAL(esp); /* 0x4702E7A3: pop edi */ eax = esi; /* 0x4702E7A4: mov eax, esi */ @@ -2004,7 +2004,7 @@ L_4702E7C0: _flag_k = FK_TEST; edi = ebp + 0x22C; /* 0x4702E854: lea edi, [ebp + 0x22c] */ ecx = 9; /* 0x4702E85A: mov ecx, 9 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x4702E85F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4702E85F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edi = MEM32(esp + 0x24); /* 0x4702E861: mov edi, dword ptr [esp + 0x24] */ _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); ecx = ecx | 0xFFFFFFFFu; /* 0x4702E865: or ecx, 0xffffffff */ @@ -2417,7 +2417,7 @@ L_4702EB20: _flag_k = FK_TEST; ecx = 9; /* 0x4702EB97: mov ecx, 9 */ edi = ebp + 0x22C; /* 0x4702EB9C: lea edi, [ebp + 0x22c] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x4702EBA2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4702EBA2: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edi = MEM32(esp + 0x24); /* 0x4702EBA4: mov edi, dword ptr [esp + 0x24] */ _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); ecx = ecx | 0xFFFFFFFFu; /* 0x4702EBA8: or ecx, 0xffffffff */ diff --git a/client/vendor/ace/source/lifted-0027.c b/client/vendor/ace/source/lifted-0027.c @@ -2106,7 +2106,7 @@ L_47039CF4: L_47039CF6: eax = 0x20202020u; /* 0x47039CF6: mov eax, 0x20202020 */ L_47039CFB: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47039CFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47039CFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_47039CFD: ecx = esi; /* 0x47039CFD: mov ecx, esi */ L_47039CFF: @@ -4129,7 +4129,7 @@ L_47039CF4: L_47039CF6: eax = 0x20202020u; /* 0x47039CF6: mov eax, 0x20202020 */ L_47039CFB: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47039CFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47039CFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_47039CFD: ecx = esi; /* 0x47039CFD: mov ecx, esi */ L_47039CFF: @@ -6049,7 +6049,7 @@ L_47039CF4: L_47039CF6: eax = 0x20202020u; /* 0x47039CF6: mov eax, 0x20202020 */ L_47039CFB: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47039CFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47039CFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_47039CFD: ecx = esi; /* 0x47039CFD: mov ecx, esi */ L_47039CFF: @@ -7969,7 +7969,7 @@ L_47039CF4: L_47039CF6: eax = 0x20202020u; /* 0x47039CF6: mov eax, 0x20202020 */ L_47039CFB: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47039CFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47039CFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_47039CFD: ecx = esi; /* 0x47039CFD: mov ecx, esi */ L_47039CFF: @@ -9889,7 +9889,7 @@ L_47039CF4: L_47039CF6: eax = 0x20202020u; /* 0x47039CF6: mov eax, 0x20202020 */ L_47039CFB: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47039CFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47039CFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_47039CFD: ecx = esi; /* 0x47039CFD: mov ecx, esi */ L_47039CFF: @@ -11809,7 +11809,7 @@ L_47039CF4: L_47039CF6: eax = 0x20202020u; /* 0x47039CF6: mov eax, 0x20202020 */ L_47039CFB: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47039CFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47039CFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_47039CFD: ecx = esi; /* 0x47039CFD: mov ecx, esi */ L_47039CFF: @@ -13729,7 +13729,7 @@ L_47039CF4: L_47039CF6: eax = 0x20202020u; /* 0x47039CF6: mov eax, 0x20202020 */ L_47039CFB: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47039CFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47039CFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_47039CFD: ecx = esi; /* 0x47039CFD: mov ecx, esi */ L_47039CFF: @@ -15649,7 +15649,7 @@ L_47039CF4: L_47039CF6: eax = 0x20202020u; /* 0x47039CF6: mov eax, 0x20202020 */ L_47039CFB: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47039CFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47039CFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_47039CFD: ecx = esi; /* 0x47039CFD: mov ecx, esi */ L_47039CFF: @@ -17569,7 +17569,7 @@ L_47039CF4: L_47039CF6: eax = 0x20202020u; /* 0x47039CF6: mov eax, 0x20202020 */ L_47039CFB: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47039CFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47039CFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_47039CFD: ecx = esi; /* 0x47039CFD: mov ecx, esi */ L_47039CFF: @@ -19489,7 +19489,7 @@ L_47039CF4: L_47039CF6: eax = 0x20202020u; /* 0x47039CF6: mov eax, 0x20202020 */ L_47039CFB: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47039CFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47039CFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_47039CFD: ecx = esi; /* 0x47039CFD: mov ecx, esi */ L_47039CFF: @@ -21409,7 +21409,7 @@ L_47039CF4: L_47039CF6: eax = 0x20202020u; /* 0x47039CF6: mov eax, 0x20202020 */ L_47039CFB: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47039CFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47039CFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_47039CFD: ecx = esi; /* 0x47039CFD: mov ecx, esi */ L_47039CFF: @@ -23329,7 +23329,7 @@ L_47039CF4: L_47039CF6: eax = 0x20202020u; /* 0x47039CF6: mov eax, 0x20202020 */ L_47039CFB: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47039CFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47039CFB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_47039CFD: ecx = esi; /* 0x47039CFD: mov ecx, esi */ L_47039CFF: diff --git a/client/vendor/ace/source/lifted-0030.c b/client/vendor/ace/source/lifted-0030.c @@ -9568,7 +9568,7 @@ L_47041C70: MEM32(edx + 0x118) = eax; /* 0x47041C8C: mov dword ptr [edx + 0x118], eax */ ecx = 0x41u; /* 0x47041C92: mov ecx, 0x41 */ edi = edx + 0x4; /* 0x47041C97: lea edi, [edx + 4] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47041C9A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47041C9A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM8(edi) = LO8(eax); edi += _df; /* 0x47041C9C: stosb byte ptr es:[edi], al */ eax = edx; /* 0x47041C9D: mov eax, edx */ edi = POP32_VAL(esp); /* 0x47041C9F: pop edi */ @@ -9734,7 +9734,7 @@ L_47041DB0: MEM32(esi + 0x118) = 0; /* 0x47041DD5: mov dword ptr [esi + 0x118], 0 */ ecx = 0x41u; /* 0x47041DDF: mov ecx, 0x41 */ edi = esi + 0x4; /* 0x47041DE4: lea edi, [esi + 4] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47041DE7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47041DE7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(esp + 0x20); /* 0x47041DE9: mov ecx, dword ptr [esp + 0x20] */ MEM8(edi) = LO8(eax); edi += _df; /* 0x47041DED: stosb byte ptr es:[edi], al */ eax = MEM32(esp + 0x24); /* 0x47041DEE: mov eax, dword ptr [esp + 0x24] */ diff --git a/client/vendor/ace/source/lifted-0035.c b/client/vendor/ace/source/lifted-0035.c @@ -12470,7 +12470,7 @@ L_4704D9E5: eax = eax << 16u; /* 0x4704D9FA: shl eax, 0x10 */ SET_LO16(eax, LO16(ebx)); /* 0x4704D9FD: mov ax, bx */ ebx = POP32_VAL(esp); /* 0x4704DA00: pop ebx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x4704DA01: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4704DA01: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x4704DA03: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x4704DA05: and ecx, 3 */ diff --git a/client/vendor/ace/source/lifted-0036.c b/client/vendor/ace/source/lifted-0036.c @@ -4879,7 +4879,7 @@ L_4704F155: eax = eax << 16u; /* 0x4704F16A: shl eax, 0x10 */ SET_LO16(eax, LO16(ebx)); /* 0x4704F16D: mov ax, bx */ ebx = POP32_VAL(esp); /* 0x4704F170: pop ebx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x4704F171: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4704F171: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x4704F173: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x4704F175: and ecx, 3 */ diff --git a/client/vendor/ace/source/lifted-0038.c b/client/vendor/ace/source/lifted-0038.c @@ -2823,7 +2823,7 @@ L_47054676: L_4705467B: edi = esp + 0xDC; /* 0x4705467B: lea edi, [esp + 0xdc] */ L_47054682: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47054682: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47054682: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_47054684: MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x47054684: stosw word ptr es:[edi], ax */ L_47054686: @@ -2842,7 +2842,7 @@ L_47054691: L_47054696: edi = esp + 0x5C; /* 0x47054696: lea edi, [esp + 0x5c] */ L_4705469A: - { uint32_t _n = ecx, _b = _n * 4u; /* 0x4705469A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4705469A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_4705469C: MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x4705469C: stosw word ptr es:[edi], ax */ L_4705469E: diff --git a/client/vendor/ace/source/lifted-0039.c b/client/vendor/ace/source/lifted-0039.c @@ -40,7 +40,7 @@ L_47056841: _flag_k = FK_TEST; ecx = 0x11u; /* 0x47056843: mov ecx, 0x11 */ edi = esp + 0x14; /* 0x47056848: lea edi, [esp + 0x14] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x4705684C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4705684C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = MEM32(esp + 0x5C); /* 0x4705684E: mov ecx, dword ptr [esp + 0x5c] */ edx = esp + 0x4; /* 0x47056852: lea edx, [esp + 4] */ PUSH32(esp, edx); /* 0x47056856: push edx */ diff --git a/client/vendor/ace/source/lifted-0046.c b/client/vendor/ace/source/lifted-0046.c @@ -3409,7 +3409,7 @@ L_470683EE: _flag_k = FK_TEST; ecx = 0x11u; /* 0x47068409: mov ecx, 0x11 */ edi = edx; /* 0x4706840E: mov edi, edx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47068410: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47068410: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edi = POP32_VAL(esp); /* 0x47068412: pop edi */ eax = esi; /* 0x47068413: mov eax, esi */ esi = POP32_VAL(esp); /* 0x47068415: pop esi */ diff --git a/client/vendor/ace/source/lifted-0047.c b/client/vendor/ace/source/lifted-0047.c @@ -2027,7 +2027,7 @@ L_470698B9: _cf = 0; _flag_k = FK_TEST; edi = ebp; /* 0x470698BE: mov edi, ebp */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x470698C0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470698C0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } L_470698C2: _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); esi = 0; /* 0x470698C2: xor esi, esi */ diff --git a/client/vendor/ace/source/lifted-0057.c b/client/vendor/ace/source/lifted-0057.c @@ -154,7 +154,7 @@ L_4707F610: edi = esi + 0xC; /* 0x4707F622: lea edi, [esi + 0xc] */ MEM32(esi) = 0x470AED94u; /* 0x4707F625: mov dword ptr [esi], 0x470aed94 */ ecx = 0x43u; /* 0x4707F62B: mov ecx, 0x43 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x4707F630: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4707F630: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edi = POP32_VAL(esp); /* 0x4707F632: pop edi */ eax = esi; /* 0x4707F633: mov eax, esi */ esi = POP32_VAL(esp); /* 0x4707F635: pop esi */ @@ -294,7 +294,7 @@ L_4707F6DD: edi = edi + 0xCu; /* 0x4707F6DF: add edi, 0xc */ _flag_k = FK_ADD; ecx = 0x43u; /* 0x4707F6E2: mov ecx, 0x43 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x4707F6E7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4707F6E7: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } edi = POP32_VAL(esp); /* 0x4707F6E9: pop edi */ esi = POP32_VAL(esp); /* 0x4707F6EA: pop esi */ RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4707F6EB: ret 4 */ @@ -377,7 +377,7 @@ L_4707F762: _cf = 0; _flag_k = FK_TEST; edi = ebx + 0xC; /* 0x4707F769: lea edi, [ebx + 0xc] */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x4707F76C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4707F76C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } goto L_4707F787; /* 0x4707F76E: jmp 0x4707f787 */ L_4707F770: ecx = MEM32(esi + 0x8); /* 0x4707F770: mov ecx, dword ptr [esi + 8] */ @@ -4655,7 +4655,7 @@ L_47080C86: eax = 0; /* 0x47080CA6: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47080CA8: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47080CA8: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x47080CAA: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x47080CAC: and ecx, 3 */ @@ -5212,7 +5212,7 @@ L_47080FF9: eax = 0; /* 0x47081007: xor eax, eax */ _cf = 0; _flag_k = FK_TEST; - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47081009: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47081009: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x4708100B: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x4708100D: and ecx, 3 */ diff --git a/client/vendor/ace/source/lifted-0061.c b/client/vendor/ace/source/lifted-0061.c @@ -1204,7 +1204,7 @@ L_47088695: eax = eax << 16u; /* 0x470886AA: shl eax, 0x10 */ SET_LO16(eax, LO16(ebx)); /* 0x470886AD: mov ax, bx */ ebx = POP32_VAL(esp); /* 0x470886B0: pop ebx */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x470886B1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470886B1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } ecx = edx; /* 0x470886B3: mov ecx, edx */ _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); ecx = ecx & 3; /* 0x470886B5: and ecx, 3 */ diff --git a/client/vendor/ace/source/lifted-0066.c b/client/vendor/ace/source/lifted-0066.c @@ -5383,7 +5383,7 @@ L_470957B0: esi = ebx + 0x28; /* 0x4709581D: lea esi, [ebx + 0x28] */ edi = esi; /* 0x47095820: mov edi, esi */ ecx = 0x4Fu; /* 0x47095822: mov ecx, 0x4f */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x47095827: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47095827: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x47095829: stosw word ptr es:[edi], ax */ _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); ecx = ecx | 0xFFFFFFFFu; /* 0x4709582B: or ecx, 0xffffffff */ diff --git a/client/vendor/msvcp60/source/lifted-0004.c b/client/vendor/msvcp60/source/lifted-0004.c @@ -1329,12 +1329,12 @@ L_460035C4: if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x460035D4: shr ecx, 1 */ if (1u) { _flag_a = recomp_flags_pack((ecx >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } ecx = ecx >> 1u; /* 0x460035D4: shr ecx, 1 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x460035D6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x460035D6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } { uint32_t _aa = ecx, _ab = ecx, _ac = _cf; /* 0x460035D8: adc ecx, ecx */ ecx = _aa + _ab + _ac; _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } - { uint32_t _n = ecx, _b = _n * 2u; /* 0x460035DA: rep stosw word ptr es:[edi], ax */ if (_df > 0) { MEMSET16((void*)ADDR(edi), (uint16_t)LO16(eax), _n); edi += _b; } else { MEMSET16((void*)ADDR(edi - _b + 2u), (uint16_t)LO16(eax), _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 2u; /* 0x460035DA: rep stosw word ptr es:[edi], ax */ if (_df > 0) { MEMSET16((void*)ADDR(edi), (uint16_t)LO16(eax), _n); edi += _b; } else { MEMSET16((void*)ADDR(edi - _b + 2u), (uint16_t)LO16(eax), _n); edi -= _b; } ecx = 0; } edi = POP32_VAL(esp); /* 0x460035DD: pop edi */ L_460035DE: eax = MEM32(esp + 0x4); /* 0x460035DE: mov eax, dword ptr [esp + 4] */ diff --git a/client/vendor/msvcp60/source/lifted-0010.c b/client/vendor/msvcp60/source/lifted-0010.c @@ -930,12 +930,12 @@ L_46008BAC: if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x46008BC8: shr ecx, 1 */ if (1u) { _flag_a = recomp_flags_pack((ecx >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } ecx = ecx >> 1u; /* 0x46008BC8: shr ecx, 1 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x46008BCA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x46008BCA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } { uint32_t _aa = ecx, _ab = ecx, _ac = _cf; /* 0x46008BCC: adc ecx, ecx */ ecx = _aa + _ab + _ac; _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } - { uint32_t _n = ecx, _b = _n * 2u; /* 0x46008BCE: rep stosw word ptr es:[edi], ax */ if (_df > 0) { MEMSET16((void*)ADDR(edi), (uint16_t)LO16(eax), _n); edi += _b; } else { MEMSET16((void*)ADDR(edi - _b + 2u), (uint16_t)LO16(eax), _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 2u; /* 0x46008BCE: rep stosw word ptr es:[edi], ax */ if (_df > 0) { MEMSET16((void*)ADDR(edi), (uint16_t)LO16(eax), _n); edi += _b; } else { MEMSET16((void*)ADDR(edi - _b + 2u), (uint16_t)LO16(eax), _n); edi -= _b; } ecx = 0; } eax = MEM32(esi + 0x4); /* 0x46008BD1: mov eax, dword ptr [esi + 4] */ MEM32(esi + 0x8) = ebx; /* 0x46008BD4: mov dword ptr [esi + 8], ebx */ _flag_a = (uint32_t)(MEM16(eax + ebx * 2)) << 16; _flag_b = (uint32_t)(0) << 16; @@ -1331,12 +1331,12 @@ L_46008D59: if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x46008D6A: shr ecx, 1 */ if (1u) { _flag_a = recomp_flags_pack((ecx >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } ecx = ecx >> 1u; /* 0x46008D6A: shr ecx, 1 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x46008D6C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x46008D6C: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } { uint32_t _aa = ecx, _ab = ecx, _ac = _cf; /* 0x46008D6E: adc ecx, ecx */ ecx = _aa + _ab + _ac; _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } - { uint32_t _n = ecx, _b = _n * 2u; /* 0x46008D70: rep stosw word ptr es:[edi], ax */ if (_df > 0) { MEMSET16((void*)ADDR(edi), (uint16_t)LO16(eax), _n); edi += _b; } else { MEMSET16((void*)ADDR(edi - _b + 2u), (uint16_t)LO16(eax), _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 2u; /* 0x46008D70: rep stosw word ptr es:[edi], ax */ if (_df > 0) { MEMSET16((void*)ADDR(edi), (uint16_t)LO16(eax), _n); edi += _b; } else { MEMSET16((void*)ADDR(edi - _b + 2u), (uint16_t)LO16(eax), _n); edi -= _b; } ecx = 0; } L_46008D73: eax = MEM32(esi + 0x4); /* 0x46008D73: mov eax, dword ptr [esi + 4] */ MEM32(esi + 0x8) = ebx; /* 0x46008D76: mov dword ptr [esi + 8], ebx */ @@ -1862,12 +1862,12 @@ L_46008F82: if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x46008FBC: shr ecx, 1 */ if (1u) { _flag_a = recomp_flags_pack((ecx >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } ecx = ecx >> 1u; /* 0x46008FBC: shr ecx, 1 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x46008FBE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x46008FBE: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } { uint32_t _aa = ecx, _ab = ecx, _ac = _cf; /* 0x46008FC0: adc ecx, ecx */ ecx = _aa + _ab + _ac; _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } - { uint32_t _n = ecx, _b = _n * 2u; /* 0x46008FC2: rep stosw word ptr es:[edi], ax */ if (_df > 0) { MEMSET16((void*)ADDR(edi), (uint16_t)LO16(eax), _n); edi += _b; } else { MEMSET16((void*)ADDR(edi - _b + 2u), (uint16_t)LO16(eax), _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 2u; /* 0x46008FC2: rep stosw word ptr es:[edi], ax */ if (_df > 0) { MEMSET16((void*)ADDR(edi), (uint16_t)LO16(eax), _n); edi += _b; } else { MEMSET16((void*)ADDR(edi - _b + 2u), (uint16_t)LO16(eax), _n); edi -= _b; } ecx = 0; } eax = MEM32(esi + 0x4); /* 0x46008FC5: mov eax, dword ptr [esi + 4] */ MEM32(esi + 0x8) = ebx; /* 0x46008FC8: mov dword ptr [esi + 8], ebx */ _flag_a = (uint32_t)(MEM16(eax + ebx * 2)) << 16; _flag_b = (uint32_t)(0) << 16; @@ -2912,12 +2912,12 @@ L_46009420: if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x4600942E: shr ecx, 1 */ if (1u) { _flag_a = recomp_flags_pack((ecx >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } ecx = ecx >> 1u; /* 0x4600942E: shr ecx, 1 */ - { uint32_t _n = ecx, _b = _n * 4u; /* 0x46009430: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x46009430: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } { uint32_t _aa = ecx, _ab = ecx, _ac = _cf; /* 0x46009432: adc ecx, ecx */ ecx = _aa + _ab + _ac; _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } - { uint32_t _n = ecx, _b = _n * 2u; /* 0x46009434: rep stosw word ptr es:[edi], ax */ if (_df > 0) { MEMSET16((void*)ADDR(edi), (uint16_t)LO16(eax), _n); edi += _b; } else { MEMSET16((void*)ADDR(edi - _b + 2u), (uint16_t)LO16(eax), _n); edi -= _b; } ecx = 0; } + if (ecx) { uint32_t _n = ecx, _b = _n * 2u; /* 0x46009434: rep stosw word ptr es:[edi], ax */ if (_df > 0) { MEMSET16((void*)ADDR(edi), (uint16_t)LO16(eax), _n); edi += _b; } else { MEMSET16((void*)ADDR(edi - _b + 2u), (uint16_t)LO16(eax), _n); edi -= _b; } ecx = 0; } L_46009437: eax = MEM32(ebp + 0xC); /* 0x46009437: mov eax, dword ptr [ebp + 0xc] */ ecx = MEM32(esi + 0x4); /* 0x4600943A: mov ecx, dword ptr [esi + 4] */