Function at 0x140024420
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 [0x14026fdb0]
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.140001190
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.140001370
xor r15d, r15d
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x34], r15d
xor edx, edx
mov r8d, 0x618
lea rcx, [rbp - 0x70]
call fcn.14019d7c0
mov dword [rsp + 0x40], r15d
call fcn.140056384
mov r11, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400244d8
mov ecx, 0x80004005
call fcn.140004550
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
mov rdx, r14
lea rcx, [rsp + 0x38]
call fcn.1400054e0
nop
mov edx, 0x5c
mov rcx, qword [rsp + 0x38]
call fcn.14019a074
mov rsi, rax
or edi, 0xffffffff
test rax, rax
jne 0x140024519
mov esi, edi
jmp 0x14002467c
sub rsi, qword [rsp + 0x38]
sar rsi, 1
test esi, esi
js 0x14002467c
lea r8d, [rsi + 1]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.140012110
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
or edi, 0xffffffff
cmp rcx, rbx
je 0x14002459b
cmp dword [rbx + 0x10], 0
jl 0x14002458c
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14002458c
call fcn.140006db0
mov r12, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140024580
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 0x14002459b
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.1400059f0
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400245ba
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.14000b960
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x38]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140024634
cmp dword [rbx + 0x10], 0
jl 0x140024625
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140024625
call fcn.140006db0
mov r12, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140024619
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 0x140024634
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.1400059f0
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140024653
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 0x140024697
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 0x14002473c
mov dword [rsp + 0x30], 0x208
mov dword [rsp + 0x34], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.Share_Name
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140024701
mov word [r13], r15w
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.Attributes
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x14002485e
mov qword [rsp + 0x58], r15
xor edx, edx
mov r8d, 0x618
lea rcx, [rbp - 0x70]
call fcn.14019d7c0
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 0x14002493f
lea rcx, [rbp - 0x70]
test esi, esi
js 0x1400247a0
mov r9, rbx
mov r8, qword [rsp + 0x38]
lea rdx, str.___s__s
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x1400247b1
mov r9d, 0x30c
mov r8, r14
mov edx, r9d
call fcn.14019c410
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 0x1400248d8
mov dword [rsp + 0x30], 0x208
mov dword [rsp + 0x34], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.Share_Name
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14002481d
mov word [r13], r15w
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
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 + 0x40]
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x60]
call fcn.140001370
mov ebx, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400248a8
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 0x1400248c7
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
lea rcx, [rsp + 0x60]
call fcn.140001320
mov eax, ebx
jmp 0x1400249a5
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.140001370
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002491e
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 0x14002493d
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
jmp 0x140024998
or r9d, 0xffffffff
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x60]
call fcn.140001370
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002497a
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 0x140024998
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x60]
call fcn.140001320
or eax, 0xffffffff
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.140198b40
mov rbx, qword [rsp + 0x710]
add rsp, 0x6c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret