Function at 0x14001b500
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.14004b378
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x14001b57c
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, [0x1400def30]
test rdx, 0xffffffffffff0000
jne 0x14001b5c1
movzx edi, dx
mov ecx, edi
call fcn.14004b1a0
test rax, rax
je 0x14001b5d0
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140005c00
mov rbx, qword [rsp + 0x38]
jmp 0x14001b5d0
lea rcx, [rsp + 0x38]
call fcn.140006080
mov rbx, qword [rsp + 0x38]
mov dword [rsp + 0x5c], r14d
call fcn.14004b378
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x14001b5f5
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, [0x1400dec08]
mov rsi, rbp
or r12, 0xffffffffffffffff
shr rsi, 0x10
jne 0x14001b639
movzx edi, bp
mov ecx, edi
call fcn.14004b1a0
test rax, rax
je 0x14001b659
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140005c00
jmp 0x14001b659
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.140005e50
nop
call fcn.14004b378
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x14001b679
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 0x14001b6ae
movzx edi, bp
mov ecx, edi
call fcn.14004b1a0
test rax, rax
je 0x14001b6ce
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140005c00
jmp 0x14001b6ce
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.140005e50
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 0x14001b756
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14001b70c
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 0x14001b72e
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 0x14001b74f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x14001bde5
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 0x14001bd73
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 0x14001b82e
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14001b8bc
cmp dword [rdx + 0x10], eax
jge 0x14001b7ff
cmp dword [rbx - 0xc], eax
jl 0x14001bd52
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x14001b8bc
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001b817
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 0x14001b8bc
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 0x14001b861
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140004650
mov rbx, qword [rsp + 0x38]
cmp rbp, rsi
ja 0x14001b881
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + rbp*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.140090b50
jmp 0x14001b89e
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [rsp + 0x2d0]
mov rdx, rsi
mov rcx, rbx
call fcn.140090a80
test edi, edi
js 0x14001bd68
cmp edi, dword [rbx - 0xc]
jg 0x14001bd68
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
mov esi, dword [rsp + 0x30]
cmp dword [rbx - 0x10], 0
jl 0x14001b8e5
lea rdx, str.FUNC_01VEN_8086DEV
mov rcx, rbx
call fcn.140090a10
test rax, rax
je 0x14001b8e5
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14001bd2f
cmp dword [rbx - 0x10], 0
jl 0x14001b90e
lea rdx, str.SWDMMDEVAPI
mov rcx, rbx
call fcn.140090a10
test rax, rax
je 0x14001b90e
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14001bd2f
xor ebp, ebp
cmp dword [rbx - 0x10], ebp
jl 0x14001b93b
lea rdx, str.SWDDRIVERENUMREALTEKSRV
mov rcx, rbx
call fcn.140090a10
test rax, rax
je 0x14001b93b
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14001b93b
mov ebp, 1
jmp 0x14001b96e
cmp dword [rbx - 0x10], ebp
jl 0x14001b96e
lea rdx, str.SWDDRIVERENUM
mov rcx, rbx
call fcn.140090a10
test rax, rax
je 0x14001b96e
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14001b96e
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 0x14001b9a8
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 0x14001bd2f
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 0x14001bd2f
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x4e0]
call fcn.140091cf0
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.140090a10
test rax, rax
je 0x14001bd2f
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 0x14001baf2
mov rdx, qword [rsp + 0x78]
test rdx, rdx
jne 0x14001ba56
xor ecx, ecx
jmp 0x14001ba68
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.140005e50
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 0x14001baa4
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.140091030
test edi, edi
js 0x14001bd5d
cmp edi, dword [rbx - 0xc]
jg 0x14001bd5d
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], si
cmp dword [rbx - 0x10], esi
jl 0x14001baf8
lea rdx, str.MICROSOFT
mov rcx, rbx
call fcn.140090a10
test rax, rax
je 0x14001baf8
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
cmovne esi, r13d
jmp 0x14001baf8
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 0x14001bbc2
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 0x14001bbb4
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 + 0x6f0]
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call fcn.140092500
jmp 0x14001bbb7
mov esi, r13d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001bbc5
mov esi, r13d
lea rdx, [rsp + 0x6f0]
mov rcx, r15
call fcn.140014270
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 0x14001bd25
test esi, esi
jne 0x14001bd1f
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x90]
call fcn.1400119e0
mov rdx, rax
mov rcx, r15
call fcn.140014bb0
test eax, eax
je 0x14001bc3f
movsxd rax, dword [r15 + 0x3afd0]
imul rax, rax, 0x12c8
mov dword [rax + r15 + 0x4bc], r13d
test ebp, ebp
je 0x14001bc6c
lea r8, [rsp + 0x900]
lea rdx, [rsp + 0xc0]
mov rcx, r15
call fcn.140004fc0
test eax, eax
je 0x14001bc6c
lea rcx, [rsp + 0x900]
call fcn.140003150
cmp dword [0x1401232e8], 0
jne 0x14001bc9d
cmp dword [0x1401232ec], 0
jne 0x14001bc9d
cmp dword [0x1401232f0], 0
jne 0x14001bc9d
cmp dword [0x1401232f4], 0
jne 0x14001bc9d
cmp dword [0x1401232f8], 0
je 0x14001bd2b
lea r9, [rsp + 0x5c]
xor r8d, r8d
lea edx, [r8 + 0x24]
lea rcx, [rsp + 0xc0]
call fcn.1400027c0
test eax, eax
je 0x14001bccd
mov r8d, eax
xor edx, edx
mov rcx, r15
call fcn.14000b760
mov esi, dword [rsp + 0x30]
jmp 0x14001bd2f
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 esi, dword [rsp + 0x30]
jmp 0x14001bd2f
mov esi, dword [rsp + 0x30]
jmp 0x14001bd2f
mov esi, dword [rsp + 0x30]
jmp 0x14001bd2f
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 0x14001bd73
jmp 0x14001b790
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 0x14001bd9f
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 0x14001bdc1
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 0x14001bde2
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.140090720
mov rbx, qword [rsp + 0xb70]
add rsp, 0xb20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret