Function at 0x14001b290
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 + 0xb70], rbx
mov rax, qword [0x1401216d8]
xor rax, rsp
mov qword [rsp + 0xb10], rax
mov dword [rsp + 0x60], r8d
mov qword [rsp + 0x80], rdx
mov r15, rcx
mov r13d, 1
xor r14d, r14d
mov qword [rsp + 0x78], r14
mov dword [rsp + 0x70], r14d
call fcn.14004b0d0
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x14001b30c
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea rdx, [0x1400deee8]
test rdx, 0xffffffffffff0000
jne 0x14001b351
movzx edi, dx
mov ecx, edi
call fcn.14004aef8
test rax, rax
je 0x14001b360
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140005b70
mov rbx, qword [rsp + 0x38]
jmp 0x14001b360
lea rcx, [rsp + 0x38]
call fcn.140005ff0
mov rbx, qword [rsp + 0x38]
mov dword [rsp + 0x5c], r14d
call fcn.14004b0d0
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x14001b385
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rbp, [0x1400debf8]
mov rsi, rbp
or r12, 0xffffffffffffffff
shr rsi, 0x10
jne 0x14001b3c9
movzx edi, bp
mov ecx, edi
call fcn.14004aef8
test rax, rax
je 0x14001b3e9
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140005b70
jmp 0x14001b3e9
xor eax, eax
mov rcx, r12
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, rbp
lea rcx, [rsp + 0x50]
call fcn.140005dc0
nop
call fcn.14004b0d0
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x14001b409
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
test rsi, rsi
jne 0x14001b43e
movzx edi, bp
mov ecx, edi
call fcn.14004aef8
test rax, rax
je 0x14001b45e
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140005b70
jmp 0x14001b45e
xor eax, eax
mov rcx, r12
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, rbp
lea rcx, [rsp + 0x48]
call fcn.140005dc0
nop
mov r9d, 4
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14001b4e6
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14001b49c
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 eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001b4be
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x14001b4df
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x14001bb75
mov dword [rsp + 0x98], SafeArrayDestroyData
xor esi, esi
mov dword [rsp + 0x30], esi
lea r8, [rsp + 0x98]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x14001bb03
nop
nop
nop
nop
mov qword [rsp + 0x20], 0
mov r9d, 0x104
lea r8, [rsp + 0x2d0]
lea rdx, [rsp + 0x98]
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
xor eax, eax
mov rcx, r12
lea rdi, [rsp + 0x2d0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x14001b5be
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14001b64c
cmp dword [rdx + 0x10], eax
jge 0x14001b58f
cmp dword [rbx - 0xc], eax
jl 0x14001bae2
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x14001b64c
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001b5a7
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 + 0x38], rbx
jmp 0x14001b64c
mov esi, dword [rbx - 0x10]
lea rbp, [rsp + 0x2d0]
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 0x14001b5f1
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140004650
mov rbx, qword [rsp + 0x38]
cmp rbp, rsi
ja 0x14001b611
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 0x14001b62e
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [rsp + 0x2d0]
mov rdx, rsi
mov rcx, rbx
call fcn.1400907e0
test edi, edi
js 0x14001baf8
cmp edi, dword [rbx - 0xc]
jg 0x14001baf8
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
mov esi, dword [rsp + 0x30]
cmp dword [rbx - 0x10], 0
jl 0x14001b675
lea rdx, str.FUNC_01VEN_8086DEV
mov rcx, rbx
call fcn.140090770
test rax, rax
je 0x14001b675
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14001babf
cmp dword [rbx - 0x10], 0
jl 0x14001b69e
lea rdx, str.SWDMMDEVAPI
mov rcx, rbx
call fcn.140090770
test rax, rax
je 0x14001b69e
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14001babf
xor ebp, ebp
cmp dword [rbx - 0x10], ebp
jl 0x14001b6cb
lea rdx, str.SWDDRIVERENUMREALTEKSRV
mov rcx, rbx
call fcn.140090770
test rax, rax
je 0x14001b6cb
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14001b6cb
mov ebp, 1
jmp 0x14001b6fe
cmp dword [rbx - 0x10], ebp
jl 0x14001b6fe
lea rdx, str.SWDDRIVERENUM
mov rcx, rbx
call fcn.140090770
test rax, rax
je 0x14001b6fe
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14001b6fe
test byte [0x140123318], 2
mov eax, 1
cmovne ebp, eax
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x68], 0
cmp dword [rsp + 0x60], 0
je 0x14001b738
xor r9d, r9d
mov r8d, dword [rsp + 0xac]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x64]
call qword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Status]
test eax, eax
je 0x14001babf
mov dword [rsp + 0x40], 0
xor r8d, r8d
mov edx, dword [rsp + 0xac]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
test eax, eax
jne 0x14001babf
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x4e0]
call fcn.140091a50
xor r9d, r9d
mov r8d, 0x104
lea rdx, [rsp + 0x4e0]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDW]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x4e0]
call fcn.140090770
test rax, rax
je 0x14001babf
xor esi, esi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
lea r8d, [rsi + 0xb]
lea rdx, [rsp + 0x98]
mov rcx, r14
call fcn.140002500
test eax, eax
je 0x14001b882
mov rdx, qword [rsp + 0x78]
test rdx, rdx
jne 0x14001b7e6
xor ecx, ecx
jmp 0x14001b7f8
xor eax, eax
mov rcx, r12
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov r8d, ecx
lea rcx, [rsp + 0x38]
call fcn.140005dc0
mov rbx, qword [rsp + 0x38]
movsxd rdi, dword [rbx - 0x10]
mov r13d, 1
mov ecx, r13d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14001b834
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140004650
mov rbx, qword [rsp + 0x38]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.140090d90
test edi, edi
js 0x14001baed
cmp edi, dword [rbx - 0xc]
jg 0x14001baed
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], si
cmp dword [rbx - 0x10], esi
jl 0x14001b888
lea rdx, str.MICROSOFT
mov rcx, rbx
call fcn.140090770
test rax, rax
je 0x14001b888
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
cmovne esi, r13d
jmp 0x14001b888
mov r13d, 1
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, r13d
lea rdx, [rsp + 0x98]
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14001b952
mov dword [rsp + 0x58], r13d
mov dword [rsp + 0x6c], 0x208
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6f0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
lea rdx, str.InfPath
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001b944
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 + 0x6f0]
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call fcn.140092260
jmp 0x14001b947
mov esi, r13d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001b955
mov esi, r13d
lea rdx, [rsp + 0x6f0]
mov rcx, r15
call fcn.1400141e0
cmp eax, 1
cmovg esi, r13d
lea r8, [rsp + 0x98]
mov rdx, r14
mov ecx, 5
call qword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
mov r13d, eax
test eax, eax
je 0x14001bab5
test esi, esi
jne 0x14001baaf
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x90]
call fcn.140011950
mov rdx, rax
mov rcx, r15
call fcn.140014b20
test eax, eax
je 0x14001b9cf
movsxd rax, dword [r15 + 0x3afd0]
imul rax, rax, 0x12c8
mov dword [rax + r15 + 0x4bc], r13d
test ebp, ebp
je 0x14001b9fc
lea r8, [rsp + 0x900]
lea rdx, [rsp + 0xc0]
mov rcx, r15
call fcn.140004fc0
test eax, eax
je 0x14001b9fc
lea rcx, [rsp + 0x900]
call fcn.140003150
cmp dword [0x1401232e8], 0
jne 0x14001ba2d
cmp dword [0x1401232ec], 0
jne 0x14001ba2d
cmp dword [0x1401232f0], 0
jne 0x14001ba2d
cmp dword [0x1401232f4], 0
jne 0x14001ba2d
cmp dword [0x1401232f8], 0
je 0x14001babb
lea r9, [rsp + 0x5c]
xor r8d, r8d
lea edx, [r8 + 0x24]
lea rcx, [rsp + 0xc0]
call fcn.1400027c0
test eax, eax
je 0x14001ba5d
mov r8d, eax
xor edx, edx
mov rcx, r15
call fcn.14000b6d0
mov esi, dword [rsp + 0x30]
jmp 0x14001babf
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 esi, dword [rsp + 0x30]
jmp 0x14001babf
mov esi, dword [rsp + 0x30]
jmp 0x14001babf
mov esi, dword [rsp + 0x30]
jmp 0x14001babf
mov esi, dword [rsp + 0x30]
add esi, 1
mov dword [rsp + 0x30], esi
lea r8, [rsp + 0x98]
mov edx, esi
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x14001bb03
jmp 0x14001b520
mov ecx, 0x80070057
call fcn.140001610
int3
mov ecx, 0x80070057
call fcn.140001610
int3
mov ecx, 0x80070057
call fcn.140001610
int3
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001bb2f
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 eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001bb51
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x14001bb72
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r13d
mov rcx, qword [rsp + 0xb10]
xor rcx, rsp
call fcn.140090480
mov rbx, qword [rsp + 0xb70]
add rsp, 0xb20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret