Function at 0x1003d860
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 0xc], edx
movaps xmm1, xmm2
movss dword [ebp - 0x18], xmm1
mov dword [ebp - 0x1c], eax
push esi
mov esi, dword [0x101e6b78]
push edi
mov edi, dword [ebp + 0xc]
cmp eax, 4
je 0x1003d893
cmp eax, 5
je 0x1003d893
xor dl, dl
jmp 0x1003d895
mov dl, 1
movss xmm4, dword [0x1017f158]
movss xmm3, dword [ebp + 0x14]
movss xmm2, dword [0x1017f3c0]
ucomiss xmm3, xmm4
mov byte [ebp - 2], dl
lahf
test ah, 0x44
jnp 0x1003d8e7
test dl, dl
je 0x1003d8e7
cmp ebx, edi
je 0x1003d8e7
mov ecx, edi
sub ecx, ebx
mov eax, ecx
shr eax, 0x1f
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x1017f9d0]
cvtpd2ps xmm0, xmm0
comiss xmm2, xmm0
jbe 0x1003d8e7
mov byte [ebp - 1], 1
jmp 0x1003d8ef
mov ecx, edi
mov byte [ebp - 1], 0
sub ecx, ebx
xorps xmm6, xmm6
ucomiss xmm1, xmm6
lahf
test ah, 0x44
jp 0x1003d92c
cmp ebx, edi
je 0x1003d92c
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x1017f9d0]
cvtpd2ps xmm0, xmm0
comiss xmm2, xmm0
jbe 0x1003d92c
movaps xmm1, xmm0
mulss xmm1, dword [esi + 0x2c64]
movss dword [ebp - 0x18], xmm1
mov eax, dword [esi + 0x1a34]
xorps xmm5, xmm5
cmp eax, 1
jne 0x1003d9b8
test esi, esi
jne 0x1003d945
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
movss xmm0, dword [esi + 0xe0]
movss xmm2, dword [0x1017f438]
comiss xmm0, xmm2
movss xmm3, dword [esi + 0xe4]
jb 0x1003dba6
comiss xmm3, xmm2
jb 0x1003dba6
movss xmm0, dword [esi + 0x434]
comiss xmm0, xmm4
jbe 0x1003dba6
cmp byte [esi + 0xfa], 0
movss xmm5, dword [esi + 0x370]
je 0x1003d999
mulss xmm5, dword [0x1017f0a4]
cmp byte [esi + 0xf9], 0
movss xmm3, dword [ebp + 0x14]
je 0x1003dbab
mulss xmm5, dword [0x1017f224]
jmp 0x1003dbab
cmp eax, 2
jne 0x1003dbab
test dl, dl
je 0x1003d9d1
mov ecx, dword [ebp + 0x10]
call fcn.10135cf0
mov edx, eax
jmp 0x1003d9d3
xor edx, edx
movss xmm0, dword [esi + 0x1490]
lea eax, [esi + 0x8c]
comiss xmm6, xmm0
lea ecx, [esi + 0x88]
mov dword [ebp - 0x10], eax
lea ebx, [esi + 0x18]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], ebx
movss xmm5, dword [0x1017f0ec]
movss xmm1, dword [0x1017f140]
jbe 0x1003da0d
xorps xmm7, xmm7
jmp 0x1003da51
movss xmm2, dword [ecx]
movss xmm3, dword [eax]
mulss xmm2, xmm1
movaps xmm1, xmm0
subss xmm1, dword [esi + 0x18]
mulss xmm3, xmm5
call fcn.10116d70
movss xmm1, dword [0x1017f140]
lea ecx, [esi + 0x88]
lea ebx, [esi + 0x18]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], ebx
movd xmm7, eax
lea eax, [esi + 0x8c]
cvtdq2ps xmm7, xmm7
mov dword [ebp - 0x10], eax
movss xmm0, dword [esi + 0x148c]
comiss xmm6, xmm0
jbe 0x1003da63
xorps xmm0, xmm0
jmp 0x1003da89
movss xmm3, dword [eax]
movss xmm2, dword [ecx]
mov eax, dword [ebp - 8]
mulss xmm2, xmm1
movaps xmm1, xmm0
mulss xmm3, xmm5
subss xmm1, dword [eax]
call fcn.10116d70
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm7, xmm0
movss xmm0, dword [esi + 0x145c]
comiss xmm6, xmm0
addss xmm7, xmm6
jbe 0x1003daa3
xorps xmm5, xmm5
jmp 0x1003dad3
mov eax, dword [ebp - 0x10]
movaps xmm1, xmm0
movss xmm3, dword [eax]
mov eax, dword [ebp - 0x14]
mulss xmm3, xmm5
movss xmm2, dword [eax]
mov eax, dword [ebp - 8]
mulss xmm2, dword [0x1017f140]
subss xmm1, dword [eax]
call fcn.10116d70
movd xmm5, eax
cvtdq2ps xmm5, xmm5
movss xmm0, dword [esi + 0x1458]
comiss xmm6, xmm0
jbe 0x1003dae5
xorps xmm0, xmm0
jmp 0x1003db19
mov eax, dword [ebp - 0x10]
movaps xmm1, xmm0
movss xmm3, dword [eax]
mov eax, dword [ebp - 0x14]
mulss xmm3, dword [0x1017f0ec]
movss xmm2, dword [eax]
mov eax, dword [ebp - 8]
mulss xmm2, dword [0x1017f140]
subss xmm1, dword [eax]
call fcn.10116d70
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov ebx, dword [ebp + 8]
subss xmm5, xmm0
movss xmm0, dword [esi + 0x334]
comiss xmm0, xmm6
addss xmm5, xmm7
movss dword [ebp - 8], xmm5
jbe 0x1003db43
mulss xmm5, dword [0x1017f0d0]
movss dword [ebp - 8], xmm5
movss xmm0, dword [esi + 0x338]
comiss xmm0, xmm6
movss xmm0, dword [0x1017f224]
jbe 0x1003db61
mulss xmm5, xmm0
movss dword [ebp - 8], xmm5
test edx, edx
jns 0x1003db6f
movss xmm0, dword [0x1017f070]
jmp 0x1003db95
cmp edx, 0xa
jge 0x1003db7f
movss xmm0, dword [edx*4 + 0x1017e650]
jmp 0x1003db95
neg edx
movd xmm1, edx
cvtdq2ps xmm1, xmm1
call fcn.1000d060
movss xmm5, dword [ebp - 8]
xorps xmm6, xmm6
movss xmm1, dword [ebp - 0x18]
movss xmm4, dword [0x1017f158]
maxss xmm1, xmm0
movss xmm3, dword [ebp + 0x14]
mov ch, byte [esi + 0x1a14]
mov edx, dword [ebp - 0xc]
mulss xmm5, xmm1
movss dword [ebp - 8], xmm5
cmp ebx, edi
je 0x1003dbd9
mov eax, dword [edx]
cmp eax, edi
jb 0x1003dbcc
comiss xmm5, xmm6
ja 0x1003dbd5
cmp eax, ebx
ja 0x1003dbd9
comiss xmm6, xmm5
jbe 0x1003dbd9
mov cl, 1
jmp 0x1003dbdb
xor cl, cl
mov ah, byte [ebp - 1]
test ah, ah
je 0x1003dc06
comiss xmm6, xmm5
jbe 0x1003dbf4
movss xmm0, dword [esi + 0x2c60]
comiss xmm0, xmm6
ja 0x1003dc02
comiss xmm5, xmm6
jbe 0x1003dc06
comiss xmm6, dword [esi + 0x2c60]
jbe 0x1003dc06
mov al, 1
jmp 0x1003dc08
xor al, al
test ch, ch
jne 0x1003dc3c
test cl, cl
jne 0x1003dc3c
test al, al
jne 0x1003dc3c
ucomiss xmm5, xmm6
lahf
test ah, 0x44
mov ah, byte [ebp - 1]
jnp 0x1003dc4d
movaps xmm0, xmm5
mov byte [esi + 0x2c5c], 1
addss xmm0, dword [esi + 0x2c60]
movss dword [esi + 0x2c60], xmm0
jmp 0x1003dc4d
mov dword [esi + 0x2c60], 0
mov byte [esi + 0x2c5c], 0
cmp byte [esi + 0x2c5c], 0
je 0x1003de04
mov ecx, dword [edx]
sub edi, ebx
mov dword [ebp - 0x18], edi
test ah, ah
je 0x1003dd5a
xorps xmm0, xmm0
mov eax, edi
cvtsi2sd xmm0, edi
shr eax, 0x1f
sub ecx, ebx
movaps xmm1, xmm4
divss xmm1, xmm3
addsd xmm0, qword [eax*8 + 0x1017f9d0]
cvtpd2ps xmm2, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, ecx
shr ecx, 0x1f
movss dword [ebp + 8], xmm2
addsd xmm0, qword [ecx*8 + 0x1017f9d0]
cvtpd2ps xmm0, xmm0
divss xmm0, xmm2
call fcn.1000d060
movss xmm1, dword [esi + 0x2c60]
divss xmm1, dword [ebp + 8]
movss dword [ebp - 0x14], xmm0
addss xmm1, xmm0
xorps xmm0, xmm0
comiss xmm0, xmm1
ja 0x1003dcda
movss xmm0, dword [0x1017f158]
minss xmm0, xmm1
movss xmm1, dword [ebp + 0x14]
call fcn.1000d060
call fcn.1006d920
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
imul eax, edi
add eax, ebx
push eax
call fcn.10041c90
mov edi, eax
movss xmm1, dword [0x1017f158]
mov eax, dword [ebp - 0x18]
mov ecx, edi
divss xmm1, dword [ebp + 0x14]
sub ecx, ebx
mov byte [esi + 0x2c5c], 0
add esp, 4
movd xmm0, ecx
movd xmm2, eax
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
shr eax, 0x1f
cvtdq2pd xmm2, xmm2
addsd xmm0, qword [ecx*8 + 0x1017f9d0]
addsd xmm2, qword [eax*8 + 0x1017f9d0]
cvtpd2ps xmm0, xmm0
cvtpd2ps xmm2, xmm2
divss xmm0, xmm2
call fcn.1000d060
subss xmm0, dword [ebp - 0x14]
jmp 0x1003dd92
movss xmm0, dword [esi + 0x2c60]
call fcn.1006d920
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx]
mov edx, dword [ebp - 0x1c]
add ecx, eax
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.10041c90
mov ecx, dword [ebp - 0xc]
add esp, 4
mov edi, eax
mov byte [esi + 0x2c5c], 0
sub eax, dword [ecx]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss xmm1, dword [esi + 0x2c60]
mov eax, dword [ebp - 0xc]
subss xmm1, xmm0
movss dword [esi + 0x2c60], xmm1
mov ecx, dword [eax]
mov edx, ecx
mov eax, edi
cmp ecx, edi
je 0x1003ddf2
mov esi, dword [ebp + 0xc]
cmp ebx, esi
je 0x1003ddf6
movss xmm0, dword [ebp - 8]
xorps xmm1, xmm1
cmp edi, ebx
jb 0x1003ddd5
cmp edi, ecx
jbe 0x1003ddd7
comiss xmm1, xmm0
jbe 0x1003ddd7
cmp byte [ebp - 2], 0
jne 0x1003ddd7
mov eax, ebx
mov ebx, ecx
cmp eax, esi
ja 0x1003ddee
cmp eax, ecx
jae 0x1003ddf2
comiss xmm0, xmm1
jbe 0x1003ddf2
cmp byte [ebp - 2], 0
mov edx, ebx
jne 0x1003ddf2
mov eax, esi
mov edx, ebx
cmp edx, eax
je 0x1003de04
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
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