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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x738844]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
push ebx
mov eax, dword [edx + 4]
push esi
push edi
mov dword [ebp - 0x20], edx
mov ecx, dword [eax + 4]
mov eax, dword [edx + 0x18]
mov ebx, dword [ecx]
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x2c], ebx
mov edi, dword [eax + 0x20]
cmp edi, ecx
mov eax, ecx
cmovl eax, edi
mov dword [ebp - 0x30], eax
mov eax, edi
cdq
mov ecx, eax
mov eax, edx
push eax
push ecx
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
call fcn.005d3730
xor esi, esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], edx
cmp edi, dword [ebp - 0x14]
je 0x4870c5
cmp byte [ebx + 0xc], 0
mov ecx, 8
cmovne esi, ecx
mov ecx, eax
mov ebx, edx
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
sbb ebx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ebx
test esi, esi
jne 0x487235
nop dword [eax]
cmp ebx, edx
jg 0x487235
jl 0x4870f2
cmp ecx, eax
jae 0x487235
mov eax, dword [ebp - 0x14]
cdq
push ebx
push edx
push eax
push ebx
push ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], edx
call fcn.005d3e30
mov dword [ebp - 0x24], ebx
pop ebx
mov ebx, ecx
mov dword [ebp - 0x24], edx
lea ecx, [eax + 1]
xor edx, edx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
mov edi, dword [eax + 4]
mov eax, dword [0x71ead8]
div dword [edi + 0x20]
inc eax
cmp ecx, eax
je 0x487214
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x2c]
push ecx
push eax
mov eax, dword [eax + 0xcc]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4871bf
push dword [ebp - 8]
call fcn.004c69c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4871bf
push dword [ebp - 0x30]
mov eax, dword [ebp - 8]
push dword [ebp - 0x18]
mov edi, dword [ebp - 0xc]
push dword [ebp - 0x1c]
mov eax, dword [eax + 4]
add eax, ebx
mov ebx, dword [ebp - 0x10]
push ebx
push edi
mov dword [ebp - 0x24], eax
call fcn.005d3f10
add eax, dword [ebp - 0x34]
push eax
push dword [ebp - 0x24]
call fcn.005e7a70
mov eax, dword [ebp - 8]
add esp, 0xc
mov eax, dword [eax + 8]
mov byte [eax], 0
mov eax, edi
or eax, ebx
jne 0x4871bf
cmp dword [ebp + 0x14], eax
jne 0x4871bf
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x2c]
and eax, 0x7fffffff
bswap eax
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 8]
test edx, edx
je 0x487214
test byte [edx + 0x1c], 0x20
je 0x48720b
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov edi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov ebx, dword [edi]
cdq
push edx
push eax
push 0
push ecx
call fcn.005d3730
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x487214
push edx
call fcn.004c7680
add esp, 4
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x10]
adc ebx, dword [ebp - 0x3c]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
test esi, esi
jne 0x487235
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
jmp 0x4870e0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005d2f07
mov esp, ebp
pop ebp
ret