Function at 0x140027120
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.14003eca0
mov r13d, r14d
lea edi, [r14 - 1]
cmp qword [r15 + 0x70], r14
je 0x140027203
call fcn.140008400
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.14005e670
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 0x1400271d7
mov rcx, r12
call fcn.1400df720
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140027203
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400271f9
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140027203
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [r15], r13
mov r12, r14
cmp qword [r15 + 0x70], r14
je 0x1400272a8
call fcn.140008400
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.SetupDiDestroyDeviceInfoList
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.14005e670
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 0x14002727c
mov rcx, r13
call fcn.1400df720
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400272a8
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14002729e
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400272a8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [r15 + 8], r12
mov r12, r14
cmp qword [r15 + 0x70], r14
je 0x14002734e
call fcn.140008400
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.SetupDiEnumDeviceInfo
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.14005e670
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 0x140027322
mov rcx, r13
call fcn.1400df720
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14002734e
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140027344
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002734e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [r15 + 0x10], r12
mov r12, r14
cmp qword [r15 + 0x70], r14
je 0x1400273f2
call fcn.140008400
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.14005e670
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 0x1400273c6
mov rcx, r13
call fcn.1400df720
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400273f2
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400273e8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400273f2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [r15 + 0x18], r12
mov r12, r14
cmp qword [r15 + 0x70], r14
je 0x140027496
call fcn.140008400
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.14005e670
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 0x14002746a
mov rcx, r13
call fcn.1400df720
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140027496
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14002748c
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140027496
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [r15 + 0x20], r12
mov r12, r14
cmp qword [r15 + 0x70], r14
je 0x14002753a
call fcn.140008400
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.SetupDiGetDeviceRegistryPropertyW
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.14005e670
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 0x14002750e
mov rcx, r13
call fcn.1400df720
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14002753a
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140027530
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002753a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [r15 + 0x28], r12
mov r12, r14
cmp qword [r15 + 0x70], r14
je 0x1400275de
call fcn.140008400
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.14005e670
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 0x1400275b2
mov rcx, r13
call fcn.1400df720
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400275de
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400275d4
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400275de
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [r15 + 0x30], r12
mov r12, r14
cmp qword [r15 + 0x70], r14
je 0x140027682
call fcn.140008400
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.14005e670
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 0x140027656
mov rcx, r13
call fcn.1400df720
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140027682
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140027678
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140027682
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [r15 + 0x38], r12
mov r12, r14
cmp qword [r15 + 0x70], r14
je 0x140027726
call fcn.140008400
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.14005e670
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 0x1400276fa
mov rcx, r13
call fcn.1400df720
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140027726
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14002771c
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140027726
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [r15 + 0x40], r12
mov r12, r14
cmp qword [r15 + 0x70], r14
je 0x1400277ca
call fcn.140008400
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.14005e670
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 0x14002779e
mov rcx, r13
call fcn.1400df720
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400277ca
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400277c0
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400277ca
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [r15 + 0x48], r12
mov r12, r14
cmp qword [r15 + 0x70], r14
je 0x14002786e
call fcn.140008400
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.14005e670
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 0x140027842
mov rcx, r13
call fcn.1400df720
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14002786e
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140027864
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002786e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [r15 + 0x50], r12
mov r12, r14
cmp qword [r15 + 0x70], r14
je 0x140027911
call fcn.140008400
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.14005e670
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 0x1400278e5
mov rcx, r13
call fcn.1400df720
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140027911
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140027907
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140027911
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [r15 + 0x58], r12
mov r12, r14
cmp qword [r15 + 0x70], r14
je 0x1400279b4
call fcn.140008400
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.14005e670
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 0x140027988
mov rcx, r13
call fcn.1400df720
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400279b4
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400279aa
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400279b4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [r15 + 0x60], r12
cmp qword [r15 + 0x70], 0
je 0x140027a53
call fcn.140008400
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.14005e670
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 0x140027a29
mov rcx, r12
call fcn.1400df720
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140027a53
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140027a49
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140027a53
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
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