Function at 0x14006af90
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor r12d, r12d
mov rbx, r8
mov edi, r12d
mov qword [rbp - 8], r12
mov esi, r12d
mov dword [rbp + 0x48], r12d
mov r15d, r12d
call sym.spoolsv.exe_PrvWaitForSpoolerInitialization
lea rcx, [0x1400bff68]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
test rbx, rbx
je 0x14006b19e
cmp word [rbx], r12w
je 0x14006b19e
mov qword [rsp + 0x40], r12
lea rax, [rbp - 8]
mov qword [rsp + 0x38], rax
lea rdx, str.SystemCurrentControlSetControlPrintProviders
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], 0x3001f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], r12d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14006b036
mov ecx, eax
jmp 0x14006b1a3
mov rcx, qword [rbp - 8]
mov rdx, rbx
call fcn.14006a114
mov r14, rax
test rax, rax
je 0x14006b1af
mov rcx, qword [rbp - 8]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.Order
xor r9d, r9d
mov qword [rsp + 0x20], r12
xor r8d, r8d
mov dword [rbp + 0x40], r12d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14006b02f
mov ecx, dword [rbp + 0x40]
test ecx, ecx
je 0x14006b1af
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rdi, rax
test rax, rax
je 0x14006b1af
mov rcx, qword [rbp - 8]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.Order
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14006b02f
mov edx, dword [rbp + 0x40]
lea r9, [rbp - 0x10]
mov r8, rbx
mov rcx, rdi
call fcn.140070070
mov rsi, rax
test rax, rax
je 0x14006b1af
mov ecx, dword [rbp - 0x10]
lea rdx, str.Order
mov dword [rsp + 0x28], ecx
mov r9d, 7
mov rcx, qword [rbp - 8]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14006b02f
mov rdx, rbx
lea rcx, str.LanMan_Print_Services
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14006b14f
mov rcx, qword [rbp - 8]
lea r9, [rbp + 0x48]
call fcn.14006fd20
test eax, eax
sete r15b
mov rcx, qword [rbp - 8]
mov rdx, rbx
call fcn.14006fb94
test r15d, r15d
je 0x14006b16d
mov r9d, dword [rbp + 0x48]
mov rcx, qword [rbp - 8]
call fcn.140070154
mov rdx, qword [0x1400c02d8]
mov rcx, qword [rdx]
test rcx, rcx
je 0x14006b197
cmp rcx, r14
je 0x14006b191
mov rax, qword [rcx]
mov rdx, rcx
mov rcx, rax
test rax, rax
jne 0x14006b17c
jmp 0x14006b197
mov rax, qword [r14]
mov qword [rdx], rax
mov ebx, 1
jmp 0x14006b1d6
mov ecx, 0x57
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x14006b1ce
lea ecx, [rax + 8]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov ebx, r12d
test rdi, rdi
je 0x14006b1ee
mov rcx, qword [0x1400c02b8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
test rsi, rsi
je 0x14006b20b
mov rcx, qword [0x1400c02b8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14006b220
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
lea rcx, [0x1400bff68]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret