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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x30]
cmp eax, dword [ecx + 8]
jbe 0x52642f
sub esp, 0xb0
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov byte [esp + 0x1f], 1
mov ebx, dword [esp + 0xb4]
lea edi, [esp + 0x80]
xor eax, eax
call fcn.004637b4
mov dword [esp], 0x74b860
mov dword [esp + 4], ebx
lea ebx, [esp + 0x80]
mov dword [esp + 8], ebx
call fcn.00414450
mov eax, dword [esp + 0x80]
xor ebx, ebx
cmp eax, ebx
je 0x5260e4
mov ebx, dword [esp + 0x84]
mov ebp, dword [ebx]
mov ebx, dword [esp + 0x80]
cmp ebx, 0
je 0x526428
mov ebp, dword [ebp]
mov ebx, dword [esp + 0xb8]
cmp ebp, ebx
jg 0x526414
mov byte [esp + 0x1f], 0
cmp byte [esp + 0x1f], 0
je 0x5260f2
add esp, 0xb0
ret
mov dword [esp], 2
call fcn.004128b0
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
movzx eax, byte [esp + 0x14]
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
cmp al, 0
je 0x52620c
mov dword [esp], ecx
call fcn.00450000
mov ebx, dword [esp + 4]
mov dword [esp], ebx
call fcn.00450040
mov ebx, dword [esp + 4]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 8]
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x24], 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 + 0x30], ebx
mov dword [esp], 0x70b040
lea ebx, [esp + 0x4c]
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 + 0x30]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov dword [esp], 0x70aa00
lea ebx, [esp + 0x24]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
call fcn.004178c0
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
mov edx, 2
mov ecx, 2
mov eax, ebx
mov ebx, 0x758865
mov dword [esp], ebx
mov dword [esp + 4], 5
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.004699b0
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0xbc]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0xc0]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0xc8]
cmp ebx, 0
jle 0x52640f
mov ebx, dword [esp + 0xbc]
mov dword [esp], ebx
mov ebx, dword [esp + 0xc0]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xc4]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xc8]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0xcc]
mov dword [esp + 0x10], ebx
call fcn.004699b0
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x40], ebx
call fcn.00514ae0
mov ebx, dword [esp]
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 4]
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 8]
mov dword [esp + 0x78], ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x7c], ebx
mov dword [esp], 0x72f340
call fcn.0041a7b0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xb8]
mov dword [eax], ecx
mov dword [esp + 0x2c], eax
mov ebp, dword [esp + 0x70]
mov dword [eax + 4], ebp
mov ebp, dword [esp + 0x74]
mov dword [eax + 8], ebp
mov ebp, dword [esp + 0x78]
mov dword [eax + 0xc], ebp
mov ebp, dword [esp + 0x7c]
cmp byte [0x8f7eb8], 0
jne 0x5263f7
mov dword [eax + 0x10], ebp
mov ebp, dword [esp + 0x38]
mov dword [eax + 0x18], ebp
mov ebp, dword [esp + 0x34]
cmp byte [0x8f7eb8], 0
jne 0x5263df
mov dword [eax + 0x14], ebp
mov ebp, dword [esp + 0x40]
mov dword [eax + 0x20], ebp
mov ebp, dword [esp + 0x3c]
cmp byte [0x8f7eb8], 0
jne 0x5263c7
mov dword [eax + 0x1c], ebp
mov dword [esp + 0x28], eax
mov ebx, dword [esp + 0xb4]
lea edi, [esp + 0x80]
xor eax, eax
call fcn.004637b4
mov dword [esp], 0x74b860
mov dword [esp + 4], ebx
lea ebx, [esp + 0x80]
mov dword [esp + 8], ebx
call fcn.00414450
mov eax, dword [esp + 0x80]
xor ebx, ebx
cmp eax, ebx
je 0x52639c
mov ebx, dword [esp + 0x84]
mov eax, dword [ebx]
mov ebx, dword [esp + 0x80]
cmp ebx, 0
je 0x5263c3
mov ebp, dword [eax]
mov ebx, dword [esp + 0xb8]
cmp ebp, ebx
jle 0x5263a3
lea ebx, [esp + 0x80]
mov dword [esp], ebx
call fcn.00414740
mov eax, dword [esp + 0x80]
xor ebx, ebx
cmp eax, ebx
jne 0x52635e
add esp, 0xb0
ret
mov ecx, dword [eax + 4]
mov ebp, dword [eax + 8]
mov ebx, dword [esp + 0x28]
mov dword [esp + 4], ebx
mov dword [esp + 0x48], ebp
mov dword [esp], ebp
mov dword [esp + 0x44], ecx
mov ebx, dword [ecx + 0x18]
call ebx
jmp 0x526380
mov dword [ebx], eax
jmp 0x526373
lea esi, [eax + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], ebp
call fcn.0041b160
mov eax, dword [esp + 0x2c]
jmp 0x52631d
lea esi, [eax + 0x14]
mov dword [esp], esi
mov dword [esp + 4], ebp
call fcn.0041b160
mov eax, dword [esp + 0x2c]
jmp 0x526302
lea esi, [eax + 0x10]
mov dword [esp], esi
mov dword [esp + 4], ebp
call fcn.0041b160
mov eax, dword [esp + 0x2c]
jmp 0x5262e7
jmp 0x52627d
lea ebx, [esp + 0x80]
mov dword [esp], ebx
call fcn.00414740
jmp 0x5260a7
mov dword [ebx], eax
jmp 0x5260cd
call fcn.004616d0
jmp fcn.00526040