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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x759454]
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.005ea030
xor esi, esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], edx
cmp edi, dword [ebp - 0x14]
je 0x498fe5
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 0x499155
nop dword [eax]
cmp ebx, edx
jg 0x499155
jl 0x499012
cmp ecx, eax
jae 0x499155
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.005ea730
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 [0x73d768]
div dword [edi + 0x20]
inc eax
cmp ecx, eax
je 0x499134
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 0x4990df
push dword [ebp - 8]
call fcn.004d88f0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4990df
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.005ea810
add eax, dword [ebp - 0x34]
push eax
push dword [ebp - 0x24]
call fcn.005fe3c0
mov eax, dword [ebp - 8]
add esp, 0xc
mov eax, dword [eax + 8]
mov byte [eax], 0
mov eax, edi
or eax, ebx
jne 0x4990df
cmp dword [ebp + 0x14], eax
jne 0x4990df
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 0x499134
test byte [edx + 0x1c], 0x20
je 0x49912b
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.005ea030
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x499134
push edx
call fcn.004d95a0
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 0x499155
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
jmp 0x499000
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005e980b
mov esp, ebp
pop ebp
ret