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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5f4c5d
add esp, 0xffffff80
mov edx, dword [esp + 0x84]
mov ebx, dword [edx + 4]
mov eax, dword [esp + 0x88]
cmp eax, ebx
jg 0x5f4ba8
xor ecx, ecx
jmp 0x5f48db
mov ebx, dword [esp + 0x28]
lea ecx, [ebx + 1]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
cmp eax, ecx
jle 0x5f4a75
mov ebx, dword [edx + 4]
mov ebp, dword [edx]
cmp ecx, ebx
jae 0x5f4b9f
mov dword [esp + 0x28], ecx
lea eax, [ecx + ecx*4]
lea esi, [ebp + eax*4]
lea edi, [esp + 0x6c]
call fcn.0046346e
mov eax, dword [edx + 0xc]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x28]
add ecx, eax
mov dword [esp + 0x3c], ecx
add ecx, 1
mov dword [esp + 0x2c], ecx
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x38], ecx
mov edx, dword [edx + 0x14]
mov ebp, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
lea eax, [0x6560e0]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ecx
call fcn.0040fd60
mov eax, dword [esp + 0x28]
mov ecx, eax
sar eax, 0x1f
mov edx, dword [esp + 0x40]
add edx, ecx
mov edx, dword [esp + 0x38]
adc edx, eax
mov eax, dword [esp + 0x3c]
add eax, 1
adc edx, 0
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x2c]
cmp dword [eax], ebx
xchg ebp, ebx
sete bl
xchg ebp, ebx
cmp dword [eax + 4], edx
sete al
and ebp, eax
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x5f49b6
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x70]
lea ebp, [0x6560e0]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.004107a0
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x44], edx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ebx
mov ebp, dword [esp + 0x84]
mov esi, dword [ebp + 0x18]
lea edi, [0x6563a0]
mov dword [esp], edi
mov dword [esp + 4], esi
lea esi, [esp + 0x4c]
mov dword [esp + 8], esi
call fcn.0040c6e0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
cmp dword [eax], ecx
sete cl
mov edx, dword [esp + 0x34]
cmp dword [eax + 4], edx
sete al
and ecx, eax
test cl, cl
jne 0x5f4a2c
jmp 0x5f48c6
mov eax, dword [esp + 0x48]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x18]
lea edx, [0x6563a0]
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 8], ecx
call fcn.0040d120
jmp 0x5f48c6
mov ecx, dword [edx + 4]
mov ebx, dword [edx]
mov ebp, dword [edx + 8]
cmp eax, ecx
ja 0x5f4b9a
lea edx, [0x674f60]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
lea edx, [eax + eax*4]
sub ebp, eax
xchg ebp, ebx
neg ebx
xchg ebp, ebx
shl edx, 2
sar ebp, 0x1f
and edx, ebp
add edx, ebx
mov dword [esp + 0xc], edx
sub ecx, eax
mov dword [esp + 0x10], ecx
call fcn.00410f90
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x88]
sub ecx, edx
jmp 0x5f4ad8
mov ebp, dword [esp + 0x24]
lea ecx, [ebp + 1]
mov eax, ebx
mov ebx, dword [eax + 4]
mov ebp, dword [eax + 8]
mov esi, dword [eax]
cmp ecx, ebx
jge 0x5f4b2b
jae 0x5f4b91
mov dword [esp + 0x24], ecx
lea ebx, [ecx + ecx*4]
lea edi, [esi + ebx*4]
mov ebx, dword [0xbe5550]
test ebx, ebx
jne 0x5f4b09
mov ebx, eax
xor eax, eax
call fcn.00462f8b
jmp 0x5f4acf
lea eax, [0x674f60]
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.00411060
mov edx, dword [esp + 0x88]
mov ebx, dword [esp + 0x84]
jmp 0x5f4acf
sub ebx, edx
cmp ebp, ebx
jb 0x5f4b88
mov dword [eax + 4], ebx
mov ecx, dword [eax + 0xc]
mov ebx, edx
add edx, ecx
mov ebp, dword [eax + 0x10]
mov esi, ebx
sar ebx, 0x1f
add esi, ecx
adc ebx, ebp
cmp edx, ecx
setb cl
cmp ebp, ebx
xchg ebp, ebx
sete bl
xchg ebp, ebx
xchg esi, ebx
seta bl
xchg esi, ebx
and ecx, ebp
or esi, ecx
xchg esi, eax
test al, al
xchg esi, eax
jne 0x5f4b70
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
sub esp, 0xffffff80
ret
lea eax, [0x654240]
mov dword [esp], eax
lea eax, [0xa547c4]
mov dword [esp + 4], eax
call fcn.00437060
mov ecx, ebx
mov edx, ebp
call fcn.00462da0
mov eax, ecx
mov ecx, ebx
call fcn.00462d60
call fcn.00462dc0
mov eax, ecx
mov ecx, ebx
call fcn.00462d60
mov dword [esp + 0x30], ebx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp], eax
call fcn.00409100
mov eax, dword [esp + 4]
lea ecx, [0x653980]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00409100
mov eax, dword [esp + 4]
lea ecx, [0x653980]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
lea eax, [0x6947d7]
mov dword [esp], eax
mov dword [esp + 4], 0x28
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004beb10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00409210
mov eax, dword [esp + 8]
lea ecx, [0x654240]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00437060
nop
call fcn.004618d0
jmp fcn.005f4890