Function at 0x4ff870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x98]
cmp eax, dword [ecx + 8]
jbe 0x500621
sub esp, 0x118
mov eax, dword [esp + 0x130]
lea ecx, [0x7cb4bc]
cmp eax, ecx
je 0x4ff8a8
xor eax, eax
jmp 0x4ff8cb
mov dword [esp], ecx
mov eax, dword [esp + 0x11c]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x134]
mov dword [esp + 8], ecx
call fcn.00404110
movzx eax, byte [esp + 0xc]
test al, al
je 0x4ff9db
nop
nop
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x120]
mov edx, eax
sub eax, ecx
mov ebx, dword [esp + 0x13c]
mov ebp, dword [esp + 0x124]
sub ebx, ebp
mov edi, dword [esp + 0x128]
add eax, edi
mov esi, dword [esp + 0x12c]
add ebx, esi
cmp edi, ecx
jg 0x4ff917
mov ebx, 1
jmp 0x4ff9fc
cmp esi, ebp
jg 0x4ff925
mov ebx, 1
jmp 0x4ff9fc
cmp edx, eax
jl 0x4ff933
mov ebx, 1
jmp 0x4ff9fc
mov edx, dword [esp + 0x13c]
cmp edx, ebx
jl 0x4ff948
mov ebx, 1
jmp 0x4ff9fc
cmp ecx, eax
jge 0x4ff9d4
mov eax, dword [esp + 0x138]
cmp edi, eax
jle 0x4ff9cd
cmp ebp, ebx
jge 0x4ff9c6
cmp esi, edx
jle 0x4ff9bf
cmp ebp, edx
jg 0x4ff96d
jne 0x4ff9ac
cmp ecx, eax
jle 0x4ff99d
lea ebx, [edi - 1]
lea edi, [ecx - 1]
dec esi
lea ecx, [ebp - 1]
mov dword [esp + 0x108], eax
mov eax, 0xffffffff
mov dword [esp + 0x44], eax
mov ebp, esi
mov esi, ecx
mov ecx, ebx
mov eax, dword [esp + 0x108]
mov ebx, dword [esp + 0x124]
jmp 0x4ff9b9
mov ebx, ebp
mov ebx, 1
mov dword [esp + 0x44], ebx
mov ebx, ebp
jmp 0x4ff9b9
mov ebx, ebp
mov ebx, 1
mov dword [esp + 0x44], ebx
mov ebx, ebp
mov ebx, dword [esp + 0x44]
jmp 0x4ff9fc
mov ebx, 1
jmp 0x4ff9fc
mov ebx, 1
jmp 0x4ff9fc
mov ebx, 1
jmp 0x4ff9fc
mov ebx, 1
jmp 0x4ff9fc
mov ebx, 1
mov ebp, dword [esp + 0x124]
mov ecx, dword [esp + 0x120]
mov edi, dword [esp + 0x128]
mov esi, dword [esp + 0x12c]
mov dword [esp + 0xa4], ebp
mov dword [esp + 0x80], ecx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x78], esi
nop
mov eax, dword [esp + 0x11c]
mov edx, dword [eax + 0x14]
sub ebp, edx
imul ebp, dword [eax + 0xc]
mov dword [esp + 0xc4], ebp
mov edx, dword [eax + 0x10]
mov dword [esp + 0xc0], edx
lea eax, [0x745cc0]
mov dword [esp], eax
mov ebx, dword [esp + 0x130]
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x134]
mov dword [esp + 8], eax
call fcn.004092b0
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x13c]
add ecx, eax
mov edx, dword [esp + 0x124]
sub ecx, edx
mov ebx, dword [esp + 0x14c]
add ebx, eax
sub ebx, edx
mov edx, dword [esp + 0x80]
mov ebp, dword [esp + 0x138]
add ebp, edx
mov esi, dword [esp + 0x120]
sub ebp, esi
mov dword [esp + 0x5c], ebp
mov edi, dword [esp + 0x148]
add edi, edx
sub edi, esi
mov dword [esp + 0x88], edi
mov esi, dword [esp + 0x4c]
sub esi, edx
add esi, ebp
mov dword [esp + 0x7c], esi
mov esi, dword [esp + 0xc]
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x114], ebp
mov ebp, dword [esp + 0xc0]
sub edx, ebp
mov ebp, dword [esp + 0xc4]
lea edx, [ebp + edx*4]
test esi, esi
je 0x4ffc2d
mov dword [esp + 0x54], esi
mov ebp, dword [esp + 0x140]
test ebp, ebp
jne 0x4ffb28
mov ebx, dword [esp + 0x150]
test ebx, ebx
jne 0x4ffb14
mov ebx, dword [esp + 0x5c]
mov edi, dword [esp + 0x7c]
mov ebp, dword [esp + 0x114]
jmp 0x50047a
mov ebx, dword [esp + 0x5c]
mov edi, dword [esp + 0x7c]
mov ebp, dword [esp + 0x114]
jmp 0x500368
mov dword [esp + 0x20], ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x18], edx
lea eax, [0x745cc0]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x144]
mov dword [esp + 8], eax
call fcn.004092b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x4ffc13
mov dword [esp + 0x110], ecx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x150]
test edx, edx
jne 0x4ffbc5
mov esi, dword [esp + 0x88]
mov edi, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x6c], eax
mov dword [esp + 0xd0], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x8c], ecx
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0xd0]
jmp 0x500132
mov esi, dword [esp + 0x88]
mov edi, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x68], eax
mov dword [esp + 0xe8], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x8c], ecx
mov eax, dword [esp + 0xf0]
mov ecx, dword [esp + 0xe8]
jmp 0x4fff7b
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x60]
mov edi, dword [esp + 0x88]
mov esi, dword [esp + 0x140]
mov ebp, dword [esp + 0x7c]
jmp 0x4ffc70
mov edx, dword [esp + 0x11c]
mov edi, dword [edx + 0xc]
mov edx, dword [esp + 0x44]
imul edi, edx
mov esi, dword [esp + 0x8c]
add esi, edi
add eax, edx
add ecx, edx
mov edi, dword [esp + 0x60]
add edi, edx
mov edx, esi
mov ebx, edi
mov esi, dword [esp + 0x140]
mov edi, dword [esp + 0x88]
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 0x78]
cmp ebx, eax
je 0x4ffca6
mov dword [esp + 0x64], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x100]
jmp 0x4ffce4
add esp, 0x118
ret
mov eax, dword [esp + 0x44]
lea edx, [ebp + eax*4]
mov ebx, dword [esp + 0x90]
lea ebp, [eax + ebx]
mov ebx, dword [esp + 0x24]
lea edi, [eax + ebx]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x78]
mov esi, dword [esp + 0x140]
mov dword [esp + 0x90], ebp
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x90]
cmp edx, ebp
je 0x4ffc3a
mov dword [esp + 0x24], edi
test esi, esi
jne 0x4ffd11
mov dword [esp + 0xf8], eax
mov eax, 0xffff
mov dword [esp + 0x48], eax
jmp 0x4ffd4f
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x144]
mov dword [esp], ecx
mov dword [esp + 4], edi
mov edx, dword [esp + 0x60]
mov dword [esp + 8], edx
call eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x10]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x90]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x130]
mov ebx, dword [eax + 0x10]
mov ebp, dword [esp + 0x134]
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call ebx
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x10]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x84], ecx
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 0x11c]
mov esi, dword [ebp]
mov edi, dword [ebp + 8]
mov ebp, dword [esp + 0x30]
lea ecx, [ebp + 4]
cmp edi, ecx
jb 0x4fff1f
cmp ebp, ecx
ja 0x4fff18
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x150]
test ecx, ecx
jne 0x4ffeb9
movzx edi, byte [esi + ebp]
movzx ecx, byte [esi + ebp + 1]
mov dword [esp + 0xbc], ecx
movzx ecx, byte [esi + ebp + 2]
mov dword [esp + 0xb8], ecx
movzx ecx, byte [esi + ebp + 3]
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x48]
imul edx, ecx
mov dword [esp + 0xb0], edx
mov eax, 0x80008001
mul edx
shr edx, 0xf
add edx, 0xffff0001
neg edx
imul edi, edx
mov eax, edi
shl edi, 8
add edi, eax
imul ebx, ecx
add ebx, edi
mov eax, 0x80008001
mov edi, edx
mul ebx
shr edx, 0x17
mov byte [esi + ebp], dl
mov edx, dword [esp + 0xbc]
imul edx, edi
mov ebx, edx
shl edx, 8
add edx, ebx
mov ebx, dword [esp + 0x58]
imul ebx, ecx
add edx, ebx
mov eax, 0x80008001
mul edx
shr edx, 0x17
mov byte [esi + ebp + 1], dl
mov edx, dword [esp + 0xb8]
imul edx, edi
mov ebx, edx
shl edx, 8
add edx, ebx
mov ebx, dword [esp + 0x84]
imul ecx, ebx
add ecx, edx
mov eax, 0x80008001
mul ecx
shr edx, 0x17
mov byte [esi + ebp + 2], dl
mov ecx, dword [esp + 0xb4]
imul ecx, edi
mov edx, ecx
shl ecx, 8
add ecx, edx
mov edx, dword [esp + 0xb0]
lea eax, [edx + ecx]
mov ecx, 0x80008001
mul ecx
shr edx, 0x17
mov byte [esi + ebp + 3], dl
mov ecx, dword [esp + 0x150]
jmp 0x4ffcad
mov dword [esp + 0x50], edx
mov edi, dword [esp + 0x48]
imul ebx, edi
mov eax, 0x80008001
mul ebx
shr edx, 0x17
mov byte [esi + ebp], dl
mov edx, dword [esp + 0x58]
imul edx, edi
mov eax, 0x80008001
mul edx
shr edx, 0x17
mov byte [esi + ebp + 1], dl
mov edx, dword [esp + 0x84]
imul edx, edi
mov eax, 0x80008001
mul edx
shr edx, 0x17
mov byte [esi + ebp + 2], dl
mov edx, dword [esp + 0x50]
imul edi, edx
mov eax, 0x80008001
mul edi
shr edx, 0x17
mov byte [esi + ebp + 3], dl
jmp 0x4ffcad
mov eax, ebp
call fcn.00456c00
mov edx, ecx
mov ebx, edi
call fcn.00456be0
mov ebx, dword [esp + 0x44]
add ebp, ebx
mov esi, dword [esp + 0x20]
add esi, ebx
mov ecx, dword [esp + 0x60]
add ecx, ebx
mov eax, dword [esp + 0x11c]
mov eax, dword [eax + 0xc]
imul eax, ebx
mov ebx, dword [esp + 0x8c]
add eax, ebx
mov ebx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x68], ebp
mov dword [esp + 0x8c], eax
mov dword [esp + 0x60], ecx
mov ebp, esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x110]
mov esi, dword [esp + 0x88]
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x68]
cmp edx, ebp
je 0x4fffa5
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xe0]
jmp 0x50003c
add esp, 0x118
ret
mov ebx, dword [esp + 0xbc]
imul esi, ebx
mov ebp, eax
mov eax, 0x80008001
mul esi
shr edx, 0x17
mov eax, dword [esp + 0x34]
mov byte [ecx + eax], dl
imul edi, ebx
mov edx, eax
mov eax, 0x80008001
mov esi, edx
mul edi
shr edx, 0x17
mov byte [ecx + esi + 1], dl
mov eax, dword [esp + 0xb8]
imul eax, ebx
mov edx, eax
mov eax, 0x80008001
mul edx
shr edx, 0x17
mov byte [ecx + esi + 2], dl
imul ebp, ebx
mov eax, 0x80008001
mul ebp
shr edx, 0x17
mov byte [ecx + esi + 3], dl
mov eax, dword [esp + 0x44]
lea ecx, [esi + eax*4]
mov edx, dword [esp + 0x94]
lea ebx, [eax + edx]
mov edx, dword [esp + 0x28]
lea esi, [edx + eax]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x78]
mov ebp, dword [esp + 0x68]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x110]
cmp ebx, edi
je 0x4fff28
mov dword [esp + 0x94], ebx
mov dword [esp + 0x28], esi
mov edx, dword [eax + 0x1c]
mov dword [esp], ecx
mov dword [esp + 4], esi
mov ebx, dword [esp + 0x60]
mov dword [esp + 8], ebx
call edx
movzx eax, word [esp + 0x12]
mov dword [esp + 0xbc], eax
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx + 0x1c]
mov ebx, dword [esp + 0x114]
mov dword [esp], ebx
mov ebp, dword [esp + 0x94]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x20]
mov dword [esp + 8], esi
call edx
mov eax, dword [esp + 0x11c]
mov ecx, dword [eax]
mov ebx, dword [eax + 8]
mov edx, dword [esp + 0x34]
lea ebp, [edx + 4]
movzx esi, word [esp + 0xc]
movzx edi, word [esp + 0xe]
movzx eax, word [esp + 0x10]
mov dword [esp + 0xb8], eax
movzx eax, word [esp + 0x12]
cmp ebx, ebp
jb 0x5000d8
cmp edx, ebp
jbe 0x4fffac
mov eax, edx
mov ecx, ebp
call fcn.00456c00
mov edx, ebp
call fcn.00456be0
mov ebx, dword [esp + 0x44]
add ebp, ebx
mov esi, dword [esp + 0x20]
add esi, ebx
mov ecx, dword [esp + 0x60]
add ecx, ebx
mov eax, dword [esp + 0x11c]
mov eax, dword [eax + 0xc]
imul eax, ebx
mov ebx, dword [esp + 0x8c]
add eax, ebx
mov ebx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x8c], eax
mov dword [esp + 0x60], ecx
mov ebp, esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x110]
mov esi, dword [esp + 0x88]
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x6c]
cmp edx, ebp
je 0x4fffa5
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xc8]
jmp 0x500292
mov dword [esp + 0xb4], eax
movzx ebx, byte [ecx + edx]
movzx ebp, byte [ecx + edx + 1]
movzx eax, byte [ecx + edx + 2]
mov dword [esp + 0xb0], eax
movzx eax, byte [ecx + edx + 3]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xbc]
imul esi, eax
mov dword [esp + 0xa8], esi
mov eax, 0x80008001
mul esi
shr edx, 0xf
lea eax, [edx - 0xffff]
neg eax
mov edx, dword [esp + 0xbc]
imul edi, edx
imul ebx, eax
mov dword [esp + 0xbc], ebx
shl ebx, 8
mov esi, dword [esp + 0xbc]
add ebx, esi
add ebx, edi
mov esi, eax
mov eax, 0x80008001
mov edi, edx
mul ebx
shr edx, 0x17
mov eax, dword [esp + 0x38]
mov byte [ecx + eax], dl
mov edx, dword [esp + 0xb8]
imul edx, edi
imul ebp, esi
mov ebx, ebp
shl ebp, 8
add ebx, ebp
add edx, ebx
mov ebx, eax
mov eax, 0x80008001
mul edx
shr edx, 0x17
mov byte [ecx + ebx + 1], dl
mov eax, dword [esp + 0xb4]
imul edi, eax
mov eax, dword [esp + 0xb0]
imul eax, esi
mov edx, eax
shl eax, 8
add eax, edx
add eax, edi
mov edx, eax
mov eax, 0x80008001
mul edx
shr edx, 0x17
mov byte [ecx + ebx + 2], dl
mov eax, dword [esp + 0xac]
imul eax, esi
mov edx, eax
shl eax, 8
add eax, edx
mov edx, dword [esp + 0xa8]
add eax, edx
mov edx, eax
mov eax, 0x80008001
mul edx
shr edx, 0x17
mov byte [ecx + ebx + 3], dl
mov eax, dword [esp + 0x44]
lea ecx, [ebx + eax*4]
mov edx, dword [esp + 0x98]
lea ebx, [eax + edx]
mov edx, dword [esp + 0x2c]
lea esi, [edx + eax]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x78]
mov ebp, dword [esp + 0x6c]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x110]
cmp ebx, edi
je 0x5000df
mov dword [esp + 0x98], ebx
mov dword [esp + 0x2c], esi
mov edx, dword [eax + 0x1c]
mov dword [esp], ecx
mov dword [esp + 4], esi
mov ebx, dword [esp + 0x60]
mov dword [esp + 8], ebx
call edx
movzx eax, word [esp + 0x12]
mov dword [esp + 0xbc], eax
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx + 0x1c]
mov ebx, dword [esp + 0x114]
mov dword [esp], ebx
mov ebp, dword [esp + 0x98]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x20]
mov dword [esp + 8], esi
call edx
mov eax, dword [esp + 0x11c]
mov ecx, dword [eax]
mov ebx, dword [eax + 8]
mov edx, dword [esp + 0x38]
lea ebp, [edx + 4]
movzx esi, word [esp + 0x12]
movzx edi, word [esp + 0xc]
movzx eax, word [esp + 0xe]
mov dword [esp + 0xb8], eax
movzx eax, word [esp + 0x10]
cmp ebx, ebp
jb 0x50032e
cmp edx, ebp
jbe 0x500160
mov eax, edx
mov ecx, ebp
call fcn.00456c00
mov edx, ebp
call fcn.00456be0
mov edx, dword [esp + 0x44]
add eax, edx
mov ebx, dword [esp + 0x20]
add ebx, edx
mov ebp, dword [esp + 0x11c]
mov ebp, dword [ebp + 0xc]
imul ebp, edx
mov edx, dword [esp + 0x8c]
add edx, ebp
mov ebp, dword [esp + 0x5c]
mov ebp, dword [esp + 0x114]
mov ecx, ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x78]
cmp ecx, eax
je 0x500381
mov dword [esp + 0x70], eax
mov dword [esp + 0x8c], edx
jmp 0x5003d8
add esp, 0x118
ret
shr si, 8
xchg esi, eax
mov byte [ecx + edx], al
xchg esi, eax
shr di, 8
xchg edi, eax
mov byte [ecx + edx + 1], al
xchg edi, eax
movzx ebx, word [esp + 0x16]
shr bx, 8
mov byte [ecx + edx + 2], bl
shr ax, 8
mov byte [ecx + edx + 3], al
mov eax, dword [esp + 0x44]
lea edx, [edx + eax*4]
mov ecx, dword [esp + 0x9c]
lea ebx, [eax + ecx]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x78]
mov ebp, dword [esp + 0x114]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x7c]
cmp ebx, edi
je 0x500335
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x3c], edx
mov eax, dword [esi + 0x1c]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov ecx, dword [esp + 0x20]
mov dword [esp + 8], ecx
call eax
mov eax, dword [esp + 0x11c]
mov ecx, dword [eax]
mov ebx, dword [eax + 8]
mov edx, dword [esp + 0x3c]
lea ebp, [edx + 4]
movzx esi, word [esp + 0xc]
movzx edi, word [esp + 0xe]
movzx eax, word [esp + 0x10]
mov word [esp + 0x16], ax
movzx eax, word [esp + 0x12]
cmp ebx, ebp
jb 0x500440
cmp edx, ebp
jbe 0x500388
mov eax, edx
mov ecx, ebp
call fcn.00456c00
mov edx, ebp
call fcn.00456be0
mov edx, dword [esp + 0x44]
add eax, edx
mov ebx, dword [esp + 0x20]
add ebx, edx
mov ebp, dword [esp + 0x11c]
mov ebp, dword [ebp + 0xc]
imul ebp, edx
mov edx, dword [esp + 0x8c]
add edx, ebp
mov ebp, dword [esp + 0x5c]
mov ebp, dword [esp + 0x114]
mov ecx, ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x78]
cmp ecx, eax
je 0x500381
mov dword [esp + 0x74], eax
mov dword [esp + 0x8c], edx
jmp 0x5005af
mov dword [esp + 0xb8], eax
mov dword [esp + 0xb4], esi
movzx ebx, byte [ecx + edx]
movzx ebp, byte [ecx + edx + 1]
movzx eax, byte [ecx + edx + 2]
mov dword [esp + 0xb0], eax
movzx eax, byte [ecx + edx + 3]
mov dword [esp + 0xac], eax
add esi, 0xffff0001
xchg esi, ebx
neg ebx
xchg esi, ebx
imul ebx, esi
mov dword [esp + 0xa8], ebx
shl ebx, 8
mov eax, dword [esp + 0xa8]
add eax, ebx
mov ebx, eax
mov eax, 0x80008001
mul ebx
shr edx, 0xf
lea eax, [edx + edi]
shr eax, 8
mov edx, dword [esp + 0x40]
mov byte [ecx + edx], al
imul ebp, esi
mov eax, ebp
shl ebp, 8
add eax, ebp
mov ebx, eax
mov eax, 0x80008001
mov ebp, edx
mul ebx
shr edx, 0xf
mov eax, dword [esp + 0xbc]
add eax, edx
shr eax, 8
mov byte [ecx + ebp + 1], al
mov eax, dword [esp + 0xb0]
imul eax, esi
mov edx, eax
shl eax, 8
add eax, edx
mov edx, eax
mov eax, 0x80008001
mul edx
shr edx, 0xf
mov eax, dword [esp + 0xb8]
add eax, edx
shr eax, 8
mov byte [ecx + ebp + 2], al
mov eax, dword [esp + 0xac]
imul esi, eax
mov eax, esi
shl esi, 8
add eax, esi
mov edx, eax
mov eax, 0x80008001
mul edx
shr edx, 0xf
mov eax, dword [esp + 0xb4]
add eax, edx
shr eax, 8
mov byte [ecx + ebp + 3], al
mov eax, dword [esp + 0x44]
lea edx, [ebp + eax*4]
mov ecx, dword [esp + 0xa0]
lea ebx, [eax + ecx]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov ebp, dword [esp + 0x114]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x7c]
cmp ebx, edi
je 0x500447
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x40], edx
mov eax, dword [esi + 0x1c]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov ecx, dword [esp + 0x20]
mov dword [esp + 8], ecx
call eax
mov eax, dword [esp + 0x11c]
mov ecx, dword [eax]
mov ebx, dword [eax + 8]
mov edx, dword [esp + 0x40]
lea ebp, [edx + 4]
movzx esi, word [esp + 0x12]
movzx edi, word [esp + 0xc]
movzx eax, word [esp + 0xe]
mov dword [esp + 0xbc], eax
movzx eax, word [esp + 0x10]
cmp ebx, ebp
jb 0x500619
cmp edx, ebp
jbe 0x50049a
mov eax, edx
mov ecx, ebp
call fcn.00456c00
mov edx, ebp
call fcn.00456be0
nop
call fcn.00455690
jmp fcn.004ff870