Function at 0x14005c638
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor esi, esi
mov dword [rbp + 0x58], 3
and qword [rbp - 0x20], rsi
mov r15, r8
and dword [rbp + 0x40], esi
mov r14, rdx
mov r13, rcx
test rcx, rcx
je 0x14005c96f
test rdx, rdx
je 0x14005c96f
test r8, r8
je 0x14005c96f
lea rcx, [rbp - 0x18]
call fcn.140009100
mov ecx, 0x2001f
call sym.spoolsv.exe_PrvSplGetClientUserHandle
lea rdi, [0x1400a52b8]
mov r12, rax
test rax, rax
jne 0x14005c6b2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
jmp 0x14005c8ee
mov rdi, qword [r13 + 0x48]
test rdi, rdi
je 0x14005c8d9
cmp word [rdi], 0x5c
jne 0x14005c8d9
cmp word [rdi + 2], 0x5c
jne 0x14005c8d9
lea r8, [rbp - 0x20]
mov rdx, rdi
mov rcx, r12
call fcn.140004b74
mov ebx, eax
test eax, eax
jne 0x14005c7fc
mov rcx, qword [rbp - 0x20]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x58]
and qword [rsp + 0x20], rsi
lea rdx, str.DefaultDevMode
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x14005c814
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
and qword [rbp - 0x20], rsi
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.14005cad0
test eax, eax
jne 0x14005c7f7
mov rcx, qword [0x1400a52b8]
lea rdi, [0x1400a52b8]
cmp rcx, rdi
je 0x14005c790
test byte [rcx + 0x1c], 0x80
je 0x14005c770
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x10]
lea r8, [0x14008bd70]
call fcn.1400248e4
mov rcx, qword [0x1400a52b8]
cmp rcx, rdi
je 0x14005c790
test byte [rcx + 0x1c], 0x80
je 0x14005c790
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008bd70]
mov edx, 0x11
call fcn.1400248e4
mov rcx, qword [rbp - 0x20]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x58]
and qword [rsp + 0x20], rsi
lea rdx, str.DefaultDevMode
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
mov rax, qword [0x1400a52b8]
cmp rax, rdi
je 0x14005c7f3
test byte [rax + 0x1c], 0x80
je 0x14005c7f3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [0x1400a52b8]
lea r8, [0x14008bd70]
mov edx, 0x12
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov rcx, qword [rcx + 0x10]
call fcn.14002b208
test ebx, ebx
je 0x14005c81b
mov ebx, 0xd
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14005c8de
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x14005c8de
lea rdi, [0x1400a52b8]
cmp dword [rbp + 0x58], 3
jne 0x14005c7f7
mov ecx, dword [rbp + 0x40]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [r14], rax
test rax, rax
jne 0x14005c83b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
jmp 0x14005c7fc
lea rcx, [rbp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea r9, [rbp + 0x58]
mov rcx, qword [rbp - 0x20]
lea rdx, str.DefaultDevMode
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
mov rax, qword [0x1400a52b8]
cmp rax, rdi
je 0x14005c89e
test byte [rax + 0x1c], 0x80
je 0x14005c89e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [0x1400a52b8]
lea r8, [0x14008bd70]
mov edx, 0x13
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov rcx, qword [rcx + 0x10]
call fcn.14002b208
mov eax, dword [rbp + 0x40]
add eax, 3
and eax, 0xfffffffc
mov dword [r15], eax
test ebx, ebx
jne 0x14005c8b6
lea esi, [rbx + 1]
jmp 0x14005c7fc
mov r8, qword [r14]
test r8, r8
je 0x14005c7fc
mov rcx, qword [0x1400a6ef0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [r14], rsi
jmp 0x14005c7fc
mov ebx, 0x709
mov rcx, r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
lea rdi, [0x1400a52b8]
test ebx, ebx
je 0x14005c964
mov rcx, qword [0x1400a52b8]
cmp rcx, rdi
je 0x14005c919
test byte [rcx + 0x1c], 0x80
je 0x14005c919
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008bd70]
mov edx, 0x14
call fcn.1400248e4
mov r8, r15
mov rdx, r14
mov rcx, r13
call fcn.14005c99c
mov esi, eax
mov rcx, qword [0x1400a52b8]
cmp rcx, rdi
je 0x14005c964
test byte [rcx + 0x1c], 0x80
je 0x14005c964
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [0x1400a52b8]
lea r8, [0x14008bd70]
mov edx, 0x15
mov dword [rsp + 0x20], eax
mov r9d, esi
mov rcx, qword [rcx + 0x10]
call fcn.14002b208
lea rcx, [rbp - 0x18]
call fcn.140008fac
jmp 0x14005c97a
mov ecx, 0x57
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov rbx, qword [rsp + 0x98]
mov eax, esi
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret