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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
push esi
push edi
mov edi, ecx
mov dword [esp + 0x3c], edx
mov edx, dword [0x6bb530]
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], edx
test byte [edi + 0xc], 0x42
jne 0x521f44
cmp byte [edi + 0xc4], 0
jg 0x521f44
cmp byte [edi + 0xc5], 0
jg 0x521f44
cmp byte [edi + 0xab], 0
je 0x521f44
movss xmm2, dword [edx + 0x3bb8]
xor eax, eax
movss xmm0, dword [edi + 0x4c]
movaps xmm1, xmm2
addss xmm0, dword [0x58a87c]
mulss xmm2, dword [0x58a810]
mov esi, 4
mov cl, byte [edx + 0x66]
mulss xmm1, dword [0x58a884]
test cl, cl
mov byte [esp + 0xf], 0
addss xmm0, xmm2
cmovne eax, esi
mov dword [esp + 0x40], eax
maxss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x58a854]
cvttss2si esi, xmm0
je 0x521481
movss xmm0, dword [0x58a8e8]
movss dword [esp + 0x2c], xmm0
jmp 0x52148a
xorps xmm2, xmm2
movss dword [esp + 0x2c], xmm2
cmp byte [edx + 0x67], 0
mov eax, dword [ebp + 0x14]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x70], xmm0
je 0x5214ec
test byte [edi + 0xc], 1
jne 0x5214ec
mov ecx, dword [edi]
mov eax, dword [edi + 0x2f8]
mov byte [esp + 0xe], 1
movss xmm1, dword [ecx + 0x3bbc]
mulss xmm1, dword [edi + 0x25c]
test eax, eax
je 0x5214ca
mulss xmm1, dword [eax + 0x25c]
movss xmm0, dword [ecx + 0x37c8]
addss xmm0, xmm0
addss xmm0, xmm1
movss xmm1, dword [esp + 0x74]
subss xmm1, xmm0
movss dword [esp + 0x30], xmm1
jmp 0x5214fd
movss xmm0, dword [esp + 0x74]
mov byte [esp + 0xe], 0
movss dword [esp + 0x30], xmm0
movss xmm1, dword [0x58a9c0]
mov ecx, str.RESIZE
movaps xmm0, xmm1
movss dword [esp + 0x18], xmm1
movss dword [esp + 0x1c], xmm1
movss dword [esp + 0x28], xmm0
movss dword [esp + 0x14], xmm1
mov dword [edi + 0x148], 1
call fcn.00525fe0
xor edx, edx
mov dword [esp + 0x20], edx
cmp dword [ebp + 0xc], edx
jle 0x521977
movss xmm0, dword [edi + 0x14]
lea eax, [edx + edx*2]
movss xmm1, dword [edi + 0x18]
movaps xmm3, xmm0
addss xmm3, dword [edi + 0x1c]
movaps xmm2, xmm1
mov dword [esp + 0x34], eax
addss xmm2, dword [edi + 0x20]
xorps xmm6, xmm6
cvtsi2ss xmm6, esi
subss xmm3, xmm0
subss xmm2, xmm1
mulss xmm3, dword [eax*8 + 0x570d18]
mulss xmm2, dword [eax*8 + 0x570d1c]
addss xmm3, xmm0
movss xmm0, dword [eax*8 + 0x570d20]
movaps xmm5, xmm0
mulss xmm0, dword [esp + 0x2c]
addss xmm2, xmm1
mulss xmm5, xmm6
movss xmm1, dword [eax*8 + 0x570d24]
movaps xmm4, xmm1
mulss xmm1, dword [esp + 0x2c]
mulss xmm4, xmm6
addss xmm5, xmm3
subss xmm3, xmm0
addss xmm4, xmm2
subss xmm2, xmm1
movss dword [esp + 0x68], xmm5
comiss xmm3, xmm5
movss dword [esp + 0x60], xmm3
movss dword [esp + 0x64], xmm2
movss dword [esp + 0x6c], xmm4
jbe 0x5215f2
movss dword [esp + 0x60], xmm5
movss dword [esp + 0x68], xmm3
comiss xmm2, xmm4
jbe 0x521603
movss dword [esp + 0x64], xmm4
movss dword [esp + 0x6c], xmm2
push edx
mov ecx, edi
call fcn.0051cd00
mov edi, eax
lea ecx, [esp + 0x60]
push 8
push 0
mov edx, edi
call fcn.00528490
push 0x40800
lea eax, [esp + 0x18]
mov edx, edi
push eax
lea eax, [esp + 0x1d]
push eax
lea ecx, [esp + 0x74]
call fcn.00545f10
mov cl, byte [esp + 0x21]
add esp, 0x14
test cl, cl
jne 0x52164d
mov al, byte [esp + 0xc]
test al, al
je 0x521924
mov edx, dword [esp + 0x20]
mov eax, edx
mov ecx, dword [esp + 0x24]
not eax
and eax, 1
add eax, 5
mov dword [ecx + 0x4960], eax
mov al, byte [esp + 0xc]
test al, al
je 0x52192e
cmp word [ecx + 0x370a], 2
jne 0x5216d1
test edx, edx
jne 0x5216d1
push dword [esp + 0x3c]
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x5c]
mov edx, edi
call fcn.00520d50
add esp, 4
mov byte [esp + 0xf], 1
xor edx, edx
xor ecx, ecx
movss xmm0, dword [eax]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [eax + 4]
movss dword [esp + 0x14], xmm0
call fcn.0051ce10
mov edx, dword [esp + 0x20]
cmp byte [esp + 0xc], 0
je 0x52194a
mov ecx, 0x20
jmp 0x521956
mov edx, dword [esp + 0x34]
xorps xmm1, xmm1
movss xmm3, dword [0x58a87c]
movss xmm7, dword [edx*8 + 0x570d1c]
ucomiss xmm7, xmm3
lahf
test ah, 0x44
jnp 0x52170f
ucomiss xmm7, xmm1
lahf
test ah, 0x44
jp 0x521702
cmp byte [esp + 0xe], 0
jne 0x52170f
movss xmm2, dword [0x58aa10]
movaps xmm6, xmm2
jmp 0x52171d
movss xmm6, dword [esp + 0x30]
movss xmm2, dword [0x58aa10]
movss xmm0, dword [edx*8 + 0x570d18]
ucomiss xmm0, xmm3
lahf
test ah, 0x44
jp 0x521737
movss xmm5, dword [esp + 0x70]
jmp 0x52173a
movaps xmm5, xmm2
ucomiss xmm7, xmm1
lahf
test ah, 0x44
jp 0x521759
movss xmm2, dword [esp + 0x7c]
movss dword [esp + 0x28], xmm2
movss xmm2, dword [0x58a9c0]
jmp 0x521767
movss xmm2, dword [0x58a9c0]
movss dword [esp + 0x28], xmm2
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x52177e
movss xmm0, dword [esp + 0x78]
movss dword [esp + 0x1c], xmm0
jmp 0x521784
movss dword [esp + 0x1c], xmm2
movss xmm4, dword [edx*8 + 0x570d20]
xorps xmm3, xmm3
movss xmm2, dword [edx*8 + 0x570d24]
movaps xmm0, xmm4
mulss xmm0, dword [esp + 0x2c]
movaps xmm1, xmm2
mulss xmm1, dword [esp + 0x2c]
cvtsi2ss xmm3, esi
xorps xmm3, xmmword [0x58aca0]
mulss xmm4, xmm3
mulss xmm2, xmm3
subss xmm4, xmm0
subss xmm2, xmm1
mulss xmm4, dword [edx*8 + 0x570d18]
mulss xmm2, xmm7
addss xmm4, xmm0
movss xmm0, dword [ecx + 0xdc0]
subss xmm0, dword [ecx + 0x3ea8]
addss xmm2, xmm1
addss xmm4, xmm0
movss xmm0, dword [ecx + 0xdc4]
subss xmm0, dword [ecx + 0x3eac]
addss xmm0, xmm2
comiss xmm6, xmm0
ja 0x521812
movss xmm6, dword [esp + 0x28]
minss xmm6, xmm0
comiss xmm5, xmm4
ja 0x521821
movss xmm5, dword [esp + 0x1c]
minss xmm5, xmm4
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x48]
movss xmm4, dword [edx*8 + 0x570d18]
lea ecx, [esp + 0x50]
push eax
mov edx, edi
movss xmm0, dword [edi + 0x14]
movss xmm1, dword [edi + 0x18]
movaps xmm2, xmm0
addss xmm0, dword [edi + 0x1c]
subss xmm2, xmm5
movaps xmm3, xmm1
addss xmm1, dword [edi + 0x20]
subss xmm3, xmm6
mulss xmm2, xmm4
mulss xmm3, xmm7
addss xmm2, xmm5
subss xmm5, xmm0
addss xmm3, xmm6
subss xmm6, xmm1
movss dword [esp + 0x1c], xmm2
mulss xmm5, xmm4
mulss xmm6, xmm7
addss xmm5, xmm0
movss dword [esp + 0x20], xmm3
addss xmm6, xmm1
subss xmm5, xmm2
subss xmm6, xmm3
movss dword [esp + 0x4c], xmm5
movss dword [esp + 0x50], xmm6
call fcn.00520d50
mov ecx, dword [esp + 0x38]
add esp, 4
xorps xmm2, xmm2
movss xmm0, dword [ecx*8 + 0x570d18]
ucomiss xmm0, xmm2
movss xmm0, dword [esp + 0x50]
movss dword [esp + 0x28], xmm0
lahf
test ah, 0x44
jp 0x5218e6
subss xmm0, dword [esp + 0x48]
movss xmm1, dword [esp + 0x18]
subss xmm1, xmm0
movss dword [esp + 0x18], xmm1
movss xmm0, dword [ecx*8 + 0x570d1c]
ucomiss xmm0, xmm2
movss xmm0, dword [esp + 0x54]
movss dword [esp + 0x14], xmm0
lahf
test ah, 0x44
jp 0x52191a
subss xmm0, dword [esp + 0x4c]
movss xmm1, dword [esp + 0x1c]
subss xmm1, xmm0
movss dword [esp + 0x1c], xmm1
mov edx, dword [esp + 0x20]
mov al, byte [esp + 0xc]
jmp 0x521932
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
jmp 0x521936
mov edi, dword [esp + 0x10]
mov cl, byte [esp + 0xd]
test edx, edx
je 0x5216bc
test al, al
jne 0x5216c7
test cl, cl
je 0x521969
xor ecx, ecx
cmp byte [esp + 0xd], cl
setne cl
add ecx, 0x1e
movss xmm1, dword [0x58a87c]
call fcn.0051a070
mov ecx, dword [ebp + 0x10]
mov dword [ecx + edx*4], eax
inc edx
mov dword [esp + 0x20], edx
cmp edx, dword [ebp + 0xc]
jl 0x521543
xor edi, edi
mov dword [esp + 0x2c], edi
cmp dword [esp + 0x40], edi
jbe 0x521c86
nop word [eax + eax]
lea eax, [edi*8]
sub eax, edi
shl eax, 2
mov dword [esp + 0x44], eax
test edi, edi
je 0x5219c7
cmp edi, 1
je 0x5219c7
mov dword [esp + 0x34], 3
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], 0xdc4
mov dword [esp + 0x38], 0x3eac
jmp 0x5219e3
mov dword [esp + 0x34], 4
lea eax, [esp + 0x48]
mov dword [esp + 0x20], 0xdc0
mov dword [esp + 0x38], 0x3ea8
mov edx, dword [esp + 0x10]
movd xmm0, esi
push ecx
cvtdq2ps xmm3, xmm0
mov dword [esp], 0x40800000
lea ecx, [esp + 0x64]
push edi
mov dword [esp + 0x44], eax
call fcn.005212a0
add esp, 8
lea eax, [edi + 4]
mov ecx, edx
push eax
call fcn.0051cd00
mov edi, eax
lea ecx, [esp + 0x60]
push 8
push 0
mov edx, edi
call fcn.00528490
push 0x40800
lea eax, [esp + 0x18]
mov edx, edi
push eax
lea eax, [esp + 0x1d]
push eax
lea ecx, [esp + 0x74]
call fcn.00545f10
mov dl, byte [esp + 0x20]
add esp, 0x14
cmp byte [esp + 0xd], 0
mov ecx, dword [esp + 0x24]
je 0x521a60
movss xmm0, dword [ecx + 0x3e8c]
comiss xmm0, dword [0x58a7f0]
ja 0x521a68
test dl, dl
je 0x521c73
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x2c]
mov dword [ecx + 0x4960], eax
test dl, dl
je 0x521c77
mov eax, dword [ebp + 8]
mov dword [eax], edi
cmp edi, 3
je 0x521aa1
cmp edi, 2
jne 0x521a94
cmp byte [esp + 0xe], 0
jne 0x521aa1
movss xmm0, dword [0x58aa10]
movaps xmm4, xmm0
jmp 0x521aaf
movss xmm4, dword [esp + 0x30]
movss xmm0, dword [0x58aa10]
cmp edi, 1
jne 0x521c42
movss xmm3, dword [esp + 0x70]
movss xmm1, dword [0x58a9c0]
movss xmm2, dword [0x58a9c0]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
movss xmm0, dword [eax + 0x14]
movss dword [esp + 0x48], xmm0
movss xmm0, dword [eax + 0x18]
movss dword [esp + 0x4c], xmm0
movss xmm0, dword [edx + ecx]
mov edx, dword [esp + 0x38]
subss xmm0, dword [edx + ecx]
mov ecx, dword [esp + 0x3c]
addss xmm0, dword [0x58a8e8]
movss dword [ecx], xmm0
movss xmm0, dword [esp + 0x4c]
comiss xmm4, xmm0
ja 0x521b1c
movaps xmm4, xmm1
minss xmm4, xmm0
movss xmm0, dword [esp + 0x48]
comiss xmm3, xmm0
ja 0x521b2e
movaps xmm3, xmm2
minss xmm3, xmm0
mov ecx, dword [esp + 0x44]
mov edx, eax
movss xmm0, dword [eax + 0x14]
movss xmm1, dword [eax + 0x18]
movaps xmm5, xmm0
addss xmm0, dword [eax + 0x1c]
movss xmm7, dword [ecx + 0x570b5c]
subss xmm5, xmm3
minss xmm7, dword [ecx + 0x570b64]
movss xmm2, dword [ecx + 0x570b58]
movaps xmm6, xmm1
minss xmm2, dword [ecx + 0x570b60]
addss xmm1, dword [eax + 0x20]
subss xmm6, xmm4
lea ecx, [esp + 0x50]
movss dword [esp + 0x3c], xmm7
push ecx
mulss xmm5, xmm2
lea ecx, [esp + 0x5c]
mulss xmm6, xmm7
addss xmm5, xmm3
movss dword [esp + 0x48], xmm2
subss xmm3, xmm0
addss xmm6, xmm4
subss xmm4, xmm1
movss dword [esp + 0x1c], xmm5
mulss xmm3, xmm2
mulss xmm4, xmm7
addss xmm3, xmm0
movss dword [esp + 0x20], xmm6
addss xmm4, xmm1
subss xmm3, xmm5
subss xmm4, xmm6
movss dword [esp + 0x54], xmm3
movss dword [esp + 0x58], xmm4
call fcn.00520d50
movss xmm0, dword [esp + 0x48]
add esp, 4
xorps xmm2, xmm2
ucomiss xmm0, xmm2
movss xmm0, dword [esp + 0x58]
movss dword [esp + 0x28], xmm0
lahf
test ah, 0x44
jp 0x521c0f
subss xmm0, dword [esp + 0x50]
movss xmm1, dword [esp + 0x18]
subss xmm1, xmm0
movss dword [esp + 0x18], xmm1
movss xmm0, dword [esp + 0x3c]
ucomiss xmm0, xmm2
movss xmm0, dword [esp + 0x5c]
movss dword [esp + 0x14], xmm0
lahf
test ah, 0x44
jp 0x521c77
subss xmm0, dword [esp + 0x54]
movss xmm1, dword [esp + 0x1c]
subss xmm1, xmm0
movss dword [esp + 0x1c], xmm1
jmp 0x521c77
movaps xmm3, xmm0
cmp edi, 2
jne 0x521c55
movss xmm1, dword [esp + 0x7c]
jmp 0x521ac6
movss xmm1, dword [0x58a9c0]
movaps xmm3, xmm0
test edi, edi
jne 0x521ac6
movss xmm2, dword [esp + 0x78]
jmp 0x521ace
mov edi, dword [esp + 0x2c]
inc edi
mov dword [esp + 0x2c], edi
cmp edi, dword [esp + 0x40]
jl 0x521990
mov esi, dword [0x6bb530]
xorps xmm7, xmm7
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
mov eax, dword [esi + 0x3e48]
dec dword [eax + 0xe4]
mov dword [edx + 0x148], 0
mov eax, dword [edi + 0x4934]
test eax, eax
je 0x521e8e
cmp dword [eax + 0x300], edx
jne 0x521e8e
mov eax, dword [edi + 0x47f8]
xorps xmm2, xmm2
xorps xmm3, xmm3
cmp eax, 2
jne 0x521d03
cmp byte [edi + 0xddd], 0
je 0x521d28
movss xmm3, dword [esi + 0x2e30]
movss xmm2, dword [esi + 0x2e10]
subss xmm3, dword [esi + 0x2e20]
subss xmm2, dword [esi + 0x2e00]
jmp 0x521d28
cmp eax, 3
jne 0x521d28
movss xmm3, dword [esi + 0x3510]
movss xmm2, dword [esi + 0x34f0]
subss xmm3, dword [esi + 0x3500]
subss xmm2, dword [esi + 0x34e0]
ucomiss xmm2, xmm7
lahf
test ah, 0x44
jp 0x521d3e
ucomiss xmm3, xmm7
lahf
test ah, 0x44
jnp 0x521e8e
movss xmm1, dword [edi + 0x58]
mov ecx, 0x20
minss xmm1, dword [edi + 0x5c]
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x58a990]
mulss xmm1, xmm0
movss xmm0, dword [esp + 0x70]
mulss xmm2, xmm1
mulss xmm3, xmm1
addss xmm2, dword [edi + 0x4954]
movss xmm1, dword [0x58a87c]
addss xmm3, dword [edi + 0x4958]
movss dword [edi + 0x4954], xmm2
movss dword [edi + 0x4958], xmm3
subss xmm0, dword [edx + 0x14]
subss xmm0, dword [edx + 0x1c]
maxss xmm2, xmm0
movss xmm0, dword [esp + 0x30]
subss xmm0, dword [edx + 0x18]
subss xmm0, dword [edx + 0x20]
movss dword [edi + 0x4954], xmm2
mov byte [edi + 0x4948], 0
mov byte [edi + 0x4803], 1
maxss xmm3, xmm0
movss dword [edi + 0x4958], xmm3
call fcn.0051a070
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cvttss2si esi, dword [edi + 0x4954]
cvttss2si edi, dword [edi + 0x4958]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movd xmm1, edi
ucomiss xmm0, xmm7
cvtdq2ps xmm1, xmm1
lahf
test ah, 0x44
jp 0x521e12
ucomiss xmm1, xmm7
lahf
test ah, 0x44
jnp 0x521e96
addss xmm0, dword [edx + 0x24]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x54]
movss dword [esp + 0x5c], xmm0
movaps xmm0, xmm1
addss xmm0, dword [edx + 0x28]
movss dword [esp + 0x60], xmm0
call fcn.00520d50
mov edx, dword [esp + 0x28]
add esp, 4
movd xmm2, esi
xorps xmm7, xmm7
cvtdq2ps xmm2, xmm2
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [edx + 0x4954]
subss xmm0, xmm2
movd xmm2, edi
cvtdq2ps xmm2, xmm2
movss dword [edx + 0x4954], xmm0
movss xmm0, dword [edx + 0x4958]
subss xmm0, xmm2
movss dword [edx + 0x4958], xmm0
mov edx, dword [esp + 0x10]
jmp 0x521e9c
movss xmm1, dword [esp + 0x14]
jmp 0x521ea2
movss xmm1, dword [esp + 0x14]
mov esi, dword [0x6bb530]
movss xmm0, dword [esp + 0x28]
movss xmm2, dword [0x58a9c0]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x521ede
test dword [edx + 0xc], 0x100
movss dword [edx + 0x24], xmm0
movss dword [edx + 0x28], xmm1
jne 0x521ede
comiss xmm7, dword [esi + 0x5a44]
jb 0x521ede
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x5a44], eax
movss xmm0, dword [esp + 0x18]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x521f2a
test dword [edx + 0xc], 0x100
cvttss2si eax, xmm0
movd xmm1, eax
cvttss2si eax, dword [esp + 0x1c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edx + 0x14], xmm1
movss dword [edx + 0x18], xmm0
jne 0x521f2a
comiss xmm7, dword [esi + 0x5a44]
jb 0x521f2a
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x5a44], ecx
mov esi, dword [esp + 0x10]
mov ecx, dword [edx + 0x24]
mov edx, dword [edx + 0x28]
mov al, byte [esp + 0xf]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret