Function at 0x140019de0
Capabilities:
Delete file
Get common file path
Query or enumerate registry value
Set file attributes

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb20
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rsp + 0xb78], rbx
mov rax, qword [0x1401216d8]
xor rax, rsp
mov qword [rsp + 0xb10], rax
mov qword [rsp + 0x80], r8
mov r12, rdx
mov qword [rsp + 0x50], rdx
mov r14, rcx
mov r13d, 1
mov r15d, r13d
xor edi, edi
mov qword [rsp + 0x78], rdi
mov dword [rsp + 0x6c], edi
call fcn.14004b0d0
mov rcx, rax
mov eax, edi
test rcx, rcx
setne al
test eax, eax
jne 0x140019e5f
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rsi, [0x1400debf8]
mov rbx, rsi
or rbp, 0xffffffffffffffff
shr rbx, 0x10
jne 0x140019ea3
movzx edi, si
mov ecx, edi
call fcn.14004aef8
test rax, rax
je 0x140019ec3
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140005b70
jmp 0x140019ec3
xor eax, eax
mov rcx, rbp
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140005dc0
nop
mov dword [rsp + 0x74], 0
mov word [rsp + 0x2d0], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x2d2]
call fcn.140091a50
call fcn.14004b0d0
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x140019f09
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x60], rax
test rbx, rbx
jne 0x140019f3e
movzx edi, si
mov ecx, edi
call fcn.14004aef8
test rax, rax
je 0x140019f5e
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140005b70
jmp 0x140019f5e
xor eax, eax
mov rcx, rbp
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140005dc0
nop
test r12, r12
jne 0x140019f69
xor edi, edi
mov ecx, edi
jmp 0x140019f7d
xor eax, eax
mov rcx, rbp
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
xor edi, edi
mov r8d, ecx
mov rdx, r12
lea rcx, [rsp + 0x60]
call fcn.140005dc0
mov rbx, qword [rsp + 0x60]
cmp dword [rbx - 0x10], 0
jl 0x140019ff9
lea rdx, str.FUNC_01VEN_8086DEV
mov rcx, rbx
call fcn.140090770
test rax, rax
je 0x140019ff9
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x140019ff9
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140019fd3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x140019ff1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r13d
jmp 0x14001a50d
cmp dword [rbx - 0x10], 0
jl 0x14001a060
lea rdx, str.SWDMMDEVAPI
mov rcx, rbx
call fcn.140090770
test rax, rax
je 0x14001a060
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14001a060
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001a03a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x14001a058
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r13d
jmp 0x14001a50d
mov r9d, 4
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x14001a4d0
mov dword [rsp + 0x98], SafeArrayDestroyData
mov esi, edi
mov dword [rsp + 0x40], edi
lea r8, [rsp + 0x98]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x14001a4c6
nop
mov qword [rsp + 0x20], rdi
mov r9d, 0x104
lea r8, [rsp + 0x6f0]
lea rdx, [rsp + 0x98]
mov rcx, r13
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
mov rdx, r12
lea rcx, [rsp + 0x6f0]
call fcn.140090770
test rax, rax
je 0x14001a498
mov dword [rsp + 0x58], edi
xor r8d, r8d
mov edx, dword [rsp + 0xac]
lea rcx, [rsp + 0x58]
call qword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
xor r9d, r9d
mov r8d, 0x104
lea rdx, [rsp + 0x900]
mov ecx, dword [rsp + 0x58]
call qword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDW]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x900]
call fcn.140090770
test rax, rax
je 0x14001a498
mov r12d, edi
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
mov r8d, SafeArrayDestroy
lea rdx, [rsp + 0x98]
mov rcx, r13
call fcn.140002500
test eax, eax
je 0x14001a23a
mov rdx, qword [rsp + 0x78]
test rdx, rdx
jne 0x14001a17d
mov ecx, edi
jmp 0x14001a18f
xor eax, eax
mov rcx, rbp
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov r8d, ecx
lea rcx, [rsp + 0x48]
call fcn.140005dc0
mov rdi, qword [rsp + 0x48]
movsxd rsi, dword [rdi - 0x10]
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, esi
or eax, ecx
jge 0x14001a1c7
mov edx, esi
lea rcx, [rsp + 0x48]
call fcn.140004650
mov rdi, qword [rsp + 0x48]
lea eax, [rsi + 1]
movsxd rdx, eax
mov rcx, rdi
call fcn.140090d90
test esi, esi
js 0x14001a4bb
cmp esi, dword [rdi - 0xc]
jg 0x14001a4bb
mov dword [rdi - 0x10], esi
mov word [rdi + rsi*2], 0
cmp dword [rdi - 0x10], 0
jl 0x14001a22e
lea rdx, str.MICROSOFT
mov rcx, rdi
call fcn.140090770
test rax, rax
je 0x14001a222
sub rax, rdi
sar rax, 1
cmp eax, 0xffffffff
mov r8d, 1
cmovne r12d, r8d
mov esi, dword [rsp + 0x40]
jmp 0x14001a240
mov esi, dword [rsp + 0x40]
mov r8d, 1
jmp 0x14001a240
mov esi, dword [rsp + 0x40]
mov r8d, 1
jmp 0x14001a240
mov r8d, 1
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 2
xor r9d, r9d
lea rdx, [rsp + 0x98]
mov rcx, r13
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14001a30e
mov eax, 1
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x70], 0x208
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4e0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.InfPath
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001a2fd
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, str.inf_
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call fcn.140092260
lea r8, [rsp + 0x4e0]
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call fcn.140092260
jmp 0x14001a303
mov r12d, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001a314
mov r12d, 1
lea rdx, [rsp + 0x4e0]
mov rcx, r14
call fcn.1400141e0
cmp eax, 1
mov eax, 1
cmovg r12d, eax
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
lea rax, [rsp + 0x2d0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [rdi + 9]
lea rdx, [rsp + 0x98]
mov rcx, r13
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x14001a485
lea r8, [rsp + 0x98]
mov rdx, r13
lea ecx, [rdi + 5]
call qword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
mov r15d, eax
test eax, eax
je 0x14001a48c
test r12d, r12d
jne 0x14001a47e
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x90]
call fcn.140011950
mov rdx, rax
mov rcx, r14
call fcn.140014b20
test eax, eax
je 0x14001a3ce
movsxd rax, dword [r14 + 0x3afd0]
imul rax, rax, 0x12c8
mov dword [rax + r14 + 0x4bc], r15d
cmp dword [0x1401232e8], edi
jne 0x14001a3fa
cmp dword [0x1401232ec], edi
jne 0x14001a3fa
cmp dword [0x1401232f0], edi
jne 0x14001a3fa
cmp dword [0x1401232f4], edi
jne 0x14001a3fa
cmp dword [0x1401232f8], edi
je 0x14001a493
lea r9, [rsp + 0x74]
xor r8d, r8d
lea edx, [r8 + 0x24]
lea rcx, [rsp + 0xc0]
call fcn.1400027c0
test eax, eax
je 0x14001a42b
mov r8d, eax
xor edx, edx
mov rcx, r14
call fcn.14000b6d0
mov r12, qword [rsp + 0x50]
jmp 0x14001a498
lea rdx, [0x1400decf4]
lea rcx, [rsp + 0xc0]
call fcn.140090770
mov word [rax], 0x2e
mov word [rax + 2], 0x50
mov word [rax + 4], 0x4e
mov word [rax + 6], 0x46
mov edx, 0x80
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r12, qword [rsp + 0x50]
jmp 0x14001a498
mov r12, qword [rsp + 0x50]
jmp 0x14001a498
mov r12, qword [rsp + 0x50]
jmp 0x14001a498
mov r12, qword [rsp + 0x50]
jmp 0x14001a498
mov r12, qword [rsp + 0x50]
add esi, 1
mov dword [rsp + 0x40], esi
lea r8, [rsp + 0x98]
mov edx, esi
mov rcx, r13
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x14001a4c6
jmp 0x14001a0b0
mov ecx, 0x80070057
call fcn.140001610
int3
mov rcx, r13
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
nop
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001a4ec
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x14001a50a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r15d
mov rcx, qword [rsp + 0xb10]
xor rcx, rsp
call fcn.140090480
mov rbx, qword [rsp + 0xb78]
add rsp, 0xb20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret