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

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
mov esi, dword [esp + 0x74]
push edi
mov edi, dword [esp + 0x74]
push esi
mov ecx, dword [edi + 0x1c]
push ecx
mov dword [esp + 0x2c], ecx
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 4]
mov ebp, dword [ecx + 8]
sub ebp, dword [ecx]
mov dword [esp + 0x18], eax
imul eax, dword [edi + 0x18], 0x98
mov ebx, dword [eax + ecx - 0x90]
sub ebx, dword [eax + ecx - 0x98]
mov dword [esp + 0x20], ebx
call fcn.00526c10
add esp, 8
cmp eax, 0xfffffffa
ja 0x525619
add eax, 5
cmp eax, 0xfffffff
ja 0x525619
shl eax, 4
push eax
call fcn.00507360
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
je 0x525619
sub esi, 1
mov dword [esp + 0x50], eax
mov dword [esp + 0x78], esi
je 0x5255fa
mov eax, dword [esp + 0x10]
nop dword [eax]
mov ecx, dword [esp + 0x24]
mov edx, ebp
mov edi, dword [edi + 0x24]
mov esi, ebp
mov dword [esp + 0x20], ecx
add ecx, 0x98
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x58], eax
mov dword [esp + 0x24], ecx
mov eax, dword [ebp + 0xa0]
mov ecx, dword [ecx]
sub eax, ecx
mov ebp, dword [ebp + 0xa4]
sub ebp, dword [ebx + 0x9c]
mov dword [esp + 0x14], eax
sub eax, edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x34], eax
and ecx, 0x80000001
jns 0x52537a
dec ecx
or ecx, 0xfffffffe
inc ecx
mov edx, dword [esp + 0x10]
xor ebp, ebp
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x28], ebp
cmp edx, 3
jbe 0x525460
mov esi, dword [esp + 0x14]
mov eax, ebx
shl eax, 4
mov dword [esp + 0x2c], eax
jmp 0x5253c4
mov ebx, dword [esp + 0x18]
sub edx, ebp
lea eax, [esp + 0x30]
push edx
push ebx
push edi
push eax
call fcn.00527fb0
lea eax, [esp + 0x40]
push eax
call fcn.00527d10
add esp, 0x14
xor edx, edx
test esi, esi
je 0x52543d
mov ecx, dword [esp + 0x30]
lea eax, [ebx + ebx*2]
lea esi, [edi + eax*4]
add ecx, 8
mov eax, dword [esp + 0x18]
lea ebx, [edi + ebx*8]
shl eax, 2
mov dword [esp + 0x1c], eax
lea ebp, [eax + edi]
mov eax, dword [ecx - 8]
lea ebp, [ebp + 4]
mov dword [edi + edx*4], eax
lea ebx, [ebx + 4]
mov eax, dword [ecx - 4]
lea esi, [esi + 4]
mov dword [ebp - 4], eax
lea ecx, [ecx + 0x10]
mov eax, dword [ecx - 0x10]
inc edx
mov dword [ebx - 4], eax
mov eax, dword [ecx - 0xc]
mov dword [esi - 4], eax
cmp edx, dword [esp + 0x14]
jb 0x525404
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
jmp 0x525444
shl ebx, 2
mov dword [esp + 0x1c], ebx
add edi, dword [esp + 0x2c]
add ebp, 4
mov edx, dword [esp + 0x10]
mov dword [esp + 0x28], ebp
lea eax, [ebp + 3]
cmp eax, edx
jb 0x5253c0
jmp 0x525467
shl ebx, 2
mov dword [esp + 0x1c], ebx
cmp ebp, edx
jae 0x525610
sub edx, ebp
lea eax, [esp + 0x30]
mov ebp, dword [esp + 0x18]
push edx
push ebp
push edi
push eax
mov dword [esp + 0x38], edx
call fcn.00527fb0
lea eax, [esp + 0x40]
push eax
call fcn.00527d10
mov ecx, dword [esp + 0x28]
add esp, 0x14
xor esi, esi
test ecx, ecx
je 0x5254e9
mov edx, dword [esp + 0x30]
lea eax, [ebx + edi]
mov dword [esp + 0x2c], eax
add edx, 4
mov ebx, eax
nop dword [eax]
mov eax, dword [esp + 0x28]
sub eax, 1
je 0x5254d4
sub eax, 1
je 0x5254d0
sub eax, 1
jne 0x5254da
mov eax, dword [edx + 4]
lea ecx, [esi + ebp*2]
mov dword [edi + ecx*4], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [edx]
mov dword [ebx], eax
mov eax, dword [edx - 4]
mov dword [edi + esi*4], eax
inc esi
add edx, 0x10
add ebx, 4
cmp esi, ecx
jb 0x5254b0
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov ecx, edx
mov edx, dword [esp + 0x58]
sub ecx, edx
mov dword [esp + 0x54], ecx
mov eax, dword [eax + 0x9c]
and eax, 0x80000001
jns 0x52550f
dec eax
or eax, 0xfffffffe
inc eax
mov esi, dword [esp + 0x74]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x60], 0
mov esi, dword [esi + 0x24]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], ecx
cmp eax, 3
jbe 0x52558c
lea edi, [eax - 4]
shr edi, 2
inc edi
push 4
push ebp
lea eax, [esp + 0x58]
push esi
push eax
call fcn.00528260
lea eax, [esp + 0x60]
push eax
call fcn.00527d10
mov edx, dword [esp + 0x24]
add esp, 0x14
test edx, edx
je 0x525580
mov eax, dword [esp + 0x30]
mov ecx, esi
nop dword [eax + eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x10]
movups xmmword [ecx], xmm0
add ecx, ebx
sub edx, 1
jne 0x525570
add esi, 0x10
sub edi, 1
jne 0x525542
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 3
je 0x5255df
push edi
push ebp
lea eax, [esp + 0x58]
push esi
push eax
call fcn.00528260
lea eax, [esp + 0x60]
push eax
call fcn.00527d10
mov eax, dword [esp + 0x24]
add esp, 0x14
test eax, eax
je 0x5255e3
lea ecx, [edi*4]
mov ebp, eax
mov edi, dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
push ecx
push edi
push esi
call fcn.00430c10
mov ecx, dword [esp + 0x38]
add esp, 0xc
add edi, 0x10
add esi, ebx
sub ebp, 1
jne 0x5255c6
mov eax, dword [esp + 0x10]
sub dword [esp + 0x78], 1
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x74]
jne 0x525320
mov eax, dword [esp + 0x30]
push eax
call fcn.00507340
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov ebp, dword [esp + 0x18]
jmp 0x5254ed
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret