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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x58]
cmp eax, dword [ecx + 8]
jbe 0x487c3a
sub esp, 0xd8
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0
mov ecx, dword [esp + 0xf0]
test ecx, ecx
setne cl
mov byte [esp + 0x2a], cl
jne 0x4875d5
jmp 0x4875ef
mov ecx, dword [esp + 0xf0]
test byte [ecx], al
mov ecx, dword [ecx + 0x20]
test ecx, ecx
setne cl
xor ecx, 1
mov byte [esp + 0x2a], cl
jmp 0x4875f1
jmp 0x4875f1
movzx ecx, byte [esp + 0x2a]
mov byte [esp + 0x2b], cl
test cl, cl
jne 0x487600
jmp 0x487617
mov ecx, dword [esp + 0xf0]
test byte [ecx], al
mov ecx, dword [ecx + 4]
test ecx, ecx
setne cl
mov byte [esp + 0x2b], cl
jmp 0x487619
jmp 0x487619
movzx ecx, byte [esp + 0x2b]
test cl, cl
jne 0x487627
jmp 0x487708
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 0xf0]
test byte [eax], al
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0048c060
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x48768d
jmp 0x487706
mov edi, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
lea edx, [0x4be018]
cmp ecx, edx
je 0x4876a4
jmp 0x487c1d
mov dword [esp + 0x4c], edi
test byte [edi], al
mov dword [edi + 4], 5
mov ecx, dword [0x54cbf0]
test ecx, ecx
je 0x4876bd
jmp 0x4876c7
lea eax, [0x4b1072]
mov dword [edi], eax
jmp 0x4876d4
lea eax, [0x4b1072]
call fcn.0045d8e0
jmp 0x4876d4
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x6c], eax
mov dword [esp + 0xf4], 0
mov eax, dword [esp + 0x6c]
lea ecx, [0x4be018]
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xfc], eax
add esp, 0xd8
ret
jmp 0x48770a
jmp 0x48770a
lea edi, [esp + 0xb4]
xor eax, eax
call fcn.0045dab7
lea edi, [esp + 0xb4]
mov dword [esp + 0x60], edi
test byte [edi], al
xor eax, eax
call fcn.0045dab7
mov edi, dword [esp + 0x60]
test byte [edi], al
mov ecx, dword [esp + 0xf0]
test byte [ecx], al
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edi + 4], ecx
mov ecx, dword [0x54cbf0]
test ecx, ecx
je 0x48774f
jmp 0x487753
mov dword [edi], eax
jmp 0x48775a
call fcn.0045d8e0
jmp 0x48775a
mov ecx, dword [esp + 0x60]
test byte [ecx], al
mov edx, dword [esp + 0xf0]
test byte [edx], al
mov eax, dword [edx + 8]
mov ebx, dword [edx + 0x10]
mov edx, dword [edx + 0xc]
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x10], ebx
mov edx, dword [0x54cbf0]
lea edi, [ecx + 8]
test edx, edx
je 0x487787
jmp 0x48778c
mov dword [ecx + 8], eax
jmp 0x487793
call fcn.0045d8e0
jmp 0x487793
mov ecx, dword [esp + 0x60]
test byte [ecx], al
mov edx, dword [esp + 0xf0]
test byte [edx], al
lea edi, [ecx + 0x20]
mov ebx, dword [0x54cbf0]
mov eax, dword [edx + 0x20]
test ebx, ebx
je 0x4877b4
jmp 0x4877b9
mov dword [ecx + 0x20], eax
jmp 0x4877c0
call fcn.0045d8e0
jmp 0x4877c0
mov eax, dword [esp + 0x60]
mov dword [esp + 0x48], eax
test byte [eax], al
mov eax, dword [eax + 8]
test eax, eax
jne 0x4877d3
jmp 0x4877d8
jmp 0x4878d6
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 0x48]
test byte [eax], al
mov eax, dword [eax + 0x20]
mov dword [esp + 0x5c], eax
mov dword [esp], eax
call fcn.00486c50
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], edx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebp
mov eax, dword [esp + 0x48]
test byte [eax], al
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
mov ebx, dword [esp + 0xb0]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
lea edi, [eax + 8]
mov edx, dword [0x54cbf0]
test edx, edx
je 0x48788b
jmp 0x487890
mov dword [eax + 8], ecx
jmp 0x487899
mov eax, ecx
call fcn.0045d8e0
jmp 0x487899
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], ecx
mov eax, dword [esp + 0xf8]
test eax, eax
jne 0x4878c2
jmp 0x4878d4
mov dword [esp + 0xf4], 0
add esp, 0xd8
ret
jmp 0x4878d6
mov eax, dword [esp + 0xf0]
test byte [eax], al
mov eax, dword [eax + 0x18]
mov dword [esp + 0x44], eax
lea ecx, [0x4a7ee0]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], eax
call fcn.00448290
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], ecx
mov edx, dword [esp + 0x48]
test byte [edx], al
mov dword [edx + 0x18], 0
mov dword [edx + 0x1c], ecx
lea edi, [edx + 0x14]
mov ecx, dword [0x54cbf0]
test ecx, ecx
je 0x487940
jmp 0x487945
mov dword [edx + 0x14], eax
jmp 0x48794c
call fcn.0045d8e0
jmp 0x48794c
mov eax, dword [esp + 0xf0]
test byte [eax], al
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], eax
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x94]
mov dword [esp + 0x38], eax
jmp 0x487988
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x38], eax
jg 0x487997
jmp 0x487a4c
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x90]
lea eax, [ecx + eax*4]
mov eax, dword [eax]
mov dword [esp + 0x50], eax
mov dword [esp], eax
call fcn.00489bb0
mov eax, dword [esp + 4]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x48]
test byte [eax], al
mov ecx, dword [eax + 0x18]
lea edx, [ecx + 1]
mov ebx, dword [eax + 0x1c]
mov eax, dword [eax + 0x14]
cmp ebx, edx
jae 0x4879d3
jmp 0x4879d5
jmp 0x487a0c
mov dword [esp + 0x34], ecx
lea ebp, [0x4a7ee0]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.00448330
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x34]
jmp 0x487a0c
mov ebp, dword [esp + 0x40]
lea ecx, [eax + ecx*4]
mov dword [ecx], ebp
mov ecx, dword [esp + 0x48]
test byte [ecx], al
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], ebx
lea edi, [ecx + 0x14]
mov edx, dword [0x54cbf0]
test edx, edx
je 0x487a30
jmp 0x487a35
mov dword [ecx + 0x14], eax
jmp 0x487a3c
call fcn.0045d8e0
jmp 0x487a3c
jmp 0x487a3e
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x3c], eax
jmp 0x487988
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 0xdc]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0xe4]
mov ebx, dword [esp + 0xe0]
mov ebp, dword [esp + 0xe8]
mov esi, dword [esp + 0xec]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ecx
call fcn.00467160
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], ebx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x54], eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x487b0d
jmp 0x487bdd
lea eax, [0x4ab2a0]
mov dword [esp], eax
call fcn.0040b910
mov edi, dword [esp + 4]
mov dword [esp + 0x58], edi
mov dword [edi + 4], 9
mov eax, dword [0x54cbf0]
test eax, eax
je 0x487b36
jmp 0x487b40
lea ecx, [0x4b1903]
mov dword [edi], ecx
jmp 0x487b4d
lea eax, [0x4b1903]
call fcn.0045d8e0
jmp 0x487b4d
mov ecx, dword [esp + 0x58]
test byte [ecx], al
mov eax, dword [esp + 0xdc]
mov edx, dword [esp + 0xe0]
mov dword [ecx + 0xc], edx
mov edx, dword [0x54cbf0]
lea edi, [ecx + 8]
test edx, edx
je 0x487b73
jmp 0x487b78
mov dword [ecx + 8], eax
jmp 0x487b7f
call fcn.0045d8e0
jmp 0x487b7f
mov ecx, dword [esp + 0x58]
test byte [ecx], al
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov dword [ecx + 0x10], edx
mov edx, dword [0x54cbf0]
lea edi, [ecx + 0x14]
test edx, edx
je 0x487b9f
jmp 0x487ba4
mov dword [ecx + 0x14], eax
jmp 0x487bab
call fcn.0045d8e0
jmp 0x487bab
mov eax, dword [esp + 0x58]
mov dword [esp + 0x6c], eax
mov dword [esp + 0xf4], 0
mov eax, dword [esp + 0x6c]
lea ecx, [0x4be018]
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xfc], eax
add esp, 0xd8
ret
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00487260
mov eax, dword [esp + 8]
mov dword [esp + 0x64], eax
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0
add esp, 0xd8
ret
mov dword [esp], ecx
lea eax, [0x4aae20]
mov dword [esp + 4], eax
lea eax, [0x4a8da0]
mov dword [esp + 8], eax
call fcn.00408cf0
nop
call fcn.0045c4a0
jmp fcn.00487580