Function at 0x14001d610
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set file attributes

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x720
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rsp + 0x770], rbx
mov rax, qword [0x14012e6d8]
xor rax, rsp
mov qword [rsp + 0x710], rax
mov r15, rdx
mov r12, rcx
mov qword [rsp + 0x50], rcx
mov edi, 1
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x60], 0
mov word [rsp + 0x2f0], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x2f2]
call fcn.14009c4e0
call fcn.140055b68
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x14001d6a3
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x38], rsi
call fcn.140055b68
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x14001d6d1
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbp, [rax + 0x18]
mov qword [rsp + 0x30], rbp
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0xa0]
call fcn.14009c4e0
mov edx, 0x104
lea rcx, [rsp + 0x500]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, str.infoem.inf
mov edx, 0x104
lea rcx, [rsp + 0x500]
call fcn.14009ccf0
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x500]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x80], rax
or r14, 0xffffffffffffffff
cmp rax, r14
je 0x14001dfef
xor edi, edi
nop
call fcn.140055b68
mov rcx, rax
mov eax, edi
test rcx, rcx
setne al
test eax, eax
je 0x14001dfe4
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0xcc]
lea rax, [rsp + 0xcc]
test rax, 0xffffffffffff0000
jne 0x14001d7be
movzx edi, cx
mov ecx, edi
call fcn.140055990
test rax, rax
je 0x14001d8db
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140006090
mov rbx, qword [rsp + 0x40]
xor edi, edi
jmp 0x14001d8dd
xor eax, eax
mov rcx, r14
lea rdi, [rsp + 0xcc]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x14001d842
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14001d8d7
cmp dword [rdx + 0x10], eax
jge 0x14001d807
cmp dword [rbx - 0xc], eax
jl 0x14001df84
xor edi, edi
mov dword [rbx - 0x10], edi
mov word [rbx], ax
jmp 0x14001d8dd
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001d81f
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 + 0x40], rbx
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
xor edi, edi
jmp 0x14001d8dd
mov r12d, dword [rbx - 0x10]
lea r13, [rsp + 0xcc]
sub r13, rbx
sar r13, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14001d876
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140004670
mov rbx, qword [rsp + 0x40]
cmp r13, r12
ja 0x14001d896
movsxd rax, edi
lea r12, [rax + rax]
lea r8, [rbx + r13*2]
mov r9, r12
mov rdx, r12
mov rcx, rbx
call fcn.14009b340
jmp 0x14001d8b3
movsxd rax, edi
lea r12, [rax + rax]
mov r9, r12
lea r8, [rsp + 0xcc]
mov rdx, r12
mov rcx, rbx
call fcn.14009b270
test edi, edi
js 0x14001dfd9
cmp edi, dword [rbx - 0xc]
jg 0x14001dfd9
mov dword [rbx - 0x10], edi
mov word [r12 + rbx], 0
mov r12, qword [rsp + 0x50]
xor edi, edi
jmp 0x14001d8dd
xor edi, edi
jmp 0x14001d8dd
xor edi, edi
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x14001df2f
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.Version
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x14001df25
nop
mov qword [rsp + 0x20], rdi
mov r9d, 0x104
lea r8, [rsp + 0x2f0]
xor edx, edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x14001d9af
lea rdx, str.ClassGuid
lea rcx, [rsp + 0x2f0]
call fcn.14009b200
test rax, rax
je 0x14001d9af
mov qword [rsp + 0x20], rdi
mov r9d, 0x104
lea r8, [rsp + 0x2f0]
mov edx, 1
lea rcx, [rsp + 0x68]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x14001d9af
mov edx, 0x104
lea rcx, [rsp + 0x2f0]
call fcn.14009b820
lea rdx, str.E2F84CE7_8EFA_411C_AA69_97454CA4CB57
lea rcx, [rsp + 0x2f0]
call fcn.14009b200
test rax, rax
jne 0x14001d9cc
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x68]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x14001df25
jmp 0x14001d920
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.Manufacturer
mov rcx, r13
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x14001df25
mov qword [rsp + 0x20], rdi
mov r9d, 0x104
lea r8, [rsp + 0x2f0]
mov edx, 1
lea rcx, [rsp + 0x68]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x14001df25
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x2f0]
mov rdx, r13
mov rcx, r12
call fcn.140003670
test eax, eax
jne 0x14001da6a
mov rcx, r13
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
nop
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001df5b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14001df5b
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, [rsp + 0x2f0]
mov rcx, r13
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x14001df25
xor r12d, r12d
nop
mov qword [rsp + 0x20], r12
mov r9d, 0x104
lea r8, [rsp + 0x2f0]
mov edx, 2
lea rcx, [rsp + 0x68]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x14001dd5d
xor eax, eax
mov rcx, r14
lea rdi, [rsp + 0x2f0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
cmp rcx, 1
jbe 0x14001dd5d
mov rcx, r14
lea rdi, [rsp + 0x2f0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x14001db56
lea rdx, [rsi - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14001dbe3
cmp dword [rdx + 0x10], eax
jge 0x14001db22
cmp dword [rsi - 0xc], eax
jl 0x14001df8f
mov dword [rsi - 0x10], r12d
mov word [rsi], ax
jmp 0x14001dbe3
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001db3a
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 rsi, [rax + 0x18]
mov qword [rsp + 0x38], rsi
mov rbp, qword [rsp + 0x30]
jmp 0x14001dbe3
mov ebx, dword [rsi - 0x10]
lea r12, [rsp + 0x2f0]
sub r12, rsi
sar r12, 1
mov ecx, 1
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x14001db89
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140004670
mov rsi, qword [rsp + 0x38]
cmp r12, rbx
ja 0x14001dba9
movsxd rax, edi
lea rbx, [rax + rax]
lea r8, [rsi + r12*2]
mov r9, rbx
mov rdx, rbx
mov rcx, rsi
call fcn.14009b340
jmp 0x14001dbc6
movsxd rax, edi
lea rbx, [rax + rax]
mov r9, rbx
lea r8, [rsp + 0x2f0]
mov rdx, rbx
mov rcx, rsi
call fcn.14009b270
test edi, edi
js 0x14001dfbb
cmp edi, dword [rsi - 0xc]
jg 0x14001dfbb
mov dword [rsi - 0x10], edi
mov word [rbx + rsi], 0
xor r12d, r12d
movsxd rdi, dword [rsi - 0x10]
mov ecx, 1
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x14001dc09
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140004670
mov rsi, qword [rsp + 0x38]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rsi
call fcn.14009b820
test edi, edi
js 0x14001dfb0
cmp edi, dword [rsi - 0xc]
jg 0x14001dfb0
mov dword [rsi - 0x10], edi
mov word [rsi + rdi*2], 0
lea rcx, [rsi - 0x18]
lea rdi, [rbp - 0x18]
cmp rcx, rdi
je 0x14001dc95
cmp dword [rdi + 0x10], 0
jl 0x14001dc7f
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14001dc7f
call fcn.1400046d0
mov rbp, rax
mov eax, r14d
lock xadd dword [rdi + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001dc6f
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rbp, 0x18
mov qword [rsp + 0x30], rbp
mov rsi, qword [rsp + 0x38]
jmp 0x14001dc95
mov r8d, dword [rsi - 0x10]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.1400062e0
mov rbp, qword [rsp + 0x30]
movsxd rbx, dword [rbp - 0x10]
mov ecx, 1
sub ecx, dword [rbp - 8]
mov eax, dword [rbp - 0xc]
sub eax, ebx
or eax, ecx
jge 0x14001dcbb
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140004670
mov rbp, qword [rsp + 0x30]
mov rcx, rbp
mov rdi, rbp
lea r11, [rbp + rbx*2]
cmp rbp, r11
jae 0x14001dd14
nop
nop
lea r10, [rcx + 2]
cmp word [rcx], 0x2a
je 0x14001dd0c
mov r8, r10
sub r8, rcx
sar r8, 1
lea r9, [rdi + r8*2]
mov rdx, r12
cmp rdi, r9
je 0x14001dd0c
nop
cmp rdx, r8
jae 0x14001dd0c
movzx eax, word [rcx]
mov word [rdi], ax
add rcx, 2
add rdi, 2
add rdx, 1
cmp rdi, r9
jne 0x14001dcf0
mov rcx, r10
cmp r10, r11
jb 0x14001dcd0
mov word [rdi], 0
sub rcx, rdi
sar rcx, 1
sub ebx, ecx
js 0x14001dfa5
cmp ebx, dword [rbp - 0xc]
jg 0x14001dfa5
mov dword [rbp - 0x10], ebx
movsxd rax, ebx
mov word [rbp + rax*2], 0
mov rdx, rsi
mov rcx, r15
call fcn.14009b200
test rax, rax
jne 0x14001dd7a
mov rdx, rbp
mov rcx, r15
call fcn.14009b200
test rax, rax
jne 0x14001dd7a
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x68]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x14001df20
jmp 0x14001da90
mov edx, 0x104
lea rcx, [rsp + 0x500]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, str.inf_
mov edx, 0x104
lea rcx, [rsp + 0x500]
call fcn.14009ccf0
lea r8, [rsp + 0xcc]
mov edx, 0x104
lea rcx, [rsp + 0x500]
call fcn.14009ccf0
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x88], rdx
call fcn.140055b68
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
je 0x14001df9a
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x500]
lea rax, [rsp + 0x500]
test rax, 0xffffffffffff0000
jne 0x14001de2e
movzx edi, cx
mov ecx, edi
call fcn.140055990
test rax, rax
je 0x14001de58
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140006090
jmp 0x14001de58
xor eax, eax
mov rcx, r14
lea rdi, [rsp + 0x500]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x500]
lea rcx, [rsp + 0x58]
call fcn.1400062e0
nop
lea rdx, [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.1400180b0
mov edi, eax
lea r9, [rsp + 0x60]
xor r8d, r8d
lea edx, [r8 + 0x24]
lea rcx, [rsp + 0x500]
call fcn.1400027d0
test eax, eax
je 0x14001dea3
mov r8d, eax
mov edx, 3
mov rcx, rbx
call fcn.14000cf00
mov rbx, qword [rsp + 0x40]
jmp 0x14001df25
test edi, edi
je 0x14001dec0
movsxd rax, dword [rbx + 0x3b1d8]
imul rax, rax, 0x12c8
mov dword [rax + rbx + 0x6c4], 1
lea rdx, [0x1400e9d14]
lea rcx, [rsp + 0x500]
call fcn.14009b200
mov word [rax], 0x2e
mov word [rax + 2], 0x50
mov word [rax + 4], 0x4e
mov word [rax + 6], 0x46
mov rcx, r13
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov edx, 0x80
lea rcx, [rsp + 0x500]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x500]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rsp + 0x48], edi
mov rbx, qword [rsp + 0x40]
jmp 0x14001df25
mov rbx, qword [rsp + 0x40]
mov rcx, r13
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
nop
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001df54
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r12, qword [rsp + 0x50]
xor edi, edi
jmp 0x14001df5b
mov r12, qword [rsp + 0x50]
xor edi, edi
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14001dfc6
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
jmp 0x14001d750
mov ecx, 0x80070057
call fcn.140001610
nop
mov ecx, 0x80070057
call fcn.140001610
int3
mov ecx, 0x80004005
call fcn.140001610
int3
mov ecx, 0x80070057
call fcn.140001610
int3
mov ecx, 0x80070057
call fcn.140001610
int3
mov ecx, 0x80070057
call fcn.140001610
nop
mov rbp, qword [rsp + 0x30]
mov rax, qword [rsp + 0x80]
mov edi, dword [rsp + 0x48]
jmp 0x14001dfef
mov ecx, 0x80070057
call fcn.140001610
nop
mov ecx, 0x80004005
call fcn.140001610
int3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rdx, [rbp - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001e016
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], r14d
add r14d, 0xffffffff
test r14d, r14d
jg 0x14001e037
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
mov rcx, qword [rsp + 0x710]
xor rcx, rsp
call fcn.14009af10
mov rbx, qword [rsp + 0x770]
add rsp, 0x720
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret