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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x526eac
sub esp, 0x64
mov eax, dword [esp + 0x84]
lea ecx, [eax + 1]
mov dword [esp], ecx
call fcn.00520f90
mov eax, dword [esp + 4]
mov dword [esp + 0x58], eax
mov ecx, dword [eax + 4]
mov dword [esp + 0x34], ecx
mov edx, dword [eax]
mov dword [esp + 0x5c], edx
mov ebx, dword [eax + 8]
mov dword [esp + 0x38], ebx
mov ebp, dword [esp + 0x84]
mov esi, dword [esp + 0x80]
mov edi, dword [esi + ebp*4 - 4]
mov dword [esp + 0x28], edi
mov dword [esp], edi
call fcn.0051ad30
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x84]
mov edx, eax
sub eax, ecx
mov dword [esp + 0x40], eax
mov ebx, dword [esp + 4]
mov dword [esp + 0x2c], ebx
mov ebp, eax
jmp 0x526c31
dec eax
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x40]
test eax, eax
jl 0x526e54
lea esi, [ecx + eax]
mov dword [esp + 0x54], esi
cmp edx, esi
jle 0x526c4d
mov edi, dword [esp + 0x74]
mov esi, dword [edi + esi*4]
jmp 0x526c53
mov edi, dword [esp + 0x74]
xor esi, esi
mov dword [esp + 0x44], eax
mov ebp, dword [esp + 0x28]
cmp esi, ebp
jne 0x526c66
mov esi, 0xffffffff
jmp 0x526cc7
lea edx, [eax + ecx - 1]
mov edx, dword [edi + edx*4]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
call fcn.0051ac00
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov ebx, dword [edx + ecx*4 - 8]
mov ebp, eax
mov eax, ebx
mul ebp
mov edi, dword [esp + 0x14]
nop
mov esi, dword [esp + 0x44]
lea esi, [esi + ecx - 2]
mov ecx, dword [esp + 0x74]
mov esi, dword [ecx + esi*4]
nop
nop
jmp 0x526e87
mov edx, dword [esp + 0x28]
mov eax, ebp
mov ecx, dword [esp + 0x84]
mov esi, eax
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
mov ebp, dword [esp + 0x88]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0
call fcn.00528140
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x5c]
mov dword [edx + ecx*4], eax
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x34]
lea esi, [ebp + ebx]
mov edi, dword [esp + 0x78]
cmp edi, esi
jge 0x526d38
test eax, eax
jne 0x526d38
lea eax, [ebp - 1]
jmp 0x526d3a
mov eax, ebp
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x7c]
sub ecx, ebx
mov dword [esp + 0x4c], ecx
neg ecx
sar ecx, 0x1f
shl ebx, 2
and ecx, ebx
mov ebx, dword [esp + 0x74]
add ecx, ebx
mov dword [esp + 0x60], ecx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov esi, dword [esp + 0x4c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x44]
sub edi, eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x20], ebp
call fcn.00528000
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x526daf
mov ecx, dword [esp + 0x84]
mov ebx, dword [esp + 0x74]
mov esi, dword [esp + 0x50]
jmp 0x526e23
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov ecx, dword [esp + 0x84]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x80]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x20], edx
call fcn.00527fc0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x30]
cmp ecx, edx
jge 0x526e18
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x74]
add dword [ebx + edx*4], eax
jmp 0x526e1c
mov ebx, dword [esp + 0x74]
mov eax, dword [esp + 0x50]
lea esi, [eax - 1]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
cmp eax, edx
jne 0x526e44
mov ebp, dword [esp + 0x6c]
cmp ebp, edx
jne 0x526e48
test esi, esi
jne 0x526e48
mov edi, dword [esp + 0x68]
jmp 0x526c24
mov ebp, dword [esp + 0x6c]
mov edi, dword [esp + 0x68]
mov dword [edi + eax*4], esi
jmp 0x526c24
lea eax, [0xe73600]
mov dword [esp], eax
lea eax, [0x670ba0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
call fcn.00466510
add esp, 0x64
ret
mov dword [esp + 0x3c], eax
mul ebx
nop
nop
nop
mov edi, ebp
mov ebp, dword [esp + 0x3c]
cmp edi, edx
jb 0x526e99
jne 0x526cb8
cmp eax, esi
jbe 0x526cb8
lea eax, [ebp - 1]
mov edx, dword [esp + 0x28]
lea ebp, [edi + edx]
cmp edi, ebp
jbe 0x526e78
jmp 0x526cbe
call fcn.0045dbb0
jmp fcn.00526ba0