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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor r13d, r13d
mov rbx, r8
mov r12d, r13d
mov qword [rbp - 8], r13
mov edi, r13d
mov dword [rbp + 0x58], r13d
mov r14d, r13d
mov r15d, r13d
call sym.spoolsv.exe_PrvWaitForSpoolerInitialization
lea rcx, [0x1400c8e38]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
test rbx, rbx
je 0x1400612b0
cmp word [rbx], r13w
je 0x1400612b0
mov qword [rsp + 0x40], r13
lea rax, [rbp - 8]
mov qword [rsp + 0x38], rax
lea rdx, str.SystemCurrentControlSetControlPrintProviders
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov dword [rsp + 0x28], 0x3001f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], r13d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140061147
mov ecx, eax
jmp 0x1400612b5
mov rcx, qword [rbp - 8]
mov rdx, rbx
call fcn.140060224
mov rsi, rax
test rax, rax
je 0x1400612c1
mov rcx, qword [rbp - 8]
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.Order
xor r9d, r9d
mov qword [rsp + 0x20], r13
xor r8d, r8d
mov dword [rbp + 0x50], r13d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140061140
mov ecx, dword [rbp + 0x50]
test ecx, ecx
je 0x1400612c1
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rdi, rax
test rax, rax
je 0x1400612c1
mov rcx, qword [rbp - 8]
lea rax, [rbp + 0x50]
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 0x140061140
mov edx, dword [rbp + 0x50]
lea r9, [rbp - 0x10]
mov r8, rbx
mov rcx, rdi
call fcn.140075508
mov r14, rax
test rax, rax
je 0x1400612c1
mov eax, dword [rbp - 0x10]
lea rdx, str.Order
mov rcx, qword [rbp - 8]
mov r9d, 7
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140061140
mov rdx, rbx
lea rcx, str.LanMan_Print_Services
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140061260
mov rcx, qword [rbp - 8]
lea r9, [rbp + 0x58]
call fcn.140074fc8
test eax, eax
sete r15b
mov rcx, qword [rbp - 8]
mov rdx, rbx
call fcn.140074e3c
test r15d, r15d
je 0x14006127e
mov r9d, dword [rbp + 0x58]
mov rcx, qword [rbp - 8]
call fcn.1400755f0
mov rdx, qword [0x1400c9068]
mov rcx, qword [rdx]
test rcx, rcx
je 0x1400612a8
cmp rcx, rsi
je 0x1400612a2
mov rax, qword [rcx]
mov rdx, rcx
mov rcx, rax
test rax, rax
jne 0x14006128d
jmp 0x1400612a8
mov rax, qword [rsi]
mov qword [rdx], rax
mov r12d, 1
jmp 0x1400612e5
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 0x1400612e0
lea ecx, [rax + 8]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
test rdi, rdi
je 0x1400612fd
mov rcx, qword [0x1400c9078]
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 r14, r14
je 0x14006131a
mov rcx, qword [0x1400c9078]
mov r8, r14
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 0x14006132f
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
lea rcx, [0x1400c8e38]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rbx, qword [rsp + 0xa0]
mov eax, r12d
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret