Function at 0x1400857b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
lea rbp, [rax - 0x5e8]
sub rsp, 0x6d0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
mov rbx, rdx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_WaitFinishPreConfig
lea rcx, [rsp + 0x58]
call fcn.1400075a0
nop
mov r9, rbx
lea r8, str.lpPrinter___s
mov r13d, 1
mov edx, r13d
lea rcx, [rsp + 0x58]
call fcn.140007780
xor r12d, r12d
mov dword [rsp + 0x40], r12d
mov esi, r12d
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140005900
nop
lea edx, [r13 + 0x5b]
lea r8d, [r13 + 0x2b]
lea rcx, [rsp + 0x48]
call fcn.140064b10
mov r8, qword [rsp + 0x48]
lea rdx, str._sPrinterDriverData
lea rcx, [rbp - 0x60]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rbp - 0x60]
lea r8, str._t_t_tOpen_Key_..Printers_s
lea edx, [r13 + 6]
lea rcx, [rsp + 0x58]
call fcn.140007780
mov ebx, r12d
nop dword [rax]
cmp ebx, 0x258
jae 0x140085a3a
xor edx, edx
lea ecx, [rdx + 0x64]
call qword [sym.imp.KERNEL32.dll_SleepEx]
lea r11, [rbp - 0x78]
mov qword [rsp + 0x20], r11
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlPrintPrinters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400859ba
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp - 0x60]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140085938
mov dword [rsp + 0x78], 4
mov dword [rsp + 0x68], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, str.PreConfigStatus
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove esi, r13d
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400859ae
mov qword [rsp + 0x70], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, edi
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x14008599e
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
lea r9, str._tRegOpenKeyEx_..PrinterDriverData_
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
mov edx, 6
lea rcx, [rsp + 0x58]
call fcn.140007780
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400859ae
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140085a30
mov qword [rsp + 0x50], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, edi
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x140085a20
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
lea r9, str._tRegOpenKeyEx_..Printers_
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
mov edx, 6
lea rcx, [rsp + 0x58]
call fcn.140007780
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140085a30
call qword [sym.imp.KERNEL32.dll_LocalFree]
inc ebx
test esi, esi
je 0x140085880
imul ebx, ebx, 0x64
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov r9d, ebx
lea r8, str._t_t_tPreConfig_Wait___d_ms__PreConfigStatus__d
mov edx, 7
lea rcx, [rsp + 0x58]
call fcn.140007780
lea r8, [0x1402dc4e0]
mov edx, 2
lea rcx, [rsp + 0x58]
call fcn.140007780
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140085a96
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x58]
call fcn.140007730
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x6d0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret