Function at 0x1400204e0
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 [0x14012e6d8]
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.140055b68
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x14002055c
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, [0x1400e9f40]
test rdx, 0xffffffffffff0000
jne 0x1400205a1
movzx edi, dx
mov ecx, edi
call fcn.140055990
test rax, rax
je 0x1400205b0
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140006090
mov rbx, qword [rsp + 0x38]
jmp 0x1400205b0
lea rcx, [rsp + 0x38]
call fcn.140006510
mov rbx, qword [rsp + 0x38]
mov dword [rsp + 0x5c], r14d
call fcn.140055b68
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x1400205d5
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, [0x1400e9c18]
mov rsi, rbp
or r12, 0xffffffffffffffff
shr rsi, 0x10
jne 0x140020619
movzx edi, bp
mov ecx, edi
call fcn.140055990
test rax, rax
je 0x140020639
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140006090
jmp 0x140020639
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.1400062e0
nop
call fcn.140055b68
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x140020659
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 0x14002068e
movzx edi, bp
mov ecx, edi
call fcn.140055990
test rax, rax
je 0x1400206ae
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140006090
jmp 0x1400206ae
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.1400062e0
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 0x140020736
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1400206ec
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 0x14002070e
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 0x14002072f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140020dc5
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 0x140020d53
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 0x14002080e
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14002089c
cmp dword [rdx + 0x10], eax
jge 0x1400207df
cmp dword [rbx - 0xc], eax
jl 0x140020d32
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x14002089c
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400207f7
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 0x14002089c
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 0x140020841
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140004670
mov rbx, qword [rsp + 0x38]
cmp rbp, rsi
ja 0x140020861
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + rbp*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.14009b340
jmp 0x14002087e
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [rsp + 0x2d0]
mov rdx, rsi
mov rcx, rbx
call fcn.14009b270
test edi, edi
js 0x140020d48
cmp edi, dword [rbx - 0xc]
jg 0x140020d48
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
mov esi, dword [rsp + 0x30]
cmp dword [rbx - 0x10], 0
jl 0x1400208c5
lea rdx, str.FUNC_01VEN_8086DEV
mov rcx, rbx
call fcn.14009b200
test rax, rax
je 0x1400208c5
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x140020d0f
cmp dword [rbx - 0x10], 0
jl 0x1400208ee
lea rdx, str.SWDMMDEVAPI
mov rcx, rbx
call fcn.14009b200
test rax, rax
je 0x1400208ee
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x140020d0f
xor ebp, ebp
cmp dword [rbx - 0x10], ebp
jl 0x14002091b
lea rdx, str.SWDDRIVERENUMREALTEKSRV
mov rcx, rbx
call fcn.14009b200
test rax, rax
je 0x14002091b
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14002091b
mov ebp, 1
jmp 0x14002094e
cmp dword [rbx - 0x10], ebp
jl 0x14002094e
lea rdx, str.SWDDRIVERENUM
mov rcx, rbx
call fcn.14009b200
test rax, rax
je 0x14002094e
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14002094e
test byte [0x140131158], 2
mov eax, 1
cmovne ebp, eax
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x68], 0
cmp dword [rsp + 0x60], 0
je 0x140020988
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 0x140020d0f
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 0x140020d0f
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x4e0]
call fcn.14009c4e0
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.14009b200
test rax, rax
je 0x140020d0f
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.140002510
test eax, eax
je 0x140020ad2
mov rdx, qword [rsp + 0x78]
test rdx, rdx
jne 0x140020a36
xor ecx, ecx
jmp 0x140020a48
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.1400062e0
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 0x140020a84
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140004670
mov rbx, qword [rsp + 0x38]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.14009b820
test edi, edi
js 0x140020d3d
cmp edi, dword [rbx - 0xc]
jg 0x140020d3d
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], si
cmp dword [rbx - 0x10], esi
jl 0x140020ad8
lea rdx, str.MICROSOFT
mov rcx, rbx
call fcn.14009b200
test rax, rax
je 0x140020ad8
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
cmovne esi, r13d
jmp 0x140020ad8
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 0x140020ba2
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 0x140020b94
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.14009ccf0
lea r8, [rsp + 0x6f0]
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call fcn.14009ccf0
jmp 0x140020b97
mov esi, r13d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140020ba5
mov esi, r13d
lea rdx, [rsp + 0x6f0]
mov rcx, r15
call fcn.140017110
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 0x140020d05
test esi, esi
jne 0x140020cff
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x90]
call fcn.140013b00
mov rdx, rax
mov rcx, r15
call fcn.1400180b0
test eax, eax
je 0x140020c1f
movsxd rax, dword [r15 + 0x3b1d8]
imul rax, rax, 0x12c8
mov dword [rax + r15 + 0x6c4], r13d
test ebp, ebp
je 0x140020c4c
lea r8, [rsp + 0x900]
lea rdx, [rsp + 0xc0]
mov rcx, r15
call fcn.140005450
test eax, eax
je 0x140020c4c
lea rcx, [rsp + 0x900]
call fcn.140003160
cmp dword [0x1401302e8], 0
jne 0x140020c7d
cmp dword [0x1401302ec], 0
jne 0x140020c7d
cmp dword [0x1401302f0], 0
jne 0x140020c7d
cmp dword [0x1401302f4], 0
jne 0x140020c7d
cmp dword [0x1401302f8], 0
je 0x140020d0b
lea r9, [rsp + 0x5c]
xor r8d, r8d
lea edx, [r8 + 0x24]
lea rcx, [rsp + 0xc0]
call fcn.1400027d0
test eax, eax
je 0x140020cad
mov r8d, eax
xor edx, edx
mov rcx, r15
call fcn.14000cf00
mov esi, dword [rsp + 0x30]
jmp 0x140020d0f
lea rdx, [0x1400e9d14]
lea rcx, [rsp + 0xc0]
call fcn.14009b200
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 0x140020d0f
mov esi, dword [rsp + 0x30]
jmp 0x140020d0f
mov esi, dword [rsp + 0x30]
jmp 0x140020d0f
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 0x140020d53
jmp 0x140020770
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 0x140020d7f
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 0x140020da1
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 0x140020dc2
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.14009af10
mov rbx, qword [rsp + 0xb70]
add rsp, 0xb20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret