Function at 0x1003f140
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
movsd xmm4, qword [ebp + 0x1c]
mov eax, ecx
movss dword [ebp - 0x10], xmm2
mov dword [ebp - 0x18], eax
push ebx
push esi
mov esi, dword [0x101e6b78]
push edi
mov edi, edx
cmp eax, 4
je 0x1003f16e
cmp eax, 5
je 0x1003f16e
xor cl, cl
jmp 0x1003f170
mov cl, 1
movsd xmm3, qword [ebp + 0x14]
ucomisd xmm3, xmm4
mov byte [ebp - 5], cl
lahf
test ah, 0x44
jnp 0x1003f186
mov al, 1
jmp 0x1003f188
xor al, al
movss xmm7, dword [ebp + 0xc]
ucomiss xmm7, dword [0x1017f0d8]
mov byte [ebp - 6], al
movsd xmm0, qword [0x1017f328]
lahf
test ah, 0x44
jnp 0x1003f1c0
test cl, cl
je 0x1003f1c0
test al, al
je 0x1003f1c0
movaps xmm1, xmm4
subsd xmm1, xmm3
comisd xmm0, xmm1
jbe 0x1003f1c0
mov byte [ebp - 7], 1
jmp 0x1003f1cb
movaps xmm1, xmm4
mov byte [ebp - 7], 0
subsd xmm1, xmm3
xorps xmm6, xmm6
ucomiss xmm2, xmm6
lahf
test ah, 0x44
jp 0x1003f1f9
test al, al
je 0x1003f1f9
comisd xmm0, xmm1
jbe 0x1003f1f9
movss xmm0, dword [esi + 0x2c64]
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvtpd2ps xmm2, xmm0
movss dword [ebp - 0x10], xmm2
mov eax, dword [esi + 0x1a34]
xorps xmm5, xmm5
cmp eax, 1
jne 0x1003f28d
test esi, esi
jne 0x1003f216
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
movss xmm0, dword [esi + 0xe0]
movss xmm1, dword [0x1017f3a8]
comiss xmm0, xmm1
movss xmm7, dword [esi + 0xe4]
jb 0x1003f466
comiss xmm7, xmm1
jb 0x1003f466
movss xmm0, dword [esi + 0x434]
comiss xmm0, dword [0x1017f0d8]
jbe 0x1003f466
cmp byte [esi + 0xfa], 0
movss xmm5, dword [esi + 0x370]
je 0x1003f26e
mulss xmm5, dword [0x1017f024]
cmp byte [esi + 0xf9], 0
movss xmm7, dword [ebp + 0xc]
je 0x1003f46b
mulss xmm5, dword [0x1017f1a4]
jmp 0x1003f46b
cmp eax, 2
jne 0x1003f46b
test cl, cl
je 0x1003f2a6
mov ecx, dword [ebp + 8]
call fcn.10135de0
mov edx, eax
jmp 0x1003f2a8
xor edx, edx
movss xmm0, dword [esi + 0x1490]
lea eax, [esi + 0x18]
comiss xmm6, xmm0
mov dword [ebp - 0xc], eax
movss xmm5, dword [0x1017f06c]
movss xmm1, dword [0x1017f0c0]
jbe 0x1003f2d0
xorps xmm7, xmm7
jmp 0x1003f309
movss xmm2, dword [esi + 0x88]
movss xmm3, dword [esi + 0x8c]
mulss xmm2, xmm1
movaps xmm1, xmm0
subss xmm1, dword [eax]
mulss xmm3, xmm5
call fcn.10116eb0
movss xmm1, dword [0x1017f0c0]
movd xmm7, eax
lea eax, [esi + 0x18]
cvtdq2ps xmm7, xmm7
mov dword [ebp - 0xc], eax
movss xmm0, dword [esi + 0x148c]
comiss xmm6, xmm0
jbe 0x1003f31b
xorps xmm0, xmm0
jmp 0x1003f346
movss xmm2, dword [esi + 0x88]
movss xmm3, dword [esi + 0x8c]
mulss xmm2, xmm1
movaps xmm1, xmm0
subss xmm1, dword [eax]
mulss xmm3, xmm5
call fcn.10116eb0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm7, xmm0
movss xmm0, dword [esi + 0x145c]
comiss xmm6, xmm0
addss xmm7, xmm6
jbe 0x1003f360
xorps xmm5, xmm5
jmp 0x1003f392
mov eax, dword [ebp - 0xc]
movaps xmm1, xmm0
movss xmm3, dword [esi + 0x8c]
movss xmm2, dword [esi + 0x88]
mulss xmm2, dword [0x1017f0c0]
subss xmm1, dword [eax]
mulss xmm3, xmm5
call fcn.10116eb0
movd xmm5, eax
cvtdq2ps xmm5, xmm5
movss xmm0, dword [esi + 0x1458]
comiss xmm6, xmm0
jbe 0x1003f3a4
xorps xmm0, xmm0
jmp 0x1003f3da
mov eax, dword [ebp - 0xc]
movaps xmm1, xmm0
movss xmm3, dword [esi + 0x8c]
movss xmm2, dword [esi + 0x88]
mulss xmm3, dword [0x1017f06c]
subss xmm1, dword [eax]
mulss xmm2, dword [0x1017f0c0]
call fcn.10116eb0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm5, xmm0
movss xmm0, dword [esi + 0x334]
comiss xmm0, xmm6
addss xmm5, xmm7
movss dword [ebp - 0xc], xmm5
jbe 0x1003f401
mulss xmm5, dword [0x1017f050]
movss dword [ebp - 0xc], xmm5
movss xmm0, dword [esi + 0x338]
comiss xmm0, xmm6
movss xmm0, dword [0x1017f1a4]
jbe 0x1003f41f
mulss xmm5, xmm0
movss dword [ebp - 0xc], xmm5
test edx, edx
jns 0x1003f42d
movss xmm0, dword [0x1017eff0]
jmp 0x1003f453
cmp edx, 0xa
jge 0x1003f43d
movss xmm0, dword [edx*4 + 0x1017e5d0]
jmp 0x1003f453
neg edx
movd xmm1, edx
cvtdq2ps xmm1, xmm1
call fcn.1000d060
movss xmm5, dword [ebp - 0xc]
xorps xmm6, xmm6
movss xmm2, dword [ebp - 0x10]
movsd xmm3, qword [ebp + 0x14]
maxss xmm2, xmm0
movsd xmm4, qword [ebp + 0x1c]
movss xmm7, dword [ebp + 0xc]
mov bl, byte [ebp - 6]
mov dl, byte [esi + 0x1a14]
mulss xmm5, xmm2
movss dword [ebp - 0xc], xmm5
test bl, bl
je 0x1003f49f
movsd xmm0, qword [edi]
comisd xmm0, xmm4
jb 0x1003f490
comiss xmm5, xmm6
ja 0x1003f49b
comisd xmm3, xmm0
jb 0x1003f49f
comiss xmm6, xmm5
jbe 0x1003f49f
mov cl, 1
jmp 0x1003f4a1
xor cl, cl
mov ch, byte [ebp - 7]
test ch, ch
je 0x1003f4cc
comiss xmm6, xmm5
jbe 0x1003f4ba
movss xmm0, dword [esi + 0x2c60]
comiss xmm0, xmm6
ja 0x1003f4c8
comiss xmm5, xmm6
jbe 0x1003f4cc
comiss xmm6, dword [esi + 0x2c60]
jbe 0x1003f4cc
mov al, 1
jmp 0x1003f4ce
xor al, al
test dl, dl
jne 0x1003f4ff
test cl, cl
jne 0x1003f4ff
test al, al
jne 0x1003f4ff
ucomiss xmm5, xmm6
lahf
test ah, 0x44
jnp 0x1003f510
movaps xmm0, xmm5
mov byte [esi + 0x2c5c], 1
addss xmm0, dword [esi + 0x2c60]
movss dword [esi + 0x2c60], xmm0
jmp 0x1003f510
mov dword [esi + 0x2c60], 0
mov byte [esi + 0x2c5c], 0
cmp byte [esi + 0x2c5c], 0
je 0x1003f6b4
movss xmm2, dword [esi + 0x2c60]
movaps xmm1, xmm4
movsd xmm0, qword [edi]
subsd xmm1, xmm3
cvtps2pd xmm4, xmm7
movsd qword [ebp - 0x24], xmm1
movsd qword [ebp - 0x14], xmm4
cvtps2pd xmm2, xmm2
test ch, ch
je 0x1003f5ef
subsd xmm0, xmm3
divsd xmm0, xmm1
movsd xmm1, qword [0x1017f128]
divsd xmm1, xmm4
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
movaps xmm1, xmm0
movss xmm0, dword [esi + 0x2c60]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x2c], xmm1
divsd xmm0, qword [ebp - 0x24]
addsd xmm0, xmm1
cvtpd2ps xmm1, xmm0
xorps xmm0, xmm0
comiss xmm0, xmm1
ja 0x1003f595
movss xmm0, dword [0x1017f0d8]
minss xmm0, xmm1
movss xmm1, dword [ebp + 0xc]
call fcn.1000d060
mov edx, dword [ebp - 0x18]
xorps xmm2, xmm2
mov ecx, dword [ebp + 8]
cvtss2sd xmm2, xmm0
mulsd xmm2, qword [ebp - 0x24]
addsd xmm2, qword [ebp + 0x14]
call fcn.10041e10
movsd xmm1, qword [0x1017f128]
divsd xmm1, qword [ebp - 0x14]
mov byte [esi + 0x2c5c], 0
movsd qword [ebp - 0x1c], xmm0
subsd xmm0, qword [ebp + 0x14]
divsd xmm0, qword [ebp - 0x24]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
subsd xmm0, qword [ebp - 0x2c]
movsd xmm2, qword [ebp - 0x1c]
jmp 0x1003f60c
mov edx, dword [ebp - 0x18]
addsd xmm2, xmm0
mov ecx, dword [ebp + 8]
call fcn.10041e10
movaps xmm2, xmm0
mov byte [esi + 0x2c5c], 0
subsd xmm0, qword [edi]
movss xmm1, dword [esi + 0x2c60]
cvtsd2ss xmm0, xmm0
subss xmm1, xmm0
xorps xmm0, xmm0
ucomisd xmm2, xmm0
movss dword [esi + 0x2c60], xmm1
lahf
test ah, 0x44
jp 0x1003f634
xorps xmm2, xmm2
movsd xmm3, qword [edi]
ucomisd xmm3, xmm2
movaps xmm4, xmm3
lahf
test ah, 0x44
jnp 0x1003f69d
test bl, bl
je 0x1003f69d
movsd xmm4, qword [ebp + 0x14]
xorps xmm1, xmm1
comisd xmm4, xmm2
mov al, byte [ebp - 5]
movss xmm0, dword [ebp - 0xc]
ja 0x1003f671
comisd xmm2, xmm3
movaps xmm5, xmm3
jbe 0x1003f677
comiss xmm1, xmm0
jbe 0x1003f677
test al, al
jne 0x1003f677
movaps xmm2, xmm4
movaps xmm5, xmm3
movsd xmm6, qword [ebp + 0x1c]
comisd xmm2, xmm6
ja 0x1003f697
comisd xmm3, xmm2
movaps xmm4, xmm3
jbe 0x1003f69d
comiss xmm0, xmm1
jbe 0x1003f69d
movaps xmm4, xmm5
test al, al
jne 0x1003f69d
movaps xmm2, xmm6
movaps xmm4, xmm5
ucomisd xmm4, xmm2
lahf
test ah, 0x44
jnp 0x1003f6b4
movsd qword [edi], xmm2
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret