Function at 0x14001a050
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.14004b378
mov rcx, rax
mov eax, edi
test rcx, rcx
setne al
test eax, eax
jne 0x14001a0cf
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, [0x1400dec08]
mov rbx, rsi
or rbp, 0xffffffffffffffff
shr rbx, 0x10
jne 0x14001a113
movzx edi, si
mov ecx, edi
call fcn.14004b1a0
test rax, rax
je 0x14001a133
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140005c00
jmp 0x14001a133
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.140005e50
nop
mov dword [rsp + 0x74], 0
mov word [rsp + 0x2d0], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x2d2]
call fcn.140091cf0
call fcn.14004b378
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x14001a179
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 0x14001a1ae
movzx edi, si
mov ecx, edi
call fcn.14004b1a0
test rax, rax
je 0x14001a1ce
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140005c00
jmp 0x14001a1ce
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.140005e50
nop
test r12, r12
jne 0x14001a1d9
xor edi, edi
mov ecx, edi
jmp 0x14001a1ed
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.140005e50
mov rbx, qword [rsp + 0x60]
cmp dword [rbx - 0x10], 0
jl 0x14001a269
lea rdx, str.FUNC_01VEN_8086DEV
mov rcx, rbx
call fcn.140090a10
test rax, rax
je 0x14001a269
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14001a269
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001a243
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 0x14001a261
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r13d
jmp 0x14001a77d
cmp dword [rbx - 0x10], 0
jl 0x14001a2d0
lea rdx, str.SWDMMDEVAPI
mov rcx, rbx
call fcn.140090a10
test rax, rax
je 0x14001a2d0
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14001a2d0
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001a2aa
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 0x14001a2c8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r13d
jmp 0x14001a77d
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 0x14001a740
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 0x14001a736
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.140090a10
test rax, rax
je 0x14001a708
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.140090a10
test rax, rax
je 0x14001a708
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 0x14001a4aa
mov rdx, qword [rsp + 0x78]
test rdx, rdx
jne 0x14001a3ed
mov ecx, edi
jmp 0x14001a3ff
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.140005e50
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 0x14001a437
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.140091030
test esi, esi
js 0x14001a72b
cmp esi, dword [rdi - 0xc]
jg 0x14001a72b
mov dword [rdi - 0x10], esi
mov word [rdi + rsi*2], 0
cmp dword [rdi - 0x10], 0
jl 0x14001a49e
lea rdx, str.MICROSOFT
mov rcx, rdi
call fcn.140090a10
test rax, rax
je 0x14001a492
sub rax, rdi
sar rax, 1
cmp eax, 0xffffffff
mov r8d, 1
cmovne r12d, r8d
mov esi, dword [rsp + 0x40]
jmp 0x14001a4b0
mov esi, dword [rsp + 0x40]
mov r8d, 1
jmp 0x14001a4b0
mov esi, dword [rsp + 0x40]
mov r8d, 1
jmp 0x14001a4b0
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 0x14001a57e
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 0x14001a56d
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.140092500
lea r8, [rsp + 0x4e0]
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call fcn.140092500
jmp 0x14001a573
mov r12d, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001a584
mov r12d, 1
lea rdx, [rsp + 0x4e0]
mov rcx, r14
call fcn.140014270
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 0x14001a6f5
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 0x14001a6fc
test r12d, r12d
jne 0x14001a6ee
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x90]
call fcn.1400119e0
mov rdx, rax
mov rcx, r14
call fcn.140014bb0
test eax, eax
je 0x14001a63e
movsxd rax, dword [r14 + 0x3afd0]
imul rax, rax, 0x12c8
mov dword [rax + r14 + 0x4bc], r15d
cmp dword [0x1401232e8], edi
jne 0x14001a66a
cmp dword [0x1401232ec], edi
jne 0x14001a66a
cmp dword [0x1401232f0], edi
jne 0x14001a66a
cmp dword [0x1401232f4], edi
jne 0x14001a66a
cmp dword [0x1401232f8], edi
je 0x14001a703
lea r9, [rsp + 0x74]
xor r8d, r8d
lea edx, [r8 + 0x24]
lea rcx, [rsp + 0xc0]
call fcn.1400027c0
test eax, eax
je 0x14001a69b
mov r8d, eax
xor edx, edx
mov rcx, r14
call fcn.14000b760
mov r12, qword [rsp + 0x50]
jmp 0x14001a708
lea rdx, [0x1400ded04]
lea rcx, [rsp + 0xc0]
call fcn.140090a10
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 0x14001a708
mov r12, qword [rsp + 0x50]
jmp 0x14001a708
mov r12, qword [rsp + 0x50]
jmp 0x14001a708
mov r12, qword [rsp + 0x50]
jmp 0x14001a708
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 0x14001a736
jmp 0x14001a320
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 0x14001a75c
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 0x14001a77a
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.140090720
mov rbx, qword [rsp + 0xb78]
add rsp, 0xb20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret