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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x2c]
cmp eax, dword [ecx + 8]
jbe 0x4f9ae1
sub esp, 0xac
lea eax, [esp + 0x4c]
mov dword [esp], eax
lea eax, [0x5d2e90]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x3e
call fcn.0043c5c0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
call fcn.00469620
lea edi, [esp + 0x7c]
mov esi, esp
call fcn.0044d47e
nop
nop
nop
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov edx, ecx
shr ecx, 0x1f
shl ecx, 0x1f
test ecx, ecx
je 0x4f9ac3
shl edx, 1
mov ecx, eax
shr eax, 0x1f
or eax, edx
mov edx, ecx
shl ecx, 1
shr ecx, 0x1f
mov ebx, eax
shl eax, 1
or eax, ecx
mov ecx, eax
add eax, 0xd7b17f80
shr ebx, 0x1f
add ecx, 0xd7b17f80
adc ebx, 0xd
mov dword [esp + 0x24], ebx
mov ecx, eax
mov eax, 0x3b9aca00
mov ebp, edx
mul ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], eax
and ebp, 0x3fffffff
mov dword [esp + 0x40], ebp
add eax, ebp
mov dword [esp + 0x3c], eax
add eax, 0x3d1a0000
mov dword [esp + 0x28], eax
nop
nop
lea edi, [0x5aa560]
mov dword [esp], edi
call fcn.00409bc0
mov ecx, dword [esp + 4]
mov dword [esp + 0x78], ecx
mov dword [esp], ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x24]
imul edx, edx, 0x3b9aca00
mov ebx, dword [esp + 0x48]
add edx, ebx
mov ebx, dword [esp + 0x40]
mov ebp, ebx
sar ebx, 0x1f
mov esi, dword [esp + 0x44]
add esi, ebp
adc edx, ebx
mov ebx, dword [esp + 0x3c]
add ebx, 0x3d1a0000
adc edx, 0xa1b203eb
mov dword [esp + 8], edx
call fcn.004c22b0
nop
lea ecx, [0x5a3e60]
mov dword [esp], ecx
lea ecx, [0x601fa0]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x78]
mov dword [esp + 8], edx
call fcn.00407910
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x6c], ecx
mov edx, dword [esp + 0xc]
lea edi, [esp + 0x90]
xor eax, eax
call fcn.0044cf99
lea edi, [esp + 0x90]
call fcn.0044cf99
lea ecx, [0x601fa0]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x9c], ecx
xor eax, eax
xor ecx, ecx
lea edx, [esp + 0x23]
xor ebx, ebx
jmp 0x4f99df
mov byte [edi + edx], al
mov ebp, dword [esp + 0x34]
inc ebp
mov eax, ebp
mov ecx, ebx
mov edx, edi
mov ebx, esi
mov ebp, dword [esp + 0xb0]
cmp eax, ebp
jge 0x4f9a8e
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ebx
lea eax, [esp + 0x90]
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
call fcn.004c1db0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x38]
cmp eax, ecx
jae 0x4f9ada
mov edx, dword [esp + 0x2c]
lea ebx, [edx + 1]
mov ebp, dword [esp + 0x74]
movzx eax, byte [ebp + eax]
mov esi, dword [esp + 0x30]
cmp ebx, esi
ja 0x4f9a43
mov edi, dword [esp + 0x70]
jmp 0x4f99cf
mov byte [esp + 0x23], al
lea eax, [0x597d60]
mov dword [esp], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
call fcn.00439070
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
lea ebx, [eax + 1]
movzx eax, byte [esp + 0x23]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x74]
jmp 0x4f99cf
mov dword [esp], 0
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
call fcn.0043c470
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], eax
add esp, 0xac
ret
mov ecx, dword [esp + 0x84]
mov ebx, dword [esp + 0x88]
mov edx, eax
mov eax, ecx
jmp 0x4f98c5
call fcn.00427000
ud2
call fcn.0044b750
jmp fcn.004f9820