Function at 0x10000a574
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2f8
mov rax, qword [0x100019110]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
xor r14d, r14d
mov r15, r9
mov r13d, r8d
mov r12, rdx
mov rbp, rcx
mov ebx, r14d
call qword [sym.imp.SETUPAPI.dll_SetupGetThreadLogToken]
lea r8d, [r14 + 0x38]
lea rcx, [rsp + 0x50]
xor edx, edx
mov dword [rsp + 0x40], r14d
mov rsi, rax
call sub.msvcrt.dll_memset
mov edi, 0x1000000
lea r9, [0x1000033a8]
lea r8d, [r14 + 4]
mov edx, edi
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupWriteTextLog]
lea r9, [0x1000033c8]
lea r8d, [r14 + 4]
mov edx, edi
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupWriteTextLog]
lea r8, [rsp + 0x90]
mov rdx, r12
mov rcx, rbp
mov dword [rsp + 0x90], 0x248
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstallParamsW]
cmp eax, r14d
jne 0x10000a62a
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
jmp 0x10000a958
or dword [rsp + 0x98], 0x40800
lea r8, [rsp + 0x90]
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceInstallParamsW]
cmp eax, r14d
je 0x10000a61f
lea rcx, [rsp + 0x40]
call fcn.10000c16c
mov edi, dword [rsp + 0x40]
test r13b, 0x20
cmovne edi, r14d
cmp edi, 1
jne 0x10000a6da
mov dword [rsp + 0x38], r14d
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
lea r8, [0x100002140]
mov rdx, r12
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDevicePropertyW]
cmp eax, r14d
je 0x10000a6e3
cmp dword [rsp + 0x40], 7
jne 0x10000a6e3
cmp dword [rsp + 0x48], 4
jne 0x10000a6e3
test byte [rsp + 0x44], 0x20
je 0x10000a6e3
mov edi, 2
lea r9, [0x1000033e8]
mov edx, 0x1000000
lea r8d, [rdi + 2]
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupWriteTextLog]
cmp edi, r14d
je 0x10000a94a
mov rdx, r12
mov rcx, rbp
call fcn.10000c38c
cmp eax, r14d
je 0x10000a711
lea r9, [0x100003430]
mov edx, 0x1000000
mov r8d, 4
mov rcx, rsi
mov edi, r14d
call qword [sym.imp.SETUPAPI.dll_SetupWriteTextLog]
cmp edi, r14d
je 0x10000a94a
sub edi, 1
je 0x10000a839
cmp edi, 1
je 0x10000a73a
lea r9, [0x100003598]
mov r8d, 1
jmp 0x10000a86b
mov r8d, r13d
mov rdx, r12
mov rcx, rbp
call fcn.10000a15c
mov ebx, eax
cmp eax, r14d
je 0x10000a95a
call fcn.10000c28c
mov qword [0x1000197e0], rax
cmp rax, r14
je 0x10000a80d
lea rdx, [0x1000034d0]
mov rcx, rax
call qword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_GetProcAddress]
mov rcx, qword [0x1000197e0]
lea rdx, [0x1000034e0]
mov r14, rax
call qword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_GetProcAddress]
mov rdi, rax
test r14, r14
je 0x10000a7de
test rax, rax
je 0x10000a7de
call r14
xor r14d, r14d
cmp eax, r14d
jl 0x10000a95a
call rdi
cmp eax, r14d
je 0x10000a7d2
lea rax, [rsp + 0x50]
mov r9, r15
mov r8d, r13d
mov rdx, r12
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.100009b00
jmp 0x10000a958
lea r9, [0x100003538]
jmp 0x10000a865
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
lea r9, [0x1000034f0]
mov edx, 0x1000000
mov r8d, 2
mov rcx, rsi
mov ebx, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.SETUPAPI.dll_SetupWriteTextLog]
xor r14d, r14d
jmp 0x10000a95a
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
lea r9, [0x100003570]
mov edx, 0x1000000
mov r8d, 2
mov rcx, rsi
mov ebx, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.SETUPAPI.dll_SetupWriteTextLog]
jmp 0x10000a95a
mov r8d, r13d
mov rdx, r12
mov rcx, rbp
bts r8d, 7
call fcn.10000a15c
mov rdx, r12
mov rcx, rbp
mov ebx, eax
call fcn.10000a2ec
cmp eax, r14d
je 0x10000a87e
lea r9, [0x100003480]
mov r8d, 4
mov edx, 0x1000000
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupWriteTextLog]
jmp 0x10000a95a
call fcn.10000c28c
mov qword [0x1000197e0], rax
cmp rax, r14
je 0x10000a925
lea rdx, [0x1000034d0]
mov rcx, rax
call qword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_GetProcAddress]
mov rcx, qword [0x1000197e0]
lea rdx, [0x1000034e0]
mov rdi, rax
call qword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_GetProcAddress]
mov rbx, rax
cmp rdi, r14
je 0x10000a916
cmp rax, r14
je 0x10000a916
call rdi
cmp eax, r14d
jl 0x10000a94a
call rbx
cmp eax, r14d
je 0x10000a8f9
lea rax, [rsp + 0x50]
mov r9, r15
mov r8d, r13d
mov rdx, r12
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.100009b00
mov ebx, eax
cmp eax, r14d
je 0x10000a95a
jmp 0x10000a94a
lea r9, [0x100003538]
mov edx, 0x1000000
mov r8d, 4
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupWriteTextLog]
jmp 0x10000a94a
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
lea r9, [0x1000034f0]
jmp 0x10000a932
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
lea r9, [0x100003570]
mov r8d, 2
mov edx, 0x1000000
mov rcx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.SETUPAPI.dll_SetupWriteTextLog]
mov r8d, r13d
mov rdx, r12
mov rcx, rbp
call fcn.10000a15c
mov ebx, eax
mov rcx, qword [0x1000197e0]
lea rdx, [0x1000035d0]
call qword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_GetProcAddress]
cmp rax, r14
je 0x10000a97a
lea rcx, [rsp + 0x50]
call rax
mov eax, ebx
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.100014800
add rsp, 0x2f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret