Function at 0x14001a830
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 [0x1401216d8]
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.140091cf0
call fcn.14004b378
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x14001a8c3
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.14004b378
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x14001a8f1
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.140091cf0
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.140092500
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 0x14001b1ef
xor edi, edi
nop
call fcn.14004b378
mov rcx, rax
mov eax, edi
test rcx, rcx
setne al
test eax, eax
je 0x14001b1e4
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 0x14001a9de
movzx edi, cx
mov ecx, edi
call fcn.14004b1a0
test rax, rax
je 0x14001aafb
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005c00
mov rbx, qword [rsp + 0x40]
xor edi, edi
jmp 0x14001aafd
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 0x14001aa62
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14001aaf7
cmp dword [rdx + 0x10], eax
jge 0x14001aa27
cmp dword [rbx - 0xc], eax
jl 0x14001b184
xor edi, edi
mov dword [rbx - 0x10], edi
mov word [rbx], ax
jmp 0x14001aafd
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001aa3f
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 0x14001aafd
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 0x14001aa96
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140004650
mov rbx, qword [rsp + 0x40]
cmp r13, r12
ja 0x14001aab6
movsxd rax, edi
lea r12, [rax + rax]
lea r8, [rbx + r13*2]
mov r9, r12
mov rdx, r12
mov rcx, rbx
call fcn.140090b50
jmp 0x14001aad3
movsxd rax, edi
lea r12, [rax + rax]
mov r9, r12
lea r8, [rsp + 0xcc]
mov rdx, r12
mov rcx, rbx
call fcn.140090a80
test edi, edi
js 0x14001b1d9
cmp edi, dword [rbx - 0xc]
jg 0x14001b1d9
mov dword [rbx - 0x10], edi
mov word [r12 + rbx], 0
mov r12, qword [rsp + 0x50]
xor edi, edi
jmp 0x14001aafd
xor edi, edi
jmp 0x14001aafd
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 0x14001b12f
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 0x14001b125
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 0x14001abcf
lea rdx, str.ClassGuid
lea rcx, [rsp + 0x2f0]
call fcn.140090a10
test rax, rax
je 0x14001abcf
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 0x14001abcf
mov edx, 0x104
lea rcx, [rsp + 0x2f0]
call fcn.140091030
lea rdx, str.E2F84CE7_8EFA_411C_AA69_97454CA4CB57
lea rcx, [rsp + 0x2f0]
call fcn.140090a10
test rax, rax
jne 0x14001abec
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x68]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x14001b125
jmp 0x14001ab40
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 0x14001b125
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 0x14001b125
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x2f0]
mov rdx, r13
mov rcx, r12
call fcn.140003650
test eax, eax
jne 0x14001ac8a
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 0x14001b15b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14001b15b
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 0x14001b125
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 0x14001af5d
xor eax, eax
mov rcx, r14
lea rdi, [rsp + 0x2f0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x14001ad57
lea rdx, [rsi - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14001ade4
cmp dword [rdx + 0x10], eax
jge 0x14001ad23
cmp dword [rsi - 0xc], eax
jl 0x14001b18f
mov dword [rsi - 0x10], r12d
mov word [rsi], ax
jmp 0x14001ade4
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001ad3b
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 0x14001ade4
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 0x14001ad8a
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140004650
mov rsi, qword [rsp + 0x38]
cmp r12, rbx
ja 0x14001adaa
movsxd rax, edi
lea rbx, [rax + rax]
lea r8, [rsi + r12*2]
mov r9, rbx
mov rdx, rbx
mov rcx, rsi
call fcn.140090b50
jmp 0x14001adc7
movsxd rax, edi
lea rbx, [rax + rax]
mov r9, rbx
lea r8, [rsp + 0x2f0]
mov rdx, rbx
mov rcx, rsi
call fcn.140090a80
test edi, edi
js 0x14001b1bb
cmp edi, dword [rsi - 0xc]
jg 0x14001b1bb
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 0x14001ae0a
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140004650
mov rsi, qword [rsp + 0x38]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rsi
call fcn.140091030
test edi, edi
js 0x14001b1b0
cmp edi, dword [rsi - 0xc]
jg 0x14001b1b0
mov dword [rsi - 0x10], edi
mov word [rsi + rdi*2], 0
lea rcx, [rsi - 0x18]
lea rdi, [rbp - 0x18]
cmp rcx, rdi
je 0x14001ae96
cmp dword [rdi + 0x10], 0
jl 0x14001ae80
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14001ae80
call fcn.1400046b0
mov rbp, rax
mov eax, r14d
lock xadd dword [rdi + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001ae70
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 0x14001ae96
mov r8d, dword [rsi - 0x10]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140005e50
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 0x14001aebc
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140004650
mov rbp, qword [rsp + 0x30]
mov rcx, rbp
mov rdi, rbp
lea r11, [rbp + rbx*2]
cmp rbp, r11
jae 0x14001af14
nop
lea r10, [rcx + 2]
cmp word [rcx], 0x2a
je 0x14001af0c
mov r8, r10
sub r8, rcx
sar r8, 1
lea r9, [rdi + r8*2]
mov rdx, r12
cmp rdi, r9
je 0x14001af0c
nop
cmp rdx, r8
jae 0x14001af0c
movzx eax, word [rcx]
mov word [rdi], ax
add rcx, 2
add rdi, 2
add rdx, 1
cmp rdi, r9
jne 0x14001aef0
mov rcx, r10
cmp r10, r11
jb 0x14001aed0
mov word [rdi], 0
sub rcx, rdi
sar rcx, 1
sub ebx, ecx
js 0x14001b1a5
cmp ebx, dword [rbp - 0xc]
jg 0x14001b1a5
mov dword [rbp - 0x10], ebx
movsxd rax, ebx
mov word [rbp + rax*2], 0
mov rdx, rsi
mov rcx, r15
call fcn.140090a10
test rax, rax
jne 0x14001af7a
mov rdx, rbp
mov rcx, r15
call fcn.140090a10
test rax, rax
jne 0x14001af7a
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x68]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x14001b120
jmp 0x14001acb0
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.140092500
lea r8, [rsp + 0xcc]
mov edx, 0x104
lea rcx, [rsp + 0x500]
call fcn.140092500
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x88], rdx
call fcn.14004b378
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
je 0x14001b19a
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 0x14001b02e
movzx edi, cx
mov ecx, edi
call fcn.14004b1a0
test rax, rax
je 0x14001b058
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140005c00
jmp 0x14001b058
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.140005e50
nop
lea rdx, [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.140014bb0
mov edi, eax
lea r9, [rsp + 0x60]
xor r8d, r8d
lea edx, [r8 + 0x24]
lea rcx, [rsp + 0x500]
call fcn.1400027c0
test eax, eax
je 0x14001b0a3
mov r8d, eax
mov edx, 3
mov rcx, rbx
call fcn.14000b760
mov rbx, qword [rsp + 0x40]
jmp 0x14001b125
test edi, edi
je 0x14001b0c0
movsxd rax, dword [rbx + 0x3afd0]
imul rax, rax, 0x12c8
mov dword [rax + rbx + 0x4bc], 1
lea rdx, [0x1400ded04]
lea rcx, [rsp + 0x500]
call fcn.140090a10
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 0x14001b125
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 0x14001b154
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r12, qword [rsp + 0x50]
xor edi, edi
jmp 0x14001b15b
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 0x14001b1c6
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
jmp 0x14001a970
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 0x14001b1ef
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 0x14001b216
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 0x14001b237
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.140090720
mov rbx, qword [rsp + 0x770]
add rsp, 0x720
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret