Function at 0x1401b8740
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x840]
sub rsp, 0x940
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x830], rax
mov r14, r8
mov r12, rdx
mov rbx, qword [r8]
mov rdi, qword [r8 + 8]
cmp rbx, rdi
je 0x1401b87ac
lea rcx, [rbx + 0x40]
call fcn.1400048a0
lea rcx, [rbx + 0x20]
call fcn.1400048a0
mov rcx, rbx
call fcn.1400048a0
add rbx, 0x78
cmp rbx, rdi
jne 0x1401b8782
mov rax, qword [r14]
mov qword [r14 + 8], rax
xor r13d, r13d
mov qword [rsp + 0x70], r13
mov dword [rsp + 0x68], r13d
xor edx, edx
mov r8d, 0x618
lea rcx, [rbp + 0x210]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp]
call fcn.1401e7e40
mov dword [rsp + 0x6c], r13d
mov dword [rsp + 0x64], r13d
mov dword [rsp + 0x60], r13d
mov r9, r12
lea r8, str.SOFTWAREMicrosoftWindows_NTCurrentVersionPrintPrinters_sPrinterDriverData
mov edx, 0x30c
lea rcx, [rbp + 0x210]
call fcn.14002fb20
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x210]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401b8b2c
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1401b8b2c
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x1401b8b2c
mov r15d, r13d
nop
mov word [rbp], r13w
mov dword [rsp + 0x6c], 0x104
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x6c]
lea r8, [rbp]
mov edx, r15d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
lea rbx, str.CustomCode
mov edi, 1
mov rcx, qword [str.CustomCode]
test rcx, rcx
je 0x1401b890f
nop dword [rax]
lea rdx, [rbp]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1401b890c
add rbx, 8
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1401b88f0
jmp 0x1401b890f
mov edi, r13d
test esi, esi
jne 0x1401b8b1e
test edi, edi
je 0x1401b8b1e
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1401b8b1e
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, ebx
lea edx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1401b8b1e
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401b8b1e
mov edi, dword [rsp + 0x60]
mov esi, dword [rsp + 0x64]
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r13w
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r13w
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], r13w
lea rax, [rbp]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1401b89d0
lea rdx, [rbp]
lea rcx, [rbp - 0x40]
call fcn.140004b70
mov qword [rbp - 0x20], rbx
mov dword [rbp - 0x18], esi
mov dword [rbp - 0x14], edi
mov dword [rbp - 0x10], r13d
mov rbx, qword [r14 + 8]
cmp rbx, qword [r14 + 0x10]
je 0x1401b8a4e
mov qword [rsp + 0x78], rbx
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.1400040b0
nop
lea rcx, [rbx + 0x20]
lea rdx, [rbp - 0x60]
call fcn.1400040b0
nop
lea rcx, [rbx + 0x40]
lea rdx, [rbp - 0x40]
call fcn.1400040b0
mov rax, qword [rbp - 0x20]
mov qword [rbx + 0x60], rax
mov eax, dword [rbp - 0x18]
mov dword [rbx + 0x68], eax
mov eax, dword [rbp - 0x14]
mov dword [rbx + 0x6c], eax
mov eax, dword [rbp - 0x10]
mov dword [rbx + 0x70], eax
add qword [r14 + 8], 0x78
jmp 0x1401b8a5e
lea r8, [rbp - 0x80]
mov rdx, rbx
mov rcx, r14
call fcn.1401b9390
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x1401b8a9e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401b8a99
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401b8d4c
call fcn.1400079c0
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x1401b8ade
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401b8ad9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401b8d4c
call fcn.1400079c0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1401b8b1e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401b8b19
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401b8d4c
call fcn.1400079c0
inc r15d
cmp r15d, dword [rsp + 0x68]
jb 0x1401b8890
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x64], r13d
mov qword [rsp + 0x78], r13
mov dword [rsp + 0x60], r13d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
lea r8, str.Default_DevMode
lea rdx, [0x140251dfc]
mov rcx, r12
call fcn.1401b6c10
test eax, eax
jne 0x1401b8d20
mov rsi, qword [rsp + 0x78]
test rsi, rsi
je 0x1401b8d20
mov edi, dword [rsp + 0x60]
mov ebx, dword [rsp + 0x64]
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x14026f3f0]
movdqa xmmword [rbp - 0x70], xmm1
mov word [rbp - 0x80], r13w
movups xmmword [rbp - 0x60], xmm0
movdqa xmmword [rbp - 0x50], xmm1
mov word [rbp - 0x60], r13w
movups xmmword [rbp - 0x40], xmm0
movdqa xmmword [rbp - 0x30], xmm1
mov word [rbp - 0x40], r13w
lea r8d, [rax + 0x2f]
lea rdx, str.SYSTEMCurrentControlSetControlPrintPrinters
lea rcx, [rbp - 0x80]
call fcn.140004b70
mov r8d, send
lea rdx, str.Default_DevMode
lea rcx, [rbp - 0x40]
call fcn.140004b70
mov qword [rbp - 0x20], rsi
mov dword [rbp - 0x18], ebx
mov dword [rbp - 0x14], edi
mov dword [rbp - 0x10], r13d
mov rbx, qword [r14 + 8]
cmp rbx, qword [r14 + 0x10]
je 0x1401b8c58
mov qword [rsp + 0x78], rbx
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.1400040b0
nop
lea rcx, [rbx + 0x20]
lea rdx, [rbp - 0x60]
call fcn.1400040b0
nop
lea rcx, [rbx + 0x40]
lea rdx, [rbp - 0x40]
call fcn.1400040b0
mov rax, qword [rbp - 0x20]
mov qword [rbx + 0x60], rax
mov eax, dword [rbp - 0x18]
mov dword [rbx + 0x68], eax
mov eax, dword [rbp - 0x14]
mov dword [rbx + 0x6c], eax
mov eax, dword [rbp - 0x10]
mov dword [rbx + 0x70], eax
add qword [r14 + 8], 0x78
jmp 0x1401b8c68
lea r8, [rbp - 0x80]
mov rdx, rbx
mov rcx, r14
call fcn.1401b9390
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x1401b8ca8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401b8ca3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401b8d4c
call fcn.1400079c0
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x1401b8ce4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401b8cdf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401b8d4c
call fcn.1400079c0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1401b8d20
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401b8d1b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401b8d4c
call fcn.1400079c0
xor eax, eax
mov rcx, qword [rbp + 0x830]
xor rcx, rsp
call fcn.1401e2900
mov rbx, qword [rsp + 0x980]
add rsp, 0x940
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401ec41c
int3