Function at 0x140027000
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push r12
push r13
push r14
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rax, qword [0x14009d438]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
xor r13d, r13d
mov qword [rsp + 0x60], rdx
mov dword [rcx], r13d
mov rsi, r8
mov qword [rsp + 0x58], rcx
xor r8d, r8d
mov dword [rdx], r13d
lea rcx, [0x140076b20]
lea r9d, [r13 + 0x12]
mov dword [rsp + 0x40], r13d
xor edx, edx
mov dword [rbp + 0x1e0], 8
mov r12d, r13d
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14002707d
mov dword [rsi], 0xffffd8f1
xor eax, eax
jmp 0x14002755e
mov qword [rsp + 0x558], rbx
lea rax, [rbp - 0x58]
mov qword [rsp + 0x508], rdi
lea r8, [0x140076b20]
mov qword [rsp + 0x500], r15
xor r9d, r9d
xor edx, edx
mov dword [rbp - 0x58], 0x20
mov rcx, r14
mov qword [rbp - 0x40], r13
mov r15d, r13d
mov dword [rbp - 0x78], 0x20
mov edi, r13d
mov qword [rbp - 0x60], r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x140027182
mov r12d, 1
nop dword [rax]
lea r9, [rbp - 0x78]
mov rcx, r14
lea r8, [0x1400762a0]
mov ebx, r13d
lea rdx, [rbp - 0x58]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceAlias]
test eax, eax
je 0x14002710c
cmp dword [rbp - 0x64], ebx
je 0x14002710c
test byte [rbp - 0x64], 4
cmove ebx, r12d
lea r9, [rbp - 0x78]
mov rcx, r14
lea r8, [0x140076250]
lea rdx, [rbp - 0x58]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceAlias]
test eax, eax
je 0x140027136
mov eax, dword [rbp - 0x64]
test eax, eax
je 0x140027136
test al, 4
jne 0x140027136
or ebx, 2
lea eax, [rdi + 1]
mov dword [rbp - 0x58], 0x20
test ebx, ebx
mov qword [rbp - 0x40], r13
lea r8, [0x140076b20]
mov dword [rbp - 0x78], 0x20
cmovne eax, edi
mov qword [rbp - 0x60], r13
mov edi, eax
inc r15d
lea rax, [rbp - 0x58]
mov r9d, r15d
xor edx, edx
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x1400270e0
mov r12d, r13d
sub r15d, edi
lea ecx, [r15*8]
call fcn.14001e890
mov qword [rsp + 0x50], rax
mov rbx, rax
test rax, rax
jne 0x1400271ba
test r14, r14
je 0x1400271ad
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov dword [rsi], 0xffffd8f8
xor eax, eax
jmp 0x140027546
xor edi, edi
mov dword [rbp - 0x58], 0x20
lea rax, [rbp - 0x58]
mov qword [rbp - 0x40], rdi
xor r9d, r9d
mov qword [rbp - 0x60], rdi
lea r8, [0x140076b20]
mov qword [rbp - 0x80], rdi
xor edx, edx
mov qword [rsp + 0x20], rax
mov rcx, r14
mov dword [rbp - 0x78], 0x20
mov dword [rsp + 0x68], 0x20
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x140027525
mov r12, rbx
nop word [rax + rax]
lea r9, [rbp - 0x78]
mov rcx, r14
lea r8, [0x1400762a0]
mov ebx, edi
lea rdx, [rbp - 0x58]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceAlias]
test eax, eax
je 0x140027240
cmp dword [rbp - 0x64], 0
je 0x140027240
test byte [rbp - 0x64], 4
mov eax, 1
cmove ebx, eax
lea r9, [rbp - 0x78]
mov rcx, r14
lea r8, [0x140076250]
lea rdx, [rbp - 0x58]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceAlias]
test eax, eax
je 0x14002726a
mov eax, dword [rbp - 0x64]
test eax, eax
je 0x14002726a
test al, 4
jne 0x14002726a
or ebx, 2
test ebx, ebx
je 0x1400274d0
lea r9, [rbp - 0x78]
mov rcx, r14
lea r8, [0x140076b40]
lea rdx, [rbp - 0x58]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceAlias]
mov ebx, 1
lea r8, [rbp + 0x1e0]
test eax, eax
lea rdx, [rbp - 0x58]
mov eax, 2
mov esi, ebx
cmovne esi, eax
mov r9d, 0x210
lea rax, [rsp + 0x68]
mov rcx, r14
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x1400274d0
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x208
call fcn.14003f2c0
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x44], 0x208
call fcn.140028600
test eax, eax
je 0x140027344
lea r8d, [rbx + 7]
lea rdx, str._USB
lea rcx, [rbp + 0x1e4]
call fcn.14004c27c
test eax, eax
jne 0x140027344
mov qword [rsp + 0x30], rdi
lea rax, [rbp - 0x30]
mov dword [rsp + 0x28], 0x208
lea r9, [rsp + 0x4c]
lea r8d, [rbx + 0xc]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x140027344
mov word [rbp - 0x30], di
jmp 0x140027365
cmp word [rbp - 0x30], 0
je 0x140027365
mov r8d, 0xa
lea rdx, str.USB_Audio
lea rcx, [rbp - 0x30]
call fcn.14004c27c
test eax, eax
jne 0x1400273bf
mov r9d, ebx
lea rdx, [rbp - 0x58]
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDeviceInterfaceRegKey]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400273bf
lea rax, [rsp + 0x44]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x4c]
lea rax, [rbp - 0x30]
mov rcx, rbx
lea rdx, str.FriendlyName
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400273bb
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400273bf
mov word [rbp - 0x30], di
movzx ecx, word [rbp - 0x30]
lea rdi, [rbp - 0x30]
mov ebx, dword [rsp + 0x44]
mov edx, 8
call fcn.14004c414
test eax, eax
je 0x1400273f6
nop dword [rax]
movzx ecx, word [rdi + 2]
add rdi, 2
mov edx, 8
call fcn.14004c414
test eax, eax
jne 0x1400273e0
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x140027400
cmp rbx, rax
cmovb rax, rbx
lea rbx, [rax - 1]
lea rbx, [rdi + rbx*2]
cmp rbx, rdi
jbe 0x14002743a
nop
movzx ecx, word [rbx]
mov edx, 8
call fcn.14004c414
test eax, eax
je 0x14002743a
sub rbx, 2
cmp rbx, rdi
ja 0x140027420
sub rbx, rdi
lea rcx, [rbp - 0x30]
add rbx, 2
mov rdx, rdi
sar rbx, 1
add rbx, rbx
mov r8, rbx
call fcn.14003e4f0
mov edx, dword [rsp + 0x7c]
lea rax, [rsp + 0x48]
xor edi, edi
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
mov word [rbp + rbx - 0x30], di
lea r8, [rbp + 0x1e4]
mov ecx, esi
call fcn.140027d20
mov r10, rax
cmp dword [rsp + 0x48], edi
jne 0x1400274cd
movsxd r8, dword [rax + 0x430]
mov r9d, edi
test r8, r8
jle 0x1400274be
mov rcx, qword [rax + 0x438]
lea r11d, [rdi + 1]
mov rdx, qword [rcx]
test rdx, rdx
je 0x1400274b5
mov eax, dword [rdx + 0x10]
cmp eax, r11d
cmovb eax, r11d
add r9d, eax
add rcx, 8
sub r8, r11
jne 0x1400274a0
add dword [rsp + 0x40], r9d
mov qword [r12], r10
add r12, 8
jmp 0x1400274d0
dec r15d
lea rax, [rbp - 0x58]
mov dword [rbp - 0x58], 0x20
inc r13d
mov qword [rbp - 0x40], rdi
mov r9d, r13d
mov dword [rbp - 0x78], 0x20
lea r8, [0x140076b20]
mov qword [rbp - 0x60], rdi
xor edx, edx
mov dword [rsp + 0x68], 0x20
mov rcx, r14
mov qword [rbp - 0x80], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x140027210
mov r12d, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
test r14, r14
je 0x140027533
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rax, qword [rsp + 0x58]
mov dword [rax], r15d
mov rax, qword [rsp + 0x60]
mov dword [rax], r12d
mov rax, rbx
mov rdi, qword [rsp + 0x508]
mov rbx, qword [rsp + 0x558]
mov r15, qword [rsp + 0x500]
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.14003ca20
add rsp, 0x510
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret