Function at 0x140007740
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x438]
sub rsp, 0x520
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140053010]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x140007794
lea rdx, str._npf
call fcn.140024230
test rax, rax
jne 0x1400077d2
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400077ae
lea rdx, [0x140045190]
call fcn.140024230
test rax, rax
jne 0x1400077d2
call fcn.140005d00
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 r14d, r14d
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x58], r14
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 + 0x48]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WINSPOOL.DRV_OpenPrinterW]
test eax, eax
je 0x140007ea3
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140007851
lea rdx, str._dssnp
call fcn.140024230
test rax, rax
je 0x140007851
mov dword [rsp + 0x34], r14d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
lea r8d, [r14 + 4]
lea rdx, str.SSNPNotifyEventSetting
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov dword [rsp + 0x38], 1
mov rcx, qword [rbx + 0x68]
test rcx, rcx
je 0x140007873
mov eax, 1
cmp dword [rcx + 0x20], 3
cmove eax, r14d
mov dword [rsp + 0x38], eax
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r14
mov word [rbp - 0x48], r14w
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x38]
mov r8d, 4
lea rdx, str.StaticMode
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov rax, qword [rbx + 0x68]
or rdi, 0xffffffffffffffff
test rax, rax
je 0x1400079fb
mov eax, dword [rax + 0x20]
dec eax
cmp eax, 1
ja 0x1400079fb
mov dword [rsp + 0x34], r14d
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 6]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINSPOOL.DRV_GetPrinterW]
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x14000795d
mov edx, eax
lea ecx, [rdi + 0x41]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x14000795d
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
mov r8, rsi
lea edx, [rdi + 6]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINSPOOL.DRV_GetPrinterW]
test eax, eax
je 0x140007954
mov rdx, qword [rsi + 8]
cmp word [rdx], 0
jne 0x140007939
mov r8, r14
jmp 0x14000794b
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140007940
lea rcx, [rbp - 0x48]
call fcn.14000d3f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400079ac
lea rdx, str._pqdmpa
call fcn.140024230
test rax, rax
je 0x1400079ac
lea rcx, str.972565793
call fcn.140023d28
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 + 0x48]
call qword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400079fb
lea rdx, str._pqdads
call fcn.140024230
test rax, rax
je 0x1400079fb
lea rcx, str.972565793
call fcn.140023d28
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 + 0x48]
call qword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r14
mov word [rbp - 0x68], r14w
mov r8d, 9
lea rdx, str._qcomname
lea rcx, [rbp - 0x68]
call fcn.14000d3f0
nop
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rdx, qword [rbp - 0x68]
mov rcx, qword [rbx + 0x20]
call fcn.140024230
mov esi, 0x22
test rax, rax
je 0x140007b9e
mov rcx, qword [rbp - 0x58]
lea rdx, [rax + rcx*2]
cmp word [rdx], si
jne 0x140007b9e
add rdx, 2
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r14
mov word [rsp + 0x78], r14w
cmp word [rdx], 0
jne 0x140007a7a
mov r8, r14
jmp 0x140007a8b
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140007a80
lea rcx, [rsp + 0x78]
call fcn.14000d3f0
nop
mov edx, esi
lea rcx, [rsp + 0x78]
call fcn.14000cb30
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x140007ad7
cmp qword [rbp - 0x78], rax
jae 0x140007abe
lea rcx, str.invalid_string_position
call fcn.1400235ec
int3
mov qword [rbp - 0x78], rax
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rax, qword [rsp + 0x78]
mov word [rax + rcx*2], r14w
cmp qword [rbp - 0x78], 0
je 0x140007b62
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x28]
call fcn.14001b020
nop
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
cmp word [rdx], 0
jne 0x140007b0c
mov r8, r14
jmp 0x140007b1b
mov r8, rdi
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x140007b10
lea rcx, [rbp - 0x20]
call fcn.14000d3f0
mov eax, dword [rbp - 0x10]
lea eax, [rax*2 + 2]
lea r9, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae r9, qword [rbp - 0x20]
mov dword [rsp + 0x20], eax
mov r8d, 1
lea rdx, str.MystSNMPCommunityName
mov rcx, qword [rbp]
call qword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
nop
lea rcx, [rbp - 0x28]
call fcn.14001b1a0
nop
cmp qword [rbp - 0x70], 8
jb 0x140007b9e
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140007b9e
mov rax, qword [0x1400575e8]
test rax, rax
jne 0x140007b95
call fcn.140021810
mov qword [0x1400575e8], rax
test rax, rax
je 0x140007b9e
xor edx, edx
lea rcx, [rsp + 0x40]
call rax
mov rdx, rbx
mov rcx, qword [rsp + 0x48]
call fcn.140007570
mov rax, qword [rbx + 0x68]
test rax, rax
je 0x140007e08
mov ecx, dword [rax + 0x20]
lea eax, [rcx - 1]
cmp eax, 1
ja 0x140007e08
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r14
mov word [rsp + 0x78], r14w
cmp ecx, 2
je 0x140007c9a
lea rdx, [0x1400451f8]
mov rcx, qword [rbx + 0x20]
call fcn.140024230
test rax, rax
je 0x140007cb9
cmp word [rax + 6], 0
jne 0x140007c10
mov rdi, r14
jmp 0x140007c1b
inc rdi
cmp word [rax + rdi*2 + 6], 0
jne 0x140007c10
mov r8, rdi
lea rdx, [rax + 6]
lea rcx, [rsp + 0x78]
call fcn.14000d3f0
mov edx, 0x20
lea rcx, [rsp + 0x78]
call fcn.14000cb30
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x140007c70
cmp qword [rbp - 0x78], rax
jae 0x140007c57
lea rcx, str.invalid_string_position
call fcn.1400235ec
int3
mov qword [rbp - 0x78], rax
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rax, qword [rsp + 0x78]
mov word [rax + rcx*2], r14w
mov edx, 0x3d
lea rcx, [rsp + 0x78]
call fcn.14000cb30
cmp rax, 0xffffffffffffffff
je 0x140007cb9
mov r8d, 1
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000ca80
jmp 0x140007cb9
cmp qword [rbp - 0x38], 0
je 0x140007dcc
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x78]
call fcn.14000c8e0
mov r9, qword [rbp - 0x78]
test r9, r9
je 0x140007dcc
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rax, qword [rsp + 0x78]
cmp si, word [rax]
jne 0x140007d3e
dec r9
mov r8d, 1
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x78]
call fcn.14000cc20
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000c6c0
cmp qword [rbp - 0x10], 8
jb 0x140007d3a
mov rax, qword [rbp - 0x28]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140007d3a
mov rax, qword [0x1400575e8]
test rax, rax
jne 0x140007d31
call fcn.140021810
mov qword [0x1400575e8], rax
test rax, rax
je 0x140007d3a
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 0x140007db2
dec r9
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x78]
call fcn.14000cc20
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000c6c0
cmp qword [rbp - 0x10], 8
jb 0x140007db2
mov rax, qword [rbp - 0x28]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140007db2
mov rax, qword [0x1400575e8]
test rax, rax
jne 0x140007da9
call fcn.140021810
mov qword [0x1400575e8], rax
test rax, rax
je 0x140007db2
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.140004d70
nop
cmp qword [rbp - 0x70], 8
jb 0x140007e08
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140007e08
mov rax, qword [0x1400575e8]
test rax, rax
jne 0x140007dff
call fcn.140021810
mov qword [0x1400575e8], rax
test rax, rax
je 0x140007e08
xor edx, edx
lea rcx, [rsp + 0x40]
call rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINSPOOL.DRV_ClosePrinter]
nop
cmp qword [rbp - 0x50], 8
jb 0x140007e53
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140007e53
mov r8, qword [0x1400575e8]
test r8, r8
jne 0x140007e49
call fcn.140021810
mov r8, rax
mov qword [0x1400575e8], rax
test rax, rax
je 0x140007e5a
xor edx, edx
lea rcx, [rsp + 0x40]
call r8
mov r8, qword [0x1400575e8]
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r14
mov word [rbp - 0x68], r14w
cmp qword [rbp - 0x30], 8
jb 0x140007ea3
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140007ea3
test r8, r8
jne 0x140007e99
call fcn.140021810
mov r8, rax
mov qword [0x1400575e8], rax
test rax, rax
je 0x140007ea3
xor edx, edx
lea rcx, [rsp + 0x40]
call r8
mov word [rbp + 0x10], r14w
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x12]
call fcn.140027190
lea r8, [rbp + 0x210]
movzx ecx, word [0x14005799c]
cmp dword [rbx + 0x48], 1
mov edx, 8
je 0x140007ed7
mov edx, 7
call fcn.140005ba0
mov r8, qword [rbx + 0x18]
lea rdx, [rbp + 0x210]
lea rcx, [rbp + 0x10]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rbp + 0x10]
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [rbx + 0x4c], 1
cmp qword [rbx + 0x20], 0
je 0x140007f22
mov rax, qword [rbx + 0x68]
test rax, rax
je 0x140007f4e
cmp dword [rax + 8], 0
jne 0x140007f4e
cmp dword [rax + 0xc], 0
jne 0x140007f4e
lea r8, [rbp + 0x10]
mov edx, 0x2e
movzx ecx, word [0x14005799c]
call fcn.140005ba0
test eax, eax
je 0x140007f4e
lea r8, [rbp + 0x10]
mov edx, 0x134
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140008250
lea rdx, str._eads
call fcn.140024230
test rax, rax
je 0x140008250
mov dword [rbp - 0x78], 0xf000c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x34], r14d
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 0x140008250
mov qword [rsp + 0x50], r14
lea rax, [rsp + 0x50]
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 0x140008245
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 + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000803c
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, [0x1400457a8]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140008091
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
lea r8d, [rax + 4]
lea rdx, [0x1400457a8]
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, [0x1400456b8]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400080e6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
lea r8d, [rax + 4]
lea rdx, [0x1400456b8]
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 + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000813b
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 + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140008190
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 + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400081e5
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 + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000823a
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 + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WINSPOOL.DRV_ClosePrinter]
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.140023790
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret