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

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x5c]
cmp eax, dword [ecx + 8]
jbe 0x52a4c9
sub esp, 0xdc
mov eax, 0
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], eax
mov byte [esp + 0x37], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0
mov eax, dword [esp + 0xe0]
test byte [eax], al
lea ecx, [eax + 0x18]
mov dword [esp], ecx
call fcn.0047b6f0
movzx eax, byte [esp + 4]
test al, al
jne 0x52a4a0
call fcn.004bc310
lea edi, [esp + 0x4c]
lea esi, [esp]
call fcn.004778be
mov eax, dword [esp + 0xe0]
mov dword [esp], eax
call fcn.0052a620
mov eax, dword [esp + 4]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0xe0]
mov dword [esp], edx
call fcn.0052a5a0
mov eax, dword [esp + 4]
mov dword [esp + 0x40], eax
test eax, 0x18
je 0x52a2ab
mov ecx, dword [esp + 0xe4]
test ecx, ecx
jne 0x52a214
mov eax, dword [esp + 0xe8]
mov dword [esp], eax
call fcn.00409e10
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
test al, al
jne 0x52a2b1
xor edx, edx
mov ebx, 3
lea ecx, [0x7023ba]
jmp 0x52a2b1
lea eax, [0x6bb6e0]
mov dword [esp], eax
call fcn.0040dea0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xe4]
mov dword [eax], ecx
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00457040
mov eax, dword [esp + 0xc]
mov dword [esp + 0x60], eax
lea edi, [esp + 0xa8]
xor eax, eax
call fcn.004773d5
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.004570c0
lea edi, [esp + 0xa8]
lea esi, [esp + 4]
call fcn.00477882
lea edi, [esp + 0x68]
lea esi, [esp + 0xa8]
call fcn.00477882
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
test eax, eax
jne 0x52a2a0
mov eax, 3
lea ecx, [0x7023ba]
mov edx, dword [esp + 0x80]
mov ebx, eax
jmp 0x52a2b1
xor edx, edx
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x44], ebx
call fcn.00529f10
mov eax, dword [esp]
mov dword [esp + 0x94], eax
lea ecx, [0x52a520]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0xd4], ecx
mov byte [esp + 0x37], 1
mov dword [esp], eax
lea edi, [esp + 4]
lea esi, [esp + 0x4c]
call fcn.004778be
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x2c], ecx
call fcn.005296f0
mov edx, dword [esp + 0xec]
mov eax, dword [edx]
mov ecx, dword [esp + 0x94]
mov ebx, dword [ecx]
mov ebp, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x94]
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
mov ebp, dword [0x8c88d8]
test ebp, ebp
je 0x52a38c
call fcn.004772f0
mov dword [edi], edx
mov ebp, dword [ebx]
mov dword [edi + 4], ebp
mov dword [ebx], edx
test eax, eax
je 0x52a39c
lea ebp, [eax + edx - 1]
cmp byte [ebp], 0xa
je 0x52a3fd
inc eax
cmp ecx, eax
jae 0x52a3f5
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x6c0100]
mov dword [esp + 0x10], eax
call fcn.00472770
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x94]
mov dword [ebx + 8], eax
mov eax, dword [0x8c88d8]
test eax, eax
je 0x52a3ef
call fcn.004772f0
mov dword [edi], ecx
mov eax, dword [ebx]
mov dword [edi + 4], eax
mov dword [ebx], ecx
mov eax, edx
mov edx, ecx
mov dword [ebx + 4], eax
mov byte [eax + edx - 1], 0xa
mov eax, dword [esp + 0xe0]
mov dword [esp], eax
call fcn.0048dcd0
lea eax, [0x52a4e0]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x9c], eax
lea ecx, [esp + 0x98]
mov dword [esp + 0xd8], ecx
mov byte [esp + 0x37], 3
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [ecx + 0xc]
mov edx, dword [esp + 0x94]
mov ebx, dword [edx]
mov ebp, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
call ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], ecx
mov byte [esp + 0x37], 1
mov edx, dword [esp + 0xd8]
mov eax, dword [edx]
call eax
mov byte [esp + 0x37], 0
mov edx, dword [esp + 0xd4]
mov eax, dword [edx]
call eax
add esp, 0xdc
ret
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0
add esp, 0xdc
ret
call fcn.00475ee0
jmp fcn.0052a110