Function at 0x14000f024
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x598]
sub rsp, 0x690
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rbp + 0x580], rax
mov sil, dl
mov rdi, rcx
mov ebx, 0x80070057
test rcx, rcx
je 0x14000f17f
mov rdx, qword [rcx + 0x18]
mov rcx, qword [rcx]
and qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov ebx, 0xe0006
mov r8d, 8
mov r9d, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000f0e2
and qword [rsp + 0x40], 0
mov rdx, qword [rdi + 0x18]
mov rcx, qword [rdi]
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 8
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14000f0e2
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000f17f
and qword [rsp + 0x58], 0
lea rdx, [rsp + 0x58]
lea rcx, [0x1400047b4]
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x14000f160
xor ebx, ebx
cmp dword [rdi + 8], 2
jne 0x14000f122
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
and dword [rsp + 0x20], ebx
xor r9d, r9d
call fcn.14000fd40
mov ebx, eax
test eax, eax
js 0x14000f14e
cmp dword [rdi + 0xc], 2
jne 0x14000f130
mov r8d, 0xf003f
jmp 0x14000f13c
cmp dword [rdi + 0xc], 1
jne 0x14000f14e
mov r8d, 0x20019
mov rcx, qword [rsp + 0x50]
and qword [rsp + 0x28], 0
call fcn.14000f688
mov ebx, eax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000f174
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000f174
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
js 0x14000f299
test sil, sil
jne 0x14000f196
cmp byte [rdi + 0x10], sil
je 0x14000f299
mov rdx, qword [rdi + 0x18]
mov rcx, qword [rdi]
lea rax, [rsp + 0x58]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000f299
mov rax, qword [rdi]
mov byte [rsp + 0x70], 1
xor esi, esi
mov qword [rsp + 0x60], rax
mov eax, dword [rdi + 8]
mov dword [rsp + 0x68], eax
mov eax, dword [rdi + 0xc]
mov dword [rsp + 0x6c], eax
lea rax, [rbp + 0x180]
mov qword [rsp + 0x78], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x58]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
lea r8, [rbp - 0x80]
mov edx, esi
mov dword [rsp + 0x50], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000f278
mov r9, qword [rdi + 0x18]
lea rax, [rbp - 0x80]
lea r8, [0x1400047c0]
lea rcx, [rbp + 0x180]
mov edx, 0x1fe
mov qword [rsp + 0x20], rax
call fcn.140009684
mov ebx, eax
test eax, eax
js 0x14000f280
lea rcx, [rsp + 0x60]
mov dl, 1
call fcn.14000f024
mov ebx, eax
jmp 0x14000f280
cmp ebx, 0x80070103
je 0x14000f28c
inc esi
test ebx, ebx
jns 0x14000f1f5
jmp 0x14000f28e
xor ebx, ebx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.14002ad70
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret