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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x508912
sub esp, 0x74
mov ecx, dword [esp + 0x9c]
test ecx, ecx
jne 0x50858b
lea edi, [esp + 0x60]
lea esi, [esp + 0x84]
call fcn.0045e6de
nop
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
test ecx, 0x80000000
je 0x508581
shl ecx, 1
mov edx, eax
shr eax, 0x1f
or eax, ecx
shl edx, 1
mov ecx, eax
shl eax, 1
shr edx, 0x1f
or edx, eax
mov eax, edx
add edx, 0xd7b17f80
shr ecx, 0x1f
add eax, 0xd7b17f80
adc ecx, 0xd
add edx, 0x886e0900
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 8], eax
adc ecx, 0xfffffff1
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], 0xa
call fcn.00473f80
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
add esp, 0x74
ret
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
jmp 0x508524
cmp ecx, 6
jne 0x5087be
mov edx, dword [esp + 0x98]
cmp dword [edx], 0x58494e55
jne 0x5086c0
cmp word [edx + 4], 0x534d
jne 0x5086c0
lea edi, [esp + 0x38]
lea esi, [esp + 0x84]
call fcn.0045e6de
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
test edx, 0x80000000
je 0x5086b1
shl edx, 1
mov ebx, ecx
shr ecx, 0x1f
or ecx, edx
mov edx, ebx
shl ebx, 1
mov ebp, ecx
shl ecx, 1
shr ebx, 0x1f
or ebx, ecx
mov ecx, ebx
add ebx, 0xd7b17f80
shr ebp, 0x1f
add ecx, 0xd7b17f80
adc ebp, 0xd
mov eax, 0x3b9aca00
mov ecx, edx
mul ebx
and ecx, 0x3fffffff
mov ebx, ecx
add ecx, eax
mov esi, ecx
add ecx, 0x3d1a0000
imul ebp, ebp, 0x3b9aca00
add edx, ebp
mov ebp, ebx
sar ebx, 0x1f
add ebp, eax
adc edx, ebx
add esi, 0x3d1a0000
adc edx, 0xa1b203eb
mov dword [esp + 4], edx
mov dword [esp], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xf4240
call fcn.00455660
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x78]
mov dword [esp], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], 0xa
call fcn.00473f80
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], ebx
add esp, 0x74
ret
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov edx, ecx
jmp 0x508601
mov eax, dword [esp + 0x7c]
lea ebx, [eax + 1]
mov ebp, dword [esp + 0x80]
cmp ebx, ebp
ja 0x508776
mov esi, dword [esp + 0x78]
mov byte [esi + eax], 0x22
lea edi, [esp]
mov eax, esi
lea esi, [esp + 0x84]
call fcn.0045e6de
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x24], eax
call fcn.004a1d20
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
lea ebx, [eax + 1]
cmp ecx, ebx
jb 0x50873f
mov byte [edx + eax], 0x22
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ecx
add esp, 0x74
ret
mov dword [esp + 0x34], eax
lea ebp, [0x5bec80]
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
call fcn.004450a0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x34]
jmp 0x508722
lea ecx, [0x5bec80]
mov dword [esp], ecx
mov edx, dword [esp + 0x78]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.004450a0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
jmp 0x5086da
cmp ecx, 9
je 0x5087cf
mov edx, dword [esp + 0x98]
jmp 0x5086c0
mov eax, dword [esp + 0x98]
mov dword [esp], eax
lea edx, [0x5ec778]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00402890
movzx eax, byte [esp + 0xc]
test al, al
je 0x508906
lea edi, [esp + 0x4c]
lea esi, [esp + 0x84]
call fcn.0045e6de
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
test edx, 0x80000000
je 0x5088f7
shl edx, 1
mov ebx, ecx
shr ecx, 0x1f
or ecx, edx
mov edx, ebx
shl ebx, 1
mov ebp, ecx
shl ecx, 1
shr ebx, 0x1f
or ebx, ecx
mov ecx, ebx
add ebx, 0xd7b17f80
shr ebp, 0x1f
add ecx, 0xd7b17f80
adc ebp, 0xd
mov eax, 0x3b9aca00
mov ecx, edx
mul ebx
and ecx, 0x3fffffff
mov ebx, ecx
add ecx, eax
mov esi, ecx
add ecx, 0x3d1a0000
imul ebp, ebp, 0x3b9aca00
add edx, ebp
mov ebp, ebx
sar ebx, 0x1f
add ebp, eax
adc edx, ebx
add esi, 0x3d1a0000
adc edx, 0xa1b203eb
mov dword [esp + 4], edx
mov dword [esp], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x3e8
call fcn.00455660
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x78]
mov dword [esp], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], 0xa
call fcn.00473f80
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], ebx
add esp, 0x74
ret
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
mov edx, ecx
jmp 0x508847
mov ecx, dword [esp + 0x9c]
jmp 0x5087c3
call fcn.0045ca10
jmp fcn.005084b0