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

Disassembly:
sub esp, 0x98
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x9c]
push ebx
cdq
mov ebx, ecx
xor eax, edx
mov dword [esp + 0x10], ebx
push ebp
sub eax, edx
mov dword [ebx + 0x40], eax
push esi
push edi
cmp eax, 0x3e8
jbe 0x4a599b
push eax
push str._rr_u
lea eax, [esp + 0x84]
push 0x14
push eax
call fcn.00404ce0
xor eax, eax
mov dword [esp + 0x48], 0x558718
add esp, 0x10
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x3c], 0x558718
mov dword [esp + 0x40], 0x558718
mov dword [esp + 0x44], 0x558718
mov dword [esp + 0x48], 0x558718
mov dword [esp + 0x4c], 0x558718
mov dword [esp + 0x78], 0x64
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], str.1000
mov dword [esp + 0x70], 2
call fcn.004bf7b0
mov dword [ebx + 0x40], 0xc8
mov eax, 0xc8
mov edx, dword [esp + 0xb0]
lea edi, [eax + eax]
mov eax, edx
mov dword [ebx + 0x24], 0xc8
and eax, 0x3ff
mov dword [ebx + 0x28], edi
or eax, 0
je 0x4a59c2
mov eax, 1
jmp 0x4a59c4
xor eax, eax
mov ecx, dword [esp + 0xb4]
mov ebp, edx
shrd ebp, ecx, 0xa
shr ecx, 0xa
add ebp, eax
mov eax, ebp
mov dword [esp + 0x10], ebp
adc ecx, 0
or eax, ecx
jne 0x4a59f0
mov ebp, 1
xor ecx, ecx
mov dword [esp + 0x10], ebp
jmp 0x4a5a07
mov esi, 0xc8
test ecx, ecx
ja 0x4a5aa9
jb 0x4a5a07
cmp ebp, esi
jae 0x4a5aa9
mov eax, ecx
mov ebx, 0xe147ae15
mul edi
mov ecx, eax
mov eax, ebp
mul edi
mov ebp, 0x47ae147a
add ecx, edx
mov edi, eax
mul ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], eax
mov esi, edx
mov eax, edi
mov dword [esp + 0x14], ecx
mul ebp
mov edi, eax
mov ebp, edx
mov eax, ecx
mul ebx
mov ecx, eax
mov ebx, edx
mov eax, dword [esp + 0x14]
mov edx, 0x47ae147a
mul edx
add ecx, esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], eax
adc ebx, 0
add edi, ecx
mov ecx, dword [esp + 0x20]
adc ebp, 0
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x18]
xor eax, eax
add ebx, ebp
adc eax, eax
add ecx, ebx
mov ebx, dword [esp + 0x1c]
adc edx, eax
sub edi, ecx
mov eax, dword [esp + 0x14]
sbb eax, edx
shrd edi, eax, 1
mov dword [ebx + 0x24], esi
shr eax, 1
add edi, ecx
adc eax, edx
mov edx, dword [esp + 0xb0]
shrd edi, eax, 7
mov dword [ebx + 0x28], edi
test edi, edi
jne 0x4a5aa9
mov dword [ebx + 0x28], 1
mov edi, 1
lea eax, [esi + esi*4]
add eax, eax
cmp edi, eax
jbe 0x4a5ab7
mov dword [ebx + 0x28], eax
mov edi, eax
mov ebp, dword [esp + 0xb4]
lea eax, [edi + esi]
push 0
push esi
push ebp
push edx
mov dword [ebx + 0x2c], eax
call fcn.005308f0
or eax, edx
mov dword [esp + 0x10], 1
jne 0x4a5ae2
mov dword [esp + 0x10], 0
push 0
push esi
push ebp
push dword [esp + 0xbc]
call fcn.00530630
add eax, dword [esp + 0x10]
mov ecx, 0
mov ebp, eax
adc edx, 0
and ebp, 1
add ebp, eax
mov eax, 0x10000000
mov dword [ebx + 0x30], ebp
adc ecx, edx
xor edx, edx
div edi
mov edx, ebp
mov dword [esp + 0x10], ecx
add edx, 0x10000
mov dword [ebx + 0x34], ecx
adc ecx, 0
xor edi, edi
cmp edi, ecx
jb 0x4a5b37
ja 0x4a5b31
cmp eax, edx
jbe 0x4a5b37
lea eax, [ebp + 0x10000]
and eax, 0xffff0000
mov dword [ebx], eax
cmp eax, 0x10000
jae 0x4a5b4b
mov dword [ebx], 0x10000
movzx eax, bp
or eax, 0
je 0x4a5b5a
mov ecx, 1
jmp 0x4a5b5c
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov edi, ebp
shrd edi, eax, 0x10
shr eax, 0x10
add edi, ecx
lea ecx, [esi*8 + 0x48]
mov dword [ebx + 0x50], edi
adc eax, 0
mov dword [ebx + 0x54], eax
mul ecx
mov esi, eax
mov eax, edi
mul ecx
mov ecx, dword [esp + 0xa4]
add esi, edx
add eax, ebp
pop edi
adc esi, dword [esp + 0xc]
mov dword [ebx + 0x4c], esi
pop esi
pop ebp
mov dword [ebx + 0x48], eax
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0x98
ret 0xc