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

Disassembly:
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x48]
mov ebx, ecx
push edi
sar ebx, 8
mov edx, dword [esi + 0x78]
mov edi, edx
mov eax, dword [esi + 0x54]
sar edi, 8
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x24], ebx
cmp edi, eax
jl 0x1005f6d7
cmp ebx, eax
jl 0x1005f6d7
mov eax, dword [esp + 0x14]
pop edi
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], ecx
pop esi
pop ebx
add esp, 0x3c
ret 4
mov eax, dword [esi + 0x50]
cmp edi, eax
jge 0x1005f6e2
cmp ebx, eax
jl 0x1005f6c4
mov eax, dword [esi + 0x74]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x14]
sar ecx, 8
mov dword [esp + 0x34], ecx
movzx ecx, al
mov dword [esp + 0x18], esi
sub dword [esp + 0x18], eax
mov esi, dword [esp + 0x40]
push ebp
mov ebp, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x40]
sub eax, edx
movzx ecx, dl
mov edx, dword [esp + 0x38]
sar ebp, 8
mov dword [esp + 0x50], ecx
mov dword [esp + 0x20], eax
cmp ebp, edx
jne 0x1005f72e
cmp edi, ebx
je 0x1005fb04
test eax, eax
jne 0x1005f7bb
cmp dword [esi + 0x60], eax
jne 0x1005f750
cmp dword [esi + 0x58], eax
jne 0x1005f745
cmp dword [esi + 0x5c], eax
je 0x1005f750
mov ecx, esi
call fcn.1005f610
mov edx, dword [esp + 0x38]
mov ecx, dword [esi + 0x48]
mov eax, edx
dec ecx
mov dword [esi + 0x58], 0
cmp edx, ecx
mov dword [esi + 0x5c], 0
mov dword [esi + 0x44], ebx
cmovle eax, ecx
mov dword [esi + 0x40], eax
cmp ebx, dword [esi + 0x54]
jge 0x1005f79b
cmp ebx, dword [esi + 0x50]
jl 0x1005f79b
cmp edx, dword [esi + 0x4c]
jge 0x1005f79b
xor eax, eax
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x18]
pop ebp
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x3c]
pop edi
mov dword [esi + 0x78], eax
pop esi
pop ebx
add esp, 0x3c
ret 4
mov eax, 1
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x18]
pop ebp
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x3c]
pop edi
mov dword [esi + 0x78], eax
pop esi
pop ebx
add esp, 0x3c
ret 4
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x1005f8ec
mov edx, dword [esi + 0x5c]
mov ebx, dword [esi + 0x58]
mov ecx, dword [esi + 0x60]
test eax, eax
jle 0x1005f870
nop dword [eax + eax]
sub edx, dword [esp + 0x50]
mov eax, 0x100
sub eax, dword [esp + 0x50]
add edx, 0x100
imul eax, dword [esp + 0x10]
inc edi
mov dword [esi + 0x5c], edx
mov dword [esp + 0x50], 0
lea eax, [ebx + eax*2]
mov dword [esi + 0x58], eax
test ecx, ecx
jne 0x1005f81d
test eax, eax
jne 0x1005f816
test edx, edx
je 0x1005f81d
mov ecx, esi
call fcn.1005f610
mov ecx, dword [esi + 0x48]
mov eax, ebp
dec ecx
mov dword [esi + 0x58], 0
cmp ebp, ecx
mov dword [esi + 0x5c], 0
mov dword [esi + 0x44], edi
cmovle eax, ecx
mov dword [esi + 0x40], eax
cmp edi, dword [esi + 0x54]
jge 0x1005f84f
cmp edi, dword [esi + 0x50]
jl 0x1005f84f
cmp ebp, dword [esi + 0x4c]
jge 0x1005f84f
xor ecx, ecx
jmp 0x1005f854
mov ecx, 1
xor edx, edx
mov dword [esi + 0x60], ecx
xor ebx, ebx
cmp edi, dword [esp + 0x28]
jne 0x1005f7e0
jmp 0x1005fb04
mov eax, dword [esp + 0x10]
dec edi
imul eax, dword [esp + 0x50]
sub edx, dword [esp + 0x50]
mov dword [esi + 0x5c], edx
mov dword [esp + 0x50], 0x100
add eax, eax
sub ebx, eax
mov dword [esi + 0x58], ebx
test ecx, ecx
jne 0x1005f8a3
test ebx, ebx
jne 0x1005f89c
test edx, edx
je 0x1005f8a3
mov ecx, esi
call fcn.1005f610
mov ecx, dword [esi + 0x48]
mov eax, ebp
dec ecx
mov dword [esi + 0x58], 0
cmp ebp, ecx
mov dword [esi + 0x5c], 0
mov dword [esi + 0x44], edi
cmovle eax, ecx
mov dword [esi + 0x40], eax
cmp edi, dword [esi + 0x54]
jge 0x1005f8d5
cmp edi, dword [esi + 0x50]
jl 0x1005f8d5
cmp ebp, dword [esi + 0x4c]
jge 0x1005f8d5
xor ecx, ecx
jmp 0x1005f8da
mov ecx, 1
xor edx, edx
mov dword [esi + 0x60], ecx
xor ebx, ebx
cmp edi, dword [esp + 0x28]
jne 0x1005f870
jmp 0x1005fb04
imul eax, dword [esp + 0x10]
imul ebx, ecx
sub ebx, eax
cmp ebp, edx
je 0x1005f90a
mov eax, 0xffffff
cdq
idiv dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
jmp 0x1005f912
mov dword [esp + 0x2c], 0
cmp edi, dword [esp + 0x28]
je 0x1005f928
mov eax, 0xffffff
cdq
idiv dword [esp + 0x20]
mov dword [esp + 0x30], eax
jmp 0x1005f930
mov dword [esp + 0x30], 0
mov eax, dword [esi + 0x58]
mov edx, dword [esi + 0x5c]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x60]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
shl eax, 8
mov dword [esp + 0x34], eax
jmp 0x1005f952