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

Disassembly:
push 0xffffffffffffffff
push 0x5dff40
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov esi, dword [esp + 0x80]
mov dword [esp + 0x78], ebx
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x4ade57
mov edi, dword [esi + 8]
mov eax, edi
sub eax, ecx
sar eax, 5
jne 0x4ade73
mov esi, dword [esp + 0x84]
push esi
lea ecx, [esp + 0x28]
call fcn.004aedd0
mov eax, dword [esp + 0x28]
cmp eax, ebx
jmp 0x4ae10c
and dword [esp + 0x60], 0xfc000000
and byte [esp + 0x64], 0xf0
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x68], 0xffffffff
mov byte [esp + 0x78], 1
mov eax, dword [esi + 0x8c]
imul dword [esp + 0x88]
mov ebp, eax
add ebp, dword [esp + 0x8c]
mov ebx, edx
adc ebx, dword [esp + 0x90]
mov dword [esp + 0x54], ebp
or ebx, 0xffff0000
cmp ecx, edi
mov dword [esp + 0x58], ebx
jbe 0x4adecb
call fcn.005b8b18
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
mov dword [esp + 0x88], eax
jbe 0x4adee6
call fcn.005b8b18
mov eax, dword [esp + 0x88]
mov dword [esp + 0x90], eax
push eax
lea ecx, [esp + 0x50]
mov eax, edi
call fcn.004afcc0
mov edi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x90], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
jne 0x4adf16
call fcn.005b8b18
cmp edi, dword [esi + 4]
ja 0x4adf20
call fcn.005b8b18
add edi, 0xffffffe0
cmp edi, dword [esi + 8]
jb 0x4adf2d
call fcn.005b8b18
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
shld edx, eax, 0x10
shl eax, 0x10
mov cl, 0x10
call fcn.005da4b0
mov ecx, edx
mov dword [esp + 0x88], eax
mov eax, ebp
mov edx, ebx
shld edx, eax, 0x10
mov dword [esp + 0x8c], ecx
shl eax, 0x10
mov cl, 0x10
call fcn.005da4b0
mov ebp, eax
mov eax, dword [esp + 0x88]
sub ebp, eax
mov eax, dword [esp + 0x8c]
mov ebx, edx
sbb ebx, eax
cmp dword [esp + 0x94], 0
jle 0x4ae0dc
cmp edi, dword [esi + 8]
jb 0x4adf91
call fcn.005b8b18
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
shld edx, eax, 0x10
shl eax, 0x10
mov cl, 0x10
call fcn.005da4b0
cmp ebx, edx
jg 0x4ae09f
jl 0x4adfb7
cmp ebp, eax
jae 0x4ae09f
mov ecx, dword [esp + 0x80]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
mov dword [esp + 0x88], eax
jbe 0x4adfd2
call fcn.005b8b18
cmp esi, dword [esp + 0x80]
je 0x4adfe0
call fcn.005b8b18
mov ecx, edi
sub ecx, dword [esp + 0x88]
sar ecx, 5
cmp edi, dword [esi + 8]
mov dword [esp + 0x34], ecx
jb 0x4adffa
call fcn.005b8b18
mov ecx, dword [esp + 0x80]
mov eax, edi
call fcn.004ae8b0
add eax, ebp
adc edx, ebx
cmp edi, dword [esi + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x40], edx
cdq
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], edx
jb 0x4ae034
call fcn.005b8b18
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
shld edx, eax, 0x10
shl eax, 0x10
mov cl, 0x10
call fcn.005da4b0
sub eax, ebp
sbb edx, ebx
cmp dword [esp + 0x90], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
jg 0x4ae071
jl 0x4ae068
cmp dword [esp + 0x8c], eax
jae 0x4ae071
lea ecx, [esp + 0x8c]
jmp 0x4ae075
lea ecx, [esp + 0x14]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
sub dword [esp + 0x94], eax
lea edx, [esp + 0x34]
add ebp, eax
push edx
lea esi, [esp + 0x28]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
adc ebx, ecx
call fcn.004aeed0
mov esi, dword [esp + 0x1c]
cmp edi, dword [esi + 8]
jb 0x4ae0a9
call fcn.005b8b18
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
shld edx, eax, 0x10
shl eax, 0x10
mov cl, 0x10
call fcn.005da4b0
sub ebp, eax
sbb ebx, edx
cmp edi, dword [esi + 8]
jb 0x4ae0cb
call fcn.005b8b18
add edi, 0x20
cmp dword [esp + 0x94], 0
jg 0x4adf87
mov esi, dword [esp + 0x84]
push esi
lea ecx, [esp + 0x28]
call fcn.004aedd0
mov ecx, dword [esp + 0x60]
and ecx, 0x3ff0000
xor eax, eax
or eax, ecx
jne 0x4ae106
push eax
call fcn.005b9797
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4ae117
push eax
call fcn.0059b877
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0x18