Function at 0x1003d900
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 0x1003d933
cmp eax, 5
je 0x1003d933
xor dl, dl
jmp 0x1003d935
mov dl, 1
movss xmm4, dword [0x1017f0d8]
movss xmm3, dword [ebp + 0x14]
movss xmm2, dword [0x1017f334]
ucomiss xmm3, xmm4
mov byte [ebp - 2], dl
lahf
test ah, 0x44
jnp 0x1003d987
test dl, dl
je 0x1003d987
cmp ebx, edi
je 0x1003d987
mov ecx, edi
sub ecx, ebx
mov eax, ecx
shr eax, 0x1f
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x1017f940]
cvtpd2ps xmm0, xmm0
comiss xmm2, xmm0
jbe 0x1003d987
mov byte [ebp - 1], 1
jmp 0x1003d98f
mov ecx, edi
mov byte [ebp - 1], 0
sub ecx, ebx
xorps xmm6, xmm6
ucomiss xmm1, xmm6
lahf
test ah, 0x44
jp 0x1003d9cc
cmp ebx, edi
je 0x1003d9cc
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x1017f940]
cvtpd2ps xmm0, xmm0
comiss xmm2, xmm0
jbe 0x1003d9cc
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 0x1003da58
test esi, esi
jne 0x1003d9e5
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 0x1003dc46
comiss xmm3, xmm2
jb 0x1003dc46
movss xmm0, dword [esi + 0x434]
comiss xmm0, xmm4
jbe 0x1003dc46
cmp byte [esi + 0xfa], 0
movss xmm5, dword [esi + 0x370]
je 0x1003da39
mulss xmm5, dword [0x1017f024]
cmp byte [esi + 0xf9], 0
movss xmm3, dword [ebp + 0x14]
je 0x1003dc4b
mulss xmm5, dword [0x1017f1a4]
jmp 0x1003dc4b
cmp eax, 2
jne 0x1003dc4b
test dl, dl
je 0x1003da71
mov ecx, dword [ebp + 0x10]
call fcn.10135de0
mov edx, eax
jmp 0x1003da73
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 [0x1017f06c]
movss xmm1, dword [0x1017f0c0]
jbe 0x1003daad
xorps xmm7, xmm7
jmp 0x1003daf1
movss xmm2, dword [ecx]
movss xmm3, dword [eax]
mulss xmm2, xmm1
movaps xmm1, xmm0
subss xmm1, dword [esi + 0x18]
mulss xmm3, xmm5
call fcn.10116eb0
movss xmm1, dword [0x1017f0c0]
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 0x1003db03
xorps xmm0, xmm0
jmp 0x1003db29
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.10116eb0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm7, xmm0
movss xmm0, dword [esi + 0x145c]
comiss xmm6, xmm0
addss xmm7, xmm6
jbe 0x1003db43
xorps xmm5, xmm5
jmp 0x1003db73
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 [0x1017f0c0]
subss xmm1, dword [eax]
call fcn.10116eb0
movd xmm5, eax
cvtdq2ps xmm5, xmm5
movss xmm0, dword [esi + 0x1458]
comiss xmm6, xmm0
jbe 0x1003db85
xorps xmm0, xmm0
jmp 0x1003dbb9
mov eax, dword [ebp - 0x10]
movaps xmm1, xmm0
movss xmm3, dword [eax]
mov eax, dword [ebp - 0x14]
mulss xmm3, dword [0x1017f06c]
movss xmm2, dword [eax]
mov eax, dword [ebp - 8]
mulss xmm2, dword [0x1017f0c0]
subss xmm1, dword [eax]
call fcn.10116eb0
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 0x1003dbe3
mulss xmm5, dword [0x1017f050]
movss dword [ebp - 8], xmm5
movss xmm0, dword [esi + 0x338]
comiss xmm0, xmm6
movss xmm0, dword [0x1017f1a4]
jbe 0x1003dc01
mulss xmm5, xmm0
movss dword [ebp - 8], xmm5
test edx, edx
jns 0x1003dc0f
movss xmm0, dword [0x1017eff0]
jmp 0x1003dc35
cmp edx, 0xa
jge 0x1003dc1f
movss xmm0, dword [edx*4 + 0x1017e5d0]
jmp 0x1003dc35
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 [0x1017f0d8]
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 0x1003dc79
mov eax, dword [edx]
cmp eax, edi
jb 0x1003dc6c
comiss xmm5, xmm6
ja 0x1003dc75
cmp eax, ebx
ja 0x1003dc79
comiss xmm6, xmm5
jbe 0x1003dc79
mov cl, 1
jmp 0x1003dc7b
xor cl, cl
mov ah, byte [ebp - 1]
test ah, ah
je 0x1003dca6
comiss xmm6, xmm5
jbe 0x1003dc94
movss xmm0, dword [esi + 0x2c60]
comiss xmm0, xmm6
ja 0x1003dca2
comiss xmm5, xmm6
jbe 0x1003dca6
comiss xmm6, dword [esi + 0x2c60]
jbe 0x1003dca6
mov al, 1
jmp 0x1003dca8
xor al, al
test ch, ch
jne 0x1003dcdc
test cl, cl
jne 0x1003dcdc
test al, al
jne 0x1003dcdc
ucomiss xmm5, xmm6
lahf
test ah, 0x44
mov ah, byte [ebp - 1]
jnp 0x1003dced
movaps xmm0, xmm5
mov byte [esi + 0x2c5c], 1
addss xmm0, dword [esi + 0x2c60]
movss dword [esi + 0x2c60], xmm0
jmp 0x1003dced
mov dword [esi + 0x2c60], 0
mov byte [esi + 0x2c5c], 0
cmp byte [esi + 0x2c5c], 0
je 0x1003dea4
mov ecx, dword [edx]
sub edi, ebx
mov dword [ebp - 0x18], edi
test ah, ah
je 0x1003ddfa
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 + 0x1017f940]
cvtpd2ps xmm2, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, ecx
shr ecx, 0x1f
movss dword [ebp + 8], xmm2
addsd xmm0, qword [ecx*8 + 0x1017f940]
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 0x1003dd7a
movss xmm0, dword [0x1017f0d8]
minss xmm0, xmm1
movss xmm1, dword [ebp + 0x14]
call fcn.1000d060
call fcn.1006d830
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
imul eax, edi
add eax, ebx
push eax
call fcn.10041b50
mov edi, eax
movss xmm1, dword [0x1017f0d8]
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 + 0x1017f940]
addsd xmm2, qword [eax*8 + 0x1017f940]
cvtpd2ps xmm0, xmm0
cvtpd2ps xmm2, xmm2
divss xmm0, xmm2
call fcn.1000d060
subss xmm0, dword [ebp - 0x14]
jmp 0x1003de32
movss xmm0, dword [esi + 0x2c60]
call fcn.1006d830
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.10041b50
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 0x1003de92
mov esi, dword [ebp + 0xc]
cmp ebx, esi
je 0x1003de96
movss xmm0, dword [ebp - 8]
xorps xmm1, xmm1
cmp edi, ebx
jb 0x1003de75
cmp edi, ecx
jbe 0x1003de77
comiss xmm1, xmm0
jbe 0x1003de77
cmp byte [ebp - 2], 0
jne 0x1003de77
mov eax, ebx
mov ebx, ecx
cmp eax, esi
ja 0x1003de8e
cmp eax, ecx
jae 0x1003de92
comiss xmm0, xmm1
jbe 0x1003de92
cmp byte [ebp - 2], 0
mov edx, ebx
jne 0x1003de92
mov eax, esi
mov edx, ebx
cmp edx, eax
je 0x1003dea4
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