Function at 0x1003f150
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 0x1003f17e
cmp eax, 5
je 0x1003f17e
xor cl, cl
jmp 0x1003f180
mov cl, 1
movsd xmm3, qword [ebp + 0x14]
ucomisd xmm3, xmm4
mov byte [ebp - 5], cl
lahf
test ah, 0x44
jnp 0x1003f196
mov al, 1
jmp 0x1003f198
xor al, al
movss xmm7, dword [ebp + 0xc]
ucomiss xmm7, dword [0x1017f158]
mov byte [ebp - 6], al
movsd xmm0, qword [0x1017f3b0]
lahf
test ah, 0x44
jnp 0x1003f1d0
test cl, cl
je 0x1003f1d0
test al, al
je 0x1003f1d0
movaps xmm1, xmm4
subsd xmm1, xmm3
comisd xmm0, xmm1
jbe 0x1003f1d0
mov byte [ebp - 7], 1
jmp 0x1003f1db
movaps xmm1, xmm4
mov byte [ebp - 7], 0
subsd xmm1, xmm3
xorps xmm6, xmm6
ucomiss xmm2, xmm6
lahf
test ah, 0x44
jp 0x1003f209
test al, al
je 0x1003f209
comisd xmm0, xmm1
jbe 0x1003f209
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 0x1003f29d
test esi, esi
jne 0x1003f226
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
movss xmm0, dword [esi + 0xe0]
movss xmm1, dword [0x1017f438]
comiss xmm0, xmm1
movss xmm7, dword [esi + 0xe4]
jb 0x1003f476
comiss xmm7, xmm1
jb 0x1003f476
movss xmm0, dword [esi + 0x434]
comiss xmm0, dword [0x1017f158]
jbe 0x1003f476
cmp byte [esi + 0xfa], 0
movss xmm5, dword [esi + 0x370]
je 0x1003f27e
mulss xmm5, dword [0x1017f0a4]
cmp byte [esi + 0xf9], 0
movss xmm7, dword [ebp + 0xc]
je 0x1003f47b
mulss xmm5, dword [0x1017f224]
jmp 0x1003f47b
cmp eax, 2
jne 0x1003f47b
test cl, cl
je 0x1003f2b6
mov ecx, dword [ebp + 8]
call fcn.10135cf0
mov edx, eax
jmp 0x1003f2b8
xor edx, edx
movss xmm0, dword [esi + 0x1490]
lea eax, [esi + 0x18]
comiss xmm6, xmm0
mov dword [ebp - 0xc], eax
movss xmm5, dword [0x1017f0ec]
movss xmm1, dword [0x1017f140]
jbe 0x1003f2e0
xorps xmm7, xmm7
jmp 0x1003f319
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.10116d70
movss xmm1, dword [0x1017f140]
movd xmm7, eax
lea eax, [esi + 0x18]
cvtdq2ps xmm7, xmm7
mov dword [ebp - 0xc], eax
movss xmm0, dword [esi + 0x148c]
comiss xmm6, xmm0
jbe 0x1003f32b
xorps xmm0, xmm0
jmp 0x1003f356
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.10116d70
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm7, xmm0
movss xmm0, dword [esi + 0x145c]
comiss xmm6, xmm0
addss xmm7, xmm6
jbe 0x1003f370
xorps xmm5, xmm5
jmp 0x1003f3a2
mov eax, dword [ebp - 0xc]
movaps xmm1, xmm0
movss xmm3, dword [esi + 0x8c]
movss xmm2, dword [esi + 0x88]
mulss xmm2, dword [0x1017f140]
subss xmm1, dword [eax]
mulss xmm3, xmm5
call fcn.10116d70
movd xmm5, eax
cvtdq2ps xmm5, xmm5
movss xmm0, dword [esi + 0x1458]
comiss xmm6, xmm0
jbe 0x1003f3b4
xorps xmm0, xmm0
jmp 0x1003f3ea
mov eax, dword [ebp - 0xc]
movaps xmm1, xmm0
movss xmm3, dword [esi + 0x8c]
movss xmm2, dword [esi + 0x88]
mulss xmm3, dword [0x1017f0ec]
subss xmm1, dword [eax]
mulss xmm2, dword [0x1017f140]
call fcn.10116d70
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 0x1003f411
mulss xmm5, dword [0x1017f0d0]
movss dword [ebp - 0xc], xmm5
movss xmm0, dword [esi + 0x338]
comiss xmm0, xmm6
movss xmm0, dword [0x1017f224]
jbe 0x1003f42f
mulss xmm5, xmm0
movss dword [ebp - 0xc], xmm5
test edx, edx
jns 0x1003f43d
movss xmm0, dword [0x1017f070]
jmp 0x1003f463
cmp edx, 0xa
jge 0x1003f44d
movss xmm0, dword [edx*4 + 0x1017e650]
jmp 0x1003f463
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 0x1003f4af
movsd xmm0, qword [edi]
comisd xmm0, xmm4
jb 0x1003f4a0
comiss xmm5, xmm6
ja 0x1003f4ab
comisd xmm3, xmm0
jb 0x1003f4af
comiss xmm6, xmm5
jbe 0x1003f4af
mov cl, 1
jmp 0x1003f4b1
xor cl, cl
mov ch, byte [ebp - 7]
test ch, ch
je 0x1003f4dc
comiss xmm6, xmm5
jbe 0x1003f4ca
movss xmm0, dword [esi + 0x2c60]
comiss xmm0, xmm6
ja 0x1003f4d8
comiss xmm5, xmm6
jbe 0x1003f4dc
comiss xmm6, dword [esi + 0x2c60]
jbe 0x1003f4dc
mov al, 1
jmp 0x1003f4de
xor al, al
test dl, dl
jne 0x1003f50f
test cl, cl
jne 0x1003f50f
test al, al
jne 0x1003f50f
ucomiss xmm5, xmm6
lahf
test ah, 0x44
jnp 0x1003f520
movaps xmm0, xmm5
mov byte [esi + 0x2c5c], 1
addss xmm0, dword [esi + 0x2c60]
movss dword [esi + 0x2c60], xmm0
jmp 0x1003f520
mov dword [esi + 0x2c60], 0
mov byte [esi + 0x2c5c], 0
cmp byte [esi + 0x2c5c], 0
je 0x1003f6c4
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 0x1003f5ff
subsd xmm0, xmm3
divsd xmm0, xmm1
movsd xmm1, qword [0x1017f1a8]
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 0x1003f5a5
movss xmm0, dword [0x1017f158]
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.10041fa0
movsd xmm1, qword [0x1017f1a8]
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 0x1003f61c
mov edx, dword [ebp - 0x18]
addsd xmm2, xmm0
mov ecx, dword [ebp + 8]
call fcn.10041fa0
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 0x1003f644
xorps xmm2, xmm2
movsd xmm3, qword [edi]
ucomisd xmm3, xmm2
movaps xmm4, xmm3
lahf
test ah, 0x44
jnp 0x1003f6ad
test bl, bl
je 0x1003f6ad
movsd xmm4, qword [ebp + 0x14]
xorps xmm1, xmm1
comisd xmm4, xmm2
mov al, byte [ebp - 5]
movss xmm0, dword [ebp - 0xc]
ja 0x1003f681
comisd xmm2, xmm3
movaps xmm5, xmm3
jbe 0x1003f687
comiss xmm1, xmm0
jbe 0x1003f687
test al, al
jne 0x1003f687
movaps xmm2, xmm4
movaps xmm5, xmm3
movsd xmm6, qword [ebp + 0x1c]
comisd xmm2, xmm6
ja 0x1003f6a7
comisd xmm3, xmm2
movaps xmm4, xmm3
jbe 0x1003f6ad
comiss xmm0, xmm1
jbe 0x1003f6ad
movaps xmm4, xmm5
test al, al
jne 0x1003f6ad
movaps xmm2, xmm6
movaps xmm4, xmm5
ucomisd xmm4, xmm2
lahf
test ah, 0x44
jnp 0x1003f6c4
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