Function at 0x1400410c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push r12
push r13
sub rsp, 0x8d0
mov rax, qword [0x1400840b0]
xor rax, rsp
mov qword [rsp + 0x8c0], rax
mov rsi, rcx
mov ebx, r8d
mov rbp, rdx
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x140
mov r12, r9
xor r13d, r13d
call fcn.14004a070
lea r8, [rsp + 0x50]
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x50], 0x140
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstallParamsA]
test eax, eax
je 0x1400414d2
xor r9d, r9d
mov rdx, rbp
mov rcx, rsi
lea r8d, [r9 + 1]
mov dword [rsp + 0x28], 0x20019
mov qword [rsp + 0x910], rdi
mov dword [rsp + 0x20], 2
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x14004115f
or rcx, rax
jmp 0x1400414c2
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x44]
lea rdx, str.InfPath
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x8c]
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400414bf
cmp dword [rsp + 0x44], 1
jne 0x1400414bf
test ebx, ebx
je 0x1400411fa
cmp dword [rsp + 0x40], 3
jb 0x1400414bf
movsx ecx, byte [rsp + 0x8c]
call fcn.140054600
cmp eax, 0x4f
jne 0x1400414bf
movsx ecx, byte [rsp + 0x8d]
call fcn.140054600
cmp eax, 0x45
jne 0x1400414bf
movsx ecx, byte [rsp + 0x8e]
call fcn.140054600
cmp eax, 0x4d
jne 0x1400414bf
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x44]
lea rdx, str.ProviderName
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4c0]
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400414bf
cmp dword [rsp + 0x44], 1
jne 0x1400414bf
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x44]
lea rdx, str.InfSection
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x7c0]
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400414bf
cmp dword [rsp + 0x44], 1
jne 0x1400414bf
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x44]
lea rdx, str.DriverDesc
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6c0]
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400414c8
cmp dword [rsp + 0x44], 1
jne 0x1400414c8
lea rax, [rsp + 0x5c0]
mov qword [rsp + 0x30], r13
lea r8d, [rbx + 0xb]
xor r9d, r9d
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
je 0x1400414c8
bts dword [rsp + 0x54], 0x10
bts dword [rsp + 0x58], 0xb
lea r8, [rsp + 0x50]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceInstallParamsA]
test eax, eax
je 0x1400414c8
lea r8d, [rbx + 1]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
je 0x1400414c8
xor r9d, r9d
mov rdx, rbp
mov rcx, rsi
lea r8d, [r9 + 1]
mov ebx, r13d
mov qword [rsp + 0x20], r12
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoA]
test eax, eax
je 0x14004149d
lea rdi, [r12 + 0x110]
lea r8, [rsp + 0x5c0]
mov rax, rdi
sub r8, rdi
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400413a4
add rax, 1
test ecx, ecx
jne 0x140041390
test edx, edx
jne 0x140041478
lea rax, [r12 + 0x210]
lea r8, [rsp + 0x4c0]
sub r8, rax
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400413d4
add rax, 1
test ecx, ecx
jne 0x1400413c0
test edx, edx
jne 0x140041478
lea r9, [rsp + 0x190]
mov r8, r12
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x190], 0x328
mov dword [rsp + 0x20], 0x328
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDriverInfoDetailA]
test eax, eax
jne 0x14004141a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140041478
lea rax, [rsp + 0x1b0]
lea r8, [rsp + 0x7c0]
sub r8, rax
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140041444
add rax, 1
test ecx, ecx
jne 0x140041430
test edx, edx
jne 0x140041478
lea rax, [rsp + 0x3b4]
lea r8, [rsp + 0x6c0]
sub r8, rax
nop
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140041474
add rax, 1
test ecx, ecx
jne 0x140041460
test edx, edx
je 0x1400414b4
add ebx, 1
mov r8d, 1
mov rdx, rbp
mov rcx, rsi
mov r9d, ebx
mov qword [rsp + 0x20], r12
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoA]
test eax, eax
jne 0x140041380
mov r8d, 1
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDriverInfoList]
mov eax, r13d
jmp 0x1400414ca
mov r13d, 1
mov eax, r13d
jmp 0x1400414ca
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rdi, qword [rsp + 0x910]
mov rcx, qword [rsp + 0x8c0]
xor rcx, rsp
call fcn.140048c00
add rsp, 0x8d0
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret