Function at 0x140006d50
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 [0x1400420e0]
xor rax, rsp
mov qword [rbp + 0x440], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x140006da4
lea rdx, str._npf
call fcn.14001bcc0
test rax, rax
jne 0x140006de2
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140006dbe
lea rdx, [0x140038100]
call fcn.14001bcc0
test rax, rax
jne 0x140006de2
call fcn.140005240
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 0x140007451
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140006e62
lea rdx, str._dssnp
call fcn.14001bcc0
test rax, rax
je 0x140006e62
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 0x140006e84
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 0x140007004
mov eax, dword [rdx + 0x20]
cmp eax, 1
je 0x140006ed8
cmp eax, 2
jne 0x140007004
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 0x140006f66
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x140006f66
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 0x140006f5d
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.14000c2e0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140006fb5
lea rdx, str._pqdmpa
call fcn.14001bcc0
test rax, rax
je 0x140006fb5
lea rcx, str.972565793
call fcn.14001ba04
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 0x140007004
lea rdx, str._pqdads
call fcn.14001bcc0
test rax, rax
je 0x140007004
lea rcx, str.972565793
call fcn.14001ba04
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.14000c2e0
nop
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rdx, qword [rbp - 0x60]
mov rcx, qword [rbx + 0x20]
call fcn.14001bcc0
mov esi, 0x22
test rax, rax
je 0x140007172
mov rcx, qword [rbp - 0x50]
lea rdx, [rax + rcx*2]
cmp word [rdx], si
jne 0x140007172
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.14000c2e0
nop
mov edx, esi
lea rcx, [rsp + 0x78]
call fcn.14000bd20
cmp rax, 0xffffffffffffffff
je 0x1400070b9
or r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000bc80
cmp qword [rbp - 0x78], 0
je 0x140007136
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x30]
call fcn.1400178b0
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.14000c2e0
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, [0x140036250]
mov rcx, qword [rbp]
call qword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
nop
lea rcx, [rbp - 0x30]
call fcn.140017a20
nop
cmp qword [rbp - 0x70], 8
jb 0x140007172
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140007172
mov rax, qword [0x140045d10]
test rax, rax
jne 0x140007169
call fcn.140019630
mov qword [0x140045d10], rax
test rax, rax
je 0x140007172
xor edx, edx
lea rcx, [rsp + 0x40]
call rax
mov rdx, rbx
mov rcx, qword [rsp + 0x50]
call fcn.140006b80
mov rdx, qword [rbx + 0x68]
test rdx, rdx
je 0x1400073b8
mov eax, dword [rdx + 0x20]
cmp eax, 2
je 0x14000719d
cmp eax, 1
jne 0x1400073b8
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r12
mov word [rsp + 0x78], r12w
cmp eax, 2
je 0x140007245
lea rdx, [0x140038168]
mov rcx, qword [rbx + 0x20]
call fcn.14001bcc0
mov rdx, rax
test rax, rax
je 0x140007265
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.14000c2e0
mov edx, 0x20
lea rcx, [rsp + 0x78]
call fcn.14000bd20
cmp rax, 0xffffffffffffffff
je 0x14000721b
or r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000bc80
mov edx, 0x3d
lea rcx, [rsp + 0x78]
call fcn.14000bd20
cmp rax, 0xffffffffffffffff
je 0x140007265
mov r8d, 1
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000bc80
jmp 0x140007265
cmp qword [rbp + 0x20], 0
je 0x14000737c
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x78]
call fcn.14000bb50
mov r9, qword [rbp - 0x78]
test r9, r9
je 0x14000737c
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rax, qword [rsp + 0x78]
cmp si, word [rax]
jne 0x1400072ec
dec r9
mov r8d, 1
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x78]
call fcn.14000be10
nop
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000be50
nop
cmp qword [rbp - 0x18], 8
jb 0x1400072e8
mov rax, qword [rbp - 0x30]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400072e8
mov rax, qword [0x140045d10]
test rax, rax
jne 0x1400072df
call fcn.140019630
mov qword [0x140045d10], rax
test rax, rax
je 0x1400072e8
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 0x140007362
dec r9
xor r8d, r8d
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x78]
call fcn.14000be10
nop
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000be50
nop
cmp qword [rbp - 0x18], 8
jb 0x140007362
mov rax, qword [rbp - 0x30]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140007362
mov rax, qword [0x140045d10]
test rax, rax
jne 0x140007359
call fcn.140019630
mov qword [0x140045d10], rax
test rax, rax
je 0x140007362
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.1400042e0
nop
cmp qword [rbp - 0x70], 8
jb 0x1400073b8
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400073b8
mov rax, qword [0x140045d10]
test rax, rax
jne 0x1400073af
call fcn.140019630
mov qword [0x140045d10], rax
test rax, rax
je 0x1400073b8
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 0x140007402
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140007402
mov rdi, qword [0x140045d10]
test rdi, rdi
jne 0x1400073f9
call fcn.140019630
mov rdi, rax
mov qword [0x140045d10], rax
test rax, rax
je 0x140007409
xor edx, edx
lea rcx, [rsp + 0x40]
call rdi
mov rdi, qword [0x140045d10]
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], r12
mov word [rbp - 0x60], r12w
cmp qword [rbp + 0x28], 8
jb 0x140007451
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140007451
test rdi, rdi
jne 0x140007448
call fcn.140019630
mov rdi, rax
mov qword [0x140045d10], rax
test rax, rax
je 0x140007451
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.14001d640
lea r8, [rbp + 0x240]
movzx ecx, word [0x140046094]
cmp dword [rbx + 0x48], 1
mov edx, 8
je 0x140007485
mov edx, 7
call fcn.1400050e0
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 0x1400074d0
mov rax, qword [rbx + 0x68]
test rax, rax
je 0x1400074fc
cmp dword [rax + 8], 0
jne 0x1400074fc
cmp dword [rax + 0xc], 0
jne 0x1400074fc
lea r8, [rbp + 0x40]
mov edx, 0x2e
movzx ecx, word [0x140046094]
call fcn.1400050e0
test eax, eax
je 0x1400074fc
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 0x1400077fe
lea rdx, str._eads
call fcn.14001bcc0
test rax, rax
je 0x1400077fe
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 0x1400077fe
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 0x1400077f3
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 0x1400075ea
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 0x14000763f
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 0x140007694
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 0x1400076e9
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 0x14000773e
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 0x140007793
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 0x1400077e8
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.14001b510
lea r11, [rsp + 0x550]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret