Function at 0x14003a450
Capabilities:
Delete registry key
Get common file path
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x1400c7070]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rcx
add rcx, 0x48
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x14003a90c
xor r12d, r12d
mov qword [rbp - 9], r12
mov rcx, qword [rsi + 0x78]
test rcx, rcx
je 0x14003a4c5
lea rdx, [rbp - 9]
call fcn.14005bc00
test al, al
je 0x14003a4c5
mov rcx, qword [rsi + 0x78]
call fcn.140069370
mov rax, qword [rbp - 9]
mov qword [rsi + 0x78], rax
lea rcx, str.TRUE
lea rax, str.FALSE
cmp byte [rsi + 0x80], r12b
cmovne rax, rcx
mov qword [rsp + 0x20], rax
mov r9, qword [rsi + 0x78]
lea r8, str.RegDeleteKey
mov edx, dword [rsi + 8]
lea rcx, str._i:__s__s_Begin__recursive_s._n
call fcn.14005cb30
mov r13, r12
mov qword [rbp + 7], r12
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], 7
mov word [rbp + 7], r12w
mov qword [rbp - 9], r12
lea r9, [rbp - 9]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140093540]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x14003a554
mov rdx, qword [rbp - 9]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x14003a540
lea rcx, [rbp + 7]
call fcn.14001c900
mov rcx, qword [rbp - 9]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
lea rcx, [rbp + 7]
call fcn.14005b560
nop
mov r8d, 0xc
lea rdx, [0x1400ab9a8]
lea rcx, [rbp + 7]
call fcn.140012f00
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rcx, qword [rbp + 7]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbp - 0x19], rax
test rax, rax
je 0x14003a5af
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
lea rcx, str.int_x86
call sym.Installer.exe_Get
mov r15, rax
cmp byte [rsi + 0x81], 0
je 0x14003a81c
mov dword [rbp - 1], r12d
mov dword [rbp - 0x11], r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea rax, [rbp - 0x11]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14003a88a
mov eax, dword [rbp - 0x11]
inc eax
mov dword [rbp - 0x11], eax
mov ecx, eax
mov edx, 2
call fcn.140069790
mov rbx, rax
mov r14d, r12d
lea rdi, str.S_1_5_18
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rbp - 0x11]
mov dword [rbp + 3], eax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp + 3]
mov r8, rbx
mov edx, r14d
mov rcx, 0xffffffff80000003
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 [rdi + rdx*2 + 2]
jne 0x14003a6b4
add rdx, 2
cmp rdx, 9
je 0x14003a7fb
movzx eax, word [rbx + rdx*2]
cmp ax, word [rdi + rdx*2]
je 0x14003a690
mov rcx, 0xffffffffffffffff
lea rdx, str.S_1_5_19
movzx eax, word [rbx + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x14003a6e6
add rcx, 2
cmp rcx, 9
je 0x14003a7fb
movzx eax, word [rbx + rcx*2]
cmp ax, word [rdx + rcx*2]
je 0x14003a6c2
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 0x14003a718
add rax, 2
cmp rax, 9
je 0x14003a7fb
movzx ecx, word [rbx + rax*2]
cmp cx, word [rdx + rax*2]
je 0x14003a6f4
mov r9, rbx
lea r8, str.RegDeleteKey
mov edx, dword [rsi + 8]
lea rcx, str._i:__s_Deleting_from_key_root__s._n
call fcn.14005cb30
lea rdi, [rsi + 0x70]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000003
test r15d, r15d
mov r9d, 0xf013f
je 0x14003a758
mov r9d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14003a77d
mov r9, rbx
lea r8, str.RegDeleteKey
mov edx, dword [rsi + 8]
lea rcx, str._i:__s_Could_not_open_key_HKEY_USERS_s._n
call fcn.14005cb30
jmp 0x14003a7f4
mov rdx, qword [rsi + 0x78]
mov rcx, qword [rdi]
cmp byte [rsi + 0x80], 0
je 0x14003a7b2
call fcn.14005d9a0
test eax, eax
jne 0x14003a7ea
mov r9, qword [rsi + 0x78]
lea r8, str.RegDeleteKey
mov edx, dword [rsi + 8]
lea rcx, str._i:__s_Could_not_delete_key__s._n
call fcn.14005cb30
jmp 0x14003a7ea
test r15d, r15d
jne 0x14003a7cb
xor r9d, r9d
mov r8d, 0x100
mov rax, r13
call qword [0x1400926f0]
jmp 0x14003a7d1
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov r9d, eax
lea r8, str.RegDeleteKey
mov edx, dword [rsi + 8]
lea rcx, str._i:__s_Returned__d._n
call fcn.14005cb30
mov rcx, qword [rsi + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdi, str.S_1_5_18
inc r14d
test r12d, r12d
mov r12d, 0
je 0x14003a650
test rbx, rbx
je 0x14003a88a
mov rcx, rbx
call fcn.140069370
jmp 0x14003a88a
mov rdx, qword [rsi + 0x78]
mov rcx, qword [rsi + 0x70]
cmp byte [rsi + 0x80], 0
je 0x14003a852
call fcn.14005d9a0
test eax, eax
jne 0x14003a88a
mov r9, qword [rsi + 0x78]
lea r8, str.RegDeleteKey
mov edx, dword [rsi + 8]
lea rcx, str._i:__s_Could_delete_key__s._n
call fcn.14005cb30
jmp 0x14003a88a
test r15d, r15d
jne 0x14003a86b
xor r9d, r9d
mov r8d, 0x100
mov rax, r13
call qword [0x1400926f0]
jmp 0x14003a871
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov r9d, eax
lea r8, str.RegDeleteKey
mov edx, dword [rsi + 8]
lea rcx, str._i:__s_Returned__d._n
call fcn.14005cb30
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [rsi + 0x10], 1
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x18]
call qword [0x1400926f0]
mov r9d, eax
lea r8, str.RegDeleteKey
mov edx, dword [rsi + 8]
lea rcx, str._i:__s_End_execute._Next_command__i._n
call fcn.14005cb30
lea rcx, [rsi + 0x48]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x14003a908
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a903
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003a954
call fcn.140062610
xor eax, eax
jmp 0x14003a927
lea r8, str.RegDeleteKey
mov edx, dword [rsi + 8]
lea rcx, str._i:__s_Error:_Multiple_threads_attempting_execution._n
call fcn.14005cb30
mov eax, 0x54f
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400625f0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400695b8
int3