Function at 0x1400881d0
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 - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r13, rdx
mov qword [rsp + 0x50], rdx
lea rdx, str.InstallUsbPrinter::CheckRegistryHWID
lea rcx, [rsp + 0x60]
call fcn.14001abe0
nop
lea rbx, [0x1402a8360]
lea r12, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, rbx
je 0x14008826a
test byte [rcx + 0x1c], 1
je 0x14008826a
mov r9, r12
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x1e
lea r8, [0x140258570]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
xor r15d, r15d
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [r13]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea r14, [r15 - 1]
test eax, eax
jne 0x1400884e8
mov dword [rsp + 0x3c], 7
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.1401e7e40
mov dword [rsp + 0x38], 0x208
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
lea rdx, str.HardwareID
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400884dd
lea rsi, [rbp - 0x50]
call fcn.1401bb0c4
mov rcx, rax
test rax, rax
je 0x14008868e
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov rdi, rax
mov r8d, 1
sub r8d, dword [rbx - 8]
mov ecx, dword [rbx - 0xc]
sub ecx, 0x400
or ecx, r8d
jge 0x140088366
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.140004e00
mov rbx, qword [rsp + 0x30]
mov rax, qword [rdi]
mov r8, rbx
lea rdx, str.USBHARDWAREID
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1401eca00
test eax, eax
js 0x140088683
cmp eax, dword [rbx - 0xc]
jg 0x140088683
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r15w
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1400884b2
nop dword [rax]
call fcn.1401bb0c4
mov rcx, rax
test rax, rax
je 0x140088678
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
add rax, 0x18
mov qword [rsp + 0x40], rax
test rsi, rsi
je 0x14008841c
cmp rsi, 0x10000
jae 0x140088404
movzx edx, si
lea rcx, [rsp + 0x40]
call fcn.1400041d0
jmp 0x140088430
mov rax, r14
nop word [rax + rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x140088410
jmp 0x14008841f
mov eax, r15d
mov r8d, eax
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140004e60
nop
mov rdi, qword [rsp + 0x40]
mov rax, rdi
sub rbx, rdi
nop dword [rax + rax]
movzx ecx, word [rax]
cmp cx, word [rax + rbx]
jne 0x140088457
add rax, 2
test cx, cx
jne 0x140088440
mov eax, r15d
jmp 0x14008845c
sbb eax, eax
or eax, 1
test eax, eax
je 0x1400885fe
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rsi, [rsi + rcx*2]
add rsi, 2
lea rdx, [rdi - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14008849c
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rbx, qword [rsp + 0x30]
test eax, eax
jne 0x1400883c0
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400884d6
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
lea rbx, [0x1402a8360]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov byte [rsp + 0x68], al
mov rcx, qword [0x1402a8360]
cmp rcx, rbx
je 0x140088538
test byte [rcx + 0x1c], al
je 0x140088538
mov r9, r12
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x20
mov dword [rsp + 0x20], r15d
lea r8, [0x140258570]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
movzx eax, byte [rsp + 0x68]
mov rcx, qword [0x1402a8360]
lea rdx, vtable.WppTrace.0
mov qword [rsp + 0x60], rdx
test al, al
jne 0x140088590
cmp rcx, rbx
je 0x140088590
test byte [rcx + 0x1c], 1
je 0x140088590
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
nop
mov rdx, qword [r13]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x1400885cb
lfence
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x1400136d6.0]
mov eax, r15d
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x2d0]
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 r15d, 1
mov rcx, qword [0x1402a8360]
lea rax, [0x1402a8360]
cmp rcx, rax
je 0x14008864a
test byte [rcx + 0x1c], 4
je 0x14008864a
mov r9, r12
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
lea edx, [r15 + 0x1e]
mov qword [rsp + 0x20], rdi
lea r8, [0x140258570]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
nop
lea rdx, [rdi - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14008866e
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
mov rbx, qword [rsp + 0x30]
jmp 0x1400884b2
mov ecx, 0x80004005
call fcn.140001470
int3
mov ecx, 0x80070057
call fcn.140001470
nop
mov ecx, 0x80004005
call fcn.140001470
int3