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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x1cc]
cmp eax, dword [ecx + 8]
jbe 0x522fe5
sub esp, 0x24c
lea edi, [esp + 0x64]
xor eax, eax
call fcn.0045a35b
mov ecx, dword [esp + 0x254]
mov dword [esp + 0x64], ecx
mov edx, dword [esp + 0x258]
mov dword [esp + 0x68], edx
lea edi, [esp + 0x3c]
lea esi, [esp + 0x64]
call fcn.0045a83e
mov ecx, dword [0x759ce4]
mov ebx, dword [0x759ce0]
mov ebp, dword [esp + 0x250]
cmp ebp, ecx
jae 0x522fdd
mov eax, dword [ebx + ebp*4]
mov dword [esp + 0x30], eax
lea ecx, [0x550500]
mov dword [esp], ecx
call fcn.0040b1d0
mov eax, dword [esp + 4]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x30]
mov dword [esp], ecx
lea edi, [esp + 4]
mov dword [esp + 0x34], edi
lea esi, [esp + 0x3c]
call fcn.0045a83e
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x258]
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x20], 1
call fcn.00523190
movzx eax, byte [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov dword [edx], ecx
test al, al
jne 0x522fce
lea eax, [0x56bf60]
mov dword [esp], eax
call fcn.0040b1d0
mov eax, dword [esp + 4]
mov dword [esp + 0x2c], eax
lea edi, [esp + 0x78]
xor eax, eax
call fcn.0045a2eb
lea edi, [esp + 0x200]
mov esi, dword [esp + 0x30]
call fcn.0045a848
lea edi, [esp + 0x210]
lea esi, [esp + 0x3c]
call fcn.0045a83e
mov eax, dword [esp + 0x258]
mov dword [esp + 0x224], eax
mov ecx, dword [0x795b00]
test ecx, ecx
jne 0x522fab
mov edi, dword [esp + 0x2c]
lea esi, [esp + 0x78]
call fcn.0045a3de
lea eax, [0x559260]
mov dword [esp], eax
call fcn.0040b1d0
mov eax, dword [esp + 4]
lea ecx, [0x5246e0]
mov dword [eax], ecx
mov ecx, dword [0x795b00]
test ecx, ecx
jne 0x522f92
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x258]
mov dword [eax + 0xc], edx
mov ebx, dword [0x795b00]
test ebx, ebx
jne 0x522f7a
mov ebx, dword [esp + 0x254]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x2c]
mov dword [ebx + 0x1c8], 0
mov dword [ebx + 0x1cc], 0
mov ebp, dword [0x795b00]
test ebp, ebp
jne 0x522f5c
mov dword [ebx + 0x1c4], 0
mov dword [ebx + 0x1d0], eax
jmp 0x522f15
mov eax, dword [esp + 0x2c]
lea esi, [eax + 0x198]
lea edi, [esp + 0x50]
call fcn.0045a83e
lea ecx, [eax + 0x188]
mov edx, dword [esp + 0x38]
mov ebx, dword [edx]
mov dword [esp], ecx
mov edi, dword [esp + 0x34]
lea esi, [esp + 0x50]
call fcn.0045a83e
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x258]
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x20], 1
call fcn.00523190
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
mov dword [ecx], eax
mov edx, dword [esp + 0x258]
mov ebx, dword [esp + 0x2c]
mov eax, dword [ecx]
cmp eax, edx
jge 0x522f4d
mov dword [esp], ebx
mov dword [esp + 4], eax
mov byte [esp + 8], 1
call fcn.00523430
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x38]
mov dword [ecx], eax
test eax, eax
jge 0x522eb8
mov byte [esp + 0x25c], 0
add esp, 0x24c
ret
mov byte [esp + 0x25c], 1
add esp, 0x24c
ret
lea edi, [ebx + 0x1c4]
mov ebp, eax
xor eax, eax
call fcn.0045a0f0
lea edi, [ebx + 0x1d0]
mov eax, ebp
call fcn.0045a0f0
jmp 0x522f15
lea edi, [eax + 8]
mov ebx, eax
mov eax, dword [esp + 0x254]
call fcn.0045a0f0
mov eax, ebx
jmp 0x522e80
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x38]
call fcn.0045a0f0
mov eax, ecx
mov ecx, dword [esp + 0x38]
jmp 0x522e5e
lea eax, [0x56bf60]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
lea ecx, [esp + 0x78]
mov dword [esp + 8], ecx
call fcn.0040fc30
jmp 0x522e2f
mov byte [esp + 0x25c], 1
add esp, 0x24c
ret
mov eax, ebp
call fcn.0045a170
nop
call fcn.00458ba0
jmp fcn.00522cf0