Function at 0x100488e0
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x1017bfd8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x20], eax
test byte [edi + 8], 0x42
jne 0x10049238
cmp dword [edi + 0x90], 0
jg 0x10049238
cmp dword [edi + 0x94], 0
jg 0x10049238
cmp byte [edi + 0x7b], 0
je 0x10049238
movss xmm1, dword [eax + 0x1900]
xor edx, edx
mov cl, byte [eax + 0xaf]
movaps xmm0, xmm1
mulss xmm0, dword [0x10144f90]
mov esi, 4
test cl, cl
mulss xmm1, dword [0x10145068]
cmovne edx, esi
movss xmm2, dword [0x101450fc]
addss xmm0, dword [edi + 0x44]
mov dword [ebp - 0x28], edx
addss xmm0, dword [0x10145040]
maxss xmm0, xmm1
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x10145018]
cvttss2si esi, xmm0
je 0x1004899f
movss dword [ebp - 0x1c], xmm2
jmp 0x100489a7
xorps xmm4, xmm4
movss dword [ebp - 0x1c], xmm4
movss xmm0, dword [0x101452dc]
mov ecx, str.RESIZE
movss dword [ebp - 0xc], xmm0
movss dword [ebp - 0x10], xmm0
movss dword [ebp - 0x18], xmm0
movss dword [ebp - 8], xmm0
call fcn.1004d6e0
xor edx, edx
mov dword [ebp - 0x14], edx
cmp dword [ebx + 0xc], edx
jle 0x10048ce7
nop dword [eax + eax]
movss xmm3, dword [edi + 0x18]
lea eax, [edx + edx*2]
movss xmm4, dword [eax*8 + 0x10177450]
mulss xmm4, dword [edi + 0x14]
mov dword [ebp - 0x24], eax
mulss xmm3, dword [eax*8 + 0x10177454]
movss xmm0, dword [eax*8 + 0x10177458]
movss xmm1, dword [eax*8 + 0x1017745c]
movaps xmm6, xmm0
addss xmm4, dword [edi + 0xc]
addss xmm3, dword [edi + 0x10]
mulss xmm0, dword [ebp - 0x1c]
movaps xmm5, xmm1
mulss xmm1, dword [ebp - 0x1c]
movd xmm2, esi
cvtdq2ps xmm2, xmm2
mulss xmm6, xmm2
mulss xmm5, xmm2
addss xmm6, xmm4
subss xmm4, xmm0
addss xmm5, xmm3
subss xmm3, xmm1
movss dword [ebp - 0x5c], xmm6
comiss xmm4, xmm6
movss dword [ebp - 0x64], xmm4
movss dword [ebp - 0x60], xmm3
movss dword [ebp - 0x58], xmm5
jbe 0x10048a70
movss dword [ebp - 0x64], xmm6
movss dword [ebp - 0x5c], xmm4
comiss xmm3, xmm5
jbe 0x10048a7f
movss dword [ebp - 0x60], xmm5
movss dword [ebp - 0x58], xmm3
push 0x2020
lea eax, [ebp - 1]
mov ecx, edi
push eax
lea eax, [ebp - 2]
push eax
push edx
call fcn.10044940
mov edx, eax
lea ecx, [ebp - 0x64]
call fcn.10062930
mov cl, byte [ebp - 2]
add esp, 0xc
test cl, cl
jne 0x10048ab3
mov al, byte [ebp - 1]
test al, al
je 0x10048d59
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x20]
not eax
and eax, 1
add eax, 5
mov dword [ecx + 0x1cbc], eax
mov al, byte [ebp - 1]
test al, al
je 0x10048ca5
cmp byte [ecx + 0x3d5], 0
je 0x10048b25
test edx, edx
jne 0x10048b25
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x4c]
mov edx, edi
push dword [eax + 4]
push dword [eax]
call fcn.10048370
add esp, 8
movss xmm3, dword [eax]
movss xmm2, dword [eax + 4]
movss dword [ebp - 0x18], xmm3
movss dword [ebp - 8], xmm2
call fcn.10044c80
mov edx, dword [ebp - 0x14]
cmp byte [ebp - 1], 0
je 0x10048cbc
mov ecx, 0x23
jmp 0x10048cc7
mov eax, dword [ebp - 0x24]
mov edx, edi
movss xmm7, dword [ecx + 0xe4]
subss xmm7, dword [ecx + 0x1a28]
movd xmm3, esi
movss xmm2, dword [eax*8 + 0x1017745c]
movss xmm6, dword [eax*8 + 0x10177458]
movaps xmm1, xmm2
mulss xmm1, dword [ebp - 0x1c]
movaps xmm0, xmm6
mulss xmm0, dword [ebp - 0x1c]
movss xmm4, dword [eax*8 + 0x10177450]
movss xmm5, dword [eax*8 + 0x10177454]
cvtdq2ps xmm3, xmm3
xorps xmm3, xmmword [0x10145730]
mulss xmm6, xmm3
mulss xmm2, xmm3
subss xmm6, xmm0
subss xmm2, xmm1
mulss xmm6, xmm4
mulss xmm2, xmm5
addss xmm6, xmm0
movss xmm0, dword [ecx + 0xe0]
subss xmm0, dword [ecx + 0x1a24]
addss xmm2, xmm1
movss xmm1, dword [edi + 0x10]
movaps xmm3, xmm1
lea ecx, [ebp - 0x44]
addss xmm1, dword [edi + 0x18]
addss xmm6, xmm0
movss xmm0, dword [edi + 0xc]
addss xmm7, xmm2
movaps xmm2, xmm0
addss xmm0, dword [edi + 0x14]
subss xmm2, xmm6
subss xmm3, xmm7
mulss xmm2, xmm4
mulss xmm3, xmm5
addss xmm2, xmm6
subss xmm6, xmm0
addss xmm3, xmm7
subss xmm7, xmm1
movss dword [ebp - 0xc], xmm2
mulss xmm6, xmm4
mulss xmm7, xmm5
addss xmm6, xmm0
movss dword [ebp - 0x10], xmm3
addss xmm7, xmm1
subss xmm6, xmm2
subss xmm7, xmm3
movss dword [ebp - 0x3c], xmm6
movss dword [ebp - 8], xmm6
movss dword [ebp - 0x38], xmm7
push dword [ebp - 0x38]
movss dword [ebp - 0x30], xmm7
push dword [ebp - 0x3c]
call fcn.10048370
mov ecx, dword [ebp - 0x24]
add esp, 8
movss xmm3, dword [ebp - 0x44]
xorps xmm1, xmm1
movss dword [ebp - 0x18], xmm3
movss xmm0, dword [ecx*8 + 0x10177450]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x10048c6d
movss xmm2, dword [ebp - 0xc]
movaps xmm0, xmm3
subss xmm0, dword [ebp - 8]
subss xmm2, xmm0
movss dword [ebp - 0xc], xmm2
movss xmm0, dword [ecx*8 + 0x10177454]
movss xmm2, dword [ebp - 0x40]
ucomiss xmm0, xmm1
movss dword [ebp - 8], xmm2
lahf
test ah, 0x44
jp 0x10048c9f
movss xmm1, dword [ebp - 0x10]
movaps xmm0, xmm2
subss xmm0, dword [ebp - 0x30]
subss xmm1, xmm0
movss dword [ebp - 0x10], xmm1
mov edx, dword [ebp - 0x14]
mov al, byte [ebp - 1]
mov cl, byte [ebp - 2]
test edx, edx
je 0x10048b11
test al, al
jne 0x10048b1b
test cl, cl
je 0x10048cda
xor ecx, ecx
cmp byte [ebp - 2], cl
setne cl
add ecx, 0x21
movss xmm1, dword [0x10145040]
call fcn.100429f0
mov ecx, dword [ebx + 0x10]
mov dword [ecx + edx*4], eax
inc edx
mov dword [ebp - 0x14], edx
cmp edx, dword [ebx + 0xc]
jl 0x100489e0
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x28], ecx
jbe 0x10048fb0
nop word [eax + eax]
movss xmm4, dword [edi + 0xc]
movss xmm3, dword [edi + 0x10]
movaps xmm1, xmm4
movaps xmm2, xmm3
addss xmm1, dword [edi + 0x14]
addss xmm2, dword [edi + 0x18]
test ecx, ecx
jne 0x10048d61
movd xmm5, esi
movaps xmm0, xmm3
subss xmm0, dword [0x101450fc]
addss xmm3, dword [0x101450fc]
cvtdq2ps xmm5, xmm5
movss dword [ebp - 0x50], xmm0
addss xmm4, xmm5
movss dword [ebp - 0x48], xmm3
subss xmm1, xmm5
movss dword [ebp - 0x54], xmm4
movss dword [ebp - 0x4c], xmm1
jmp 0x10048def
mov edx, dword [ebp - 0x14]
jmp 0x10048ca8
cmp ecx, 1
jne 0x10048d78
movaps xmm0, xmm1
addss xmm1, dword [0x101450fc]
movss dword [ebp - 0x4c], xmm1
jmp 0x10048dc9
cmp ecx, 2
jne 0x10048db0
movd xmm5, esi
movaps xmm0, xmm2
subss xmm0, dword [0x101450fc]
addss xmm2, dword [0x101450fc]
cvtdq2ps xmm5, xmm5
movss dword [ebp - 0x50], xmm0
addss xmm4, xmm5
subss xmm1, xmm5
movss dword [ebp - 0x54], xmm4
movss dword [ebp - 0x4c], xmm1
jmp 0x10048dea
cmp ecx, 3
jne 0x10048fc6
movaps xmm0, xmm4
addss xmm4, dword [0x101450fc]
movss dword [ebp - 0x4c], xmm4
subss xmm0, dword [0x101450fc]
movss dword [ebp - 0x54], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
addss xmm3, xmm0
subss xmm2, xmm0
movss dword [ebp - 0x50], xmm3
movss dword [ebp - 0x48], xmm2
push 0x20
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [ecx + 4]
mov ecx, edi
push eax
call fcn.10044940
mov edx, eax
lea ecx, [ebp - 0x54]
call fcn.10062930
mov edx, dword [ebp - 0x20]
add esp, 0xc
cmp byte [ebp - 1], 0
je 0x10048e2b
movss xmm0, dword [edx + 0x19fc]
comiss xmm0, dword [0x10144f40]
ja 0x10048e35
cmp byte [ebp - 2], 0
je 0x10048fa0
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
and eax, 1
add eax, 3
cmp byte [ebp - 2], 0
mov dword [edx + 0x1cbc], eax
je 0x10048fa3
mov eax, dword [ebx + 8]
xorps xmm4, xmm4
movss xmm6, dword [edi + 0xc]
xorps xmm5, xmm5
movss xmm7, dword [edi + 0x10]
movaps xmm0, xmm6
movss dword [ebp - 8], xmm4
movaps xmm1, xmm7
mov dword [eax], ecx
movss dword [ebp - 0x14], xmm5
test ecx, ecx
jne 0x10048e93
movss xmm1, dword [edx + 0xe4]
subss xmm1, dword [edx + 0x1a28]
addss xmm1, dword [0x101450fc]
jmp 0x10048ece
cmp ecx, 1
jne 0x10048ea2
movss xmm5, dword [0x10145040]
jmp 0x10048eb6
cmp ecx, 2
jne 0x10048eb1
movss xmm4, dword [0x10145040]
jmp 0x10048e79
cmp ecx, 3
jne 0x10048ed8
movss xmm0, dword [edx + 0xe0]
subss xmm0, dword [edx + 0x1a24]
addss xmm0, dword [0x101450fc]
movss dword [ebp - 8], xmm4
movss dword [ebp - 0x14], xmm5
movaps xmm3, xmm7
lea ecx, [ebp - 0x44]
addss xmm7, dword [edi + 0x18]
subss xmm3, xmm1
movaps xmm2, xmm6
addss xmm6, dword [edi + 0x14]
subss xmm2, xmm0
mov edx, edi
mulss xmm3, xmm4
mulss xmm2, xmm5
addss xmm3, xmm1
subss xmm1, xmm7
addss xmm2, xmm0
subss xmm0, xmm6
movss dword [ebp - 0x10], xmm3
mulss xmm1, xmm4
mulss xmm0, xmm5
addss xmm1, xmm7
movss dword [ebp - 0xc], xmm2
addss xmm0, xmm6
subss xmm1, xmm3
subss xmm0, xmm2
movss dword [ebp - 0x30], xmm1
push dword [ebp - 0x30]
movss dword [ebp - 0x34], xmm0
push dword [ebp - 0x34]
call fcn.10048370
movss xmm0, dword [ebp - 0x14]
add esp, 8
xorps xmm1, xmm1
ucomiss xmm0, xmm1
movss xmm0, dword [ebp - 0x44]
movss dword [ebp - 0x18], xmm0
lahf
test ah, 0x44
jp 0x10048f75
subss xmm0, dword [ebp - 0x34]
movss xmm2, dword [ebp - 0xc]
subss xmm2, xmm0
movss dword [ebp - 0xc], xmm2
movss xmm0, dword [ebp - 8]
ucomiss xmm0, xmm1
movss xmm0, dword [ebp - 0x40]
movss dword [ebp - 8], xmm0
lahf
test ah, 0x44
jp 0x10048fa0
subss xmm0, dword [ebp - 0x30]
movss xmm1, dword [ebp - 0x10]
subss xmm1, xmm0
movss dword [ebp - 0x10], xmm1
mov ecx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, dword [ebp - 0x28]
jl 0x10048d00
mov ecx, dword [0x1017bfd8]
mov edx, dword [ecx + 0x19e4]
mov eax, dword [edx + 0x1c0]
test eax, eax
jg 0x10048fce
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov esi, dword [ebp - 0x20]
dec eax
mov dword [edx + 0x1c0], eax
mov eax, dword [esi + 0x1b34]
test eax, eax
je 0x10049192
cmp dword [eax + 0x2f0], edi
jne 0x10049192
mov eax, dword [esi + 0x1b1c]
cmp eax, 3
jne 0x10049013
cmp byte [esi + 0xf9], 0
je 0x10049192
push ecx
lea edx, [eax - 2]
lea ecx, [ebp - 0x4c]
jmp 0x10049023
cmp eax, 4
jne 0x10049192
push ecx
lea edx, [eax - 2]
lea ecx, [ebp - 0x44]
mov dword [esp], 0
xorps xmm3, xmm3
push 0
call fcn.1004f660
add esp, 8
xorps xmm2, xmm2
movss xmm5, dword [eax]
movss xmm3, dword [eax + 4]
ucomiss xmm5, xmm2
lahf
test ah, 0x44
jp 0x10049059
ucomiss xmm3, xmm2
lahf
test ah, 0x44
jnp 0x1004919c
movss xmm1, dword [esi + 0xa8]
movss xmm0, dword [esi + 0x18]
mulss xmm0, dword [0x10145290]
mov byte [esi + 0x1b48], 0
minss xmm1, dword [esi + 0xa4]
movss xmm4, dword [0x10145040]
mov byte [esi + 0x1b57], 1
mulss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
mov eax, dword [0x1017bfd8]
cvtdq2ps xmm0, xmm0
movups xmm1, xmmword [eax + 0x17dc]
mulss xmm5, xmm0
comiss xmm2, xmm1
mulss xmm3, xmm0
movaps xmm0, xmm1
shufps xmm0, xmm1, 0xff
mulss xmm0, dword [eax + 0x1500]
movups xmmword [ebp - 0x64], xmm1
jbe 0x100490cc
xorps xmm1, xmm1
jmp 0x100490d0
minss xmm1, xmm4
movss xmm6, dword [0x10145264]
movss xmm7, dword [0x10144fec]
mulss xmm1, xmm6
addss xmm1, xmm7
cvttss2si ecx, xmm1
movss xmm1, dword [ebp - 0x60]
comiss xmm2, xmm1
jbe 0x100490fb
xorps xmm1, xmm1
jmp 0x100490ff
minss xmm1, xmm4
mulss xmm1, xmm6
addss xmm1, xmm7
cvttss2si eax, xmm1
movss xmm1, dword [ebp - 0x5c]
shl eax, 8
or ecx, eax
comiss xmm2, xmm1
jbe 0x1004911f
xorps xmm1, xmm1
jmp 0x10049123
minss xmm1, xmm4
mulss xmm1, xmm6
addss xmm1, xmm7
cvttss2si eax, xmm1
shl eax, 0x10
or ecx, eax
comiss xmm2, xmm0
jbe 0x1004913e
xorps xmm0, xmm0
jmp 0x10049142
minss xmm0, xmm4
mulss xmm0, xmm6
mov edx, edi
addss xmm0, xmm7
cvttss2si eax, xmm0
shl eax, 0x18
or eax, ecx
mov ecx, dword [ebx + 0x10]
mov dword [ecx], eax
lea ecx, [ebp - 0x3c]
addss xmm3, dword [edi + 0x20]
addss xmm5, dword [edi + 0x1c]
movss dword [ebp - 0x38], xmm3
push dword [ebp - 0x38]
movss dword [ebp - 0x3c], xmm5
push dword [ebp - 0x3c]
call fcn.10048370
add esp, 8
xorps xmm2, xmm2
movss xmm0, dword [eax]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [eax + 4]
jmp 0x100491a1
movss xmm0, dword [ebp - 8]
xorps xmm2, xmm2
jmp 0x100491a7
movss xmm0, dword [ebp - 8]
mov ecx, dword [0x1017bfd8]
movss xmm1, dword [ebp - 0x18]
movss xmm3, dword [0x101452dc]
ucomiss xmm1, xmm3
lahf
test ah, 0x44
jnp 0x100491e2
test dword [edi + 8], 0x100
movss dword [edi + 0x1c], xmm1
movss dword [edi + 0x20], xmm0
jne 0x100491e2
comiss xmm2, dword [ecx + 0x2c94]
jb 0x100491e2
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x2c94], eax
movss xmm0, dword [ebp - 0xc]
ucomiss xmm0, xmm3
lahf
test ah, 0x44
jnp 0x1004922c
test dword [edi + 8], 0x100
cvttss2si eax, xmm0
movd xmm1, eax
cvttss2si eax, dword [ebp - 0x10]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0xc], xmm1
movss dword [edi + 0x10], xmm0
jne 0x1004922c
comiss xmm2, dword [ecx + 0x2c94]
jb 0x1004922c
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x2c94], eax
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret