Function at 0x140005d50
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0x468]
sub rsp, 0x550
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400410e0]
xor rax, rsp
mov qword [rbp + 0x440], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x140005da4
lea rdx, str._npf
call fcn.14001acc0
test rax, rax
jne 0x140005de2
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140005dbe
lea rdx, [0x140037100]
call fcn.14001acc0
test rax, rax
jne 0x140005de2
call fcn.140004240
mov ecx, 0x535
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_SetActiveWindow]
xor r12d, r12d
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x68], 0xf000c
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WINSPOOL.DRV_OpenPrinterW]
test eax, eax
je 0x140006451
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140005e62
lea rdx, str._dssnp
call fcn.14001acc0
test rax, rax
je 0x140005e62
mov dword [rsp + 0x34], r12d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
lea r8d, [r12 + 4]
lea rdx, str.SSNPNotifyEventSetting
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov dword [rsp + 0x38], 1
mov rcx, qword [rbx + 0x68]
test rcx, rcx
je 0x140005e84
mov eax, 1
cmp dword [rcx + 0x20], 3
cmove eax, r12d
mov dword [rsp + 0x38], eax
mov qword [rbp + 0x28], 7
mov qword [rbp + 0x20], r12
mov word [rbp + 0x10], r12w
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x38]
mov r8d, 4
lea rdx, str.StaticMode
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov rdx, qword [rbx + 0x68]
test rdx, rdx
je 0x140006004
mov eax, dword [rdx + 0x20]
cmp eax, 1
je 0x140005ed8
cmp eax, 2
jne 0x140006004
mov dword [rsp + 0x34], r12d
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 5]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINSPOOL.DRV_GetPrinterW]
mov edx, dword [rsp + 0x34]
test edx, edx
je 0x140005f66
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x140005f66
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
mov r8, rsi
mov edx, 5
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINSPOOL.DRV_GetPrinterW]
test eax, eax
je 0x140005f5d
mov rdx, qword [rsi + 8]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp + 0x10]
call fcn.14000b2e0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140005fb5
lea rdx, str._pqdmpa
call fcn.14001acc0
test rax, rax
je 0x140005fb5
lea rcx, str.972565793
call fcn.14001aa04
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 4
lea rdx, str.UPDMPA
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140006004
lea rdx, str._pqdads
call fcn.14001acc0
test rax, rax
je 0x140006004
lea rcx, str.972565793
call fcn.14001aa04
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 4
lea rdx, str.UPDADS
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], r12
mov word [rbp - 0x60], r12w
mov r8d, 9
lea rdx, str._qcomname
lea rcx, [rbp - 0x60]
call fcn.14000b2e0
nop
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rdx, qword [rbp - 0x60]
mov rcx, qword [rbx + 0x20]
call fcn.14001acc0
mov esi, 0x22
test rax, rax
je 0x140006172
mov rcx, qword [rbp - 0x50]
lea rdx, [rax + rcx*2]
cmp word [rdx], si
jne 0x140006172
add rdx, 2
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r12
mov word [rsp + 0x78], r12w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x78]
call fcn.14000b2e0
nop
mov edx, esi
lea rcx, [rsp + 0x78]
call fcn.14000ad20
cmp rax, 0xffffffffffffffff
je 0x1400060b9
or r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000ac80
cmp qword [rbp - 0x78], 0
je 0x140006136
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x30]
call fcn.1400168b0
nop
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp - 0x28]
call fcn.14000b2e0
mov edx, dword [rbp - 0x18]
lea edx, [rdx + rdx + 2]
lea r9, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae r9, qword [rbp - 0x28]
mov dword [rsp + 0x20], edx
mov r8d, 1
lea rdx, [0x140035250]
mov rcx, qword [rbp]
call qword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
nop
lea rcx, [rbp - 0x30]
call fcn.140016a20
nop
cmp qword [rbp - 0x70], 8
jb 0x140006172
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140006172
mov rax, qword [0x140044d10]
test rax, rax
jne 0x140006169
call fcn.140018630
mov qword [0x140044d10], rax
test rax, rax
je 0x140006172
xor edx, edx
lea rcx, [rsp + 0x40]
call rax
mov rdx, rbx
mov rcx, qword [rsp + 0x50]
call fcn.140005b80
mov rdx, qword [rbx + 0x68]
test rdx, rdx
je 0x1400063b8
mov eax, dword [rdx + 0x20]
cmp eax, 2
je 0x14000619d
cmp eax, 1
jne 0x1400063b8
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r12
mov word [rsp + 0x78], r12w
cmp eax, 2
je 0x140006245
lea rdx, [0x140037168]
mov rcx, qword [rbx + 0x20]
call fcn.14001acc0
mov rdx, rax
test rax, rax
je 0x140006265
add rdx, 6
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x78]
call fcn.14000b2e0
mov edx, 0x20
lea rcx, [rsp + 0x78]
call fcn.14000ad20
cmp rax, 0xffffffffffffffff
je 0x14000621b
or r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000ac80
mov edx, 0x3d
lea rcx, [rsp + 0x78]
call fcn.14000ad20
cmp rax, 0xffffffffffffffff
je 0x140006265
mov r8d, 1
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000ac80
jmp 0x140006265
cmp qword [rbp + 0x20], 0
je 0x14000637c
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x78]
call fcn.14000ab50
mov r9, qword [rbp - 0x78]
test r9, r9
je 0x14000637c
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rax, qword [rsp + 0x78]
cmp si, word [rax]
jne 0x1400062ec
dec r9
mov r8d, 1
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x78]
call fcn.14000ae10
nop
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000ae50
nop
cmp qword [rbp - 0x18], 8
jb 0x1400062e8
mov rax, qword [rbp - 0x30]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400062e8
mov rax, qword [0x140044d10]
test rax, rax
jne 0x1400062df
call fcn.140018630
mov qword [0x140044d10], rax
test rax, rax
je 0x1400062e8
xor edx, edx
lea rcx, [rsp + 0x40]
call rax
mov r9, qword [rbp - 0x78]
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rax, qword [rsp + 0x78]
cmp si, word [rax + r9*2 - 2]
jne 0x140006362
dec r9
xor r8d, r8d
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x78]
call fcn.14000ae10
nop
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000ae50
nop
cmp qword [rbp - 0x18], 8
jb 0x140006362
mov rax, qword [rbp - 0x30]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140006362
mov rax, qword [0x140044d10]
test rax, rax
jne 0x140006359
call fcn.140018630
mov qword [0x140044d10], rax
test rax, rax
je 0x140006362
xor edx, edx
lea rcx, [rsp + 0x40]
call rax
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
mov rcx, qword [rbx + 0x18]
call fcn.1400032e0
nop
cmp qword [rbp - 0x70], 8
jb 0x1400063b8
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400063b8
mov rax, qword [0x140044d10]
test rax, rax
jne 0x1400063af
call fcn.140018630
mov qword [0x140044d10], rax
test rax, rax
je 0x1400063b8
xor edx, edx
lea rcx, [rsp + 0x40]
call rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINSPOOL.DRV_ClosePrinter]
nop
cmp qword [rbp - 0x48], 8
jb 0x140006402
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140006402
mov rdi, qword [0x140044d10]
test rdi, rdi
jne 0x1400063f9
call fcn.140018630
mov rdi, rax
mov qword [0x140044d10], rax
test rax, rax
je 0x140006409
xor edx, edx
lea rcx, [rsp + 0x40]
call rdi
mov rdi, qword [0x140044d10]
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], r12
mov word [rbp - 0x60], r12w
cmp qword [rbp + 0x28], 8
jb 0x140006451
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140006451
test rdi, rdi
jne 0x140006448
call fcn.140018630
mov rdi, rax
mov qword [0x140044d10], rax
test rax, rax
je 0x140006451
xor edx, edx
lea rcx, [rsp + 0x48]
call rdi
mov word [rbp + 0x40], r12w
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x42]
call fcn.14001c640
lea r8, [rbp + 0x240]
movzx ecx, word [0x140045094]
cmp dword [rbx + 0x48], 1
mov edx, 8
je 0x140006485
mov edx, 7
call fcn.1400040e0
mov r8, qword [rbx + 0x18]
lea rdx, [rbp + 0x240]
lea rcx, [rbp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rbp + 0x40]
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [rbx + 0x4c], 1
cmp qword [rbx + 0x20], 0
je 0x1400064d0
mov rax, qword [rbx + 0x68]
test rax, rax
je 0x1400064fc
cmp dword [rax + 8], 0
jne 0x1400064fc
cmp dword [rax + 0xc], 0
jne 0x1400064fc
lea r8, [rbp + 0x40]
mov edx, 0x2e
movzx ecx, word [0x140045094]
call fcn.1400040e0
test eax, eax
je 0x1400064fc
lea r8, [rbp + 0x40]
mov edx, 0x134
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400067fe
lea rdx, str._eads
call fcn.14001acc0
test rax, rax
je 0x1400067fe
mov dword [rbp - 0x78], 0xf000c
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], r12
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x34], r12d
mov dword [rsp + 0x38], 4
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x40]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WINSPOOL.DRV_OpenPrinterW]
test eax, eax
je 0x1400067fe
mov qword [rsp + 0x48], r12
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SoftwarePoliciesHewlett_PackardHP_Print_SettingsADSPrintPolicy
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400067f3
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.SSNPDeviceUpdateInterval
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400065ea
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
lea r8d, [rax + 4]
lea rdx, str.SSNPDeviceUpdateInterval
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.SSNPShowSSNSettings
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000663f
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
lea r8d, [rax + 4]
lea rdx, str.SSNPShowSSNSettings
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.SSNPShowSupportLink
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140006694
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
lea r8d, [rax + 4]
lea rdx, str.SSNPShowSupportLink
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.SSNPShowShopLink
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400066e9
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
lea r8d, [rax + 4]
lea rdx, str.SSNPShowShopLink
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.SSNPShowAlertLink
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000673e
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
lea r8d, [rax + 4]
lea rdx, str.SSNPShowAlertLink
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.SSNPUseLargeNotification
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140006793
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
lea r8d, [rax + 4]
lea rdx, str.SSNPUseLargeNotification
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.SSNPNotifyEventSetting
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400067e8
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
lea r8d, [rax + 4]
lea rdx, str.SSNPNotifyEventSetting
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WINSPOOL.DRV_ClosePrinter]
mov rcx, qword [rbp + 0x440]
xor rcx, rsp
call fcn.14001a510
lea r11, [rsp + 0x550]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret