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

Disassembly:
push 0xffffffffffffffff
push 0x666828
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x705e7c]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x705e7c]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [esp + 0x98]
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x94]
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x14]
xor ebx, ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], eax
cmp eax, ebx
je 0x5876fa
cmp ecx, ebx
je 0x5876fa
lea ecx, [esp + 0x20]
call fcn.0044b4f0
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x88], ebx
lea ebp, [edi + 4]
jb 0x5876db
mov eax, dword [ebp]
jmp 0x5876dd
mov eax, ebp
push ecx
push ebx
push eax
mov ecx, esi
call fcn.00495bb0
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x38], esi
jge 0x58771e
lea ecx, [esp + 0x20]
call fcn.0044b200
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.006117ae
add esp, 0x78
ret
mov dword [esp + 0x18], ebx
inc dword [esp + 0x18]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x24]
call fcn.005417f0
cmp dword [edi + 0x18], 0x10
mov eax, dword [edi + 0x14]
mov ebx, esi
jb 0x587744
mov ecx, dword [ebp]
jmp 0x587746
mov ecx, ebp
mov edx, dword [esp + 0x1c]
push eax
add edx, esi
push edx
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00495bb0
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x38], esi
jge 0x587722
xor edi, edi
cmp dword [esp + 0x18], edi
je 0x5876f1
xor ebx, ebx
lea esp, [esp]
push edi
push 0x6b203c
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], edi
mov byte [esp + 0x6c], 0
call fcn.00417c40
mov byte [esp + 0x88], 1
cmp ebx, edi
jne 0x587803
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
sar eax, 2
test eax, eax
ja 0x5877b3
call fcn.006121a6
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x14]
push edx
push edi
lea eax, [esp + 0x4c]
push eax
call fcn.00494560
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x94], 2
call fcn.00418140
cmp dword [esp + 0x5c], 0x10
mov byte [esp + 0x88], 1
jb 0x5878e3
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00611358
add esp, 4
jmp 0x5878e3
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x2c]
lea esi, [ebx - 1]
sar edx, 2
cmp esi, edx
jb 0x58781a
call fcn.006121a6
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + esi*4]
add eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x3c]
jae 0x5878e3
mov edx, dword [esp + 0x30]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jne 0x587875
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00494560
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x94], 3
call fcn.00418140
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], 1
call fcn.005d0540
jmp 0x5878e3
cmp ebx, edi
jbe 0x5878e3
push esi
lea ecx, [esp + 0x24]
call fcn.0046d390
push ebx
lea ecx, [esp + 0x24]
mov edi, eax
call fcn.0046d390
push esi
lea ecx, [esp + 0x24]
mov ebp, eax
call fcn.0046d390
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp]
mov eax, dword [eax]
sub edx, ecx
sub edx, dword [edi]
add eax, ecx
push edx
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00494560
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x94], 4
call fcn.00418140
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], 1
call fcn.005d0540
xor edi, edi
cmp byte [esp + 0x9c], 0
jne 0x5878f3
cmp dword [esp + 0x74], edi
jbe 0x587901
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x60]
push edx
call fcn.00450e10
cmp dword [esp + 0x78], 0x10
mov byte [esp + 0x88], 0
jb 0x58791d
mov eax, dword [esp + 0x64]
push eax
call fcn.00611358
add esp, 4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
sub eax, ecx
inc ebx
sar eax, 2
cmp ebx, eax
jbe 0x587770
cmp ecx, edi
je 0x587940
push ecx
call fcn.00611358
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call fcn.00611358
mov eax, dword [esp + 0x1c]
add esp, 4
jmp 0x5876fc