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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x527034
sub esp, 0x6c
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x527023
cmp ecx, 1
je 0x526fc0
cmp ecx, 0x10
jne 0x526f5d
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov eax, dword [esp + 0x70]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 4
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea ecx, [0x65ece4]
mov dword [esp], ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 4], ecx
call fcn.004092a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test eax, eax
jne 0x526f2d
mov eax, dword [esp + 0x78]
test eax, eax
je 0x526ce3
mov ecx, dword [eax + 4]
test ecx, ecx
jg 0x526ed1
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00526550
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
test eax, eax
jne 0x526ea1
test ebp, ebp
je 0x526e4a
mov dword [esp + 0x48], ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], esi
lea edx, [esi - 1]
neg edx
sar edx, 0x1f
and edx, 4
add edx, ebx
mov dword [esp + 0x44], edx
lea edi, [ebp - 1]
mov dword [esp + 0x34], edi
xor eax, eax
jmp 0x526d4c
inc eax
mov esi, ecx
cmp edi, eax
jle 0x526e1e
mov ecx, esi
mov esi, dword [edx + eax*4]
cmp dword [esi + 0x4c], 3
jne 0x526d49
cmp eax, ebp
jae 0x52702c
mov dword [esp + 0x30], eax
mov ecx, dword [ebx + eax*4]
mov edx, dword [ecx + 0x48]
mov ebp, dword [ecx + 0x10]
mov edi, dword [ecx + 0x14]
mov ebx, dword [ecx + 0xc]
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 0x40]
mov ecx, dword [ecx + 0x44]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x50]
mov esi, dword [esi + 0x54]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x40]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], esi
call fcn.0052c810
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
test eax, eax
jne 0x526dee
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
jmp 0x526d49
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
add esp, 0x6c
ret
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x6c
ret
lea eax, [0x5e46a0]
mov dword [esp], eax
call fcn.0040b8d0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x3d
lea ecx, [0x61fa0f]
mov dword [eax], ecx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x65e99c]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x6c
ret
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
add esp, 0x6c
ret
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.005267a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test eax, eax
je 0x526ce3
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
add esp, 0x6c
ret
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
add esp, 0x6c
ret
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x70]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea ecx, [0x65ed48]
mov dword [esp], ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 4], ecx
call fcn.004092a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
jmp 0x526cc8
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov eax, dword [esp + 0x70]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea ecx, [0x65ece4]
mov dword [esp], ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 4], ecx
call fcn.004092a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
jmp 0x526cc8
xor eax, eax
xor ecx, ecx
jmp 0x526cc8
mov ecx, ebp
call fcn.0045de90
nop
call fcn.0045c8b0
jmp fcn.00526c30