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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x505530
sub esp, 0x70
mov dword [esp + 0x30], 0
lea eax, [0x76ede0]
mov dword [esp], eax
call fcn.0040e9e0
mov eax, dword [esp + 4]
mov dword [esp + 0x30], eax
mov dword [eax + 0x10], 2
mov eax, dword [esp + 0x30]
test byte [eax], al
lea edi, [esp + 0x58]
xor eax, eax
call fcn.0044d9ba
mov byte [esp + 0x58], 5
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 8]
mov ebx, dword [ecx + 4]
mov ebp, dword [ecx]
lea esi, [ebx + 1]
cmp esi, edx
jg 0x5054be
lea edx, [ebx + 1]
mov dword [ecx + 4], edx
lea ecx, [ebx + ebx*2]
lea edi, [ebp + ecx*8]
mov ecx, dword [0xa08230]
test ecx, ecx
jne 0x50549f
lea esi, [esp + 0x58]
call fcn.0044de94
lea eax, [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
call fcn.00505540
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 8]
mov dword [esp + 0x28], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
lea edi, [esp + 0x40]
mov ebx, eax
xor eax, eax
call fcn.0044d9ba
mov byte [esp + 0x40], 4
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov ebp, dword [eax + 4]
mov esi, dword [eax + 8]
lea edi, [ebp + 1]
cmp edi, esi
jg 0x505429
lea edx, [ebp + 1]
mov dword [eax + 4], edx
lea eax, [ebp + ebp*2]
mov edx, dword [0xa08230]
lea edi, [ecx + eax*8]
test edx, edx
jne 0x505409
lea esi, [esp + 0x40]
call fcn.0044de94
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.005051c0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x70
ret
lea eax, [0x774760]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
call fcn.0040f360
mov ebx, dword [esp + 0x24]
jmp 0x5053c7
mov dword [esp + 0x3c], eax
lea eax, [0x774760]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
call fcn.00439c80
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x3c]
mov dword [ebx + 8], edx
mov edx, dword [0xa08230]
test edx, edx
jne 0x50547d
mov dword [ebx], eax
mov edx, dword [esp + 0x28]
mov ebp, ecx
mov ecx, eax
mov eax, ebx
mov ebx, dword [esp + 0x24]
jmp 0x5053a7
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], ecx
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040f250
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x3c]
jmp 0x50546a
lea eax, [0x774760]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
call fcn.0040f360
jmp 0x50534f
mov dword [esp + 0x3c], ecx
lea eax, [0x774760]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], esi
call fcn.00439c80
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x3c]
mov dword [ebx + 8], edx
mov edx, dword [0xa08230]
test edx, edx
jne 0x50550e
mov dword [ebx], eax
mov ebp, eax
xor eax, eax
mov edx, ecx
mov ecx, ebx
mov ebx, edx
jmp 0x50532b
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], ecx
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040f250
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x3c]
jmp 0x5054ff
call fcn.0044be50
jmp fcn.005052c0