Function at 0x1400256e0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x88]
sub rsp, 0x188
mov r15, rcx
xor r14d, r14d
mov qword [rcx + 0x70], r14
xor r9d, r9d
lea rdx, str.setupapi.dll
add rcx, 0x70
call fcn.140029680
mov r13d, r14d
lea edi, [r14 - 1]
cmp qword [r15 + 0x70], r14
je 0x1400257c3
call fcn.140002000
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], r13b
mov byte [rsp + 0x20], r13b
mov r9d, edi
mov r8d, edi
lea rdx, str.SetupDiGetClassDevsW
mov rcx, rax
call qword [r10 + 0x28]
mov rbx, rax
mov qword [rbp + 0xd8], rax
mov dword [rbp - 0x60], 1
mov qword [rbp - 0x68], r14
mov rcx, rax
call fcn.140045730
mov r12, rax
mov rdx, rax
mov rcx, qword [r15 + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
test r12, r12
je 0x140025797
mov rcx, r12
call fcn.14008d9d8
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400257c3
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400257b9
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400257c3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov qword [r15], r13
mov r12, r14
cmp qword [r15 + 0x70], r14
je 0x140025868
call fcn.140002000
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], r12b
mov byte [rsp + 0x20], r12b
mov r9d, edi
mov r8d, edi
lea rdx, [0x1400c9970]
mov rcx, rax
call qword [r10 + 0x28]
mov rbx, rax
mov qword [rbp + 0xe0], rax
mov dword [rbp - 0x50], 1
mov qword [rbp - 0x58], r14
mov rcx, rax
call fcn.140045730
mov r13, rax
mov rdx, rax
mov rcx, qword [r15 + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test r13, r13
je 0x14002583c
mov rcx, r13
call fcn.14008d9d8
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140025868
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14002585e
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140025868
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov qword [r15 + 8], r12
mov r12, r14
cmp qword [r15 + 0x70], r14
je 0x14002590e
call fcn.140002000
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], r12b
mov byte [rsp + 0x20], r12b
mov r9d, edi
mov r8d, edi
lea rdx, [0x1400c99b0]
mov rcx, rax
call qword [r10 + 0x28]
mov rbx, rax
mov qword [rbp + 0xe8], rax
mov dword [rbp - 0x40], 1
mov qword [rbp - 0x48], r14
mov rcx, rax
call fcn.140045730
mov r13, rax
mov rdx, rax
mov rcx, qword [r15 + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test r13, r13
je 0x1400258e2
mov rcx, r13
call fcn.14008d9d8
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14002590e
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140025904
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002590e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov qword [r15 + 0x10], r12
mov r12, r14
cmp qword [r15 + 0x70], r14
je 0x1400259b2
call fcn.140002000
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], r12b
mov byte [rsp + 0x20], r12b
mov r9d, edi
mov r8d, edi
lea rdx, str.SetupDiEnumDeviceInterfaces
mov rcx, rax
call qword [r10 + 0x28]
mov rbx, rax
mov qword [rsp + 0x40], rax
mov dword [rbp - 0x30], 1
mov qword [rbp - 0x38], r14
mov rcx, rax
call fcn.140045730
mov r13, rax
mov rdx, rax
mov rcx, qword [r15 + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test r13, r13
je 0x140025986
mov rcx, r13
call fcn.14008d9d8
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400259b2
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400259a8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400259b2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov qword [r15 + 0x18], r12
mov r12, r14
cmp qword [r15 + 0x70], r14
je 0x140025a56
call fcn.140002000
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], r12b
mov byte [rsp + 0x20], r12b
mov r9d, edi
mov r8d, edi
lea rdx, str.SetupDiGetDeviceInterfaceDetailW
mov rcx, rax
call qword [r10 + 0x28]
mov rbx, rax
mov qword [rsp + 0x48], rax
mov dword [rbp - 0x20], 1
mov qword [rbp - 0x28], r14
mov rcx, rax
call fcn.140045730
mov r13, rax
mov rdx, rax
mov rcx, qword [r15 + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test r13, r13
je 0x140025a2a
mov rcx, r13
call fcn.14008d9d8
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140025a56
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140025a4c
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140025a56
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov qword [r15 + 0x20], r12
mov r12, r14
cmp qword [r15 + 0x70], r14
je 0x140025afa
call fcn.140002000
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], r12b
mov byte [rsp + 0x20], r12b
mov r9d, edi
mov r8d, edi
lea rdx, [0x1400c9a70]
mov rcx, rax
call qword [r10 + 0x28]
mov rbx, rax
mov qword [rsp + 0x50], rax
mov dword [rbp - 0x10], 1
mov qword [rbp - 0x18], r14
mov rcx, rax
call fcn.140045730
mov r13, rax
mov rdx, rax
mov rcx, qword [r15 + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test r13, r13
je 0x140025ace
mov rcx, r13
call fcn.14008d9d8
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140025afa
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140025af0
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140025afa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov qword [r15 + 0x28], r12
mov r12, r14
cmp qword [r15 + 0x70], r14
je 0x140025b9e
call fcn.140002000
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], r12b
mov byte [rsp + 0x20], r12b
mov r9d, edi
mov r8d, edi
lea rdx, str.SetupDiGetDeviceInterfaceAlias
mov rcx, rax
call qword [r10 + 0x28]
mov rbx, rax
mov qword [rsp + 0x58], rax
mov dword [rbp], 1
mov qword [rbp - 8], r14
mov rcx, rax
call fcn.140045730
mov r13, rax
mov rdx, rax
mov rcx, qword [r15 + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test r13, r13
je 0x140025b72
mov rcx, r13
call fcn.14008d9d8
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140025b9e
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140025b94
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140025b9e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov qword [r15 + 0x30], r12
mov r12, r14
cmp qword [r15 + 0x70], r14
je 0x140025c42
call fcn.140002000
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], r12b
mov byte [rsp + 0x20], r12b
mov r9d, edi
mov r8d, edi
lea rdx, str.SetupDiOpenDeviceInterfaceRegKey
mov rcx, rax
call qword [r10 + 0x28]
mov rbx, rax
mov qword [rsp + 0x60], rax
mov dword [rbp + 0x10], 1
mov qword [rbp + 8], r14
mov rcx, rax
call fcn.140045730
mov r13, rax
mov rdx, rax
mov rcx, qword [r15 + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test r13, r13
je 0x140025c16
mov rcx, r13
call fcn.14008d9d8
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140025c42
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140025c38
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140025c42
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov qword [r15 + 0x38], r12
mov r12, r14
cmp qword [r15 + 0x70], r14
je 0x140025ce6
call fcn.140002000
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], r12b
mov byte [rsp + 0x20], r12b
mov r9d, edi
mov r8d, edi
lea rdx, str.CM_Request_Device_EjectW
mov rcx, rax
call qword [r10 + 0x28]
mov rbx, rax
mov qword [rsp + 0x68], rax
mov dword [rbp + 0x20], 1
mov qword [rbp + 0x18], r14
mov rcx, rax
call fcn.140045730
mov r13, rax
mov rdx, rax
mov rcx, qword [r15 + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test r13, r13
je 0x140025cba
mov rcx, r13
call fcn.14008d9d8
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140025ce6
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140025cdc
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140025ce6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov qword [r15 + 0x40], r12
mov r12, r14
cmp qword [r15 + 0x70], r14
je 0x140025d8a
call fcn.140002000
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], r12b
mov byte [rsp + 0x20], r12b
mov r9d, edi
mov r8d, edi
lea rdx, str.CM_Get_Parent
mov rcx, rax
call qword [r10 + 0x28]
mov rbx, rax
mov qword [rsp + 0x70], rax
mov dword [rbp + 0x30], 1
mov qword [rbp + 0x28], r14
mov rcx, rax
call fcn.140045730
mov r13, rax
mov rdx, rax
mov rcx, qword [r15 + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test r13, r13
je 0x140025d5e
mov rcx, r13
call fcn.14008d9d8
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140025d8a
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140025d80
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140025d8a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov qword [r15 + 0x48], r12
mov r12, r14
cmp qword [r15 + 0x70], r14
je 0x140025e2e
call fcn.140002000
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], r12b
mov byte [rsp + 0x20], r12b
mov r9d, edi
mov r8d, edi
lea rdx, str.CM_Get_Parent_Ex
mov rcx, rax
call qword [r10 + 0x28]
mov rbx, rax
mov qword [rsp + 0x78], rax
mov dword [rbp + 0x40], 1
mov qword [rbp + 0x38], r14
mov rcx, rax
call fcn.140045730
mov r13, rax
mov rdx, rax
mov rcx, qword [r15 + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test r13, r13
je 0x140025e02
mov rcx, r13
call fcn.14008d9d8
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140025e2e
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140025e24
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140025e2e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov qword [r15 + 0x50], r12
mov r12, r14
cmp qword [r15 + 0x70], r14
je 0x140025ed1
call fcn.140002000
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], r12b
mov byte [rsp + 0x20], r12b
mov r9d, edi
mov r8d, edi
lea rdx, str.CM_Get_Device_ID_Size
mov rcx, rax
call qword [r10 + 0x28]
mov rbx, rax
mov qword [rbp - 0x80], rax
mov dword [rbp + 0x50], 1
mov qword [rbp + 0x48], r14
mov rcx, rax
call fcn.140045730
mov r13, rax
mov rdx, rax
mov rcx, qword [r15 + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test r13, r13
je 0x140025ea5
mov rcx, r13
call fcn.14008d9d8
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140025ed1
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140025ec7
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140025ed1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov qword [r15 + 0x58], r12
mov r12, r14
cmp qword [r15 + 0x70], r14
je 0x140025f74
call fcn.140002000
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], r12b
mov byte [rsp + 0x20], r12b
mov r9d, edi
mov r8d, edi
lea rdx, str.CM_Get_Device_IDW
mov rcx, rax
call qword [r10 + 0x28]
mov rbx, rax
mov qword [rbp - 0x78], rax
mov dword [rbp + 0x60], 1
mov qword [rbp + 0x58], r14
mov rcx, rax
call fcn.140045730
mov r13, rax
mov rdx, rax
mov rcx, qword [r15 + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test r13, r13
je 0x140025f48
mov rcx, r13
call fcn.14008d9d8
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140025f74
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140025f6a
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140025f74
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov qword [r15 + 0x60], r12
cmp qword [r15 + 0x70], 0
je 0x140026013
call fcn.140002000
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, edi
mov r8d, edi
lea rdx, str.CM_Open_DevNode_Key
mov rcx, rax
call qword [r10 + 0x28]
mov rbx, rax
mov qword [rbp - 0x70], rax
mov dword [rbp + 0x70], 1
mov qword [rbp + 0x68], r14
mov rcx, rax
call fcn.140045730
mov r12, rax
mov rdx, rax
mov rcx, qword [r15 + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test r12, r12
je 0x140025fe9
mov rcx, r12
call fcn.14008d9d8
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140026013
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140026009
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140026013
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov qword [r15 + 0x68], r14
mov rax, r15
add rsp, 0x188
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret