Function at 0x1003deb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp + 0xc]
movss dword [ebp - 0x14], xmm2
mov dword [ebp - 0x1c], eax
push esi
mov esi, dword [0x101e6b78]
push edi
cmp eax, 4
je 0x1003dee3
mov byte [ebp - 5], 0
cmp eax, 5
jne 0x1003dee7
mov byte [ebp - 5], 1
cmp ecx, ebx
jne 0x1003def4
cmp edx, dword [ebp + 0x14]
jne 0x1003def4
xor al, al
jmp 0x1003def6
mov al, 1
movss xmm0, dword [ebp + 0x1c]
ucomiss xmm0, dword [0x1017f0d8]
mov byte [ebp - 6], al
lahf
test ah, 0x44
jnp 0x1003df43
cmp byte [ebp - 5], 0
je 0x1003df43
test al, al
je 0x1003df43
mov edi, ebx
mov ebx, dword [ebp + 0x14]
sub edi, ecx
mov ecx, edi
sbb ebx, edx
mov edx, ebx
call fcn.1006db50
movss xmm1, dword [0x1017f334]
comiss xmm1, xmm0
jbe 0x1003df3a
mov byte [ebp - 7], 1
jmp 0x1003df50
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov edi, ebx
mov byte [ebp - 7], 0
mov ebx, dword [ebp + 0x14]
sub edi, ecx
sbb ebx, edx
movss xmm1, dword [ebp - 0x14]
xorps xmm6, xmm6
ucomiss xmm1, xmm6
lahf
test ah, 0x44
jp 0x1003df97
cmp byte [ebp - 6], 0
je 0x1003df97
mov edx, ebx
mov ecx, edi
call fcn.1006db50
movss xmm1, dword [0x1017f334]
xorps xmm6, xmm6
comiss xmm1, xmm0
jbe 0x1003df92
movaps xmm1, xmm0
mulss xmm1, dword [esi + 0x2c64]
movss dword [ebp - 0x14], xmm1
jmp 0x1003df97
movss xmm1, dword [ebp - 0x14]
mov eax, dword [esi + 0x1a34]
xorps xmm5, xmm5
cmp eax, 1
jne 0x1003e022
test esi, esi
jne 0x1003dfb0
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
movss xmm0, dword [esi + 0xe0]
movss xmm2, dword [0x1017f3a8]
comiss xmm0, xmm2
movss xmm3, dword [esi + 0xe4]
jb 0x1003e1f9
comiss xmm3, xmm2
jb 0x1003e1f9
movss xmm0, dword [esi + 0x434]
comiss xmm0, dword [0x1017f0d8]
jbe 0x1003e1f9
cmp byte [esi + 0xfa], 0
movss xmm5, dword [esi + 0x370]
je 0x1003e008
mulss xmm5, dword [0x1017f024]
cmp byte [esi + 0xf9], 0
je 0x1003e1f9
mulss xmm5, dword [0x1017f1a4]
jmp 0x1003e1f9
cmp eax, 2
jne 0x1003e1f9
cmp byte [ebp - 5], 0
je 0x1003e03d
mov ecx, dword [ebp + 0x18]
call fcn.10135de0
mov edx, eax
jmp 0x1003e03f
xor edx, edx
movss xmm4, dword [esi + 0x1490]
lea eax, [esi + 0x18]
comiss xmm6, xmm4
mov dword [ebp - 0x18], eax
movss xmm5, dword [0x1017f06c]
movss xmm0, dword [0x1017f0c0]
jbe 0x1003e067
xorps xmm7, xmm7
jmp 0x1003e0a3
movss xmm3, dword [esi + 0x8c]
movaps xmm1, xmm4
movss xmm2, dword [esi + 0x88]
subss xmm1, dword [eax]
mulss xmm2, xmm0
movaps xmm0, xmm4
mulss xmm3, xmm5
call fcn.10116eb0
movss xmm0, dword [0x1017f0c0]
movd xmm7, eax
lea eax, [esi + 0x18]
cvtdq2ps xmm7, xmm7
mov dword [ebp - 0x18], eax
movss xmm4, dword [esi + 0x148c]
comiss xmm6, xmm4
jbe 0x1003e0b5
xorps xmm0, xmm0
jmp 0x1003e0e3
movss xmm3, dword [esi + 0x8c]
movaps xmm1, xmm4
movss xmm2, dword [esi + 0x88]
subss xmm1, dword [eax]
mulss xmm2, xmm0
movaps xmm0, xmm4
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 0x1003e0fd
xorps xmm5, xmm5
jmp 0x1003e12f
mov eax, dword [ebp - 0x18]
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 0x1003e141
xorps xmm0, xmm0
jmp 0x1003e177
mov eax, dword [ebp - 0x18]
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 0x1003e19e
mulss xmm5, dword [0x1017f050]
movss dword [ebp - 0xc], xmm5
movss xmm0, dword [esi + 0x338]
comiss xmm0, xmm6
movss xmm0, dword [0x1017f1a4]
jbe 0x1003e1bc
mulss xmm5, xmm0
movss dword [ebp - 0xc], xmm5
test edx, edx
jns 0x1003e1ca
movss xmm0, dword [0x1017eff0]
jmp 0x1003e1f0
cmp edx, 0xa
jge 0x1003e1da
movss xmm0, dword [edx*4 + 0x1017e5d0]
jmp 0x1003e1f0
neg edx
movd xmm1, edx
cvtdq2ps xmm1, xmm1
call fcn.1000d060
movss xmm5, dword [ebp - 0xc]
xorps xmm6, xmm6
movss xmm1, dword [ebp - 0x14]
maxss xmm1, xmm0
cmp byte [ebp - 6], 0
mov bl, byte [esi + 0x1a14]
mov ecx, dword [ebp - 0x10]
mulss xmm5, xmm1
movss dword [ebp - 0xc], xmm5
je 0x1003e247
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
cmp edx, dword [ebp + 0x14]
jl 0x1003e227
jg 0x1003e222
cmp eax, dword [ebp + 0x10]
jb 0x1003e227
comiss xmm5, xmm6
ja 0x1003e240
mov edi, dword [ebp + 0xc]
cmp edx, edi
jg 0x1003e24a
jl 0x1003e237
mov edx, dword [ebp + 8]
cmp eax, edx
ja 0x1003e24a
comiss xmm6, xmm5
jbe 0x1003e24a
mov dl, 1
jmp 0x1003e24c
mov edi, dword [ebp + 0xc]
mov dl, 1
jmp 0x1003e24c
mov edi, dword [ebp + 0xc]
xor dl, dl
cmp byte [ebp - 7], 0
je 0x1003e276
comiss xmm6, xmm5
jbe 0x1003e264
movss xmm0, dword [esi + 0x2c60]
comiss xmm0, xmm6
ja 0x1003e272
comiss xmm5, xmm6
jbe 0x1003e276
comiss xmm6, dword [esi + 0x2c60]
jbe 0x1003e276
mov al, 1
jmp 0x1003e278
xor al, al
test bl, bl
jne 0x1003e2a9
test dl, dl
jne 0x1003e2a9
test al, al
jne 0x1003e2a9
ucomiss xmm5, xmm6
lahf
test ah, 0x44
jnp 0x1003e2ba
movaps xmm0, xmm5
mov byte [esi + 0x2c5c], 1
addss xmm0, dword [esi + 0x2c60]
movss dword [esi + 0x2c60], xmm0
jmp 0x1003e2ba
mov dword [esi + 0x2c60], 0
mov byte [esi + 0x2c5c], 0
cmp byte [esi + 0x2c5c], 0
je 0x1003e531
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
sub edx, ebx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x14]
sbb edx, edi
mov dword [ebp - 0x20], eax
cmp byte [ebp - 7], 0
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], edx
je 0x1003e3f8
sub eax, ebx
sbb ecx, edi
mov edx, ecx
mov ecx, eax
call fcn.1006da80
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
movsd qword [ebp - 0x2c], xmm0
call fcn.1006da80
movsd xmm1, qword [ebp - 0x2c]
divsd xmm1, xmm0
movss xmm2, dword [ebp + 0x1c]
cvtps2pd xmm2, xmm2
movaps xmm0, xmm1
movsd xmm1, qword [0x1017f128]
divsd xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
movsd qword [ebp - 0x2c], xmm0
call fcn.1006db50
movss xmm1, dword [esi + 0x2c60]
divss xmm1, xmm0
xorps xmm0, xmm0
cvtps2pd xmm1, xmm1
addsd xmm1, qword [ebp - 0x2c]
cvtpd2ps xmm1, xmm1
comiss xmm0, xmm1
ja 0x1003e36d
movss xmm0, dword [0x1017f0d8]
minss xmm0, xmm1
movss xmm1, dword [ebp + 0x1c]
call fcn.1000d060
call fcn.1006d830
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edx
push eax
call fcn.1006dba0
mov ecx, dword [ebp + 0x18]
add eax, ebx
adc edx, edi
push edx
mov edx, dword [ebp - 0x1c]
push eax
call fcn.10041be0
mov ebx, eax
mov byte [esi + 0x2c5c], 0
add esp, 8
mov ecx, ebx
sub ecx, dword [ebp + 8]
mov edi, edx
sbb edx, dword [ebp + 0xc]
call fcn.1006da80
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
movsd qword [ebp - 0x24], xmm0
call fcn.1006da80
movsd xmm1, qword [ebp - 0x24]
divsd xmm1, xmm0
movsd xmm2, qword [0x1017f128]
movaps xmm0, xmm1
movss xmm1, dword [ebp + 0x1c]
cvtps2pd xmm1, xmm1
divsd xmm2, xmm1
movaps xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
subsd xmm0, qword [ebp - 0x2c]
cvtsd2ss xmm0, xmm0
jmp 0x1003e439
movss xmm0, dword [esi + 0x2c60]
call fcn.1006d830
mov ecx, dword [ebp - 0x20]
add ecx, eax
mov eax, dword [ebp - 0x28]
adc eax, edx
mov edx, dword [ebp - 0x1c]
push eax
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.10041be0
mov ebx, eax
mov byte [esi + 0x2c5c], 0
mov eax, dword [ebp - 0x10]
add esp, 8
mov ecx, ebx
mov edi, edx
sub ecx, dword [eax]
sbb edx, dword [eax + 4]
call fcn.1006db50
movss xmm1, dword [esi + 0x2c60]
mov eax, dword [ebp - 0x10]
subss xmm1, xmm0
movss dword [esi + 0x2c60], xmm1
mov ecx, dword [eax]
mov esi, ecx
mov eax, dword [eax + 4]
mov edx, eax
cmp ecx, ebx
jne 0x1003e465
cmp eax, edi
je 0x1003e510
cmp byte [ebp - 6], 0
je 0x1003e518
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp edi, esi
jl 0x1003e4ba
jg 0x1003e47f
cmp ebx, edx
jb 0x1003e4ba
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x1c], eax
cmp edi, eax
jl 0x1003e4ce
jg 0x1003e48f
cmp ebx, ecx
jbe 0x1003e4ce
movss xmm0, dword [ebp - 0xc]
xorps xmm1, xmm1
comiss xmm1, xmm0
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x1c], eax
jbe 0x1003e4d6
cmp byte [ebp - 5], 0
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x1c], eax
jne 0x1003e4d6
mov ebx, edx
mov dword [ebp + 0xc], ecx
mov edi, esi
mov dword [ebp + 0x1c], eax
jmp 0x1003e4d6
movss xmm0, dword [ebp - 0xc]
xorps xmm1, xmm1
mov ebx, edx
mov dword [ebp + 0xc], ecx
mov edi, esi
mov dword [ebp + 0x1c], eax
jmp 0x1003e4d6
movss xmm0, dword [ebp - 0xc]
xorps xmm1, xmm1
mov edx, dword [ebp + 0x14]
cmp edi, edx
jg 0x1003e529
jl 0x1003e4e4
cmp ebx, dword [ebp + 0x10]
ja 0x1003e529
mov esi, ecx
mov edx, eax
cmp edi, eax
jg 0x1003e510
jl 0x1003e4f2
cmp ebx, ecx
jae 0x1003e510
comiss xmm0, xmm1
jbe 0x1003e510
cmp byte [ebp - 5], 0
mov eax, ecx
mov ecx, dword [ebp + 0x1c]
mov edx, ecx
jne 0x1003e510
mov edx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov edi, edx
mov esi, eax
mov edx, ecx
cmp esi, ebx
jne 0x1003e518
cmp edx, edi
je 0x1003e531
mov eax, dword [ebp - 0x10]
mov dword [eax], ebx
mov dword [eax + 4], edi
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
jmp 0x1003e507
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret