Function at 0x1400b1bb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5e0]
sub rsp, 0x6e0
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
mov rbx, rdx
lea rdx, str.PrinterDriverInstall::WaitFinishPreConfig
lea rcx, [rsp + 0x60]
call fcn.14001abe0
nop
lea rdi, [0x1402a8360]
lea r12, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, rdi
je 0x1400b1c84
test byte [rcx + 0x1c], 1
je 0x1400b1c4c
mov r9, r12
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x5e
lea r8, [0x14025a4d8]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov rcx, qword [0x1402a8360]
cmp rcx, rdi
je 0x1400b1c84
test byte [rcx + 0x1c], 1
je 0x1400b1c84
mov r9, r12
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x5f
mov qword [rsp + 0x20], rbx
lea r8, [0x14025a4d8]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
xor edx, edx
mov r8d, 0x618
lea rcx, [rbp - 0x50]
call fcn.1401e7e40
xor r14d, r14d
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x3c], r14d
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
call fcn.1401bb0c4
mov rcx, rax
test rax, rax
je 0x1400b210e
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea r13, [r14 - 1]
test rbx, rbx
je 0x1400b1d0c
cmp rbx, 0x10000
jae 0x1400b1cf9
movzx edx, bx
lea rcx, [rsp + 0x30]
call fcn.1400041d0
jmp 0x1400b1d20
mov rax, r13
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400b1d00
jmp 0x1400b1d0f
mov eax, r14d
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140004e60
nop
xor r15b, r15b
mov rbx, qword [rsp + 0x30]
movsxd rdi, dword [rbx - 0x10]
mov eax, r14d
test edi, edi
jle 0x1400b1daa
mov edx, 0x2c
lea r12d, [rdx - 0x2b]
nop dword [rax]
cdqe
lea rsi, [rax + rax]
cmp word [rbx + rsi], 0x5c
jne 0x1400b1d82
test r15b, r15b
jne 0x1400b1d7e
movzx r15d, r12b
mov ecx, r12d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400b1d7e
lfence
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140004e00
mov rbx, qword [rsp + 0x30]
mov edx, 0x2c
mov word [rsi + rbx], dx
lea rax, [rsi + 2]
sar rax, 1
cmp eax, edi
jl 0x1400b1d40
test r15b, r15b
lea r12, [0x1402bbdb0]
je 0x1400b1daa
cmp edi, dword [rbx - 0xc]
jg 0x1400b2103
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], r14w
mov r8, rbx
lea rdx, str._sPrinterDriverData
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r10, qword [0x1402a8360]
lea r15, [0x1402a8360]
cmp r10, r15
je 0x1400b1e10
test byte [r10 + 0x1c], 4
je 0x1400b1e10
mov r9, r12
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x60
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r8, [0x14025a4d8]
mov rcx, qword [r10 + 0x10]
call fcn.140006c90
mov r10, qword [0x1402a8360]
mov esi, r14d
mov ebx, 1
nop dword [rax + rax]
cmp esi, 0x258
jae 0x1400b1fb1
xor edx, edx
lea ecx, [rdx + 0x64]
call qword [sym.imp.KERNEL32.dll_SleepEx]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlPrintPrinters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400b1f4b
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp - 0x50]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400b1eeb
mov dword [rsp + 0x3c], 4
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
lea rdx, str.PreConfigStatus
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove r14d, ebx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400b1f9f
mov rax, qword [0x1402a8360]
cmp rax, r15
je 0x1400b1f3e
test byte [rax + 0x1c], 2
je 0x1400b1f3e
mov rdi, r12
cmp qword [0x1402bbdc8], 8
cmovae rdi, qword [0x1402bbdb0]
lea rcx, [rsp + 0x60]
call fcn.14001b0b0
mov edx, 0x61
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, [0x14025a4d8]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400b1f9f
mov r10, qword [0x1402a8360]
cmp r10, r15
je 0x1400b1fa6
test byte [r10 + 0x1c], 2
je 0x1400b1fa6
mov rdi, r12
cmp qword [0x1402bbdc8], 8
cmovae rdi, qword [0x1402bbdb0]
lea rcx, [rsp + 0x60]
call fcn.14001b0b0
mov edx, 0x62
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, [0x14025a4d8]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov r10, qword [0x1402a8360]
inc esi
test r14d, r14d
je 0x1400b1e20
cmp r10, r15
mov rbx, qword [rsp + 0x30]
je 0x1400b2000
test byte [r10 + 0x1c], 4
je 0x1400b2000
mov r9, r12
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
imul ecx, esi, 0x64
mov edx, 0x63
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea r8, [0x14025a4d8]
mov rcx, qword [r10 + 0x10]
call fcn.1400515a0
mov r10, qword [0x1402a8360]
mov byte [rsp + 0x68], 1
cmp r10, r15
je 0x1400b203a
test byte [r10 + 0x1c], 1
je 0x1400b203a
mov r9, r12
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x64
lea r8, [0x14025a4d8]
mov rcx, qword [r10 + 0x10]
call fcn.140001ad0
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r13d
sub r13d, 1
jg 0x1400b205e
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
nop
lea rax, vtable.WppTrace.0
mov qword [rsp + 0x60], rax
cmp byte [rsp + 0x68], 0
jne 0x1400b20c0
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x1400b20c0
test byte [rcx + 0x1c], 1
je 0x1400b20c0
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rax, qword [rsp + 0x70]
cmp qword [0x1402bbdc8], 8
cmovae r12, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rax
mov r9, r12
lea r8, [0x140252818]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rbp - 0x70]
call fcn.1400048a0
lea rcx, [rsp + 0x70]
call fcn.1400048a0
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x6e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80070057
call fcn.140001470
nop
mov ecx, 0x80004005
call fcn.140001470
int3