Function at 0x14001f6b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5c0]
sub rsp, 0x6c0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x710], rbx
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
mov r13, rdx
mov r14, rcx
xor r8d, r8d
lea rdx, str.GetPrinterInfo
lea rcx, [rsp + 0x60]
call fcn.140017fc0
nop
mov qword [rsp + 0x20], r13
mov r9, r14
lea r8, str.lpszPrinter___s__lpszShareName___s
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.140017c80
call fcn.14000c310
call fcn.140051e58
mov r11, rax
xor r15d, r15d
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x14001f74d
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
call fcn.140054cb8
xor edx, edx
mov r8d, 0x618
lea rcx, [rbp - 0x70]
call fcn.140192cb0
mov rdx, r14
lea rcx, [rsp + 0x38]
call fcn.1400020c0
nop
mov edx, 0x5c
mov rcx, qword [rsp + 0x38]
call fcn.140193dc0
mov rsi, rax
or edi, 0xffffffff
test rax, rax
jne 0x14001f7a4
mov esi, edi
jmp 0x14001f907
sub rsi, qword [rsp + 0x38]
sar rsi, 1
test esi, esi
js 0x14001f907
lea r8d, [rsi + 1]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.140018290
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
or edi, 0xffffffff
cmp rcx, rbx
je 0x14001f826
cmp dword [rbx + 0x10], 0
jl 0x14001f817
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14001f817
call fcn.140001950
mov r12, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14001f80b
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [r12 + 0x18]
mov qword [rsp + 0x50], rax
jmp 0x14001f826
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140001c20
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001f845
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r9d, [rsi - 2]
mov r8d, 2
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x38]
call fcn.140006970
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x38]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14001f8bf
cmp dword [rbx + 0x10], 0
jl 0x14001f8b0
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14001f8b0
call fcn.140001950
mov r12, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14001f8a4
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [r12 + 0x18]
mov qword [rsp + 0x38], rax
jmp 0x14001f8bf
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.140001c20
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001f8de
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rbx
mov r9, qword [rsp + 0x38]
lea r8, str.SystemCurrentControlSetControlPrintPrinters
lea rdx, str._s___s__s
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14001f922
mov r9, r14
lea r8, str.SystemCurrentControlSetControlPrintPrinters
lea rdx, str._s_s
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001f9c7
mov dword [rsp + 0x30], 0x208
mov dword [rsp + 0x40], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.Share_Name
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14001f98c
mov word [r13], r15w
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.Attributes
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x14001fae9
mov qword [rsp + 0x58], r15
xor edx, edx
mov r8d, 0x618
lea rcx, [rbp - 0x70]
call fcn.140192cb0
lea r11, [rsp + 0x48]
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 0x14001fbca
lea rcx, [rbp - 0x70]
test esi, esi
js 0x14001fa2b
mov r9, rbx
mov r8, qword [rsp + 0x38]
lea rdx, str.___s__s
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14001fa3c
mov r9d, 0x30c
mov r8, r14
mov edx, r9d
call fcn.140196fc8
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001fb63
mov dword [rsp + 0x30], 0x208
mov dword [rsp + 0x40], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.Share_Name
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14001faa8
mov word [r13], r15w
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.Attributes
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, dword [rsp + 0x44]
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x60]
call fcn.140017c80
mov ebx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001fb33
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x14001fb52
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
lea rcx, [rsp + 0x60]
call fcn.140018150
mov eax, ebx
jmp 0x14001fc30
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
or r9d, 0xffffffff
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x60]
call fcn.140017c80
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001fba9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x14001fbc8
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
jmp 0x14001fc23
or r9d, 0xffffffff
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x60]
call fcn.140017c80
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001fc05
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x14001fc23
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x60]
call fcn.140018150
or eax, 0xffffffff
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.1401945b0
mov rbx, qword [rsp + 0x710]
add rsp, 0x6c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret