Function at 0x14001a5c0
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.140091a50
call fcn.14004b0d0
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x14001a653
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.14004b0d0
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x14001a681
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.140091a50
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.140092260
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 0x14001af7f
xor edi, edi
nop
call fcn.14004b0d0
mov rcx, rax
mov eax, edi
test rcx, rcx
setne al
test eax, eax
je 0x14001af74
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 0x14001a76e
movzx edi, cx
mov ecx, edi
call fcn.14004aef8
test rax, rax
je 0x14001a88b
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005b70
mov rbx, qword [rsp + 0x40]
xor edi, edi
jmp 0x14001a88d
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 0x14001a7f2
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14001a887
cmp dword [rdx + 0x10], eax
jge 0x14001a7b7
cmp dword [rbx - 0xc], eax
jl 0x14001af14
xor edi, edi
mov dword [rbx - 0x10], edi
mov word [rbx], ax
jmp 0x14001a88d
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001a7cf
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 0x14001a88d
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 0x14001a826
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140004650
mov rbx, qword [rsp + 0x40]
cmp r13, r12
ja 0x14001a846
movsxd rax, edi
lea r12, [rax + rax]
lea r8, [rbx + r13*2]
mov r9, r12
mov rdx, r12
mov rcx, rbx
call fcn.1400908b0
jmp 0x14001a863
movsxd rax, edi
lea r12, [rax + rax]
mov r9, r12
lea r8, [rsp + 0xcc]
mov rdx, r12
mov rcx, rbx
call fcn.1400907e0
test edi, edi
js 0x14001af69
cmp edi, dword [rbx - 0xc]
jg 0x14001af69
mov dword [rbx - 0x10], edi
mov word [r12 + rbx], 0
mov r12, qword [rsp + 0x50]
xor edi, edi
jmp 0x14001a88d
xor edi, edi
jmp 0x14001a88d
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 0x14001aebf
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 0x14001aeb5
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 0x14001a95f
lea rdx, str.ClassGuid
lea rcx, [rsp + 0x2f0]
call fcn.140090770
test rax, rax
je 0x14001a95f
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 0x14001a95f
mov edx, 0x104
lea rcx, [rsp + 0x2f0]
call fcn.140090d90
lea rdx, str.E2F84CE7_8EFA_411C_AA69_97454CA4CB57
lea rcx, [rsp + 0x2f0]
call fcn.140090770
test rax, rax
jne 0x14001a97c
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x68]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x14001aeb5
jmp 0x14001a8d0
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 0x14001aeb5
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 0x14001aeb5
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 0x14001aa1a
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 0x14001aeeb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14001aeeb
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 0x14001aeb5
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 0x14001aced
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 0x14001aae7
lea rdx, [rsi - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14001ab74
cmp dword [rdx + 0x10], eax
jge 0x14001aab3
cmp dword [rsi - 0xc], eax
jl 0x14001af1f
mov dword [rsi - 0x10], r12d
mov word [rsi], ax
jmp 0x14001ab74
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001aacb
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 0x14001ab74
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 0x14001ab1a
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140004650
mov rsi, qword [rsp + 0x38]
cmp r12, rbx
ja 0x14001ab3a
movsxd rax, edi
lea rbx, [rax + rax]
lea r8, [rsi + r12*2]
mov r9, rbx
mov rdx, rbx
mov rcx, rsi
call fcn.1400908b0
jmp 0x14001ab57
movsxd rax, edi
lea rbx, [rax + rax]
mov r9, rbx
lea r8, [rsp + 0x2f0]
mov rdx, rbx
mov rcx, rsi
call fcn.1400907e0
test edi, edi
js 0x14001af4b
cmp edi, dword [rsi - 0xc]
jg 0x14001af4b
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 0x14001ab9a
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.140090d90
test edi, edi
js 0x14001af40
cmp edi, dword [rsi - 0xc]
jg 0x14001af40
mov dword [rsi - 0x10], edi
mov word [rsi + rdi*2], 0
lea rcx, [rsi - 0x18]
lea rdi, [rbp - 0x18]
cmp rcx, rdi
je 0x14001ac26
cmp dword [rdi + 0x10], 0
jl 0x14001ac10
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14001ac10
call fcn.1400046b0
mov rbp, rax
mov eax, r14d
lock xadd dword [rdi + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001ac00
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 0x14001ac26
mov r8d, dword [rsi - 0x10]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140005dc0
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 0x14001ac4c
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 0x14001aca4
nop
lea r10, [rcx + 2]
cmp word [rcx], 0x2a
je 0x14001ac9c
mov r8, r10
sub r8, rcx
sar r8, 1
lea r9, [rdi + r8*2]
mov rdx, r12
cmp rdi, r9
je 0x14001ac9c
nop
cmp rdx, r8
jae 0x14001ac9c
movzx eax, word [rcx]
mov word [rdi], ax
add rcx, 2
add rdi, 2
add rdx, 1
cmp rdi, r9
jne 0x14001ac80
mov rcx, r10
cmp r10, r11
jb 0x14001ac60
mov word [rdi], 0
sub rcx, rdi
sar rcx, 1
sub ebx, ecx
js 0x14001af35
cmp ebx, dword [rbp - 0xc]
jg 0x14001af35
mov dword [rbp - 0x10], ebx
movsxd rax, ebx
mov word [rbp + rax*2], 0
mov rdx, rsi
mov rcx, r15
call fcn.140090770
test rax, rax
jne 0x14001ad0a
mov rdx, rbp
mov rcx, r15
call fcn.140090770
test rax, rax
jne 0x14001ad0a
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x68]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x14001aeb0
jmp 0x14001aa40
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.140092260
lea r8, [rsp + 0xcc]
mov edx, 0x104
lea rcx, [rsp + 0x500]
call fcn.140092260
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x88], rdx
call fcn.14004b0d0
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
je 0x14001af2a
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 0x14001adbe
movzx edi, cx
mov ecx, edi
call fcn.14004aef8
test rax, rax
je 0x14001ade8
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140005b70
jmp 0x14001ade8
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.140005dc0
nop
lea rdx, [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.140014b20
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 0x14001ae33
mov r8d, eax
mov edx, 3
mov rcx, rbx
call fcn.14000b6d0
mov rbx, qword [rsp + 0x40]
jmp 0x14001aeb5
test edi, edi
je 0x14001ae50
movsxd rax, dword [rbx + 0x3afd0]
imul rax, rax, 0x12c8
mov dword [rax + rbx + 0x4bc], 1
lea rdx, [0x1400decf4]
lea rcx, [rsp + 0x500]
call fcn.140090770
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 0x14001aeb5
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 0x14001aee4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r12, qword [rsp + 0x50]
xor edi, edi
jmp 0x14001aeeb
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 0x14001af56
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
jmp 0x14001a700
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 0x14001af7f
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 0x14001afa6
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 0x14001afc7
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.140090480
mov rbx, qword [rsp + 0x770]
add rsp, 0x720
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret