Function at 0x140004c40
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140070030]
xor rax, rsp
mov qword [rbp + 0x90], rax
xor r13d, r13d
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], r13b
lea r8d, [r13 + 0x15]
lea rdx, str.SYSTEMMountedDevices
lea rcx, [rsp + 0x50]
call fcn.140003d00
nop
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rdx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140004e73
mov dword [rsp + 0x48], 0xff
lea r12d, [r13 + 1]
xor edx, edx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x70]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x140004e67
mov qword [rsp + 0x70], r13
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], 0xf
mov byte [rsp + 0x70], al
lea rax, [rbp - 0x70]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140004d40
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.140003d00
nop
lea rsi, [rsp + 0x70]
mov r14, qword [rbp - 0x78]
cmp r14, 0x10
setae r15b
mov rbx, qword [rsp + 0x70]
cmovae rsi, rbx
mov rax, qword [rbp - 0x80]
cmp rax, 2
jb 0x140004e1b
lea rdi, [rsi + rax]
lea r8, [rdi - 1]
sub r8, rsi
mov edx, 0x23
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140004e1b
cmp byte [rax], 0x23
jne 0x140004db2
cmp byte [rax + 1], 0x7b
jne 0x140004db2
mov ecx, r13d
jmp 0x140004db7
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x140004dd9
inc rax
lea r8, [rdi - 1]
sub r8, rax
mov edx, 0x23
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x140004da2
jmp 0x140004e1b
sub rax, rsi
cmp rax, 0xffffffffffffffff
je 0x140004e1b
lea rdx, [rbp - 0x70]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea rcx, [0x1400700b0]
test eax, eax
jne 0x140004e09
lea r8d, [rax + 0xf]
lea rdx, str.Deleted_values_
jmp 0x140004e16
mov r8d, 0x18
lea rdx, str.Failed_to_delete_values.
call fcn.140003d00
mov dword [rsp + 0x48], 0xff
test r15b, r15b
je 0x140004e55
lea rdx, [r14 + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140004e4d
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004e60
mov rcx, rbx
call fcn.140052d00
mov edx, r12d
inc r12d
jmp 0x140004cf0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140004eb3
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004eae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004eae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052d00
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140052ce0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret