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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5256ac
sub esp, 0x50
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x88]
cmp eax, ecx
jne 0x525693
mov edx, dword [esp + 0x70]
cmp edx, ecx
jne 0x525693
mov edx, dword [esp + 0x7c]
cmp edx, ecx
jne 0x525693
mov ebx, ecx
shl ecx, 1
mov ebp, dword [esp + 0x5c]
cmp ebp, ecx
jl 0x5253e9
mov esi, dword [esp + 0x54]
jmp 0x52546b
cmp ecx, 1
jne 0x52542d
lea eax, [0x67e160]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00447740
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x88]
mov esi, eax
mov ebp, 1
mov ecx, 1
mov eax, dword [esp + 0x64]
jmp 0x52546b
mov dword [esp + 0x34], ecx
lea eax, [0x67e160]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [ecx + 4]
mov dword [esp + 0x28], eax
mov dword [esp + 8], eax
call fcn.00447740
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x88]
mov esi, eax
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x48], esi
nop
test ecx, ecx
je 0x5254a6
mov dword [esp], esi
shl ecx, 2
mov dword [esp + 4], ecx
call fcn.0045fc90
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x88]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x48]
xor edi, edi
xor edi, edi
mov dword [esp + 0x40], edi
xor edi, edi
jmp 0x5254d4
lea edi, [esi + 1]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x88]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x64]
cmp ebx, edi
jle 0x5255c8
mov dword [esp + 0x38], edi
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + edi*4]
sub ebp, edi
mov dword [esp + 0x44], ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
shl edi, 2
sar ebp, 0x1f
and ebp, edi
add ebp, esi
mov dword [esp + 0x4c], ebp
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov edi, dword [esp + 0x44]
mov dword [esp + 8], edi
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
call fcn.0052e510
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x48]
mov ebx, dword [edx + ecx*4]
mov ebp, dword [esp + 0x4c]
mov dword [esp], ebp
mov ebp, dword [esp + 0x88]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x44]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x78]
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x80]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x84]
imul ebx, edi
mov dword [esp + 0x18], ebx
call fcn.0052e510
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
add edx, ecx
lea ebx, [edx + eax]
mov ebp, dword [esp + 0x88]
mov esi, dword [esp + 0x38]
lea edi, [esi + ebp]
mov ebp, dword [esp + 0x48]
mov dword [ebp + edi*4], ebx
cmp ecx, edx
ja 0x5255b7
cmp eax, ebx
jbe 0x5255c1
mov eax, 1
jmp 0x5254b2
xor eax, eax
jmp 0x5254b2
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x52561b
mov eax, ebp
sub ebp, ebx
xchg ebp, ebx
neg ebx
xchg ebp, ebx
mov edx, ebx
shl ebx, 2
sar ebp, 0x1f
and ebx, ebp
lea ebp, [esi + ebx]
sub ecx, edx
cmp edx, ecx
jg 0x5255ef
mov ecx, edx
test ebx, ebx
je 0x52567a
mov dword [esp], esi
mov dword [esp + 4], ebp
shl ecx, 2
mov dword [esp + 8], ecx
call fcn.0045fe60
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x88]
mov esi, dword [esp + 0x48]
jmp 0x52567a
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
sub ebp, ebx
mov edi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
shl ebx, 2
sar ebp, 0x1f
and ebx, ebp
add ebx, esi
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x88]
sub ecx, ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x20], ecx
call fcn.0052e390
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x88]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], eax
add esp, 0x50
ret
lea eax, [0x67e720]
mov dword [esp], eax
lea eax, [0x894f58]
mov dword [esp + 4], eax
call fcn.00433690
nop
call fcn.0045e260
jmp fcn.00525390