Function at 0x14001e3e4
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x14011d6b0]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, rcx
cmp dword [rcx + 0xa818], 0
je 0x14001e9fb
cmp qword [rcx + 0x370], 0
je 0x14001e9fb
call fcn.140071a10
mov rcx, rax
test rax, rax
je 0x14001ea32
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x70], rax
call fcn.140071a10
mov rcx, rax
test rax, rax
je 0x14001ea3d
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x68], rbx
lea rdx, str.softwareCrystal_Dew_WorldCrystalDiskInfo
mov rsi, 0xffffffff80000001
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov r13d, 1
mov dword [rsp + 0x20], r13d
lea r9, [0x1400ea000]
xor r8d, r8d
lea rdx, str.softwareCrystal_Dew_WorldCrystalDiskInfo
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001e9c1
mov dword [rsp + 0x50], r13d
lea esi, [rax + 4]
mov dword [rsp + 0x28], esi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
lea rdx, str.Version
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x28], esi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
lea rdx, str.LastUpdate
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [rdi + 0x370]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x28], esi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
lea rdx, str.DiskCount
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor r15d, r15d
mov rcx, qword [rdi + 0x370]
test rcx, rcx
jle 0x14001e9b5
xor r14d, r14d
xor esi, esi
test rsi, rsi
js 0x14001ea2c
cmp r14, rcx
jge 0x14001ea2c
mov rdx, qword [rdi + 0x368]
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsi + rdx + 0x18b0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001e995
mov r8d, r15d
lea rdx, str.Disk_d
lea rcx, [rsp + 0x70]
call fcn.1400042cc
cmp r14, qword [rdi + 0x370]
jge 0x14001ea2c
mov rdx, qword [rdi + 0x368]
mov rdx, qword [rsi + rdx + 0x18b0]
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp - 0x80]
call fcn.1400af134
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, r13d
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp r14, qword [rdi + 0x370]
jge 0x14001ea2c
mov rdx, qword [rdi + 0x368]
mov rdx, qword [rsi + rdx + 0x18b8]
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp - 0x80]
call fcn.1400af134
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, r13d
xor r8d, r8d
lea rdx, str.DriveLetter
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp r14, qword [rdi + 0x370]
jge 0x14001ea2c
mov rdx, qword [rdi + 0x368]
mov rdx, qword [rsi + rdx + 0x1898]
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp - 0x80]
call fcn.1400af134
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, r13d
xor r8d, r8d
lea rdx, str.Model
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp r14, qword [rdi + 0x370]
jge 0x14001ea2c
mov rax, qword [rdi + 0x368]
mov r9d, dword [rsi + rax + 0x174c]
mov ebx, 0x100
lea rcx, [rbp - 0x80]
mov edx, ebx
cmp r9d, 0x3e8
jb 0x14001e74f
xorps xmm3, xmm3
cvtsi2sd xmm3, r9
divsd xmm3, qword [0x140104e28]
movq r9, xmm3
lea r8, str._.1f_GB
call fcn.14002bcc0
jmp 0x14001e75b
lea r8, str._d_MB
call fcn.14002bcc0
lea rcx, [rbp - 0x80]
call fcn.1400af134
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, r13d
xor r8d, r8d
lea rdx, str.DiskSize
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rax, qword [rdi + 0x370]
cmp dword [rdi + 0xa7f8], 0
je 0x14001e7f9
cmp r14, rax
jge 0x14001ea2c
mov rax, qword [rdi + 0x368]
mov ecx, dword [rsi + rax + 0x17bc]
cmp ecx, 0xfffffed4
jle 0x14001e7f0
lea ecx, [rcx + rcx*8]
mov eax, 0x66666667
imul ecx
sar edx, 1
mov r9d, edx
shr r9d, 0x1f
add edx, 0x20
add r9d, edx
lea rax, [0x1400f1518]
lea r8, [0x1400f1508]
cmp r9d, 0x64
cmovbe r8, rax
jmp 0x14001e821
lea r8, [0x1400f1528]
jmp 0x14001e836
cmp r14, rax
jge 0x14001ea2c
mov rax, qword [rdi + 0x368]
mov r9d, dword [rsi + rax + 0x17bc]
cmp r9d, 0xfffffed4
jle 0x14001e82f
lea r8, [0x1400f1538]
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.14002bcc0
jmp 0x14001e842
lea r8, [0x1400f1548]
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.14002bcc0
lea rcx, [rbp - 0x80]
call fcn.1400af134
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, r13d
xor r8d, r8d
lea rdx, [0x1400f00e0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp r14, qword [rdi + 0x370]
jge 0x14001ea26
mov rax, qword [rdi + 0x368]
mov r9d, dword [rax + rsi + 0x1808]
mov r8d, dword [rax + rsi + 0x17bc]
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.1400137f4
nop
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400028e0
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001e8d6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [0x1400ea000]
lea rdx, str.Green
lea rcx, [rsp + 0x68]
call fcn.140011f84
mov rbx, qword [rsp + 0x68]
mov r9, rbx
lea r8, [0x1400ea2b4]
mov edx, 0x100
lea rcx, [rbp - 0x80]
call fcn.14002bcc0
lea rcx, [rbp - 0x80]
call fcn.1400af134
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, r13d
xor r8d, r8d
lea rdx, str.TemperatureClass
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp r14, qword [rdi + 0x370]
jge 0x14001ea2c
mov rax, qword [rdi + 0x368]
mov eax, dword [rsi + rax + 0x1800]
mov dword [rsp + 0x50], eax
mov ecx, 4
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, ecx
xor r8d, r8d
lea rdx, str.DiskStatus
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add r15d, r13d
add r14, r13
add rsi, 0x1918
mov rcx, qword [rdi + 0x370]
movsxd rax, r15d
cmp rax, rcx
jl 0x14001e57c
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001e9dc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001e9fb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400a9d90
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
call fcn.1400713c8
nop
call fcn.1400713c8
nop
mov ecx, 0x80004005
call fcn.140002f7c
nop
mov ecx, 0x80004005
call fcn.140002f7c
int3