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

Disassembly:
push rbp
push rdi
push r13
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x1400c7070]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, rcx
add rcx, 0x48
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x14003b32b
mov rcx, qword [rdi + 0x78]
mov qword [rsp + 0xc8], r12
xor r12d, r12d
mov qword [rbp + 0x17], r12
test rcx, rcx
je 0x14003aeea
lea rdx, [rbp + 0x17]
call fcn.14005bc00
test al, al
je 0x14003aeea
mov rcx, qword [rdi + 0x78]
call fcn.140069370
mov rax, qword [rbp + 0x17]
mov qword [rdi + 0x78], rax
mov rcx, qword [rdi + 0x80]
mov qword [rsp + 0xb8], rbx
test rcx, rcx
je 0x14003af27
lea rdx, [rbp + 0x17]
mov qword [rbp + 0x17], r12
call fcn.14005bc00
mov rbx, qword [rbp + 0x17]
test rbx, rbx
je 0x14003af27
mov rcx, qword [rdi + 0x80]
call fcn.140069370
mov qword [rdi + 0x80], rbx
mov rax, qword [rdi + 0x80]
lea r8, str.RegDeleteValue
mov r9, qword [rdi + 0x78]
lea rcx, str._i:__s__s___s._n
mov edx, dword [rdi + 8]
mov qword [rsp + 0x20], rax
call fcn.14005cb30
mov rcx, qword [rdi + 0x78]
mov qword [rbp + 0x17], r12
test rcx, rcx
je 0x14003af78
lea rdx, [rbp + 0x17]
call fcn.14005bc00
test al, al
je 0x14003af78
mov rcx, qword [rdi + 0x78]
call fcn.140069370
mov rax, qword [rbp + 0x17]
mov qword [rdi + 0x78], rax
cmp byte [rdi + 0x88], r12b
je 0x14003b245
mov qword [rsp + 0x58], r12
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x50], r12
xor r9d, r9d
mov qword [rsp + 0x48], r12
xor r8d, r8d
mov qword [rsp + 0x40], r12
xor edx, edx
mov qword [rsp + 0x38], r12
mov rcx, 0xffffffff80000003
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x23]
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x23], r12d
mov dword [rbp + 0x1f], r12d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14003b2e0
mov eax, dword [rbp + 0x1f]
mov edx, 2
inc eax
mov qword [rsp + 0xc0], rsi
mov ecx, eax
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x80], r15
mov dword [rbp + 0x1f], eax
call fcn.140069790
mov rbx, rax
lea rsi, str.S_1_5_18
mov r15d, r12d
lea r14, str.S_1_5_19
nop word [rax + rax]
mov eax, dword [rbp + 0x1f]
lea r9, [rbp + 0x27]
mov qword [rsp + 0x38], r12
mov r8, rbx
mov qword [rsp + 0x30], r12
mov edx, r15d
mov qword [rsp + 0x28], r12
mov rcx, 0xffffffff80000003
mov qword [rsp + 0x20], r12
mov dword [rbp + 0x27], eax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov r12d, eax
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
movzx ecx, word [rbx + rdx*2 + 2]
cmp cx, word [rsi + rdx*2 + 2]
jne 0x14003b084
add rdx, 2
cmp rdx, 9
je 0x14003b205
movzx eax, word [rbx + rdx*2]
cmp ax, word [rsi + rdx*2]
je 0x14003b060
mov rcx, 0xffffffffffffffff
nop dword [rax + rax]
movzx eax, word [rbx + rcx*2 + 2]
cmp ax, word [r14 + rcx*2 + 2]
jne 0x14003b0b6
add rcx, 2
cmp rcx, 9
je 0x14003b205
movzx eax, word [rbx + rcx*2]
cmp ax, word [r14 + rcx*2]
je 0x14003b090
mov rax, 0xffffffffffffffff
lea rdx, str.S_1_5_20
movzx ecx, word [rbx + rax*2 + 2]
cmp cx, word [rdx + rax*2 + 2]
jne 0x14003b0e8
add rax, 2
cmp rax, 9
je 0x14003b205
movzx ecx, word [rbx + rax*2]
cmp cx, word [rdx + rax*2]
je 0x14003b0c4
mov edx, dword [rdi + 8]
lea r8, str.RegDeleteValue
mov r9, rbx
lea rcx, str._i:__s_Deleting_from_key_root__s._n
call fcn.14005cb30
lea rcx, str.int_x86
call sym.Installer.exe_Get
xor r8d, r8d
lea rsi, [rdi + 0x70]
mov qword [rsp + 0x20], rsi
mov r14, rax
mov rdx, rbx
mov rcx, 0xffffffff80000003
mov r9d, 0xf013f
test eax, eax
je 0x14003b136
mov r9d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14003b15e
mov edx, dword [rdi + 8]
lea r8, str.RegDeleteValue
mov r9, rbx
lea rcx, str._i:__s_Could_not_open_key_HKEY_USERS_s._n
call fcn.14005cb30
jmp 0x14003b1f7
mov rdx, qword [rdi + 0x78]
lea rax, [rbp + 0x17]
mov rcx, qword [rsi]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
test r14d, r14d
je 0x14003b182
mov r9d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14003b1a8
mov r9, qword [rdi + 0x78]
lea r8, str.RegDeleteValue
mov edx, dword [rdi + 8]
lea rcx, str._i:__s_Could_not_open_key__s._n
call fcn.14005cb30
jmp 0x14003b1f7
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi + 0x80]
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x14003b1ed
mov rax, qword [rdi + 0x78]
lea r8, str.RegDeleteValue
mov r9, qword [rdi + 0x80]
lea rcx, str._i:__s_Could_delete_value__s_from_key__s._n
mov edx, dword [rdi + 8]
mov qword [rsp + 0x20], rax
call fcn.14005cb30
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rsi, str.S_1_5_18
lea r14, str.S_1_5_19
inc r15d
test r12d, r12d
mov r12d, 0
je 0x14003b020
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
mov rsi, qword [rsp + 0xc0]
test rbx, rbx
je 0x14003b2e0
mov rcx, rbx
call fcn.140069370
jmp 0x14003b2e0
lea rcx, str.int_x86
call sym.Installer.exe_Get
mov rdx, qword [rdi + 0x78]
xor r8d, r8d
mov rcx, qword [rdi + 0x70]
test eax, eax
lea rax, [rbp + 0x17]
mov r9d, 0xf013f
mov qword [rsp + 0x20], rax
je 0x14003b275
mov r9d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14003b29b
mov r9, qword [rdi + 0x78]
lea r8, str.RegDeleteValue
mov edx, dword [rdi + 8]
lea rcx, str._i:__s_Could_not_open_key__s._n
call fcn.14005cb30
jmp 0x14003b2e0
mov rdx, qword [rdi + 0x80]
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x14003b2d6
mov rax, qword [rdi + 0x78]
lea r8, str.RegDeleteValue
mov r9, qword [rdi + 0x80]
lea rcx, str._i:__s_Could_delete_value__s_from_key__s._n
mov edx, dword [rdi + 8]
mov qword [rsp + 0x20], rax
call fcn.14005cb30
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rdi]
mov rcx, rdi
mov byte [rdi + 0x10], 1
mov rax, qword [rax + 0x18]
call qword [0x1400926f0]
mov edx, dword [rdi + 8]
lea r8, str.RegDeleteValue
mov r9d, eax
lea rcx, str._i:__s_End_execute._Next_command__i._n
call fcn.14005cb30
lea rcx, [rdi + 0x48]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r12, qword [rsp + 0xc8]
xor eax, eax
mov rbx, qword [rsp + 0xb8]
jmp 0x14003b346
mov edx, dword [rdi + 8]
lea r8, str.RegDeleteValue
lea rcx, str._i:__s_Error:_Multiple_threads_attempting_execution._n
call fcn.14005cb30
mov eax, 0x54f
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400625f0
add rsp, 0x90
pop r13
pop rdi
pop rbp
ret