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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 8]
cmp eax, dword [ecx + 8]
jbe 0x5267eb
sub esp, 0x88
mov eax, dword [esp + 0xa8]
test eax, 1
jne 0x52619b
cmp dword [0x8bce58], eax
jg 0x52619b
cmp eax, 2
jge 0x526202
mov ecx, dword [esp + 0x8c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x20], eax
call fcn.00525a40
add esp, 0x88
ret
mov ecx, eax
sar eax, 1
mov edx, dword [esp + 0x9c]
cmp edx, eax
jb 0x5267e3
mov ebx, dword [esp + 0xa0]
mov ebp, ebx
sub ebx, eax
mov dword [esp + 0x3c], ebx
sub edx, eax
mov esi, eax
shl eax, 2
neg ebx
sar ebx, 0x1f
and ebx, eax
mov edi, dword [esp + 0x98]
add ebx, edi
cmp ecx, esi
jb 0x5267dc
mov dword [esp + 0x68], esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x78], ebx
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x94]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebp
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
mov ebx, dword [esp + 0xac]
mov dword [esp + 0x20], ebx
call fcn.00526160
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x68]
sub eax, ecx
mov ebx, dword [esp + 0xa8]
mov ebp, ebx
sub ebx, ecx
mov esi, eax
neg eax
sar eax, 0x1f
mov edi, dword [esp + 0x64]
and eax, edi
mov edi, dword [esp + 0xa4]
add eax, edi
mov edx, dword [esp + 0x90]
cmp edx, ebp
jb 0x5267d3
mov dword [esp + 0x30], ebx
mov dword [esp + 0x60], esi
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x94]
sub ecx, ebp
mov dword [esp + 0x5c], ecx
shl ebp, 2
mov dword [esp + 0x58], ebp
neg ecx
sar ecx, 0x1f
and ecx, ebp
mov ebp, dword [esp + 0x8c]
add ecx, ebp
mov dword [esp], ecx
mov ecx, dword [esp + 0xa8]
sub edx, ecx
mov dword [esp + 4], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], esi
call fcn.00526160
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x68]
lea edx, [ecx + eax*2]
mov ebx, dword [esp + 0x94]
cmp ebx, edx
jb 0x5267ca
mov ebp, eax
shl eax, 1
cmp edx, eax
jb 0x5267c3
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], edx
sub ebx, eax
mov dword [esp + 0x34], ebx
mov esi, ebx
neg ebx
shl ebp, 3
sar ebx, 0x1f
and ebx, ebp
mov ebp, dword [esp + 0x8c]
add ebx, ebp
mov dword [esp + 0x74], ebx
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x78]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x20], eax
call fcn.0052efb0
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x5263ed
mov eax, 1
jmp 0x526440
mov eax, dword [esp + 0x74]
mov dword [esp], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x98]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x20], ebx
call fcn.0052efb0
mov eax, 0xffffffff
mov ebx, dword [esp + 0xa8]
lea ecx, [ebx + ebx*2]
mov edx, dword [esp + 0x94]
cmp edx, ecx
jb 0x5267be
mov ebp, dword [esp + 0x54]
cmp ecx, ebp
jb 0x5267b7
mov dword [esp + 0x54], ecx
mov dword [esp + 0x40], eax
sub edx, ebp
mov dword [esp + 0x2c], edx
mov ebx, edx
neg edx
mov esi, ebp
shl ebp, 2
sar edx, 0x1f
and edx, ebp
mov ebp, dword [esp + 0x8c]
add edx, ebp
mov dword [esp + 0x6c], edx
mov dword [esp], edx
sub ecx, esi
mov dword [esp + 0x28], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov esi, dword [esp + 0xa4]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x68]
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0xac]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x20], ebx
call fcn.0052efb0
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x5264e8
mov eax, dword [esp + 0x40]
jmp 0x526540
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x1c], ebx
mov ebp, dword [esp + 0xac]
mov dword [esp + 0x20], ebp
call fcn.0052efb0
mov eax, dword [esp + 0x40]
neg eax
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x54]
cmp ecx, edx
jb 0x5267b0
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x94]
sub eax, edx
mov dword [esp + 0x50], eax
mov ebp, eax
neg eax
mov esi, edx
shl edx, 2
sar eax, 0x1f
and eax, edx
mov edx, dword [esp + 0x8c]
add eax, edx
mov dword [esp + 0x80], eax
mov dword [esp], eax
sub ecx, esi
mov dword [esp + 0x4c], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x74]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x68]
mov dword [esp + 0x10], esi
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x20], ebp
call fcn.00526160
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x58]
cmp ecx, eax
jb 0x5267ab
mov edx, ecx
sub ecx, eax
mov ebx, dword [esp + 0x94]
mov ebp, ebx
sub ebx, eax
mov dword [esp + 0x48], ebx
neg ebx
mov edi, dword [esp + 0xa8]
shl edi, 4
sar ebx, 0x1f
and ebx, edi
mov edi, dword [esp + 0x8c]
lea eax, [ebx + edi]
mov esi, dword [esp + 0x5c]
cmp esi, ecx
jl 0x526613
mov esi, ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x7c], eax
test ebx, ebx
je 0x52664f
mov dword [esp], eax
mov dword [esp + 4], edi
shl esi, 2
mov dword [esp + 8], esi
call fcn.00463630
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x90]
mov ebp, dword [esp + 0x94]
mov edi, dword [esp + 0x8c]
mov ebx, dword [esp + 0x68]
sub ebp, ebx
mov dword [esp + 0x68], ebp
mov esi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
mov ecx, dword [esp + 0x64]
and ebp, ecx
lea ecx, [ebp + edi]
mov dword [esp + 0x84], ecx
mov dword [esp], ecx
sub edx, ebx
mov dword [esp + 0x64], edx
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x10], ebx
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x14], ebp
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x18], edi
call fcn.00525f80
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
ja 0x5267a6
mov edx, dword [esp + 0x84]
mov dword [esp], edx
mov ebx, dword [esp + 0x64]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x68]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x48]
sub esi, eax
mov edi, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
mov ebp, dword [esp + 0x58]
and esi, ebp
mov ebp, dword [esp + 0x7c]
add ebp, esi
mov dword [esp + 0xc], ebp
sub ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
call fcn.00525f80
mov eax, dword [esp + 0x40]
test eax, eax
jle 0x52675a
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x18], eax
call fcn.00525f80
jmp 0x52679f
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x18], eax
call fcn.00526070
add esp, 0x88
ret
call fcn.00462d90
call fcn.00462d90
mov eax, edx
call fcn.00462d90
mov eax, ebp
call fcn.00462d90
call fcn.00462d70
mov ecx, edx
call fcn.00462d90
mov ecx, edx
mov edx, ebx
call fcn.00462d70
mov eax, ebp
mov ecx, edx
call fcn.00462d90
mov eax, esi
call fcn.00462d90
mov ecx, edx
call fcn.00462d90
nop
call fcn.004618a0
jmp fcn.00526160