Function at 0x524ff0
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.00526970
add esp, 8
cmp eax, 0xfffffffa
ja 0x525379
add eax, 5
cmp eax, 0xfffffff
ja 0x525379
shl eax, 4
push eax
call fcn.005070c0
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
je 0x525379
sub esi, 1
mov dword [esp + 0x50], eax
mov dword [esp + 0x78], esi
je 0x52535a
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 0x5250da
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 0x5251c0
mov esi, dword [esp + 0x14]
mov eax, ebx
shl eax, 4
mov dword [esp + 0x2c], eax
jmp 0x525124
mov ebx, dword [esp + 0x18]
sub edx, ebp
lea eax, [esp + 0x30]
push edx
push ebx
push edi
push eax
call fcn.00527d10
lea eax, [esp + 0x40]
push eax
call fcn.00527a70
add esp, 0x14
xor edx, edx
test esi, esi
je 0x52519d
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 0x525164
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
jmp 0x5251a4
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 0x525120
jmp 0x5251c7
shl ebx, 2
mov dword [esp + 0x1c], ebx
cmp ebp, edx
jae 0x525370
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.00527d10
lea eax, [esp + 0x40]
push eax
call fcn.00527a70
mov ecx, dword [esp + 0x28]
add esp, 0x14
xor esi, esi
test ecx, ecx
je 0x525249
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 0x525234
sub eax, 1
je 0x525230
sub eax, 1
jne 0x52523a
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 0x525210
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 0x52526f
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 0x5252ec
lea edi, [eax - 4]
shr edi, 2
inc edi
push 4
push ebp
lea eax, [esp + 0x58]
push esi
push eax
call fcn.00527fc0
lea eax, [esp + 0x60]
push eax
call fcn.00527a70
mov edx, dword [esp + 0x24]
add esp, 0x14
test edx, edx
je 0x5252e0
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 0x5252d0
add esi, 0x10
sub edi, 1
jne 0x5252a2
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 3
je 0x52533f
push edi
push ebp
lea eax, [esp + 0x58]
push esi
push eax
call fcn.00527fc0
lea eax, [esp + 0x60]
push eax
call fcn.00527a70
mov eax, dword [esp + 0x24]
add esp, 0x14
test eax, eax
je 0x525343
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 0x525326
mov eax, dword [esp + 0x10]
sub dword [esp + 0x78], 1
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x74]
jne 0x525080
mov eax, dword [esp + 0x30]
push eax
call fcn.005070a0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov ebp, dword [esp + 0x18]
jmp 0x52524d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret