Function at 0x140018a20
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, 0x2170
call fcn.1400dc000
sub rsp, rax
mov qword [rsp + 0xf0], 0xfffffffffffffffe
mov qword [rsp + 0x21c0], rbx
mov rax, qword [0x1401216d8]
xor rax, rsp
mov qword [rsp + 0x2160], rax
mov r15, rdx
mov r14, rcx
mov qword [rsp + 0x80], rcx
xor edi, edi
mov dword [rsp + 0x64], edi
call fcn.14004b378
mov rcx, rax
mov eax, edi
test rcx, rcx
setne al
test eax, eax
jne 0x140018a92
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.14004b378
mov rdx, rax
mov ecx, edi
test rax, rax
setne cl
test ecx, ecx
jne 0x140018ac0
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.14004b378
mov rdx, rax
mov ecx, edi
test rax, rax
setne cl
test ecx, ecx
jne 0x140018af1
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.14000ba90
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 0x140018bc5
lea r9, [fcn.1400011a0]
lea edx, [rax + 9]
lea r8d, [rax + 0x65]
lea rcx, [rsp + 0x110]
call fcn.14008fb90
nop
lea rdx, [rbx - 0x18]
or rdi, rdi
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140018b7d
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 0x140018b9e
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 0x140018bbe
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
jmp 0x140019f7d
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x460]
call fcn.140091cf0
mov r8, r15
mov edx, 0x208
lea rcx, [rsp + 0xad0]
call fcn.140092450
lea r8, [0x1400e0e78]
mov edx, 0x208
lea rcx, [rsp + 0xad0]
call fcn.140092500
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 0x140019e9b
nop
nop
mov r8, r15
mov edx, 0x208
lea rcx, [rsp + 0xad0]
call fcn.140092450
lea r8, [0x1400df530]
mov edx, 0x208
lea rcx, [rsp + 0xad0]
call fcn.140092500
lea r8, [rsp + 0x48c]
mov edx, 0x208
lea rcx, [rsp + 0xad0]
call fcn.140092500
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 0x140019de2
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 0x140019de2
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 0x140019de2
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 0x140018d88
lea rdx, [rbp - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140018e1f
cmp dword [rdx + 0x10], eax
jge 0x140018d4f
cmp dword [rbp - 0xc], eax
jl 0x140019e15
mov dword [rbp - 0x10], eax
mov word [rbp], ax
jmp 0x140018e1f
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140018d67
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 0x140018e1f
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 0x140018dbc
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140004650
mov rbp, qword [rsp + 0x50]
cmp r13, r12
ja 0x140018ddd
movsxd rax, edi
lea r12, [rax + rax]
lea r8, [rbp + r13*2]
mov r9, r12
mov rdx, r12
mov rcx, rbp
call fcn.140090b50
jmp 0x140018dfa
movsxd rax, edi
lea r12, [rax + rax]
mov r9, r12
lea r8, [rsp + 0x8c0]
mov rdx, r12
mov rcx, rbp
call fcn.140090a80
test edi, edi
js 0x140019e7e
cmp edi, dword [rbp - 0xc]
jg 0x140019e7e
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 0x140018e43
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.140091030
test edi, edi
js 0x140019e73
cmp edi, dword [rbp - 0xc]
jg 0x140019e73
mov dword [rbp - 0x10], edi
mov word [rbp + rdi*2], 0
lea rdx, [0x1400e0e68]
mov rcx, rbp
call fcn.140090a10
test rax, rax
jne 0x140018e8e
test byte [r15 + 0x214], 8
jne 0x140019deb
lea rdx, str.INTEL
mov rcx, rbp
call fcn.140090a10
test rax, rax
jne 0x140018ec1
mov eax, dword [r15 + 0x214]
test al, 1
jne 0x140019deb
test al, 2
jne 0x140019deb
test al, 4
jne 0x140019deb
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 0x140018efe
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x140019deb
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 0x140019de2
xor r14d, r14d
mov qword [rsp + 0x20], r14
mov r9d, 0x104
lea r8, [rsp + 0x1510]
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 + 0xee0]
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 0x140019d37
xor eax, eax
mov rcx, r12
lea rdi, [rsp + 0x1510]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140019006
lea rdx, [rsi - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14001909c
cmp dword [rdx + 0x10], eax
jge 0x140018fcd
cmp dword [rsi - 0xc], eax
jl 0x140019e20
mov dword [rsi - 0x10], eax
mov word [rsi], ax
jmp 0x14001909c
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140018fe5
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 0x14001909c
mov r12d, dword [rsi - 0x10]
lea r13, [rsp + 0x1510]
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 0x14001903a
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140004650
mov rsi, qword [rsp + 0x40]
cmp r13, r12
ja 0x14001905a
movsxd rax, edi
lea r12, [rax + rax]
lea r8, [rsi + r13*2]
mov r9, r12
mov rdx, r12
mov rcx, rsi
call fcn.140090b50
jmp 0x140019077
movsxd rax, edi
lea r12, [rax + rax]
mov r9, r12
lea r8, [rsp + 0x1510]
mov rdx, r12
mov rcx, rsi
call fcn.140090a80
test edi, edi
js 0x140019e68
cmp edi, dword [rsi - 0xc]
jg 0x140019e68
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 0x1400190c0
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.140091030
test edi, edi
js 0x140019e5d
lea rax, [rsi - 0xc]
mov qword [rsp + 0xa8], rax
cmp edi, dword [rax]
jg 0x140019e5d
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 0x14001916e
cmp dword [rdi + 0x10], 0
jl 0x140019159
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140019159
call fcn.1400046b0
mov rbx, rax
mov ecx, r12d
lock xadd dword [rdi + 0x10], ecx
add ecx, 0xffffffff
test ecx, ecx
jg 0x140019144
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 0x14001916e
mov r8d, dword [rdx]
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.140005e50
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 0x140019194
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 0x1400191e5
lea r10, [rcx + 2]
cmp word [rcx], 0x2a
je 0x1400191dd
mov r8, r10
sub r8, rcx
sar r8, 1
lea r9, [rdi + r8*2]
xor edx, edx
cmp rdi, r9
je 0x1400191dd
cmp rdx, r8
jae 0x1400191dd
movzx eax, word [rcx]
mov word [rdi], ax
add rcx, 2
add rdi, 2
add rdx, 1
cmp rdi, r9
jne 0x1400191c1
mov rcx, r10
cmp r10, r11
jb 0x1400191a3
mov word [rdi], 0
sub rcx, rdi
sar rcx, 1
sub r12d, ecx
js 0x140019e52
cmp r12d, dword [rbx - 0xc]
jg 0x140019e52
mov dword [rbx - 0x10], r12d
movsxd rax, r12d
mov word [rbx + rax*2], 0
lea rdx, [0x1400e06c0]
mov rcx, rsi
call fcn.140090a10
test rax, rax
jne 0x14001922e
test byte [r15 + 0x218], 1
jne 0x14001924c
lea rdx, [0x1400e06c0]
mov rcx, rsi
call fcn.140090a10
test rax, rax
je 0x14001925a
test byte [r15 + 0x218], 2
je 0x14001925a
cmp dword [r15 + 0x210], 0
je 0x140019d37
lea rdx, str.PCIVEN_
mov rcx, rsi
call fcn.140090a10
test rax, rax
jne 0x1400192a4
lea rdx, str.PCICC_
mov rcx, rsi
call fcn.140090a10
test rax, rax
jne 0x1400192a4
lea rdx, str.ACPICLS_
mov rcx, rsi
call fcn.140090a10
test rax, rax
jne 0x1400192a4
test byte [r15 + 0x214], 1
jne 0x140019d37
lea rdx, str.INTELAUDIODSP_
mov rcx, rsi
call fcn.140090a10
test rax, rax
jne 0x1400192c6
test byte [r15 + 0x214], 4
jne 0x140019d37
lea rdx, str.INTELAUDIOCTLR_DEV_
mov rcx, rsi
call fcn.140090a10
test rax, rax
jne 0x1400192fc
lea rdx, str.INTELAUDIOLINKTYPE_
mov rcx, rsi
call fcn.140090a10
test rax, rax
jne 0x1400192fc
test byte [r15 + 0x214], 2
jne 0x140019d37
lea rdx, str.PCIVEN_
mov rcx, rsi
call fcn.140090a10
test rax, rax
jne 0x140019374
lea rdx, str.PCICC_
mov rcx, rsi
call fcn.140090a10
test rax, rax
jne 0x140019374
lea rdx, str.ACPICLS_
mov rcx, rsi
call fcn.140090a10
test rax, rax
jne 0x140019374
lea rdx, str.INTELAUDIODSP_
mov rcx, rsi
call fcn.140090a10
test rax, rax
jne 0x140019374
lea rdx, str.INTELAUDIOCTLR_DEV_
mov rcx, rsi
call fcn.140090a10
test rax, rax
jne 0x140019374
lea rdx, str.INTELAUDIOLINKTYPE_
mov rcx, rsi
call fcn.140090a10
test rax, rax
je 0x140019382
test byte [r15 + 0x214], 0x10
jne 0x140019d37
cmp dword [r15 + 0x210], 0
jne 0x140019d5e
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 0x140019d37
nop
lea rcx, [rsp + 0x110]
call fcn.1400074c0
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.140093360
mov r13, rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x140019573
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 0x14001955d
mov ebp, 1
or r13, 0xffffffffffffffff
nop
mov r8, r12
mov edx, 0x104
lea rcx, [rsp + 0x6b0]
call fcn.140092450
mov edx, 0x104
lea rcx, [rsp + 0x6b0]
call fcn.140091030
mov rdx, rsi
lea rcx, [rsp + 0x6b0]
call fcn.140090a10
test rax, rax
jne 0x1400194c1
mov rdx, rbx
lea rcx, [rsp + 0x6b0]
call fcn.140090a10
test rax, rax
je 0x1400194c4
mov r14d, ebp
test byte [r15 + 0x218], 2
je 0x1400194f3
lea rdx, [rsp + 0x6b0]
lea rcx, [rsp + 0x108]
call fcn.1400119e0
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.14000bb10
test byte [r15 + 0x218], bpl
je 0x14001952f
lea rdx, [0x1400e06c0]
lea rcx, [rsp + 0x6b0]
call fcn.140090a10
test rax, rax
je 0x14001952f
lea r8, [rsp + 0x6b0]
mov edx, 0x104
lea rcx, [rsp + 0x1300]
call fcn.140092450
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 0x140019470
mov rbp, qword [rsp + 0x50]
mov r13, qword [rsp + 0x98]
mov edi, dword [rsp + 0x48]
mov rcx, r13
call fcn.14002a4d0
test r14d, r14d
jne 0x14001993a
mov r12, qword [rsp + 0x68]
cmp qword [rsp + 0xd0], 0
je 0x140019ce8
xor eax, eax
or r12, 0xffffffffffffffff
mov rcx, r12
lea rdi, [rsp + 0xee0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140019620
mov rdx, qword [rsp + 0x90]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x1400196c4
cmp dword [rdx + 0x10], eax
jge 0x1400195e4
mov rax, qword [rsp + 0xa8]
cmp dword [rax], ecx
jl 0x140019e2b
mov rax, qword [rsp + 0xa0]
xor r13d, r13d
mov dword [rax], r13d
mov word [rsi], r13w
jmp 0x1400196c7
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400195fc
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 0x1400196c7
mov rax, qword [rsp + 0xa0]
mov r12d, dword [rax]
lea r13, [rsp + 0xee0]
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 0x140019663
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140004650
mov rsi, qword [rsp + 0x40]
cmp r13, r12
ja 0x140019683
movsxd rax, edi
lea r12, [rax + rax]
lea r8, [rsi + r13*2]
mov r9, r12
mov rdx, r12
mov rcx, rsi
call fcn.140090b50
jmp 0x1400196a0
movsxd rax, edi
lea r12, [rax + rax]
mov r9, r12
lea r8, [rsp + 0xee0]
mov rdx, r12
mov rcx, rsi
call fcn.140090a80
test edi, edi
js 0x140019e47
cmp edi, dword [rsi - 0xc]
jg 0x140019e47
mov dword [rsi - 0x10], edi
mov word [r12 + rsi], 0
or r12, 0xffffffffffffffff
xor r13d, r13d
jmp 0x1400196c7
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 0x1400196ed
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.140091030
test edi, edi
js 0x140019e3c
lea rax, [rsi - 0xc]
mov qword [rsp + 0xa8], rax
cmp edi, dword [rax]
jg 0x140019e3c
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 0x140019796
cmp dword [rbx + 0x10], 0
jl 0x140019786
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140019786
call fcn.1400046b0
mov rdi, rax
mov ecx, r12d
lock xadd dword [rbx + 0x10], ecx
add ecx, 0xffffffff
test ecx, ecx
jg 0x140019771
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 0x140019796
mov r8d, dword [rdx]
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.140005e50
mov dx, 0x2a
lea rcx, [rsp + 0x58]
call fcn.140006500
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.140093360
mov r13, rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x140019cd2
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 0x140019929
mov ebp, 1
or r13, 0xffffffffffffffff
nop
mov r8, r12
mov edx, 0x104
lea rcx, [rsp + 0x6b0]
call fcn.140092450
mov edx, 0x104
lea rcx, [rsp + 0x6b0]
call fcn.140091030
mov rdx, rsi
lea rcx, [rsp + 0x6b0]
call fcn.140090a10
test rax, rax
jne 0x140019891
mov rdx, rbx
lea rcx, [rsp + 0x6b0]
call fcn.140090a10
test rax, rax
je 0x140019894
mov r14d, ebp
test byte [r15 + 0x218], 2
je 0x1400198c3
lea rdx, [rsp + 0x6b0]
lea rcx, [rsp + 0x100]
call fcn.1400119e0
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.14000bb10
test byte [r15 + 0x218], bpl
je 0x1400198ff
lea rdx, [0x1400e06c0]
lea rcx, [rsp + 0x6b0]
call fcn.140090a10
test rax, rax
je 0x1400198ff
lea r8, [rsp + 0x6b0]
mov edx, 0x104
lea rcx, [rsp + 0x1300]
call fcn.140092450
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 0x140019840
mov rbp, qword [rsp + 0x50]
mov r13, qword [rsp + 0x98]
mov rcx, r13
call fcn.14002a4d0
test r14d, r14d
je 0x140019cf0
test byte [r15 + 0x218], 2
je 0x140019acc
xor r12d, r12d
mov ebx, r12d
lea r13d, [r12 + 1]
mov r8d, ebx
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x110]
call fcn.1400159d0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbp, 0xffffffffffffffe8
cmp rcx, rbp
je 0x1400199c9
cmp dword [rbp + 0x10], 0
jl 0x1400199ba
mov rax, qword [rbp]
cmp qword [rcx], rax
jne 0x1400199ba
call fcn.1400046b0
mov rdi, rax
or ecx, 0xffffffff
lock xadd dword [rbp + 0x10], ecx
add ecx, 0xffffffff
test ecx, ecx
jg 0x1400199af
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 0x1400199c9
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140005e50
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 0x1400199ed
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
lea rdi, [0x1400dec08]
mov rbp, qword [rsp + 0x50]
mov rsi, rbp
mov rcx, r13
repe cmpsw word [rsi], word [rdi]
je 0x140019a0b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x140019ac0
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 0x140019a44
cmp rax, qword [rbp - 0x18]
jne 0x140019a44
lea rsi, [rbp - 0x18]
lock add dword [rbp - 8], 1
mov rbp, qword [rsp + 0x50]
jmp 0x140019a80
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbp - 0x10]
call qword [rax]
mov rsi, rax
test rax, rax
je 0x140019e36
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.140090a80
lea rax, [rsi + 0x18]
mov qword [rsp + 0xd8], rax
lea rdx, [rsp + 0xd8]
lea rcx, [0x140123330]
call fcn.140005340
test eax, eax
je 0x140019953
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
mov edi, dword [rsp + 0x48]
mov r12, qword [rsp + 0x68]
jmp 0x140019d15
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
jmp 0x140019ad5
mov r13d, 1
xor r12d, r12d
test byte [r15 + 0x214], 4
je 0x140019b14
lea r8, [rsp + 0x1930]
lea rdx, [rsp + 0xad0]
mov rdi, qword [rsp + 0x80]
mov rcx, rdi
call fcn.140004fc0
test eax, eax
je 0x140019b1c
xor edx, edx
lea rcx, [rsp + 0x1930]
call fcn.140002fd0
jmp 0x140019b1c
mov rdi, qword [rsp + 0x80]
add dword [rsp + 0x78], 1
mov r8, rsi
mov edx, 0x104
lea rcx, [rsp + 0x1720]
call fcn.140092450
lea r8, [rsp + 0xad0]
mov edx, 0x208
lea rcx, [rsp + 0x1b40]
call fcn.140092450
lea r11, [rsp + 0x74]
mov qword [rsp + 0x20], r11
mov r9d, r13d
lea r8, [rsp + 0x1b40]
lea rdx, [rsp + 0x1720]
xor ecx, ecx
call sub.newdev.dll_UpdateDriverForPlugAndPlayDevicesW
test eax, eax
jne 0x140019b8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
call fcn.14000b1c0
jmp 0x140019c6d
cmp dword [rsp + 0x74], 0
je 0x140019c63
test byte [r15 + 0x214], 1
je 0x140019c63
cmp dword [rdi + 0x3b004], 0
je 0x140019c63
mov edx, 0x208
lea rcx, [rsp + 0x10f0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdx, str._system32_net.exe
lea rcx, [rsp + 0x10f0]
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 + 0x10f0]
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 + 0x1b40]
lea rdx, [rsp + 0x1720]
xor ecx, ecx
call sub.newdev.dll_UpdateDriverForPlugAndPlayDevicesW
test eax, eax
jne 0x140019c3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
call fcn.14000b1c0
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
lea r9, str._start_audiosrv
lea r8, [rsp + 0x10f0]
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 0x140019d01
lea rdx, [rsp + 0x1300]
lea rcx, [rsp + 0xe8]
call fcn.1400119e0
mov rdx, rax
lea rcx, [0x140123330]
call fcn.140005340
test eax, eax
jne 0x140019d0c
lea rdx, [rsp + 0x1300]
lea rcx, [rsp + 0xf8]
call fcn.1400119e0
mov rdx, rax
lea rcx, [0x140123330]
call fcn.14000bb10
mov edi, dword [rsp + 0x48]
mov r12, qword [rsp + 0x68]
jmp 0x140019d15
mov rbx, qword [rsp + 0x58]
mov r13d, 1
mov edi, dword [rsp + 0x48]
mov r12, qword [rsp + 0x68]
jmp 0x140019d15
mov r13d, 1
jmp 0x140019d15
mov r13d, 1
mov edi, dword [rsp + 0x48]
mov r12, qword [rsp + 0x68]
jmp 0x140019d15
mov edi, dword [rsp + 0x48]
mov r12, qword [rsp + 0x68]
jmp 0x140019d15
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 0x1400193d0
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x140019dd2
or r12, 0xffffffffffffffff
jmp 0x140018f22
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x1f50]
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 0x140019dbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov r14, qword [rsp + 0x80]
mov rcx, r14
call fcn.14000b1c0
mov rdi, qword [rsp + 0x88]
jmp 0x140019de2
mov dword [rsp + 0x64], r13d
mov r14, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x88]
jmp 0x140019de2
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 0x140019e89
or r12, 0xffffffffffffffff
jmp 0x140018c40
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 0x140019ece
lea edi, [rdx + 1]
mov edx, dword [rsp + 0x64]
xor esi, esi
jmp 0x140019eec
cmp edx, eax
je 0x140019edf
mov edi, 0xfffffffd
mov edx, dword [rsp + 0x64]
xor esi, esi
jmp 0x140019eec
xor esi, esi
mov edi, esi
mov edx, dword [rsp + 0x64]
test edx, edx
cmove edi, ecx
cmp dword [r15 + 0x210], 0
je 0x140019efd
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.14008fb90
nop
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140019f38
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 0x140019f5a
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 0x140019f7b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
mov rcx, qword [rsp + 0x2160]
xor rcx, rsp
call fcn.140090720
mov rbx, qword [rsp + 0x21c0]
add rsp, 0x2170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret