Function at 0x14004d240
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x5e0]
sub rsp, 0x6e0
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
mov r15, rdx
lea rcx, [rsp + 0x60]
lea rdx, str.CheckPrinterDriverInstall::CheckPortRegistry
mov rdi, r8
call fcn.14001abe0
mov rcx, qword [0x1402a8360]
lea r12, [0x1402a8360]
lea rsi, [0x1402bbdb0]
cmp rcx, r12
je 0x14004d315
test byte [rcx + 0x1c], 1
je 0x14004d2d8
cmp qword [0x1402bbdc8], 8
lea r8, [0x140254a20]
mov rcx, qword [rcx + 0x10]
mov r9, rsi
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x4b
call fcn.140001ad0
mov rcx, qword [0x1402a8360]
cmp rcx, r12
je 0x14004d315
test byte [rcx + 0x1c], 1
je 0x14004d315
cmp qword [0x1402bbdc8], 8
lea r8, [0x140254a20]
mov rcx, qword [rcx + 0x10]
mov r9, rsi
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x4c
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r15
call fcn.14002fbe0
xor ebx, ebx
lea rcx, [rbp + 0x1c0]
xor edx, edx
mov qword [rsp + 0x50], rbx
mov r8d, 0x410
mov dword [rsp + 0x48], ebx
mov r14d, ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x44], ebx
call fcn.1401e7e40
xor edx, edx
lea rcx, [rbp - 0x50]
mov r8d, 0x208
call fcn.1401e7e40
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004d421
nop dword [rax + rax]
xor edx, edx
lea rcx, [rbp + 0x1c0]
mov r8d, 0x410
call fcn.1401e7e40
xor edx, edx
lea rcx, [rbp - 0x50]
mov r8d, 0x208
call fcn.1401e7e40
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x48]
lea rax, [rbp - 0x50]
mov dword [rsp + 0x48], 0x208
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x1c0]
lea rax, [rsp + 0x44]
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x28], rax
mov edx, r14d
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x44], 1
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov rdx, r15
lea rcx, [rbp + 0x1c0]
mov edi, eax
inc r14d
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14004d41c
test edi, edi
je 0x14004d380
jmp 0x14004d421
mov ebx, 1
mov cl, 1
mov byte [rsp + 0x68], cl
mov rax, qword [0x1402a8360]
cmp rax, r12
je 0x14004d470
test byte [rax + 0x1c], cl
je 0x14004d470
cmp qword [0x1402bbdc8], 8
lea r8, [0x140254a20]
mov rcx, qword [rax + 0x10]
mov r9, rsi
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x4d
mov dword [rsp + 0x20], ebx
call fcn.140001b40
movzx ecx, byte [rsp + 0x68]
mov rax, qword [0x1402a8360]
lea rdx, vtable.WppTrace.0
mov qword [rsp + 0x60], rdx
test cl, cl
jne 0x14004d4c8
cmp rax, r12
je 0x14004d4c8
test byte [rax + 0x1c], 1
je 0x14004d4c8
cmp qword [rbp - 0x78], 8
lea rcx, [rsp + 0x70]
mov edx, 0xa
lea r8, [0x140252818]
cmovae rcx, qword [rsp + 0x70]
cmp qword [0x1402bbdc8], 8
mov qword [rsp + 0x20], rcx
cmovae rsi, qword [0x1402bbdb0]
mov rcx, qword [rax + 0x10]
mov r9, rsi
call fcn.140006c90
lea rcx, [rbp - 0x70]
call fcn.1400048a0
lea rcx, [rsp + 0x70]
call fcn.1400048a0
mov eax, ebx
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x6e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret