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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5212e9
sub esp, 0x70
xor ebx, ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
xor ebx, ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 4], ebx
mov ebx, 0x7577a9
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
mov ebx, 0x757791
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0xffffffff
call fcn.00508970
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
mov dword [esp], 0x70e780
mov ebx, dword [0x8e3aa0]
mov dword [esp + 4], ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0xc], eax
call fcn.004168b0
mov eax, dword [esp + 0x10]
movzx ebx, byte [esp + 0x14]
mov ebp, dword [eax]
cmp bl, 0
je 0x521233
mov edx, ebp
mov ebx, dword [ebp]
call ebx
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 8]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ecx
cmp ecx, 0
je 0x5211fc
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x48], ebx
xor ebx, ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
lea ebx, [esp + 0x60]
mov dword [esp + 0x28], ebx
mov dword [esp], 0x70b040
lea ebx, [esp + 0x44]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
call fcn.004178c0
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov ebx, dword [esp + 0x2c]
mov dword [esp], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], ebx
call fcn.00418100
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
mov edx, 2
mov ecx, 2
mov eax, ebx
mov ebx, 0x767f99
mov dword [esp], ebx
mov dword [esp + 4], 0x20
mov dword [esp + 0x54], eax
mov dword [esp + 8], eax
mov dword [esp + 0x58], edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x10], ecx
call fcn.00469a70
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x70
ret
cmp eax, 0
je 0x52122f
mov ebp, dword [eax]
mov dword [esp + 0x7c], ebp
mov ebp, dword [eax + 4]
mov dword [esp + 0x80], ebp
mov ebp, dword [eax + 8]
mov dword [esp + 0x84], ebp
xor ebx, ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
add esp, 0x70
ret
mov dword [eax], eax
jmp 0x521201
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x48], ebx
xor ebx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
lea ebx, [esp + 0x3c]
mov dword [esp + 0x24], ebx
mov dword [esp], 0x70b040
lea ebx, [esp + 0x44]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
call fcn.004178c0
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov edx, 1
mov ecx, 1
mov eax, ebx
mov ebx, 0x760dae
mov dword [esp], ebx
mov dword [esp + 4], 0x12
mov dword [esp + 0x54], eax
mov dword [esp + 8], eax
mov dword [esp + 0x58], edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x10], ecx
call fcn.00469a70
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x70
ret
call fcn.004616d0
jmp fcn.00521030