Function at 0x14002ffb0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x998
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x14010bfc0]
xor rax, rsp
mov qword [rsp + 0x980], rax
mov rdi, r9
mov rbx, r8
mov qword [rsp + 0x38], rbx
mov rsi, rdx
mov rbp, rcx
lea r8, str.CRegistryUninstaller::RegDeleteSubKey____n
mov edx, 2
lea rcx, [0x14010f570]
call fcn.140001000
mov byte [rsp + 0x70], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x71]
call fcn.1400988d0
mov byte [rsp + 0x180], 0
xor edx, edx
mov r8d, 0x7ff
lea rcx, [rsp + 0x181]
call fcn.1400988d0
mov qword [rsp + 0x20], rdi
mov r9, rbx
lea r8, [0x1400c63b8]
mov edx, 0x800
lea rcx, [rsp + 0x180]
call fcn.14009841c
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x68], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x50], al
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rsi
call fcn.14002f85c
mov ebx, eax
test eax, eax
je 0x140030110
mov ecx, 2
call fcn.14003ff90
lea rcx, [rsp + 0x48]
call fcn.14004d614
lea r9, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae r9, qword [rsp + 0x50]
lea rax, [rsp + 0x180]
mov qword [rsp + 0x20], rax
lea r8, str._s__when_OpenRegSecureKey___s__n
mov edx, 0x20
lea rcx, [0x14010f570]
call fcn.140001000
mov ecx, ebx
call fcn.14004d8f0
mov r9, rax
lea r8, str.OpenRegSecureKey
lea rdx, str._s_failed_with__s_n
lea rcx, [0x14010f570]
call fcn.14004b7ec
nop
cmp qword [rsp + 0x68], 0x10
jb 0x140030109
mov rcx, qword [rsp + 0x50]
call fcn.14006127c
mov eax, ebx
jmp 0x14003033d
mov r9d, 0x103
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
je 0x1400301bc
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x180]
mov rdx, qword [rsp + 0x30]
mov rcx, rbp
call fcn.14002ffb0
mov ebx, eax
test eax, eax
jne 0x140030174
mov r9d, 0x103
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
jne 0x140030133
jmp 0x1400301bc
mov ecx, eax
call fcn.14004d8f0
mov r9, rax
lea r8, str.RegDeleteSubKey
lea rdx, str._s_failed_with__s_n
lea rcx, [0x14010f570]
call fcn.14004b7ec
mov rcx, qword [rsp + 0x30]
call fcn.14004e608
nop
cmp qword [rsp + 0x68], 0x10
jb 0x1400301b5
mov rcx, qword [rsp + 0x50]
call fcn.14006127c
mov eax, ebx
jmp 0x14003033d
mov rcx, qword [rsp + 0x30]
call fcn.14004e608
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rsi
call fcn.14002f85c
mov ebx, eax
test eax, eax
je 0x14003026a
mov ecx, 2
call fcn.14003ff90
lea rcx, [rsp + 0x48]
call fcn.14004d614
lea r9, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae r9, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r8, str._s__when_OpenRegSecureKey___s__n
mov edx, 0x20
lea rcx, [0x14010f570]
call fcn.140001000
mov ecx, ebx
call fcn.14004d8f0
mov r9, rax
lea r8, str.OpenRegSecureKey
lea rdx, str._s_failed_with__s_n
lea rcx, [0x14010f570]
call fcn.14004b7ec
nop
cmp qword [rsp + 0x68], 0x10
jb 0x140030263
mov rcx, qword [rsp + 0x50]
call fcn.14006127c
mov eax, ebx
jmp 0x14003033d
mov rdx, rdi
mov rcx, qword [rsp + 0x30]
call fcn.14004da30
mov ebx, eax
test eax, eax
je 0x1400302c7
mov ecx, 2
call fcn.14003ff90
lea rcx, [rsp + 0x48]
call fcn.14004d614
lea r9, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae r9, qword [rsp + 0x50]
lea rax, [rsp + 0x180]
mov qword [rsp + 0x20], rax
lea r8, str._s_when_RegDeleteKey__s_n
mov edx, 0x20
lea rcx, [0x14010f570]
call fcn.140001000
mov rcx, qword [rsp + 0x30]
call fcn.14004e608
test ebx, ebx
je 0x140030310
mov ecx, ebx
call fcn.14004d8f0
mov r9, rax
lea r8, str.RegDeleteKey
lea rdx, str._s_failed_with__s_n
lea rcx, [0x14010f570]
call fcn.14004b7ec
nop
cmp qword [rsp + 0x68], 0x10
jb 0x14003030c
mov rcx, qword [rsp + 0x50]
call fcn.14006127c
mov eax, ebx
jmp 0x14003033d
lea r8, str.CRegistryUninstaller::RegDeleteSubKey____n
mov edx, 4
lea rcx, [0x14010f570]
call fcn.140001000
nop
cmp qword [rsp + 0x68], 0x10
jb 0x14003033b
mov rcx, qword [rsp + 0x50]
call fcn.14006127c
xor eax, eax
mov rcx, qword [rsp + 0x980]
xor rcx, rsp
call fcn.140061100
add rsp, 0x998
pop rdi
pop rsi
pop rbp
pop rbx
ret