Function at 0x1401b6c10
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xc8
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp - 1], rax
mov r15, r9
mov r14, r8
mov rsi, rdx
mov rdi, rcx
mov r12, qword [rbp + 0x77]
mov r13, qword [rbp + 0x7f]
lea rcx, str.GetPrinterData2kHelper_____Start
call fcn.1401b6310
test rdi, rdi
jne 0x1401b6c73
lea edx, [rdi + 0x57]
lea rcx, str.GetPrinterData2kHelper_____End__d_
call fcn.1401b6310
lea eax, [rdi + 0x57]
jmp 0x1401b6ff4
xor ebx, ebx
mov qword [rbp - 0x69], rbx
mov qword [rbp - 0x71], rbx
mov qword [rsp + 0x38], rbx
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
movdqa xmm1, xmmword [0x14026f3f0]
movdqu xmmword [rbp - 0x11], xmm1
mov word [rbp - 0x21], bx
movups xmmword [rbp - 0x41], xmm0
movdqu xmmword [rbp - 0x31], xmm1
mov word [rbp - 0x41], bx
movups xmmword [rbp - 0x61], xmm0
movdqu xmmword [rbp - 0x51], xmm1
mov word [rbp - 0x61], bx
mov qword [rbp - 0x79], rbx
call fcn.1401b65c0
mov ecx, dword [rax]
lea rax, [0x140246bf0]
mov rax, qword [rax + rcx*8]
xor edx, edx
mov rcx, rdi
call qword [case.0x1400136d6.0]
cmp eax, 1
jne 0x1401b6cef
xor edx, edx
lea rcx, str.GetPrinterData2kHelper_____End__d_
call fcn.1401b6310
xor esi, esi
jmp 0x1401b6f14
mov r8d, 0x2f
lea rdx, str.SYSTEMCurrentControlSetControlPrintPrinters
lea rcx, [rbp - 0x21]
call fcn.140004b70
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop
inc r8
cmp word [rdi + r8*2], 0
jne 0x1401b6d10
mov rdx, rdi
lea rcx, [rbp - 0x41]
call fcn.140004b70
nop word [rax + rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x1401b6d30
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp - 0x61]
call fcn.140004b70
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rdx, qword [rbp - 0x21]
lea rax, [rbp - 0x69]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401b6ec0
lea rdx, [rbp - 0x41]
cmp qword [rbp - 0x29], 8
cmovae rdx, qword [rbp - 0x41]
lea rax, [rbp - 0x71]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401b6ec0
lea rdx, [rbp - 0x61]
cmp qword [rbp - 0x49], 8
cmovae rdx, qword [rbp - 0x61]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401b6ec0
xor esi, esi
mov dword [rsp + 0x30], esi
mov dword [rbp - 0x79], esi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x79]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
lea r8, [rbx + 1]
mov ebx, 8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1401b6eca
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x79]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1401b6ea2
mov edx, dword [rsp + 0x30]
test edx, edx
je 0x1401b6e87
lea eax, [rdx - 1]
cmp byte [rax + rdi], sil
je 0x1401b6e77
inc edx
mov eax, dword [rbp - 0x79]
mov dword [r15], eax
mov qword [r12], rdi
mov dword [r13], edx
jmp 0x1401b6eca
mov ebx, 2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1401b6eca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1401b6eca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
xor esi, esi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1401b6edf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], rsi
mov rcx, qword [rbp - 0x71]
test rcx, rcx
je 0x1401b6ef2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x71], rsi
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x1401b6f05
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x69], rsi
mov edx, ebx
lea rcx, str.GetPrinterData2kHelper_____End__d_
call fcn.1401b6310
nop
mov rdx, qword [rbp - 0x49]
cmp rdx, 8
jb 0x1401b6f54
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401b6f4f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401b701a
call fcn.1400079c0
movdqa xmm0, xmmword [0x14026f3f0]
movdqu xmmword [rbp - 0x51], xmm0
mov word [rbp - 0x61], si
mov rdx, qword [rbp - 0x29]
cmp rdx, 8
jb 0x1401b6fa5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401b6fa0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401b7020
call fcn.1400079c0
movdqa xmm0, xmmword [0x14026f3f0]
movdqu xmmword [rbp - 0x31], xmm0
mov word [rbp - 0x41], si
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x1401b6ff2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401b6fed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401b7014
call fcn.1400079c0
mov eax, ebx
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.1401e2900
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1401ec41c
nop
call fcn.1401ec41c
nop
call fcn.1401ec41c
int3