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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x525f84
sub esp, 0x64
mov eax, dword [0x808268]
test eax, eax
je 0x525b02
mov ecx, dword [esp + 0x68]
cmp ecx, eax
jle 0x525b02
mov edx, 1
jmp 0x525b26
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x64
ret
shl eax, 1
inc edx
mov ecx, ebx
mov ebx, ecx
sar ecx, 1
cmp eax, ecx
jge 0x525b33
cmp edx, 0x40
jl 0x525b21
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x6c]
cmp eax, 0xa
jne 0x525b5b
lea eax, [0xe740c0]
mov dword [esp], eax
call fcn.00465e80
lea eax, [0xe740c8]
mov ecx, 0x40
jmp 0x525b79
lea eax, [0x6540c0]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.00447490
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x58], eax
mov edx, dword [esp + 0x44]
lea ebx, [edx + edx*4]
mov ebx, dword [eax + ebx*4 - 4]
test ebx, ebx
jne 0x525b94
xor ebx, ebx
jmp 0x525bcb
mov ebx, dword [esp + 0x6c]
cmp ebx, 0xa
jne 0x525bb7
lea eax, [0xe740c0]
mov dword [esp], eax
call fcn.00466200
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], ecx
add esp, 0x64
ret
inc ebx
cmp ebx, edx
jge 0x525e26
lea ebp, [ebx + ebx*4]
mov esi, dword [eax + ebp*4 + 0x10]
test esi, esi
jne 0x525bca
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebp
test ebx, ebx
jne 0x525c53
mov eax, dword [0x808268]
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x74]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.005259f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x58]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ecx, dword [0xe996c0]
test ecx, ecx
jne 0x525c3c
mov dword [edi], eax
jmp 0x525c41
call fcn.0045efc0
mov eax, dword [0x808268]
mov ecx, dword [esp + 0x70]
imul eax, ecx
mov dword [edi + 0x10], eax
jmp 0x525ccc
mov ecx, dword [eax + ebp*4 - 0x14]
mov edx, dword [eax + ebp*4 - 0x10]
mov ebx, dword [eax + ebp*4 - 0xc]
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
call fcn.00520900
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x58]
mov dword [ebp + ebx*4 + 4], ecx
mov dword [ebp + ebx*4 + 8], edx
lea edi, [ebp + ebx*4]
mov ecx, dword [0xe996c0]
test ecx, ecx
jne 0x525cb7
mov dword [ebp + ebx*4], eax
jmp 0x525cbc
call fcn.0045efc0
mov eax, dword [ebp + ebx*4 - 4]
shl eax, 1
mov dword [ebp + ebx*4 + 0x10], eax
mov ecx, dword [esp + 0x70]
mov edi, ebp
mov eax, dword [esp + 0x4c]
mov edx, dword [edi + eax*4 + 4]
mov ebx, dword [edi + eax*4]
lea ebp, [edi + eax*4]
mov dword [esp + 0x60], ebp
test edx, edx
jg 0x525cf7
xor esi, esi
xor esi, esi
mov dword [esp + 0x5c], esi
xor esi, esi
mov dword [esp + 0x40], esi
xor esi, esi
jmp 0x525da1
mov dword [esp + 0x34], edx
mov dword [esp + 0x54], ebx
cmp edx, 1
jne 0x525d56
lea eax, [0x63e860]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00447490
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x58]
mov esi, 1
mov dword [esp + 0x5c], eax
mov ecx, 1
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x70]
jmp 0x525da1
lea eax, [0x63e860]
mov dword [esp], eax
mov dword [esp + 4], edx
lea ecx, [edx + 4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 8], ecx
call fcn.00447490
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x58]
mov esi, edx
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x70]
cmp esi, edx
jg 0x525da7
mov edx, esi
mov dword [esp + 0x3c], esi
mov ecx, dword [esp + 0x5c]
cmp ecx, ebx
je 0x525e3a
mov dword [esp], ecx
mov dword [esp + 4], ebx
shl edx, 2
mov dword [esp + 8], edx
call fcn.0045f7b0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x58]
jmp 0x525e3a
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx + eax*4]
mov ebx, dword [ecx + eax*4 + 4]
mov ebp, dword [ecx + eax*4 + 8]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
call fcn.005210d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
mov dword [edx + ecx*4 + 0xc], eax
mov eax, edx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
jmp 0x525bca
mov ebx, dword [esp + 0x6c]
cmp ebx, 0xa
jmp 0x525b9b
inc dword [edx + ecx*4 + 0x10]
mov ecx, ebx
mov esi, ebp
mov dword [esp], ecx
mov dword [esp + 4], esi
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], 0
call fcn.00528140
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x525de0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
mov ebx, dword [edx + ecx*4 + 8]
mov ebp, dword [edx + ecx*4]
mov esi, dword [esp + 0x3c]
cmp esi, ebx
jg 0x525e91
mov eax, esi
jmp 0x525f03
cmp esi, 1
jne 0x525ed0
lea eax, [0x63e860]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00447490
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
mov esi, 1
mov ebx, 1
jmp 0x525f03
lea eax, [0x63e860]
mov dword [esp], eax
mov dword [esp + 4], esi
lea ecx, [esi + 4]
mov dword [esp + 0x28], ecx
mov dword [esp + 8], ecx
call fcn.00447490
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
mov esi, eax
mov ebx, dword [esp + 0x28]
cmp esi, eax
jle 0x525f0b
mov edi, eax
jmp 0x525f0f
mov edi, eax
mov eax, esi
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x5c]
cmp ebp, ebx
je 0x525f4e
mov dword [esp + 0x30], esi
mov dword [esp + 0x50], ebp
mov dword [esp], ebp
mov dword [esp + 4], ebx
shl eax, 2
mov dword [esp + 8], eax
call fcn.0045f7b0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x3c]
mov dword [edx + ecx*4 + 4], esi
mov esi, dword [esp + 0x24]
mov dword [edx + ecx*4 + 8], esi
mov esi, dword [0xe996c0]
test esi, esi
jne 0x525f72
mov dword [edx + ecx*4], ebp
mov ebp, edi
mov edi, dword [esp + 0x60]
jmp 0x525e32
mov eax, ebp
mov ebp, edi
mov edi, dword [esp + 0x60]
call fcn.0045efc0
jmp 0x525e32
call fcn.0045dbb0
jmp fcn.00525ad0