Function at 0x521340
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 0x521ec4
cmp byte [edi + 0xc4], 0
jg 0x521ec4
cmp byte [edi + 0xc5], 0
jg 0x521ec4
cmp byte [edi + 0xab], 0
je 0x521ec4
movss xmm2, dword [edx + 0x3bb8]
xor eax, eax
movss xmm0, dword [edi + 0x4c]
movaps xmm1, xmm2
addss xmm0, dword [0x58a8e4]
mulss xmm2, dword [0x58a878]
mov esi, 4
mov cl, byte [edx + 0x66]
mulss xmm1, dword [0x58a8ec]
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 [0x58a8bc]
cvttss2si esi, xmm0
je 0x521401
movss xmm0, dword [0x58a950]
movss dword [esp + 0x2c], xmm0
jmp 0x52140a
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 0x52146c
test byte [edi + 0xc], 1
jne 0x52146c
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 0x52144a
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 0x52147d
movss xmm0, dword [esp + 0x74]
mov byte [esp + 0xe], 0
movss dword [esp + 0x30], xmm0
movss xmm1, dword [0x58aa28]
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.00525f60
xor edx, edx
mov dword [esp + 0x20], edx
cmp dword [ebp + 0xc], edx
jle 0x5218f7
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 + 0x570d58]
mulss xmm2, dword [eax*8 + 0x570d5c]
addss xmm3, xmm0
movss xmm0, dword [eax*8 + 0x570d60]
movaps xmm5, xmm0
mulss xmm0, dword [esp + 0x2c]
addss xmm2, xmm1
mulss xmm5, xmm6
movss xmm1, dword [eax*8 + 0x570d64]
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 0x521572
movss dword [esp + 0x60], xmm5
movss dword [esp + 0x68], xmm3
comiss xmm2, xmm4
jbe 0x521583
movss dword [esp + 0x64], xmm4
movss dword [esp + 0x6c], xmm2
push edx
mov ecx, edi
call fcn.0051cc80
mov edi, eax
lea ecx, [esp + 0x60]
push 8
push 0
mov edx, edi
call fcn.00528410
push 0x40800
lea eax, [esp + 0x18]
mov edx, edi
push eax
lea eax, [esp + 0x1d]
push eax
lea ecx, [esp + 0x74]
call fcn.00545e60
mov cl, byte [esp + 0x21]
add esp, 0x14
test cl, cl
jne 0x5215cd
mov al, byte [esp + 0xc]
test al, al
je 0x5218a4
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 0x5218ae
cmp word [ecx + 0x370a], 2
jne 0x521651
test edx, edx
jne 0x521651
push dword [esp + 0x3c]
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x5c]
mov edx, edi
call fcn.00520cd0
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.0051cd90
mov edx, dword [esp + 0x20]
cmp byte [esp + 0xc], 0
je 0x5218ca
mov ecx, 0x20
jmp 0x5218d6
mov edx, dword [esp + 0x34]
xorps xmm1, xmm1
movss xmm3, dword [0x58a8e4]
movss xmm7, dword [edx*8 + 0x570d5c]
ucomiss xmm7, xmm3
lahf
test ah, 0x44
jnp 0x52168f
ucomiss xmm7, xmm1
lahf
test ah, 0x44
jp 0x521682
cmp byte [esp + 0xe], 0
jne 0x52168f
movss xmm2, dword [0x58aa78]
movaps xmm6, xmm2
jmp 0x52169d
movss xmm6, dword [esp + 0x30]
movss xmm2, dword [0x58aa78]
movss xmm0, dword [edx*8 + 0x570d58]
ucomiss xmm0, xmm3
lahf
test ah, 0x44
jp 0x5216b7
movss xmm5, dword [esp + 0x70]
jmp 0x5216ba
movaps xmm5, xmm2
ucomiss xmm7, xmm1
lahf
test ah, 0x44
jp 0x5216d9
movss xmm2, dword [esp + 0x7c]
movss dword [esp + 0x28], xmm2
movss xmm2, dword [0x58aa28]
jmp 0x5216e7
movss xmm2, dword [0x58aa28]
movss dword [esp + 0x28], xmm2
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x5216fe
movss xmm0, dword [esp + 0x78]
movss dword [esp + 0x1c], xmm0
jmp 0x521704
movss dword [esp + 0x1c], xmm2
movss xmm4, dword [edx*8 + 0x570d60]
xorps xmm3, xmm3
movss xmm2, dword [edx*8 + 0x570d64]
movaps xmm0, xmm4
mulss xmm0, dword [esp + 0x2c]
movaps xmm1, xmm2
mulss xmm1, dword [esp + 0x2c]
cvtsi2ss xmm3, esi
xorps xmm3, xmmword [0x58ad10]
mulss xmm4, xmm3
mulss xmm2, xmm3
subss xmm4, xmm0
subss xmm2, xmm1
mulss xmm4, dword [edx*8 + 0x570d58]
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 0x521792
movss xmm6, dword [esp + 0x28]
minss xmm6, xmm0
comiss xmm5, xmm4
ja 0x5217a1
movss xmm5, dword [esp + 0x1c]
minss xmm5, xmm4
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x48]
movss xmm4, dword [edx*8 + 0x570d58]
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.00520cd0
mov ecx, dword [esp + 0x38]
add esp, 4
xorps xmm2, xmm2
movss xmm0, dword [ecx*8 + 0x570d58]
ucomiss xmm0, xmm2
movss xmm0, dword [esp + 0x50]
movss dword [esp + 0x28], xmm0
lahf
test ah, 0x44
jp 0x521866
subss xmm0, dword [esp + 0x48]
movss xmm1, dword [esp + 0x18]
subss xmm1, xmm0
movss dword [esp + 0x18], xmm1
movss xmm0, dword [ecx*8 + 0x570d5c]
ucomiss xmm0, xmm2
movss xmm0, dword [esp + 0x54]
movss dword [esp + 0x14], xmm0
lahf
test ah, 0x44
jp 0x52189a
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 0x5218b2
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
jmp 0x5218b6
mov edi, dword [esp + 0x10]
mov cl, byte [esp + 0xd]
test edx, edx
je 0x52163c
test al, al
jne 0x521647
test cl, cl
je 0x5218e9
xor ecx, ecx
cmp byte [esp + 0xd], cl
setne cl
add ecx, 0x1e
movss xmm1, dword [0x58a8e4]
call fcn.0051a010
mov ecx, dword [ebp + 0x10]
mov dword [ecx + edx*4], eax
inc edx
mov dword [esp + 0x20], edx
cmp edx, dword [ebp + 0xc]
jl 0x5214c3
xor edi, edi
mov dword [esp + 0x2c], edi
cmp dword [esp + 0x40], edi
jbe 0x521c06
nop word [eax + eax]
lea eax, [edi*8]
sub eax, edi
shl eax, 2
mov dword [esp + 0x44], eax
test edi, edi
je 0x521947
cmp edi, 1
je 0x521947
mov dword [esp + 0x34], 3
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], 0xdc4
mov dword [esp + 0x38], 0x3eac
jmp 0x521963
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.00521220
add esp, 8
lea eax, [edi + 4]
mov ecx, edx
push eax
call fcn.0051cc80
mov edi, eax
lea ecx, [esp + 0x60]
push 8
push 0
mov edx, edi
call fcn.00528410
push 0x40800
lea eax, [esp + 0x18]
mov edx, edi
push eax
lea eax, [esp + 0x1d]
push eax
lea ecx, [esp + 0x74]
call fcn.00545e60
mov dl, byte [esp + 0x20]
add esp, 0x14
cmp byte [esp + 0xd], 0
mov ecx, dword [esp + 0x24]
je 0x5219e0
movss xmm0, dword [ecx + 0x3e8c]
comiss xmm0, dword [0x58a858]
ja 0x5219e8
test dl, dl
je 0x521bf3
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x2c]
mov dword [ecx + 0x4960], eax
test dl, dl
je 0x521bf7
mov eax, dword [ebp + 8]
mov dword [eax], edi
cmp edi, 3
je 0x521a21
cmp edi, 2
jne 0x521a14
cmp byte [esp + 0xe], 0
jne 0x521a21
movss xmm0, dword [0x58aa78]
movaps xmm4, xmm0
jmp 0x521a2f
movss xmm4, dword [esp + 0x30]
movss xmm0, dword [0x58aa78]
cmp edi, 1
jne 0x521bc2
movss xmm3, dword [esp + 0x70]
movss xmm1, dword [0x58aa28]
movss xmm2, dword [0x58aa28]
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 [0x58a950]
movss dword [ecx], xmm0
movss xmm0, dword [esp + 0x4c]
comiss xmm4, xmm0
ja 0x521a9c
movaps xmm4, xmm1
minss xmm4, xmm0
movss xmm0, dword [esp + 0x48]
comiss xmm3, xmm0
ja 0x521aae
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 + 0x570b9c]
subss xmm5, xmm3
minss xmm7, dword [ecx + 0x570ba4]
movss xmm2, dword [ecx + 0x570b98]
movaps xmm6, xmm1
minss xmm2, dword [ecx + 0x570ba0]
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.00520cd0
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 0x521b8f
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 0x521bf7
subss xmm0, dword [esp + 0x54]
movss xmm1, dword [esp + 0x1c]
subss xmm1, xmm0
movss dword [esp + 0x1c], xmm1
jmp 0x521bf7
movaps xmm3, xmm0
cmp edi, 2
jne 0x521bd5
movss xmm1, dword [esp + 0x7c]
jmp 0x521a46
movss xmm1, dword [0x58aa28]
movaps xmm3, xmm0
test edi, edi
jne 0x521a46
movss xmm2, dword [esp + 0x78]
jmp 0x521a4e
mov edi, dword [esp + 0x2c]
inc edi
mov dword [esp + 0x2c], edi
cmp edi, dword [esp + 0x40]
jl 0x521910
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 0x521e0e
cmp dword [eax + 0x300], edx
jne 0x521e0e
mov eax, dword [edi + 0x47f8]
xorps xmm2, xmm2
xorps xmm3, xmm3
cmp eax, 2
jne 0x521c83
cmp byte [edi + 0xddd], 0
je 0x521ca8
movss xmm3, dword [esi + 0x2e30]
movss xmm2, dword [esi + 0x2e10]
subss xmm3, dword [esi + 0x2e20]
subss xmm2, dword [esi + 0x2e00]
jmp 0x521ca8
cmp eax, 3
jne 0x521ca8
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 0x521cbe
ucomiss xmm3, xmm7
lahf
test ah, 0x44
jnp 0x521e0e
movss xmm1, dword [edi + 0x58]
mov ecx, 0x20
minss xmm1, dword [edi + 0x5c]
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x58a9f8]
mulss xmm1, xmm0
movss xmm0, dword [esp + 0x70]
mulss xmm2, xmm1
mulss xmm3, xmm1
addss xmm2, dword [edi + 0x4954]
movss xmm1, dword [0x58a8e4]
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.0051a010
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 0x521d92
ucomiss xmm1, xmm7
lahf
test ah, 0x44
jnp 0x521e16
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.00520cd0
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 0x521e1c
movss xmm1, dword [esp + 0x14]
jmp 0x521e22
movss xmm1, dword [esp + 0x14]
mov esi, dword [0x6bb530]
movss xmm0, dword [esp + 0x28]
movss xmm2, dword [0x58aa28]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x521e5e
test dword [edx + 0xc], 0x100
movss dword [edx + 0x24], xmm0
movss dword [edx + 0x28], xmm1
jne 0x521e5e
comiss xmm7, dword [esi + 0x5a44]
jb 0x521e5e
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x5a44], eax
movss xmm0, dword [esp + 0x18]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x521eaa
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 0x521eaa
comiss xmm7, dword [esi + 0x5a44]
jb 0x521eaa
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