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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x780784]
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.0060d430
xor esi, esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], edx
cmp edi, dword [ebp - 0x14]
je 0x4d5a65
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 0x4d5bd5
nop dword [eax]
cmp ebx, edx
jg 0x4d5bd5
jl 0x4d5a92
cmp ecx, eax
jae 0x4d5bd5
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.0060d790
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 [0x76a478]
div dword [edi + 0x20]
inc eax
cmp ecx, eax
je 0x4d5bb4
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 0x4d5b5f
push dword [ebp - 8]
call fcn.00515340
mov esi, eax
add esp, 4
test esi, esi
jne 0x4d5b5f
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.0060d870
add eax, dword [ebp - 0x34]
push eax
push dword [ebp - 0x24]
call fcn.0060e810
mov eax, dword [ebp - 8]
add esp, 0xc
mov eax, dword [eax + 8]
mov byte [eax], 0
mov eax, edi
or eax, ebx
jne 0x4d5b5f
cmp dword [ebp + 0x14], eax
jne 0x4d5b5f
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 0x4d5bb4
test byte [edx + 0x1c], 0x20
je 0x4d5bab
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.0060d430
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x4d5bb4
push edx
call fcn.00515ff0
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 0x4d5bd5
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
jmp 0x4d5a80
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0060cdfa
mov esp, ebp
pop ebp
ret