Function at 0x140022d90
Capabilities:
Enumerate files on windows

Disassembly:
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2350
call fcn.1400dbd60
sub rsp, rax
mov qword [rsp + 0x118], 0xfffffffffffffffe
mov qword [rsp + 0x2388], rbx
mov qword [rsp + 0x2390], rbp
mov qword [rsp + 0x2398], rsi
mov rax, qword [0x1401216d8]
xor rax, rsp
mov qword [rsp + 0x2340], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
call fcn.14004b0d0
mov rdx, rax
xor ebp, ebp
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x140022e06
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0xb8], rax
lea rsi, str.FUNC_01VEN_10EC
mov rdi, rsi
shr rdi, 0x10
jne 0x140022e54
movzx ebx, si
mov ecx, ebx
call fcn.14004aef8
test rax, rax
je 0x140022e66
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.140005b70
mov rbx, qword [rsp + 0x40]
jmp 0x140022e6b
mov rdx, rsi
lea rcx, [rsp + 0xb8]
call fcn.140005ff0
jmp 0x140022e6b
mov rbx, qword [rsp + 0x40]
call fcn.14004b0d0
mov rdx, rax
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x140022e8a
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0xa8], rax
test rdi, rdi
jne 0x140022ec8
movzx edi, si
mov ecx, edi
call fcn.14004aef8
test rax, rax
je 0x140022ed9
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.140005b70
jmp 0x140022ed9
mov rdx, rsi
lea rcx, [rsp + 0xa8]
call fcn.140005ff0
nop
mov word [rsp + 0x8f0], 0
xor edx, edx
mov r8d, 0x3fe
lea rcx, [rsp + 0x8f2]
call fcn.140091a50
mov word [rsp + 0x1f40], 0
xor edx, edx
mov r8d, 0x3fe
lea rcx, [rsp + 0x1f42]
call fcn.140091a50
mov word [rsp + 0x1b40], 0
xor edx, edx
mov r8d, 0x3fe
lea rcx, [rsp + 0x1b42]
call fcn.140091a50
call fcn.14004b0d0
mov rdx, rax
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x140022f55
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0xd0], rax
lea rdx, [0x1400debf8]
or r14, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x140022fa2
movzx edi, dx
mov ecx, edi
call fcn.14004aef8
test rax, rax
je 0x140022fc2
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0xd0]
call fcn.140005b70
jmp 0x140022fc2
xor eax, eax
mov rcx, r14
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0xd0]
call fcn.140005dc0
nop
mov dword [rsp + 0x80], ebp
mov dword [rsp + 0x60], ebp
mov r12d, ebp
mov dword [rsp + 0x64], ebp
mov r13d, ebp
call fcn.14004b0d0
mov rdx, rax
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x140022ff6
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0xd8], rax
call fcn.14004b0d0
mov rdx, rax
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x14002302a
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x48], rax
call fcn.14004b0d0
mov rdx, rax
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x14002305b
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea rax, [0x1400deee8]
test rax, 0xffffffffffff0000
jne 0x14002309d
movzx edi, ax
mov ecx, edi
call fcn.14004aef8
test rax, rax
je 0x1400230ab
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140005b70
jmp 0x1400230ab
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140005ff0
nop
mov dword [rsp + 0xb0], ebp
mov r15d, ebp
mov dword [rsp + 0x78], ebp
call fcn.14004b0d0
mov rdx, rax
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x1400230d8
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rdi, [fcn.1400011a0]
mov qword [rsp + 0x20], rdi
lea r9, [0x140004ac0]
mov edx, 8
lea r8d, [rdx + 0x5c]
lea rcx, [rsp + 0x140]
call fcn.1400928a0
nop
lea rcx, [rsp + 0x140]
call fcn.140006c70
nop
mov dword [rsp + 0x68], ebp
lea rdx, [rsp + 0x108]
mov rcx, rbx
call fcn.140010970
nop
lea r8, [0x1400df4f0]
mov rdx, rax
lea rcx, [rsp + 0xf0]
call fcn.140006760
mov r8, qword [rax]
mov edx, 0x200
lea rcx, [rsp + 0x1110]
call fcn.1400921b0
mov rdx, qword [rsp + 0xf0]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140023188
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x108]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400231ac
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x490]
call fcn.140091a50
lea r8, [rsp + 0x1110]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.1400921b0
mov r8, qword [0x140123328]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.140092260
lea r8, [0x1400e1318]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.140092260
lea rdx, [rsp + 0x490]
lea rcx, [rsp + 0x8f0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400250e9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r9d, 6
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x470], 0x20
mov dword [rsp + 0x7c], ebp
lea r8, [rsp + 0x470]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
mov ecx, 1
test eax, eax
je 0x14002464f
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
nop
nop
mov qword [rsp + 0x20], rbp
mov r9d, 0x104
lea r8, [rsp + 0xcf0]
lea rdx, [rsp + 0x470]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
lea rdx, str.HDAUDIO
lea rcx, [rsp + 0xcf0]
call fcn.140090770
test rax, rax
jne 0x1400232ef
lea rdx, str.INTELAUDIO
lea rcx, [rsp + 0xcf0]
call fcn.140090770
test rax, rax
je 0x1400245b3
lea rdx, str.HDAUDIO
lea rcx, [rsp + 0xcf0]
call fcn.140090770
mov edi, ebp
test rax, rax
mov eax, 1
cmovne edi, eax
lea rdx, str.INTELAUDIO
lea rcx, [rsp + 0xcf0]
call fcn.140090770
mov r12d, ebp
test rax, rax
mov eax, 1
cmovne r12d, eax
mov dword [rsp + 0xa0], r12d
mov eax, ebp
mov ecx, dword [0x1401232c8]
cmp ecx, 0x5a
mov edx, 5
cmovl eax, edx
add ecx, eax
mov dword [0x1401232c8], ecx
movsxd r8, ecx
xor r9d, r9d
mov edx, 0x402
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x3b060]
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140002180
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0xcf0]
call fcn.140090770
test rax, rax
je 0x1400245ae
lea r8, [rsp + 0xcf0]
mov edx, 0x104
lea rcx, [rsp + 0xf00]
call fcn.1400921b0
lea r8, [rsp + 0xcf0]
mov edx, 0x104
lea rcx, [rsp + 0x1720]
call fcn.1400921b0
test r12d, r12d
je 0x1400233e2
mov word [rsp + 0x179a], 0
jmp 0x1400233ec
mov word [rsp + 0x1794], 0
add r13d, 1
mov dword [rsp + 0x50], r13d
mov r13d, 1
mov dword [rsp + 0x64], r13d
test r12d, r12d
jne 0x140023608
test edi, edi
je 0x140023601
mov rdi, qword [rsp + 0x40]
cmp dword [rdi + 0x3b008], r12d
je 0x14002360d
lea r8, [rsp + 0xcf0]
mov edx, 0x104
lea rcx, [rsp + 0x1510]
call fcn.1400921b0
mov word [rsp + 0x1572], r12w
xor eax, eax
mov rcx, r14
lea rdi, [rsp + 0x1510]
repne scasw ax, word [rdi]
not rcx
sub rcx, r13
mov rdi, rcx
test ecx, ecx
jne 0x1400234c0
lea rdx, [rsi - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140023550
cmp dword [rdx + 0x10], eax
jge 0x14002348c
cmp dword [rsi - 0xc], eax
jl 0x1400245df
mov dword [rsi - 0x10], ebp
mov word [rsi], ax
jmp 0x140023550
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400234a4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x58], rax
mov rbx, qword [rsp + 0x48]
jmp 0x140023550
mov ebp, dword [rsi - 0x10]
lea r12, [rsp + 0x1510]
sub r12, rsi
sar r12, 1
mov ecx, r13d
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400234f1
mov edx, edi
lea rcx, [rsp + 0x58]
call fcn.140004650
mov rsi, qword [rsp + 0x58]
cmp r12, rbp
ja 0x140023511
movsxd rax, edi
lea rbp, [rax + rax]
lea r8, [rsi + r12*2]
mov r9, rbp
mov rdx, rbp
mov rcx, rsi
call fcn.1400908b0
jmp 0x14002352e
movsxd rax, edi
lea rbp, [rax + rax]
mov r9, rbp
lea r8, [rsp + 0x1510]
mov rdx, rbp
mov rcx, rsi
call fcn.1400907e0
test edi, edi
js 0x1400245f0
cmp edi, dword [rsi - 0xc]
jg 0x1400245f0
mov dword [rsi - 0x10], edi
mov word [rsi + rbp], 0
mov r12d, dword [rsp + 0xa0]
lea r8, str.INTELAUDIO
lea rdx, str.HDAUDIO
lea rcx, [rsp + 0x58]
call fcn.140006130
mov rsi, qword [rsp + 0x58]
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rsi - 8], 0
jl 0x14002359b
cmp rax, qword [rsi - 0x18]
jne 0x14002359b
lea rbp, [rsi - 0x18]
lock add dword [rsi - 8], r13d
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
jmp 0x1400235d7
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rsi - 0x10]
call qword [rax]
mov rbp, rax
test rax, rax
je 0x1400245ea
mov ecx, dword [rsi - 0x10]
mov dword [rax + 8], ecx
mov ecx, dword [rsi - 0x10]
add ecx, r13d
movsxd rdx, ecx
lea r9, [rdx + rdx]
mov r8, rsi
add rdx, rdx
lea rcx, [rax + 0x18]
call fcn.1400907e0
lea rax, [rbp + 0x18]
mov qword [rsp + 0xe0], rax
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x140]
call fcn.140007da0
xor ebp, ebp
mov rdi, qword [rsp + 0x40]
jmp 0x14002360d
mov rdi, qword [rsp + 0x40]
jmp 0x14002360d
mov rdi, qword [rsp + 0x40]
mov r15d, ebp
mov eax, ebp
mov ecx, dword [0x1401232c8]
cmp ecx, 0x5a
mov edx, 0xa
cmovl eax, edx
add ecx, eax
mov dword [0x1401232c8], ecx
movsxd r8, ecx
xor r9d, r9d
mov edx, 0x402
mov rcx, qword [rdi + 0x3b060]
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
mov rcx, rdi
call fcn.140002180
test r12d, r12d
je 0x14002365e
mov word [rsp + 0xf68], 0
jmp 0x140023668
mov word [rsp + 0xf62], 0
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x490]
call fcn.140091a50
lea r8, [rsp + 0x1110]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.1400921b0
mov r8, qword [0x140123328]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.140092260
lea r8, [0x1400e1318]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.140092260
lea rdx, [rsp + 0x490]
lea rcx, [rsp + 0x8f0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x1400239d9
nop
lea r8, [rsp + 0x1110]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.1400921b0
lea r8, [rsp + 0x4bc]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.140092260
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
lea rcx, [rsp + 0x8f0]
call qword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400239ae
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str.Manufacturer
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x1400239a5
mov qword [rsp + 0x20], rbp
mov r9d, 0x104
lea r8, [rsp + 0x6e0]
mov esi, 1
mov edx, esi
lea rcx, [rsp + 0x88]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x1400239a5
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x6e0]
mov rdx, r12
mov rcx, rdi
call fcn.140003650
test eax, eax
jne 0x1400237d4
mov dword [rsp + 0x68], esi
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x1400239b3
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, [rsp + 0x6e0]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x1400239a5
nop
nop
mov qword [rsp + 0x20], rbp
mov r9d, 0x104
lea r8, [rsp + 0x6e0]
mov edx, 2
lea rcx, [rsp + 0x88]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x140023956
xor eax, eax
mov rcx, r14
lea rdi, [rsp + 0x6e0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x1400238a4
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140023930
cmp dword [rdx + 0x10], eax
jge 0x140023875
cmp dword [rbx - 0xc], eax
jl 0x1400245fb
mov dword [rbx - 0x10], ebp
mov word [rbx], ax
jmp 0x140023930
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14002388d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
jmp 0x140023930
mov esi, dword [rbx - 0x10]
lea rbp, [rsp + 0x6e0]
sub rbp, rbx
sar rbp, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400238d7
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.140004650
mov rbx, qword [rsp + 0x48]
cmp rbp, rsi
ja 0x1400238f7
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + rbp*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.1400908b0
jmp 0x140023914
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [rsp + 0x6e0]
mov rdx, rsi
mov rcx, rbx
call fcn.1400907e0
test edi, edi
js 0x140024606
cmp edi, dword [rbx - 0xc]
jg 0x140024606
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
xor ebp, ebp
cmp dword [rbx - 0x10], 0
jl 0x140023956
lea rdx, [rsp + 0xf00]
mov rcx, rbx
call fcn.140090770
test rax, rax
je 0x140023956
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x140023975
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x88]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x1400239a0
jmp 0x140023800
mov dword [rsp + 0x68], ebp
lea r8, [rsp + 0x8f0]
mov edx, 0x200
lea rcx, [rsp + 0x1f40]
call fcn.1400921b0
mov r15d, 1
mov rdi, qword [rsp + 0x40]
jmp 0x1400239a5
mov rdi, qword [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
test r15d, r15d
jne 0x1400239cc
lea rdx, [rsp + 0x490]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400236f0
mov rsi, qword [rsp + 0x58]
mov r12d, dword [rsp + 0xa0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
test r15d, r15d
jne 0x140024187
test r12d, r12d
je 0x1400239fb
mov word [rsp + 0xf48], r15w
jmp 0x140023a05
mov word [rsp + 0xf42], 0
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x490]
call fcn.140091a50
lea r8, [rsp + 0x1110]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.1400921b0
mov r8, qword [0x140123328]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.140092260
lea r8, [0x1400e1318]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.140092260
lea rdx, [rsp + 0x490]
lea rcx, [rsp + 0x8f0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140023d8f
nop
nop
lea r8, [rsp + 0x1110]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.1400921b0
lea r8, [rsp + 0x4bc]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.140092260
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
lea rcx, [rsp + 0x8f0]
call qword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140023d67
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str.Manufacturer
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x140023d5e
mov qword [rsp + 0x20], rbp
mov r9d, 0x104
lea r8, [rsp + 0x6e0]
mov esi, 1
mov edx, esi
lea rcx, [rsp + 0x88]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x140023d5e
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x6e0]
mov rdx, r12
mov rcx, rdi
call fcn.140003650
test eax, eax
jne 0x140023b74
mov dword [rsp + 0x68], esi
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x140023d71
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, [rsp + 0x6e0]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x140023d5e
nop
nop
mov qword [rsp + 0x20], rbp
mov r9d, 0x104
lea r8, [rsp + 0x6e0]
mov edx, 2
lea rcx, [rsp + 0x88]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x140023d1b
xor eax, eax
mov rcx, r14
lea rdi, [rsp + 0x6e0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140023c44
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140023cd0
cmp dword [rdx + 0x10], eax
jge 0x140023c15
cmp dword [rbx - 0xc], eax
jl 0x140024611
mov dword [rbx - 0x10], ebp
mov word [rbx], ax
jmp 0x140023cd0
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140023c2d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
jmp 0x140023cd0
mov esi, dword [rbx - 0x10]
lea rbp, [rsp + 0x6e0]
sub rbp, rbx
sar rbp, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140023c77
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.140004650
mov rbx, qword [rsp + 0x48]
cmp rbp, rsi
ja 0x140023c97
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + rbp*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.1400908b0
jmp 0x140023cb4
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [rsp + 0x6e0]
mov rdx, rsi
mov rcx, rbx
call fcn.1400907e0
test edi, edi
js 0x14002461c
cmp edi, dword [rbx - 0xc]
jg 0x14002461c
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
xor ebp, ebp
cmp dword [rbx - 0x10], 0
jl 0x140023d1b
lea rdx, [rsp + 0xf00]
mov rcx, rbx
call fcn.140090770
test rax, rax
je 0x140023d1b
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x140023d1b
cmp dword [rbx - 0x10], 0
jl 0x140023d3a
lea rdx, [0x1400e0680]
mov rcx, rbx
call fcn.140090770
test rax, rax
je 0x140023d3a
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x140023d3a
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x88]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x140023d5e
jmp 0x140023ba0
mov dword [rsp + 0x68], ebp
lea r8, [rsp + 0x8f0]
mov edx, 0x200
lea rcx, [rsp + 0x1f40]
call fcn.1400921b0
mov r15d, 1
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
test r15d, r15d
jne 0x140023d8a
mov rdi, qword [rsp + 0x40]
lea rdx, [rsp + 0x490]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140023a90
mov rsi, qword [rsp + 0x58]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
test r15d, r15d
jne 0x140024187
lea r8, [rsp + 0x1110]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.1400921b0
call fcn.14004b0d0
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
je 0x14002463d
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0xc8], rax
lea rdi, str..inf
test rdi, 0xffffffffffff0000
jne 0x140023e19
movzx edi, di
mov ecx, edi
call fcn.14004aef8
test rax, rax
je 0x140023e2a
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0xc8]
call fcn.140005b70
jmp 0x140023e2a
mov rdx, rdi
lea rcx, [rsp + 0xc8]
call fcn.140005ff0
nop
lea r8, [rsp + 0xc8]
lea rdx, [0x140123328]
lea rcx, [rsp + 0x100]
call fcn.140006600
mov r8, qword [rax]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.140092260
mov rdx, qword [rsp + 0x100]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140023e80
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0xc8]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140023ea4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
lea rcx, [rsp + 0x8f0]
call qword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x14002415d
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str.Manufacturer
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x140024143
mov qword [rsp + 0x20], rbp
mov r9d, 0x104
lea r8, [rsp + 0x6e0]
mov r12d, 1
mov edx, r12d
lea rcx, [rsp + 0x88]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x140024143
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x6e0]
mov rdx, r13
mov rcx, qword [rsp + 0x40]
call fcn.140003650
test eax, eax
jne 0x140023f6d
mov dword [rsp + 0x68], r12d
mov rcx, r13
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov r13d, dword [rsp + 0x50]
mov r15d, dword [rsp + 0x78]
jmp 0x1400245b3
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, [rsp + 0x6e0]
mov rcx, r13
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x140024143
mov rsi, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0x48]
nop
mov qword [rsp + 0x20], rbp
mov r9d, 0x104
lea r8, [rsp + 0x6e0]
mov edx, 2
lea rcx, [rsp + 0x88]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x1400240fe
xor eax, eax
mov rcx, r14
lea rdi, [rsp + 0x6e0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x14002404c
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x1400240d8
cmp dword [rdx + 0x10], eax
jge 0x140024015
cmp dword [rbx - 0xc], eax
jl 0x140024627
mov dword [rbx - 0x10], ebp
mov word [rbx], ax
jmp 0x1400240d8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14002402d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
mov rsi, qword [rsp + 0xa8]
jmp 0x1400240d8
mov ebp, dword [rbx - 0x10]
lea r12, [rsp + 0x6e0]
sub r12, rbx
sar r12, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14002407f
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.140004650
mov rbx, qword [rsp + 0x48]
cmp r12, rbp
ja 0x14002409f
movsxd rax, edi
lea rbp, [rax + rax]
lea r8, [rbx + r12*2]
mov r9, rbp
mov rdx, rbp
mov rcx, rbx
call fcn.1400908b0
jmp 0x1400240bc
movsxd rax, edi
lea rbp, [rax + rax]
mov r9, rbp
lea r8, [rsp + 0x6e0]
mov rdx, rbp
mov rcx, rbx
call fcn.1400907e0
test edi, edi
js 0x140024632
cmp edi, dword [rbx - 0xc]
jg 0x140024632
mov dword [rbx - 0x10], edi
mov word [rbx + rbp], 0
xor ebp, ebp
test rsi, rsi
je 0x1400240fe
cmp dword [rbx - 0x10], 0
jl 0x1400240fe
mov rdx, rsi
mov rcx, rbx
call fcn.140090770
test rax, rax
je 0x1400240fe
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14002411d
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x88]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x140024148
jmp 0x140023fa0
mov dword [rsp + 0x68], ebp
lea r8, [rsp + 0x8f0]
mov edx, 0x200
lea rcx, [rsp + 0x1f40]
call fcn.1400921b0
mov r15d, 1
jmp 0x140024148
mov rbx, qword [rsp + 0x48]
mov rcx, r13
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
test r15d, r15d
je 0x140024162
mov rsi, qword [rsp + 0x58]
jmp 0x140024187
mov rbx, qword [rsp + 0x48]
mov r12d, dword [rsp + 0x64]
mov r13d, dword [rsp + 0x50]
test r13d, r13d
cmove r12d, ebp
mov dword [rsp + 0x64], r12d
mov rsi, qword [rsp + 0x58]
mov r15d, dword [rsp + 0x78]
jmp 0x1400245b3
mov eax, ebp
mov ecx, dword [0x1401232c8]
cmp ecx, 0x5a
mov edx, reloc.OLEAUT32.dll_SafeArrayLock
cmovl eax, edx
add ecx, eax
mov dword [0x1401232c8], ecx
movsxd r8, ecx
xor r9d, r9d
mov edx, 0x402
mov r12, qword [rsp + 0x40]
mov rcx, qword [r12 + 0x3b060]
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
mov rcx, r12
call fcn.140002180
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r15d, 1
mov r9d, r15d
lea r8, [rsp + 0x1f40]
lea rdx, [rsp + 0x1720]
xor ecx, ecx
call sub.newdev.dll_UpdateDriverForPlugAndPlayDevicesW
test eax, eax
jne 0x140024245
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x5b4
jne 0x14002422e
lea r8, [rsp + 0x470]
mov rdx, qword [rsp + 0xc0]
mov rcx, r12
call fcn.140004a10
test eax, eax
je 0x14002422e
mov dword [rsp + 0x60], r15d
mov ebp, r15d
mov edx, edi
mov rcx, r12
call fcn.14000b130
test ebp, ebp
je 0x14002459d
jmp 0x14002455c
mov r13d, r15d
mov dword [rsp + 0x60], r15d
lea r8, [rsp + 0x470]
mov rbp, qword [rsp + 0xc0]
mov rdx, rbp
mov rcx, r12
call fcn.140004a10
test eax, eax
jne 0x14002455c
cmp dword [r12 + 0x3b000], eax
je 0x14002439d
cmp dword [r12 + 0x3b004], eax
jne 0x14002439d
lea rdx, [0x1400deee8]
lea rcx, [rsp + 0x70]
call fcn.140005ff0
lea r9, [rsp + 0x470]
mov r8, rbp
lea rdx, [rsp + 0xe8]
mov rcx, r12
call fcn.14000af60
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140007a90
nop
mov rdx, qword [rsp + 0xe8]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400242eb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [0x1400deee8]
lea rcx, [rsp + 0x70]
call fcn.14000d910
test al, al
je 0x14002438b
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x128]
call fcn.140005600
mov rdx, rax
mov rcx, r12
call fcn.140014b20
mov edi, eax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, r15d
xor r8d, r8d
lea rdx, [rsp + 0x470]
mov rcx, rbp
call fcn.140002af0
test eax, eax
je 0x14002438b
test edi, edi
je 0x14002438b
movsxd rax, dword [r12 + 0x3afd0]
imul rax, rax, 0x12c8
mov dword [rax + r12 + 0x4bc], r15d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x110]
call fcn.140005600
mov rdx, rax
mov rcx, r12
call fcn.14001d9b0
add dword [r12 + 0x3afd0], 0xffffffff
mov dword [r12 + 0x4bc], r15d
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
cmp dword [r12 + 0x3b004], 0
je 0x14002455c
xor edx, edx
lea rcx, str.audiosrv
call fcn.140002fd0
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x20], rdx
mov r9d, r15d
lea r8, [rsp + 0x1f40]
lea rdx, [rsp + 0x1720]
xor ecx, ecx
call sub.newdev.dll_UpdateDriverForPlugAndPlayDevicesW
test eax, eax
jne 0x140024421
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x5b4
jne 0x140024412
lea r8, [rsp + 0x470]
mov rdx, rbp
mov rcx, r12
call fcn.140004a10
test eax, eax
cmovne r13d, r15d
mov dword [rsp + 0x60], r13d
mov edx, edi
mov rcx, r12
call fcn.14000b130
jmp 0x14002454d
lea r8, [rsp + 0x470]
mov rdx, rbp
mov rcx, r12
call fcn.140004a10
test eax, eax
jne 0x14002454d
lea rdx, [0x1400deee8]
lea rcx, [rsp + 0x70]
call fcn.140005ff0
lea r9, [rsp + 0x470]
mov r8, rbp
lea rdx, [rsp + 0xf8]
mov rcx, r12
call fcn.14000af60
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140007a90
nop
mov rdx, qword [rsp + 0xf8]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14002449b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [0x1400deee8]
lea rcx, [rsp + 0x70]
call fcn.14000d910
test al, al
je 0x14002453b
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x130]
call fcn.140005600
mov rdx, rax
mov rcx, r12
call fcn.140014b20
mov edi, eax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, r15d
xor r8d, r8d
lea rdx, [rsp + 0x470]
mov rcx, rbp
call fcn.140002af0
test eax, eax
je 0x14002453b
test edi, edi
je 0x14002453b
movsxd rax, dword [r12 + 0x3afd0]
imul rax, rax, 0x12c8
mov dword [rax + r12 + 0x4bc], r15d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x120]
call fcn.140005600
mov rdx, rax
mov rcx, r12
call fcn.14001d9b0
add dword [r12 + 0x3afd0], 0xffffffff
mov dword [r12 + 0x4bc], r15d
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov edx, r15d
lea rcx, str.audiosrv
call fcn.140002fd0
cmp dword [rsp + 0xa0], 0
je 0x140024582
mov r15d, dword [rsp + 0x78]
add r15d, 1
mov dword [rsp + 0x78], r15d
xor ebp, ebp
mov r12d, dword [rsp + 0x64]
mov r13d, dword [rsp + 0x50]
jmp 0x1400245b3
add dword [rsp + 0xb0], 1
xor ebp, ebp
mov r12d, dword [rsp + 0x64]
mov r13d, dword [rsp + 0x50]
mov r15d, dword [rsp + 0x78]
jmp 0x1400245b3
xor ebp, ebp
mov r12d, r15d
mov r13d, dword [rsp + 0x50]
mov r15d, dword [rsp + 0x78]
jmp 0x1400245b3
mov r12d, dword [rsp + 0x64]
mov eax, dword [rsp + 0x7c]
add eax, 1
mov dword [rsp + 0x7c], eax
lea r8, [rsp + 0x470]
mov edx, eax
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140024648
jmp 0x140023290
mov ecx, 0x80070057
call fcn.140001610
int3
call fcn.140003370
int3
mov ecx, 0x80070057
call fcn.140001610
int3
mov ecx, 0x80070057
call fcn.140001610
int3
mov ecx, 0x80070057
call fcn.140001610
int3
mov ecx, 0x80070057
call fcn.140001610
int3
mov ecx, 0x80070057
call fcn.140001610
int3
mov ecx, 0x80070057
call fcn.140001610
int3
mov ecx, 0x80070057
call fcn.140001610
int3
mov ecx, 0x80004005
call fcn.140001610
int3
mov ecx, 1
jmp 0x140024659
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov edi, ebp
mov dword [rsp + 0x50], ebp
mov edx, 0x32
test r12d, r12d
jne 0x140024671
mov edi, ecx
mov dword [rsp + 0x50], ecx
jmp 0x140024680
test r15d, r15d
jne 0x140024698
cmp dword [rsp + 0xb0], r15d
jne 0x140024691
mov r13, qword [rsp + 0x40]
cmp dword [r13 + 0x3b008], 0
jne 0x1400246b3
jmp 0x14002469d
mov r13, qword [rsp + 0x40]
jmp 0x14002469d
mov r13, qword [rsp + 0x40]
test r12d, r12d
jne 0x1400247d0
cmp dword [r13 + 0x3b008], r12d
jne 0x1400247d9
mov eax, ebp
mov ecx, dword [0x1401232c8]
cmp ecx, 0x5a
cmovl eax, edx
add ecx, eax
mov dword [0x1401232c8], ecx
movsxd r8, ecx
xor r9d, r9d
mov edx, 0x402
mov rcx, qword [r13 + 0x3b060]
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
mov rcx, r13
call fcn.140002180
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x490]
call fcn.140091a50
lea r8, [rsp + 0x1110]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.1400921b0
mov r8, qword [0x140123328]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.140092260
lea r8, str.Rt.inf
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.140092260
lea rdx, [rsp + 0x490]
lea rcx, [rsp + 0x8f0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400247cb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x1930]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
lea rcx, [rsp + 0x8f0]
call qword [sym.imp.SETUPAPI.dll_SetupCopyOEMInfW]
test eax, eax
jne 0x1400247bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, r13
call fcn.14000b130
jmp 0x1400247cb
mov dword [rsp + 0x60], 1
mov edi, ebp
mov dword [rsp + 0x50], ebp
test r12d, r12d
je 0x1400247d9
test r15d, r15d
jne 0x140024d64
cmp dword [r13 + 0x3b008], 0
je 0x140024d57
mov eax, ebp
mov ecx, dword [0x1401232c8]
cmp ecx, 0x5a
mov edx, 0x32
cmovl eax, edx
add ecx, eax
mov dword [0x1401232c8], ecx
movsxd r8, ecx
xor r9d, r9d
mov edx, 0x402
mov rcx, qword [r13 + 0x3b060]
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
mov rcx, r13
call fcn.140002180
mov r15d, ebp
mov dword [rsp + 0x7c], ebp
mov eax, dword [rsp + 0x460]
test eax, eax
jle 0x140024c65
lea r13, [rsp + 0x140]
nop
nop
nop
nop
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x490]
call fcn.140091a50
lea r8, [rsp + 0x1110]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.1400921b0
mov r8, qword [0x140123328]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.140092260
lea r8, [0x1400e1318]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.140092260
lea rdx, [rsp + 0x490]
lea rcx, [rsp + 0x8f0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov qword [rsp + 0xb0], rax
cmp rax, 0xffffffffffffffff
je 0x140024c04
nop
mov r14d, ebp
lea r8, [rsp + 0x1110]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.1400921b0
lea r8, [rsp + 0x4bc]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.140092260
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
lea rcx, [rsp + 0x8f0]
call qword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140024beb
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str.Manufacturer
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x140024bdd
mov qword [rsp + 0x20], rbp
mov r9d, 0x104
lea r8, [rsp + 0x6e0]
mov edx, 1
lea rcx, [rsp + 0x88]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x140024bdd
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x6e0]
mov rdx, r12
mov rcx, qword [rsp + 0x40]
call fcn.140003650
test eax, eax
jne 0x1400249c3
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x140024beb
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, [rsp + 0x6e0]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x140024bdd
nop
nop
nop
mov qword [rsp + 0x20], rbp
mov r9d, 0x104
lea r8, [rsp + 0x6e0]
mov edx, 2
lea rcx, [rsp + 0x88]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x140024b4b
xor eax, eax
or r8, 0xffffffffffffffff
mov rcx, r8
lea rdi, [rsp + 0x6e0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140024a98
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140024b24
cmp dword [rdx + 0x10], eax
jge 0x140024a69
cmp dword [rbx - 0xc], eax
jl 0x140024c2c
mov dword [rbx - 0x10], ebp
mov word [rbx], ax
jmp 0x140024b24
mov eax, r8d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140024a81
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
jmp 0x140024b24
mov esi, dword [rbx - 0x10]
lea rbp, [rsp + 0x6e0]
sub rbp, rbx
sar rbp, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140024acb
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.140004650
mov rbx, qword [rsp + 0x48]
cmp rbp, rsi
ja 0x140024aeb
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + rbp*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.1400908b0
jmp 0x140024b08
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [rsp + 0x6e0]
mov rdx, rsi
mov rcx, rbx
call fcn.1400907e0
test edi, edi
js 0x140024c37
cmp edi, dword [rbx - 0xc]
jg 0x140024c37
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
xor ebp, ebp
mov rdx, qword [r13]
test rdx, rdx
je 0x140024b4b
cmp dword [rbx - 0x10], 0
jl 0x140024b4b
mov rcx, rbx
call fcn.140090770
test rax, rax
je 0x140024b4b
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x140024b6a
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x88]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x140024bd5
jmp 0x1400249f0
add r15d, 1
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x1930]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov esi, 1
mov r8d, esi
xor edx, edx
lea rcx, [rsp + 0x8f0]
call qword [sym.imp.SETUPAPI.dll_SetupCopyOEMInfW]
test eax, eax
jne 0x140024bc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, qword [rsp + 0x40]
call fcn.14000b130
jmp 0x140024bc8
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x50], ebp
mov r14d, esi
mov rdi, qword [rsp + 0xb0]
jmp 0x140024bdd
mov rdi, qword [rsp + 0xb0]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
test r14d, r14d
jne 0x140024c04
lea rdx, [rsp + 0x490]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400248e0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [rsp + 0x7c]
add ecx, 1
mov dword [rsp + 0x7c], ecx
add r13, 8
mov eax, dword [rsp + 0x460]
cmp ecx, eax
jge 0x140024c42
jmp 0x140024850
mov ecx, 0x80070057
call fcn.140001610
int3
mov ecx, 0x80070057
call fcn.140001610
int3
cmp r15d, eax
jl 0x140024c56
mov rsi, qword [rsp + 0x58]
mov edi, dword [rsp + 0x50]
or r14, 0xffffffffffffffff
jmp 0x140024c65
mov rsi, qword [rsp + 0x58]
mov edi, dword [rsp + 0x50]
or r14, 0xffffffffffffffff
jmp 0x140024c6d
test eax, eax
jne 0x140024d71
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x490]
call fcn.140091a50
lea r8, [rsp + 0x1110]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.1400921b0
mov r8, qword [0x140123328]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.140092260
lea r8, str.SST.inf
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.140092260
lea rdx, [rsp + 0x490]
lea rcx, [rsp + 0x8f0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140024d7e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x1930]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r12d, 1
mov r8d, r12d
xor edx, edx
lea rcx, [rsp + 0x8f0]
call qword [sym.imp.SETUPAPI.dll_SetupCopyOEMInfW]
test eax, eax
jne 0x140024d4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.14000b130
jmp 0x140024d89
mov dword [rsp + 0x60], r12d
jmp 0x140024f66
mov rbx, qword [rsp + 0x40]
mov r12d, 1
jmp 0x140024d89
mov rbx, qword [rsp + 0x40]
mov r12d, 1
jmp 0x140024d89
mov rbx, qword [rsp + 0x40]
mov r12d, 1
jmp 0x140024d89
mov rbx, qword [rsp + 0x40]
mov r12d, 1
test edi, edi
je 0x140024f66
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x490]
call fcn.140091a50
lea r8, [rsp + 0x1110]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.1400921b0
mov r8, qword [0x140123328]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.140092260
lea r8, [0x1400e1318]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.140092260
lea rdx, [rsp + 0x490]
lea rcx, [rsp + 0x8f0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140024f5d
nop
nop
nop
mov r8, qword [0x140123328]
mov edx, 0x200
lea rcx, [rsp + 0x1b40]
call fcn.1400921b0
lea r8, str.Rt.inf
mov edx, 0x200
lea rcx, [rsp + 0x1b40]
call fcn.140092260
lea rdx, [rsp + 0x1b40]
lea rcx, [rsp + 0x4bc]
call fcn.140090770
test rax, rax
jne 0x140024f44
mov r8, qword [0x140123328]
mov edx, 0x200
lea rcx, [rsp + 0x1b40]
call fcn.1400921b0
lea r8, [0x1400e14f0]
mov edx, 0x200
lea rcx, [rsp + 0x1b40]
call fcn.140092260
lea rdx, [rsp + 0x1b40]
lea rcx, [rsp + 0x4bc]
call fcn.140090770
test rax, rax
jne 0x140024f44
lea r8, [rsp + 0x1110]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.1400921b0
lea r8, [rsp + 0x4bc]
mov edx, 0x200
lea rcx, [rsp + 0x8f0]
call fcn.140092260
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x1930]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, r12d
xor edx, edx
lea rcx, [rsp + 0x8f0]
call qword [sym.imp.SETUPAPI.dll_SetupCopyOEMInfW]
test eax, eax
jne 0x140024f3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.14000b130
jmp 0x140024f44
mov dword [rsp + 0x60], r12d
lea rdx, [rsp + 0x490]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140024e20
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [0x1401232c8]
cmp eax, 0x5a
mov ecx, 0xa
cmovl ebp, ecx
add eax, ebp
mov dword [0x1401232c8], eax
movsxd r8, eax
xor r9d, r9d
mov edx, 0x402
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rdi + 0x3b060]
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
mov rcx, rdi
call fcn.140002180
mov ebx, dword [rsp + 0x60]
test ebx, ebx
jne 0x140024fd0
cmp dword [rsp + 0x68], ebx
je 0x140024fd0
mov edx, 0xe0000228
mov rcx, rdi
call fcn.14000b130
nop
lea r9, [fcn.1400011a0]
mov edx, 8
lea r8d, [rdx + 0x5c]
lea rcx, [rsp + 0x140]
call fcn.14008f8f0
nop
lea rdx, [rsi - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14002500b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14002502d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14002504f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0xd8]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140025074
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0xd0]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140025099
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0xa8]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400250be
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0xb8]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r14d
add r14d, 0xffffffff
test r14d, r14d
jg 0x1400250e2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebx
jmp 0x1400251fe
mov r9, rdi
mov edx, 8
lea r8d, [rdx + 0x5c]
lea rcx, [rsp + 0x140]
call fcn.14008f8f0
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140025125
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140025147
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140025169
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0xd8]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14002518e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0xd0]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400251b3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0xa8]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400251d8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0xb8]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r14d
add r14d, 0xffffffff
test r14d, r14d
jg 0x1400251fc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rcx, qword [rsp + 0x2340]
xor rcx, rsp
call fcn.140090480
lea r11, [rsp + 0x2350]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret