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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x40]
cmp eax, dword [ecx + 8]
jbe 0x5117a8
sub esp, 0xc0
lea eax, [esp + 0x4c]
mov dword [esp], eax
lea eax, [0x5ddaba]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x3e
call fcn.00448990
mov eax, dword [esp + 0xc]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x48], ecx
call fcn.00481a70
lea edi, [esp + 0x90]
lea esi, [esp]
call fcn.0045e97e
lea edi, [esp + 0x7c]
lea esi, [esp + 0x90]
call fcn.0045e97e
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
test ecx, 0x80000000
je 0x51178b
shl ecx, 1
mov edx, eax
shr eax, 0x1f
or eax, ecx
mov ecx, edx
shl edx, 1
mov ebx, eax
shl eax, 1
shr edx, 0x1f
or eax, edx
mov edx, eax
add eax, 0xd7b17f80
shr ebx, 0x1f
add edx, 0xd7b17f80
adc ebx, 0xd
mov dword [esp + 0x24], ebx
mov edx, eax
mov eax, 0x3b9aca00
mul edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
and ecx, 0x3fffffff
mov dword [esp + 0x3c], ecx
add eax, ecx
mov dword [esp + 0x38], eax
add eax, 0x3d1a0000
mov dword [esp + 0x28], eax
lea edi, [0x5b72c0]
mov dword [esp], edi
call fcn.0040b910
mov ecx, dword [esp + 4]
mov dword [esp + 0x74], ecx
mov dword [esp], ecx
mov edx, dword [esp + 0x24]
imul edx, edx, 0x3b9aca00
mov ebx, dword [esp + 0x44]
add edx, ebx
mov ebx, dword [esp + 0x3c]
mov ebp, ebx
sar ebx, 0x1f
mov esi, dword [esp + 0x40]
add esi, ebp
adc edx, ebx
mov ebx, dword [esp + 0x38]
add ebx, 0x3d1a0000
adc edx, 0xa1b203eb
mov dword [esp + 8], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 4], edx
call fcn.004d8ea0
lea ecx, [0x5b10a0]
mov dword [esp], ecx
lea ecx, [0x61165c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 8], edx
call fcn.00409490
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x70], ecx
mov edx, dword [esp + 0x10]
lea edi, [esp + 0xa4]
xor eax, eax
call fcn.0045e499
lea ecx, [0x61165c]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], edx
xor eax, eax
xor ecx, ecx
xor edx, edx
lea ebx, [esp + 0x23]
jmp 0x5116ab
mov byte [edi + edx], al
mov ebp, dword [esp + 0x34]
inc ebp
mov eax, ebp
mov ecx, ebx
mov edx, esi
mov ebx, edi
mov ebp, dword [esp + 0xc4]
cmp ebp, eax
jle 0x51175a
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ecx
lea eax, [esp + 0xa4]
mov dword [esp], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
call fcn.004d8cd0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jae 0x5117a2
mov edx, dword [esp + 0x2c]
lea ebx, [edx + 1]
mov ebp, dword [esp + 0x78]
movzx eax, byte [ebp + eax]
mov esi, dword [esp + 0x30]
cmp esi, ebx
jb 0x51170f
mov edi, dword [esp + 0x6c]
jmp 0x51169b
mov byte [esp + 0x23], al
lea eax, [0x5a5da0]
mov dword [esp], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
call fcn.00445360
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 + 0x48]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x78]
jmp 0x51169b
mov dword [esp], 0
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.00448840
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
add esp, 0xc0
ret
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x88]
mov ecx, eax
mov eax, edx
jmp 0x5115a2
call fcn.0045e2a0
nop
call fcn.0045ccc0
jmp fcn.005114f0