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

Disassembly:
mov ecx, dword [0x78bd58]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x487cfb
add esp, 0xffffff80
mov ebx, dword [esp + 0x84]
movzx ebp, byte [ebx + 0x3d]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x48753e
mov byte [ebx + 0x3c], 1
jmp 0x48754a
mov byte [esp + 0x88], 0
sub esp, 0xffffff80
ret
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x28]
cmp eax, ecx
jl 0x48755f
mov ebp, dword [ebx + 0x30]
test ebp, ebp
je 0x48775b
mov edx, dword [ebx + 0x24]
cmp edx, ecx
jb 0x487cf5
cmp eax, ecx
ja 0x487cf0
mov ebp, dword [ebx + 8]
mov esi, dword [ebp]
mov edi, dword [ebx + 0x1c]
sub edx, eax
mov dword [esp + 0x58], edx
sub ecx, eax
neg edx
sar edx, 0x1f
and eax, edx
add eax, edi
mov edi, dword [ebx + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
test edi, edi
setne al
mov byte [esp + 0xc], al
mov edx, ebp
call esi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x5c], ecx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x28], ebx
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x2c], ebp
test eax, eax
jne 0x487b1e
mov esi, dword [esp + 0x10]
mov dword [esp + 0x54], esi
test esi, esi
jge 0x487676
mov edi, dword [esp + 0x84]
mov eax, dword [edi + 0x30]
mov edx, dword [0x7429ac]
mov esi, dword [0x7429a8]
test eax, eax
je 0x48764a
cmp dword [0x742b40], eax
je 0x487605
xor eax, eax
jmp 0x487646
mov dword [esp + 0x74], edx
mov dword [esp + 0x4c], esi
mov ecx, dword [edi + 0x34]
mov edx, dword [0x742b44]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00408940
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x84]
test al, al
je 0x48766b
mov dword [edi + 0x30], esi
mov esi, dword [0x78be40]
test esi, esi
je 0x487668
mov eax, edi
call fcn.0046fef0
mov dword [edi], edx
mov esi, dword [eax + 0x34]
mov dword [edi + 4], esi
mov edi, eax
mov dword [edi + 0x34], edx
mov esi, dword [esp + 0x54]
xor eax, eax
jmp 0x487725
mov edi, dword [esp + 0x84]
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x28]
sub eax, edx
cmp esi, eax
jle 0x48771a
mov eax, dword [edi + 0x30]
mov edx, dword [0x7429b4]
mov esi, dword [0x7429b0]
test eax, eax
je 0x4876f1
cmp dword [0x742b40], eax
je 0x4876ac
xor eax, eax
jmp 0x4876ed
mov dword [esp + 0x48], esi
mov dword [esp + 0x70], edx
mov ecx, dword [edi + 0x34]
mov edx, dword [0x742b44]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00408940
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x84]
test al, al
je 0x487712
mov dword [edi + 0x30], esi
mov esi, dword [0x78be40]
test esi, esi
je 0x48770f
mov eax, edi
call fcn.0046fef0
mov dword [edi], edx
mov esi, dword [eax + 0x34]
mov dword [edi + 4], esi
mov edi, eax
mov dword [edi + 0x34], edx
mov esi, dword [esp + 0x54]
xor eax, eax
jmp 0x487725
lea eax, [esi + edx]
mov dword [edi + 0x28], eax
mov eax, 1
test al, al
je 0x487b12
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebp
mov ebx, dword [0x78be40]
test ebx, ebx
je 0x48774e
mov eax, edi
call fcn.0046fef0
mov dword [edi], ecx
mov ebx, dword [eax + 0x10]
mov dword [edi + 4], ebx
mov edi, eax
mov dword [edi + 0x10], ecx
test ecx, ecx
jne 0x487ae3
mov ebx, edi
mov ebp, dword [ebx + 0x30]
test ebp, ebp
jne 0x487ac9
mov eax, dword [ebx + 0x28]
test eax, eax
jle 0x4877d6
mov ecx, dword [ebx + 0x2c]
mov ebp, dword [ebx + 0x20]
cmp ebp, ecx
je 0x487781
mov esi, ebp
shr ebp, 1
cmp eax, ebp
jle 0x4877d6
mov ebp, esi
mov edx, dword [ebx + 0x24]
cmp edx, ecx
jb 0x487ceb
cmp ecx, eax
jb 0x487ce6
mov esi, dword [ebx + 0x1c]
sub ecx, eax
sub edx, eax
neg edx
sar edx, 0x1f
and eax, edx
lea edx, [esi + eax]
cmp ebp, ecx
jg 0x4877ab
mov ecx, ebp
test eax, eax
je 0x4877c6
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00470810
mov ebx, dword [esp + 0x84]
mov edx, dword [ebx + 0x2c]
sub edx, dword [ebx + 0x28]
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x28], 0
mov edx, dword [ebx + 0x20]
cmp dword [ebx + 0x2c], edx
jne 0x4878bd
mov eax, dword [ebx + 0xc]
cmp eax, edx
jle 0x487a48
cmp edx, 0x3fffffff
jg 0x487a48
shl edx, 1
test edx, edx
jne 0x487804
mov edx, 0x1000
cmp edx, eax
jg 0x48780a
mov eax, edx
mov dword [esp + 0x30], eax
lea ecx, [0x5b1ec0]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00454420
mov eax, dword [esp + 0x84]
mov edx, dword [eax + 0x24]
mov ecx, dword [eax + 0x2c]
cmp edx, ecx
jb 0x487ce1
mov ebx, dword [eax + 0x28]
cmp ecx, ebx
jb 0x487cda
mov ebp, dword [eax + 0x1c]
sub ecx, ebx
sub edx, ebx
neg edx
sar edx, 0x1f
and ebx, edx
lea edx, [ebp + ebx]
mov ebx, dword [esp + 0x30]
cmp ebx, ecx
jg 0x487860
mov ecx, ebx
mov ebp, dword [esp + 0xc]
cmp ebp, edx
je 0x48788b
mov dword [esp + 0x7c], ebp
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00470810
mov eax, dword [esp + 0x84]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x7c]
mov dword [eax + 0x20], ebx
mov dword [eax + 0x24], ebx
mov edx, dword [0x78be40]
test edx, edx
je 0x4878a8
call fcn.0046fef0
mov dword [edi], ebp
mov edx, dword [eax + 0x1c]
mov dword [edi + 4], edx
mov dword [eax + 0x1c], ebp
mov edx, dword [eax + 0x2c]
sub edx, dword [eax + 0x28]
mov dword [eax + 0x2c], edx
mov dword [eax + 0x28], 0
jmp 0x4878bf
mov eax, ebx
xor ecx, ecx
jmp 0x487c39
mov ebp, dword [ebx + 0x30]
mov esi, dword [0x742b54]
mov edi, dword [0x742b50]
test ebp, ebp
je 0x487922
cmp dword [0x742b40], ebp
je 0x4878e5
xor eax, eax
jmp 0x48791a
mov dword [esp + 0x60], esi
mov dword [esp + 0x38], edi
mov eax, dword [ebx + 0x34]
mov ecx, dword [0x742b44]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00408940
movzx eax, byte [esp + 0xc]
mov ebx, dword [esp + 0x84]
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x38]
test al, al
je 0x48754a
mov dword [ebx + 0x30], edi
mov ebp, dword [0x78be40]
test ebp, ebp
je 0x48793c
call fcn.0046fef0
mov dword [edi], esi
mov ebp, dword [ebx + 0x34]
mov dword [edi + 4], ebp
mov dword [ebx + 0x34], esi
jmp 0x48754a
mov dword [ebx + 0x38], 0
jmp 0x48754a
mov esi, dword [ebx + 0x30]
nop
test esi, esi
je 0x4879a1
cmp dword [0x742b40], esi
je 0x487964
xor eax, eax
jmp 0x487999
mov dword [esp + 0x40], ebp
mov dword [esp + 0x68], ecx
mov eax, dword [ebx + 0x34]
mov ecx, dword [0x742b44]
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00408940
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x84]
mov ebp, dword [esp + 0x40]
test al, al
je 0x48754a
mov dword [ebx + 0x30], ebp
mov ebp, dword [0x78be40]
test ebp, ebp
je 0x4879bb
call fcn.0046fef0
mov dword [edi], ecx
mov ebp, dword [ebx + 0x34]
mov dword [edi + 4], ebp
mov dword [ebx + 0x34], ecx
jmp 0x48754a
mov ebx, dword [esp + 0x84]
mov ebp, dword [ebx + 0x30]
mov esi, dword [0x7429bc]
mov edi, dword [0x7429b8]
test ebp, ebp
je 0x487a26
cmp dword [0x742b40], ebp
je 0x4879e9
xor eax, eax
jmp 0x487a1e
mov dword [esp + 0x64], esi
mov dword [esp + 0x3c], edi
mov eax, dword [ebx + 0x34]
mov ecx, dword [0x742b44]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00408940
movzx eax, byte [esp + 0xc]
mov ebx, dword [esp + 0x84]
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x3c]
test al, al
je 0x48754a
mov dword [ebx + 0x30], edi
mov ebp, dword [0x78be40]
test ebp, ebp
je 0x487a40
call fcn.0046fef0
mov dword [edi], esi
mov ebp, dword [ebx + 0x34]
mov dword [edi + 4], ebp
mov dword [ebx + 0x34], esi
jmp 0x48754a
mov eax, dword [ebx + 0x30]
mov ecx, dword [0x7429a4]
mov edx, dword [0x7429a0]
test eax, eax
je 0x487aa0
cmp dword [0x742b40], eax
je 0x487a67
xor eax, eax
jmp 0x487a9c
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x44], edx
mov ecx, dword [ebx + 0x34]
mov edx, dword [0x742b44]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00408940
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x84]
test al, al
je 0x487abd
mov dword [ebx + 0x30], edx
mov eax, dword [0x78be40]
test eax, eax
je 0x487aba
call fcn.0046fef0
mov dword [edi], ecx
mov eax, dword [ebx + 0x34]
mov dword [edi + 4], eax
mov dword [ebx + 0x34], ecx
mov byte [esp + 0x88], 0
sub esp, 0xffffff80
ret
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov byte [esp + 0x88], 0
sub esp, 0xffffff80
ret
mov eax, dword [edi + 0x30]
test eax, eax
je 0x487aff
test esi, esi
jg 0x487aff
mov eax, dword [edi + 0x38]
inc eax
mov dword [edi + 0x38], eax
cmp eax, 0x64
jle 0x487b06
jmp 0x487c1d
mov dword [edi + 0x38], 0
mov byte [esp + 0x88], 1
sub esp, 0xffffff80
ret
mov byte [esp + 0x88], 0
sub esp, 0xffffff80
ret
mov dword [esp + 0x50], eax
mov edx, dword [esp + 0x24]
mov dword [esp + 0x78], edx
cmp dword [0x7429c0], eax
jne 0x487ba6
mov ecx, dword [0x7429c4]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00408940
movzx eax, byte [esp + 0xc]
test al, al
je 0x487b9e
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x84]
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [ecx + 0x18], eax
mov eax, dword [0x78be40]
test eax, eax
jne 0x487b76
mov eax, dword [esp + 0x5c]
jmp 0x487b87
call fcn.0046fef0
mov eax, dword [esp + 0x5c]
mov dword [edi], eax
mov edx, dword [ecx + 0x10]
mov dword [edi + 4], edx
mov dword [ecx + 0x10], eax
mov byte [ecx + 0x3d], 1
test eax, eax
setne al
mov byte [esp + 0x88], al
sub esp, 0xffffff80
ret
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x84]
mov ebx, dword [ecx + 0x30]
nop
test ebx, ebx
je 0x487bf4
cmp dword [0x742b40], ebx
je 0x487bc1
xor ebx, ebx
jmp 0x487bf0
mov eax, dword [ecx + 0x34]
mov edx, dword [0x742b44]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00408940
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x78]
mov ebx, eax
mov eax, dword [esp + 0x50]
test bl, bl
je 0x487c11
mov dword [ecx + 0x30], eax
mov eax, dword [0x78be40]
test eax, eax
je 0x487c0e
call fcn.0046fef0
mov dword [edi], edx
mov eax, dword [ecx + 0x34]
mov dword [edi + 4], eax
mov dword [ecx + 0x34], edx
mov byte [esp + 0x88], 0
sub esp, 0xffffff80
ret
lea eax, [0x5b1e40]
mov dword [esp], eax
lea eax, [0x62152c]
mov dword [esp + 4], eax
call fcn.0043d570
mov eax, ebx
mov ecx, ebp
mov edx, dword [eax + 0x2c]
mov ebx, dword [eax + 0x20]
cmp edx, ebx
ja 0x487cd1
mov dword [esp + 0x34], ecx
mov ecx, dword [eax]
mov ebp, dword [eax + 4]
mov ecx, dword [ecx + 0x10]
mov esi, dword [eax + 0x1c]
mov edi, dword [eax + 0x24]
mov dword [esp], ebp
sub edi, edx
sub ebx, edx
mov ebp, edi
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and edi, edx
lea edx, [edi + esi]
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
test eax, eax
jl 0x4879c3
mov ebx, dword [esp + 0x84]
mov ebp, dword [ebx + 0x20]
mov esi, dword [ebx + 0x2c]
sub ebp, esi
cmp eax, ebp
jg 0x4879ca
mov ebp, dword [esp + 0x14]
add esi, eax
mov dword [ebx + 0x2c], esi
test ebp, ebp
jne 0x487950
test eax, eax
jg 0x487944
mov ebp, dword [esp + 0x34]
inc ebp
cmp ebp, 0x64
jle 0x487c35
jmp 0x4878c6
mov eax, edx
mov ecx, ebx
call fcn.0046ffc0
mov eax, ebx
call fcn.0046ffc0
call fcn.0046ffa0
call fcn.0046ffc0
call fcn.0046ffa0
call fcn.0046ffc0
call fcn.0046ffa0
nop
call fcn.0046eae0
jmp fcn.00487510