Function at 0x1400187f0
Capabilities:
Create process on windows
Enumerate files on windows
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1f60
call fcn.1400dbd60
sub rsp, rax
mov qword [rsp + 0xf0], 0xfffffffffffffffe
mov qword [rsp + 0x1fb0], rbx
mov rax, qword [0x1401216d8]
xor rax, rsp
mov qword [rsp + 0x1f50], rax
mov r15, rdx
mov r14, rcx
mov qword [rsp + 0x80], rcx
xor edi, edi
mov dword [rsp + 0x64], edi
call fcn.14004b0d0
mov rcx, rax
mov eax, edi
test rcx, rcx
setne al
test eax, eax
jne 0x140018862
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbp, [rax + 0x18]
mov qword [rsp + 0x50], rbp
call fcn.14004b0d0
mov rdx, rax
mov ecx, edi
test rax, rax
setne cl
test ecx, ecx
jne 0x140018890
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x40], rsi
call fcn.14004b0d0
mov rdx, rax
mov ecx, edi
test rax, rax
setne cl
test ecx, ecx
jne 0x1400188c1
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x74], edi
mov dword [rsp + 0x78], edi
mov dword [rsp + 0x70], edi
lea rcx, [rsp + 0x110]
call fcn.14000ba00
nop
mov r9d, 6
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rdi, rax
mov qword [rsp + 0x68], rax
cmp rax, 0xffffffffffffffff
jne 0x140018995
lea r9, [fcn.1400011a0]
lea edx, [rax + 9]
lea r8d, [rax + 0x65]
lea rcx, [rsp + 0x110]
call fcn.14008f8f0
nop
lea rdx, [rbx - 0x18]
or rdi, rdi
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001894d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001896e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
add ecx, 0xffffffff
test ecx, ecx
jg 0x14001898e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
jmp 0x140019d13
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x460]
call fcn.140091a50
mov r8, r15
mov edx, 0x208
lea rcx, [rsp + 0xad0]
call fcn.1400921b0
lea r8, [0x1400e0e38]
mov edx, 0x208
lea rcx, [rsp + 0xad0]
call fcn.140092260
lea rdx, [rsp + 0x460]
lea rcx, [rsp + 0xad0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0xc8], rax
or r12, 0xffffffffffffffff
lea r13d, [r12 + 2]
cmp rax, r12
je 0x140019c31
nop
nop
mov r8, r15
mov edx, 0x208
lea rcx, [rsp + 0xad0]
call fcn.1400921b0
lea r8, [0x1400df4f0]
mov edx, 0x208
lea rcx, [rsp + 0xad0]
call fcn.140092260
lea r8, [rsp + 0x48c]
mov edx, 0x208
lea rcx, [rsp + 0xad0]
call fcn.140092260
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
lea rcx, [rsp + 0xad0]
call qword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov rdi, rax
mov qword [rsp + 0x88], rax
cmp rax, 0xffffffffffffffff
je 0x140019b78
lea r9, [rsp + 0xb0]
xor r8d, r8d
lea rdx, str.Manufacturer
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x140019b78
mov qword [rsp + 0x20], 0
mov r9d, 0x104
lea r8, [rsp + 0x8c0]
mov edx, r13d
lea rcx, [rsp + 0xb0]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x140019b78
xor eax, eax
mov rcx, r12
lea rdi, [rsp + 0x8c0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140018b58
lea rdx, [rbp - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140018bef
cmp dword [rdx + 0x10], eax
jge 0x140018b1f
cmp dword [rbp - 0xc], eax
jl 0x140019bab
mov dword [rbp - 0x10], eax
mov word [rbp], ax
jmp 0x140018bef
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140018b37
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 rbp, [rax + 0x18]
mov qword [rsp + 0x50], rbp
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
jmp 0x140018bef
mov r12d, dword [rbp - 0x10]
lea r13, [rsp + 0x8c0]
sub r13, rbp
sar r13, 1
mov ecx, 1
sub ecx, dword [rbp - 8]
mov eax, dword [rbp - 0xc]
sub eax, edi
or eax, ecx
jge 0x140018b8c
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140004650
mov rbp, qword [rsp + 0x50]
cmp r13, r12
ja 0x140018bad
movsxd rax, edi
lea r12, [rax + rax]
lea r8, [rbp + r13*2]
mov r9, r12
mov rdx, r12
mov rcx, rbp
call fcn.1400908b0
jmp 0x140018bca
movsxd rax, edi
lea r12, [rax + rax]
mov r9, r12
lea r8, [rsp + 0x8c0]
mov rdx, r12
mov rcx, rbp
call fcn.1400907e0
test edi, edi
js 0x140019c14
cmp edi, dword [rbp - 0xc]
jg 0x140019c14
mov dword [rbp - 0x10], edi
mov word [r12 + rbp], 0
mov r13d, 1
or r12, 0xffffffffffffffff
movsxd rdi, dword [rbp - 0x10]
mov ecx, r13d
sub ecx, dword [rbp - 8]
mov eax, dword [rbp - 0xc]
sub eax, edi
or eax, ecx
jge 0x140018c13
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140004650
mov rbp, qword [rsp + 0x50]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbp
call fcn.140090d90
test edi, edi
js 0x140019c09
cmp edi, dword [rbp - 0xc]
jg 0x140019c09
mov dword [rbp - 0x10], edi
mov word [rbp + rdi*2], 0
lea rdx, [0x1400e0e28]
mov rcx, rbp
call fcn.140090770
test rax, rax
jne 0x140018c5e
test byte [r15 + 0x214], 8
jne 0x140019b81
lea rdx, str.INTEL
mov rcx, rbp
call fcn.140090770
test rax, rax
jne 0x140018c91
mov eax, dword [r15 + 0x214]
test al, 1
jne 0x140019b81
test al, 2
jne 0x140019b81
test al, 4
jne 0x140019b81
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x8c0]
mov rdi, qword [rsp + 0x88]
mov rdx, rdi
mov rcx, r14
call fcn.140003650
test eax, eax
jne 0x140018cce
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x140019b81
lea r9, [rsp + 0xb0]
xor r8d, r8d
lea rdx, [rsp + 0x8c0]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x140019b78
xor r14d, r14d
mov qword [rsp + 0x20], r14
mov r9d, 0x104
lea r8, [rsp + 0x10f0]
lea edx, [r14 + 2]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
mov edi, r14d
test eax, eax
cmovne edi, r13d
mov qword [rsp + 0x20], r14
mov r9d, 0x104
lea r8, [rsp + 0x1510]
lea edx, [r14 + 3]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
cmovne r14d, r13d
test edi, edi
je 0x140019acd
xor eax, eax
mov rcx, r12
lea rdi, [rsp + 0x10f0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140018dd6
lea rdx, [rsi - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140018e6c
cmp dword [rdx + 0x10], eax
jge 0x140018d9d
cmp dword [rsi - 0xc], eax
jl 0x140019bb6
mov dword [rsi - 0x10], eax
mov word [rsi], ax
jmp 0x140018e6c
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140018db5
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 rsi, [rax + 0x18]
mov qword [rsp + 0x40], rsi
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
jmp 0x140018e6c
mov r12d, dword [rsi - 0x10]
lea r13, [rsp + 0x10f0]
sub r13, rsi
sar r13, 1
mov ecx, 1
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x140018e0a
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140004650
mov rsi, qword [rsp + 0x40]
cmp r13, r12
ja 0x140018e2a
movsxd rax, edi
lea r12, [rax + rax]
lea r8, [rsi + r13*2]
mov r9, r12
mov rdx, r12
mov rcx, rsi
call fcn.1400908b0
jmp 0x140018e47
movsxd rax, edi
lea r12, [rax + rax]
mov r9, r12
lea r8, [rsp + 0x10f0]
mov rdx, r12
mov rcx, rsi
call fcn.1400907e0
test edi, edi
js 0x140019bfe
cmp edi, dword [rsi - 0xc]
jg 0x140019bfe
mov dword [rsi - 0x10], edi
mov word [r12 + rsi], 0
mov r13d, 1
or r12, 0xffffffffffffffff
movsxd rdi, dword [rsi - 0x10]
mov ecx, r13d
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x140018e90
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140004650
mov rsi, qword [rsp + 0x40]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rsi
call fcn.140090d90
test edi, edi
js 0x140019bf3
lea rax, [rsi - 0xc]
mov qword [rsp + 0xa8], rax
cmp edi, dword [rax]
jg 0x140019bf3
lea rdx, [rsi - 0x10]
mov qword [rsp + 0xa0], rdx
mov dword [rdx], edi
mov word [rsi + rdi*2], 0
lea rcx, [rsi - 0x18]
mov qword [rsp + 0x90], rcx
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x140018f3e
cmp dword [rdi + 0x10], 0
jl 0x140018f29
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140018f29
call fcn.1400046b0
mov rbx, rax
mov ecx, r12d
lock xadd dword [rdi + 0x10], ecx
add ecx, 0xffffffff
test ecx, ecx
jg 0x140018f14
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rbx, 0x18
mov qword [rsp + 0x58], rbx
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
jmp 0x140018f3e
mov r8d, dword [rdx]
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.140005dc0
mov rbx, qword [rsp + 0x58]
movsxd r12, dword [rbx - 0x10]
mov ecx, r13d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, r12d
or eax, ecx
jge 0x140018f64
mov edx, r12d
lea rcx, [rsp + 0x58]
call fcn.140004650
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
mov rdi, rbx
lea r11, [rbx + r12*2]
cmp rbx, r11
jae 0x140018fb5
lea r10, [rcx + 2]
cmp word [rcx], 0x2a
je 0x140018fad
mov r8, r10
sub r8, rcx
sar r8, 1
lea r9, [rdi + r8*2]
xor edx, edx
cmp rdi, r9
je 0x140018fad
cmp rdx, r8
jae 0x140018fad
movzx eax, word [rcx]
mov word [rdi], ax
add rcx, 2
add rdi, 2
add rdx, 1
cmp rdi, r9
jne 0x140018f91
mov rcx, r10
cmp r10, r11
jb 0x140018f73
mov word [rdi], 0
sub rcx, rdi
sar rcx, 1
sub r12d, ecx
js 0x140019be8
cmp r12d, dword [rbx - 0xc]
jg 0x140019be8
mov dword [rbx - 0x10], r12d
movsxd rax, r12d
mov word [rbx + rax*2], 0
lea rdx, [0x1400e0680]
mov rcx, rsi
call fcn.140090770
test rax, rax
jne 0x140018ffe
test byte [r15 + 0x218], 1
jne 0x14001901c
lea rdx, [0x1400e0680]
mov rcx, rsi
call fcn.140090770
test rax, rax
je 0x14001902a
test byte [r15 + 0x218], 2
je 0x14001902a
cmp dword [r15 + 0x210], 0
je 0x140019acd
lea rdx, str.PCIVEN_
mov rcx, rsi
call fcn.140090770
test rax, rax
jne 0x140019074
lea rdx, str.PCICC_
mov rcx, rsi
call fcn.140090770
test rax, rax
jne 0x140019074
lea rdx, str.ACPICLS_
mov rcx, rsi
call fcn.140090770
test rax, rax
jne 0x140019074
test byte [r15 + 0x214], 1
jne 0x140019acd
lea rdx, str.INTELAUDIODSP_
mov rcx, rsi
call fcn.140090770
test rax, rax
jne 0x140019096
test byte [r15 + 0x214], 4
jne 0x140019acd
lea rdx, str.INTELAUDIOCTLR_DEV_
mov rcx, rsi
call fcn.140090770
test rax, rax
jne 0x1400190cc
lea rdx, str.INTELAUDIOLINKTYPE_
mov rcx, rsi
call fcn.140090770
test rax, rax
jne 0x1400190cc
test byte [r15 + 0x214], 2
jne 0x140019acd
lea rdx, str.PCIVEN_
mov rcx, rsi
call fcn.140090770
test rax, rax
jne 0x140019144
lea rdx, str.PCICC_
mov rcx, rsi
call fcn.140090770
test rax, rax
jne 0x140019144
lea rdx, str.ACPICLS_
mov rcx, rsi
call fcn.140090770
test rax, rax
jne 0x140019144
lea rdx, str.INTELAUDIODSP_
mov rcx, rsi
call fcn.140090770
test rax, rax
jne 0x140019144
lea rdx, str.INTELAUDIOCTLR_DEV_
mov rcx, rsi
call fcn.140090770
test rax, rax
jne 0x140019144
lea rdx, str.INTELAUDIOLINKTYPE_
mov rcx, rsi
call fcn.140090770
test rax, rax
je 0x140019152
test byte [r15 + 0x214], 0x10
jne 0x140019acd
cmp dword [r15 + 0x210], 0
jne 0x140019af4
mov dword [rsp + 0x440], 0x20
xor edi, edi
mov dword [rsp + 0x48], edi
movsxd rax, r14d
mov qword [rsp + 0xd0], rax
lea r8, [rsp + 0x440]
xor edx, edx
mov r12, qword [rsp + 0x68]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140019acd
nop
lea rcx, [rsp + 0x110]
call fcn.140007430
xor ecx, ecx
mov r14d, ecx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, r13d
lea rdx, [rsp + 0x440]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
mov ecx, dword [rsp + 0x60]
call fcn.1400930c0
mov r13, rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x140019343
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x60]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rsp + 0x440]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
mov r12, r13
cmp word [r13], r14w
je 0x14001932d
mov ebp, 1
or r13, 0xffffffffffffffff
nop
mov r8, r12
mov edx, 0x104
lea rcx, [rsp + 0x6b0]
call fcn.1400921b0
mov edx, 0x104
lea rcx, [rsp + 0x6b0]
call fcn.140090d90
mov rdx, rsi
lea rcx, [rsp + 0x6b0]
call fcn.140090770
test rax, rax
jne 0x140019291
mov rdx, rbx
lea rcx, [rsp + 0x6b0]
call fcn.140090770
test rax, rax
je 0x140019294
mov r14d, ebp
test byte [r15 + 0x218], 2
je 0x1400192c3
lea rdx, [rsp + 0x6b0]
lea rcx, [rsp + 0x108]
call fcn.140011950
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.14000ba80
test byte [r15 + 0x218], bpl
je 0x1400192ff
lea rdx, [0x1400e0680]
lea rcx, [rsp + 0x6b0]
call fcn.140090770
test rax, rax
je 0x1400192ff
lea r8, [rsp + 0x6b0]
mov edx, 0x104
lea rcx, [rsp + 0x1300]
call fcn.1400921b0
xor eax, eax
mov rcx, r13
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r12, [r12 + rcx*2]
cmp word [r12], ax
jne 0x140019240
mov rbp, qword [rsp + 0x50]
mov r13, qword [rsp + 0x98]
mov edi, dword [rsp + 0x48]
mov rcx, r13
call fcn.14002a228
test r14d, r14d
jne 0x14001970a
mov r12, qword [rsp + 0x68]
cmp qword [rsp + 0xd0], 0
je 0x140019a7e
xor eax, eax
or r12, 0xffffffffffffffff
mov rcx, r12
lea rdi, [rsp + 0x1510]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x1400193f0
mov rdx, qword [rsp + 0x90]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140019494
cmp dword [rdx + 0x10], eax
jge 0x1400193b4
mov rax, qword [rsp + 0xa8]
cmp dword [rax], ecx
jl 0x140019bc1
mov rax, qword [rsp + 0xa0]
xor r13d, r13d
mov dword [rax], r13d
mov word [rsi], r13w
jmp 0x140019497
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400193cc
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 rsi, [rax + 0x18]
mov qword [rsp + 0x40], rsi
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
xor r13d, r13d
jmp 0x140019497
mov rax, qword [rsp + 0xa0]
mov r12d, dword [rax]
lea r13, [rsp + 0x1510]
sub r13, rsi
sar r13, 1
mov ecx, 1
mov rax, qword [rsp + 0x90]
sub ecx, dword [rax + 0x10]
mov eax, dword [rax + 0xc]
sub eax, edi
or eax, ecx
jge 0x140019433
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140004650
mov rsi, qword [rsp + 0x40]
cmp r13, r12
ja 0x140019453
movsxd rax, edi
lea r12, [rax + rax]
lea r8, [rsi + r13*2]
mov r9, r12
mov rdx, r12
mov rcx, rsi
call fcn.1400908b0
jmp 0x140019470
movsxd rax, edi
lea r12, [rax + rax]
mov r9, r12
lea r8, [rsp + 0x1510]
mov rdx, r12
mov rcx, rsi
call fcn.1400907e0
test edi, edi
js 0x140019bdd
cmp edi, dword [rsi - 0xc]
jg 0x140019bdd
mov dword [rsi - 0x10], edi
mov word [r12 + rsi], 0
or r12, 0xffffffffffffffff
xor r13d, r13d
jmp 0x140019497
xor r13d, r13d
movsxd rdi, dword [rsi - 0x10]
mov ecx, 1
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400194bd
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140004650
mov rsi, qword [rsp + 0x40]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rsi
call fcn.140090d90
test edi, edi
js 0x140019bd2
lea rax, [rsi - 0xc]
mov qword [rsp + 0xa8], rax
cmp edi, dword [rax]
jg 0x140019bd2
lea rdx, [rsi - 0x10]
mov qword [rsp + 0xa0], rdx
mov dword [rdx], edi
mov word [rsi + rdi*2], 0
lea rcx, [rsi - 0x18]
mov qword [rsp + 0x90], rcx
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140019566
cmp dword [rbx + 0x10], 0
jl 0x140019556
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140019556
call fcn.1400046b0
mov rdi, rax
mov ecx, r12d
lock xadd dword [rbx + 0x10], ecx
add ecx, 0xffffffff
test ecx, ecx
jg 0x140019541
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x58], rax
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
jmp 0x140019566
mov r8d, dword [rdx]
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.140005dc0
mov dx, 0x2a
lea rcx, [rsp + 0x58]
call fcn.140006470
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rsp + 0x440]
mov rdi, qword [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
mov ecx, dword [rsp + 0x60]
call fcn.1400930c0
mov r13, rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x140019a68
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x60]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rsp + 0x440]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
mov r12, r13
mov rbx, qword [rsp + 0x58]
cmp word [r13], 0
je 0x1400196f9
mov ebp, 1
or r13, 0xffffffffffffffff
nop
mov r8, r12
mov edx, 0x104
lea rcx, [rsp + 0x6b0]
call fcn.1400921b0
mov edx, 0x104
lea rcx, [rsp + 0x6b0]
call fcn.140090d90
mov rdx, rsi
lea rcx, [rsp + 0x6b0]
call fcn.140090770
test rax, rax
jne 0x140019661
mov rdx, rbx
lea rcx, [rsp + 0x6b0]
call fcn.140090770
test rax, rax
je 0x140019664
mov r14d, ebp
test byte [r15 + 0x218], 2
je 0x140019693
lea rdx, [rsp + 0x6b0]
lea rcx, [rsp + 0x100]
call fcn.140011950
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.14000ba80
test byte [r15 + 0x218], bpl
je 0x1400196cf
lea rdx, [0x1400e0680]
lea rcx, [rsp + 0x6b0]
call fcn.140090770
test rax, rax
je 0x1400196cf
lea r8, [rsp + 0x6b0]
mov edx, 0x104
lea rcx, [rsp + 0x1300]
call fcn.1400921b0
xor eax, eax
mov rcx, r13
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r12, [r12 + rcx*2]
cmp word [r12], ax
jne 0x140019610
mov rbp, qword [rsp + 0x50]
mov r13, qword [rsp + 0x98]
mov rcx, r13
call fcn.14002a228
test r14d, r14d
je 0x140019a86
test byte [r15 + 0x218], 2
je 0x14001989c
xor r12d, r12d
mov ebx, r12d
lea r13d, [r12 + 1]
mov r8d, ebx
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x110]
call fcn.1400157a0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbp, 0xffffffffffffffe8
cmp rcx, rbp
je 0x140019799
cmp dword [rbp + 0x10], 0
jl 0x14001978a
mov rax, qword [rbp]
cmp qword [rcx], rax
jne 0x14001978a
call fcn.1400046b0
mov rdi, rax
or ecx, 0xffffffff
lock xadd dword [rbp + 0x10], ecx
add ecx, 0xffffffff
test ecx, ecx
jg 0x14001977f
mov rcx, qword [rbp]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x50], rax
jmp 0x140019799
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140005dc0
nop
mov rdx, qword [rsp + 0xe0]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400197bd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
lea rdi, [0x1400debf8]
mov rbp, qword [rsp + 0x50]
mov rsi, rbp
mov rcx, r13
repe cmpsw word [rsi], word [rdi]
je 0x1400197db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x140019890
add ebx, 1
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbp - 8], 0
jl 0x140019814
cmp rax, qword [rbp - 0x18]
jne 0x140019814
lea rsi, [rbp - 0x18]
lock add dword [rbp - 8], 1
mov rbp, qword [rsp + 0x50]
jmp 0x140019850
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbp - 0x10]
call qword [rax]
mov rsi, rax
test rax, rax
je 0x140019bcc
mov ecx, dword [rbp - 0x10]
mov dword [rax + 8], ecx
mov ecx, dword [rbp - 0x10]
add ecx, 1
movsxd rdx, ecx
lea r9, [rdx + rdx]
mov r8, rbp
add rdx, rdx
lea rcx, [rax + 0x18]
call fcn.1400907e0
lea rax, [rsi + 0x18]
mov qword [rsp + 0xd8], rax
lea rdx, [rsp + 0xd8]
lea rcx, [0x140123330]
call fcn.1400052b0
test eax, eax
je 0x140019723
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
mov edi, dword [rsp + 0x48]
mov r12, qword [rsp + 0x68]
jmp 0x140019aab
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
jmp 0x1400198a5
mov r13d, 1
xor r12d, r12d
add dword [rsp + 0x78], 1
mov r8, rsi
mov edx, 0x104
lea rcx, [rsp + 0x1720]
call fcn.1400921b0
lea r8, [rsp + 0xad0]
mov edx, 0x208
lea rcx, [rsp + 0x1930]
call fcn.1400921b0
lea rdx, [rsp + 0x74]
mov qword [rsp + 0x20], rdx
mov r9d, r13d
lea r8, [rsp + 0x1930]
lea rdx, [rsp + 0x1720]
xor ecx, ecx
call sub.newdev.dll_UpdateDriverForPlugAndPlayDevicesW
test eax, eax
jne 0x14001991b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, qword [rsp + 0x80]
call fcn.14000b130
jmp 0x140019a03
cmp dword [rsp + 0x74], 0
je 0x1400199f9
test byte [r15 + 0x214], 1
je 0x1400199f9
mov rdi, qword [rsp + 0x80]
cmp dword [rdi + 0x3b004], 0
je 0x1400199f9
mov edx, 0x208
lea rcx, [rsp + 0xee0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdx, str._system32_net.exe
lea rcx, [rsp + 0xee0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
lea r9, str._stop_audiosrv
lea r8, [rsp + 0xee0]
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea r11, [rsp + 0x74]
mov qword [rsp + 0x20], r11
mov r9d, r13d
lea r8, [rsp + 0x1930]
lea rdx, [rsp + 0x1720]
xor ecx, ecx
call sub.newdev.dll_UpdateDriverForPlugAndPlayDevicesW
test eax, eax
jne 0x1400199d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
call fcn.14000b130
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
lea r9, str._start_audiosrv
lea r8, [rsp + 0xee0]
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [rsp + 0x64], r13d
add dword [rsp + 0x70], 1
test byte [r15 + 0x218], 1
je 0x140019a97
lea rdx, [rsp + 0x1300]
lea rcx, [rsp + 0xe8]
call fcn.140011950
mov rdx, rax
lea rcx, [0x140123330]
call fcn.1400052b0
test eax, eax
jne 0x140019aa2
lea rdx, [rsp + 0x1300]
lea rcx, [rsp + 0xf8]
call fcn.140011950
mov rdx, rax
lea rcx, [0x140123330]
call fcn.14000ba80
mov edi, dword [rsp + 0x48]
mov r12, qword [rsp + 0x68]
jmp 0x140019aab
mov rbx, qword [rsp + 0x58]
mov r13d, 1
mov edi, dword [rsp + 0x48]
mov r12, qword [rsp + 0x68]
jmp 0x140019aab
mov r13d, 1
jmp 0x140019aab
mov r13d, 1
mov edi, dword [rsp + 0x48]
mov r12, qword [rsp + 0x68]
jmp 0x140019aab
mov edi, dword [rsp + 0x48]
mov r12, qword [rsp + 0x68]
jmp 0x140019aab
mov edi, dword [rsp + 0x48]
mov r12, qword [rsp + 0x68]
add edi, 1
mov dword [rsp + 0x48], edi
lea r8, [rsp + 0x440]
mov edx, edi
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x1400191a0
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x140019b68
or r12, 0xffffffffffffffff
jmp 0x140018cf2
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x1d40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, r13d
xor edx, edx
lea rcx, [rsp + 0xad0]
call qword [sym.imp.SETUPAPI.dll_SetupCopyOEMInfW]
test eax, eax
jne 0x140019b51
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov r14, qword [rsp + 0x80]
mov rcx, r14
call fcn.14000b130
mov rdi, qword [rsp + 0x88]
jmp 0x140019b78
mov dword [rsp + 0x64], r13d
mov r14, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x88]
jmp 0x140019b78
mov r14, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x88]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
lea rdx, [rsp + 0x460]
mov rdi, qword [rsp + 0xc8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140019c1f
or r12, 0xffffffffffffffff
jmp 0x140018a10
mov ecx, 0x80070057
call fcn.140001610
int3
mov ecx, 0x80070057
call fcn.140001610
int3
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 rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
or r12, 0xffffffffffffffff
mov rdi, qword [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov edx, dword [rsp + 0x78]
mov dword [r15 + 0x208], edx
mov eax, dword [rsp + 0x70]
mov dword [r15 + 0x20c], eax
mov ecx, 0xfffffffe
test edx, edx
jne 0x140019c64
lea edi, [rdx + 1]
mov edx, dword [rsp + 0x64]
xor esi, esi
jmp 0x140019c82
cmp edx, eax
je 0x140019c75
mov edi, 0xfffffffd
mov edx, dword [rsp + 0x64]
xor esi, esi
jmp 0x140019c82
xor esi, esi
mov edi, esi
mov edx, dword [rsp + 0x64]
test edx, edx
cmove edi, ecx
cmp dword [r15 + 0x210], 0
je 0x140019c93
test edx, edx
cmovne ecx, esi
mov edi, ecx
lea r9, [fcn.1400011a0]
mov edx, 8
lea r8d, [rdx + 0x5c]
lea rcx, [rsp + 0x110]
call fcn.14008f8f0
nop
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140019cce
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140019cf0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x140019d11
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
mov rcx, qword [rsp + 0x1f50]
xor rcx, rsp
call fcn.140090480
mov rbx, qword [rsp + 0x1fb0]
add rsp, 0x1f60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret