Function at 0x14001dea0
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x14014dcf0]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
add cx, 0x41
mov rdi, rdx
xor eax, eax
mov word [rsp + 0x58], cx
or rcx, 0xffffffffffffffff
mov r13d, r8d
repne scasw ax, word [rdi]
mov rbx, rdx
xor esi, esi
not rcx
lea r9, [rsp + 0x58]
lea r8, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerDriveIcons_sDefaultLabel
lea r14d, [rcx + rcx]
lea rcx, [rbp - 0x40]
mov edx, 0x208
mov word [rsp + 0x5a], si
mov r12d, esi
call section..text
xor r8d, r8d
lea rax, [rsp + 0x50]
lea rdx, [rbp - 0x40]
mov rcx, 0xffffffff80000001
test r13d, r13d
je 0x14001df56
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
jmp 0x14001df67
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14001e0b4
mov rcx, qword [rsp + 0x50]
xor edx, edx
test r13d, r13d
je 0x14001df9b
lea r9d, [rax + 1]
xor r8d, r8d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp 0x14001e02e
xor eax, eax
lea r9, [rsp + 0x5c]
xor r8d, r8d
mov qword [rsp + 0x72], rax
mov qword [rsp + 0x7a], rax
mov qword [rbp - 0x7e], rax
mov qword [rbp - 0x76], rax
mov qword [rbp - 0x6e], rax
mov qword [rbp - 0x66], rax
mov qword [rbp - 0x5e], rax
mov qword [rbp - 0x56], rax
mov word [rbp - 0x4e], ax
lea rax, [rsp + 0x60]
mov word [rsp + 0x70], si
mov dword [rsp + 0x60], 0x43
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14001e02e
cmp dword [rsp + 0x5c], 1
jne 0x14001e02e
lea rax, [rsp + 0x70]
sub rbx, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + rbx]
sub edx, ecx
jne 0x14001e023
add rax, 2
test ecx, ecx
jne 0x14001e010
mov eax, 1
test edx, edx
cmove r12d, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r12d, r12d
je 0x14001e0b2
lea r9, [rsp + 0x58]
lea r8, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerDriveIcons_s
lea rcx, [rbp - 0x40]
mov edx, 0x208
call section..text
lea rdx, [rsp + 0x50]
mov r9d, 0x2001f
mov qword [rsp + 0x20], rdx
lea rdx, [rbp - 0x40]
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14001e0a1
mov rcx, qword [rsp + 0x50]
lea rdx, str.DefaultLabel
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x50]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rbp - 0x40]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test edi, edi
sete sil
mov eax, esi
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1400a4e70
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret