Function at 0x14001fc70
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push rsi
push rdi
push r12
push r13
sub rsp, 0x6c8
mov rax, qword [0x14012df80]
xor rax, rsp
mov qword [rsp + 0x6b0], rax
lea rax, [rcx + 0x40]
mov rdi, rcx
lea r9, [0x14001d250]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 1
lea rax, [0x14001d2d0]
mov qword [rsp + 0x30], rax
lea rax, [0x14001d2b0]
lea r8, [0x14001d1a0]
mov qword [rsp + 0x28], rax
lea rax, [0x14001d280]
lea rdx, [0x14001d180]
lea rcx, [0x14001d170]
xor r12d, r12d
mov qword [rsp + 0x20], rax
mov esi, r12d
call fcn.14008bd48
test rax, rax
mov r13, rax
je 0x14002018e
mov r8, qword [rdi]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x6f8], rbx
mov qword [rsp + 0x30], r12
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x700], rbp
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x6c0], r14
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [r12 + 0x40]
mov edx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r8, qword [rdi]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov r14, rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rbp, 0xffffffffffffffff
je 0x14002015c
lea r8, [rsp + 0x50]
mov rdx, rbp
mov rcx, r13
call fcn.14008bc14
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1400200c3
mov rbx, qword [rdi]
mov rax, rbx
cmp word [rbx], si
je 0x14001fdf3
nop
nop
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
cmp word [rax], si
jne 0x14001fde0
cmp rbx, rax
ja 0x14001fe1e
movzx ecx, word [rax]
cmp cx, 0x2f
je 0x14001fe1e
cmp cx, 0x5c
je 0x14001fe1e
cmp cx, 0x3a
je 0x14001fe1e
cmp rax, rbx
je 0x14001fe2a
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharPrevW]
cmp rbx, rax
jbe 0x14001fdf3
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
mov rbx, rax
lea rcx, [rsp + 0x4a0]
mov edx, 0x100
lea rax, [rsp + 0x4a0]
sub rbx, rcx
lea rcx, [rdx + 0x7ffffefe]
test rcx, rcx
je 0x14001fe66
movzx ecx, word [rbx + rax]
test cx, cx
je 0x14001fe66
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x14001fe42
jmp 0x14001fe6b
test rdx, rdx
jne 0x14001fe6f
sub rax, 2
mov rdx, qword [rdi]
lea rcx, [rsp + 0x4a0]
mov word [rax], si
call fcn.1400cdd20
test eax, eax
jne 0x14001fe93
mov byte [rsp + 0x390], sil
jmp 0x14001ffc5
mov r8, qword [rdi]
lea rax, [rsp + 0x70]
mov edx, 0x100
sub r8, rax
lea rcx, [rsp + 0x70]
nop
nop
lea rax, [rdx + 0x7ffffefe]
test rax, rax
je 0x14001fed5
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14001fed5
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14001feb0
jmp 0x14001feda
test rdx, rdx
jne 0x14001fede
sub rcx, 2
mov word [rcx], si
lea rcx, [rsp + 0x70]
call fcn.1400201b0
cmp word [rsp + 0x70], si
lea rdx, [rsp + 0x70]
je 0x14001ff00
add rdx, 2
cmp word [rdx], si
jne 0x14001fef7
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_CharPrevW]
movzx ecx, word [rax]
cmp cx, 0x2f
je 0x14001ff93
cmp cx, 0x5c
je 0x14001ff93
mov ecx, 0x100
lea rax, [rsp + 0x70]
cmp word [rax], si
je 0x14001ff35
add rax, 2
sub rcx, 1
jne 0x14001ff24
jmp 0x14001ff93
test rcx, rcx
je 0x14001ff93
mov edx, 0x100
sub rdx, rcx
mov ecx, 0x100
sub rcx, rdx
lea rax, [rsp + rdx*2 + 0x70]
je 0x14001ff8c
lea r9, [0x1400fc394]
lea rdx, [rcx + rdx + 0x7ffffeff]
sub r9, rax
test rdx, rdx
je 0x14001ff87
movzx r8d, word [r9 + rax]
test r8w, r8w
je 0x14001ff87
mov word [rax], r8w
add rax, 2
sub rdx, 1
sub rcx, 1
jne 0x14001ff63
jmp 0x14001ff8c
test rcx, rcx
jne 0x14001ff90
sub rax, 2
mov word [rax], si
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x390]
mov qword [rsp + 0x30], r12
lea r8, [rsp + 0x70]
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x280]
mov qword [rsp + 0x30], r12
lea r8, [rsp + 0x4a0]
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
and dword [rdi + 8], 0x7fffffff
mov qword [rsp + 0x30], rdi
lea rbx, [0x14001f300]
lea r8, [rsp + 0x390]
lea rdx, [rsp + 0x280]
xor r9d, r9d
mov rcx, r13
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbx
call fcn.14008c700
test eax, eax
mov esi, eax
je 0x14002015c
nop
mov eax, dword [rdi + 8]
and eax, 0x80000008
cmp eax, 0x80000008
jne 0x1400200ee
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x280]
mov qword [rsp + 0x30], r12
lea r8, [rdi + 0x464]
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
and dword [rdi + 8], 0x7fffffff
mov qword [rsp + 0x30], rdi
lea r8, [rsp + 0x390]
lea rdx, [rsp + 0x280]
xor r9d, r9d
mov rcx, r13
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbx
call fcn.14008c700
test eax, eax
mov esi, eax
jne 0x140020040
jmp 0x14002015c
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.14001f400
test eax, eax
mov rsi, rax
jns 0x1400200ee
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.14001f830
test rax, rax
setg r12b
mov esi, r12d
test esi, esi
je 0x14002015c
mov eax, dword [rdi + 8]
test al, 4
jne 0x14002015c
bt eax, 0x1e
jae 0x140020124
mov r8, qword [rdi + 0x18]
lea rdx, [rdi + 0x258]
lea rcx, [rdi + 0x4c]
mov r9d, 0x100
call fcn.14001e430
and dword [rdi + 8], 0xbfffffff
mov esi, eax
jmp 0x140020155
and eax, 0x20000010
cmp eax, 0x10
jne 0x140020155
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, rbx
and eax, 0xfffffffc
bts eax, 7
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
and dword [rdi + 8], 0xdfffffff
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, r13
call fcn.14008bccc
mov r14, qword [rsp + 0x6c0]
mov rbp, qword [rsp + 0x700]
mov rbx, qword [rsp + 0x6f8]
mov eax, esi
mov rcx, qword [rsp + 0x6b0]
xor rcx, rsp
call fcn.1400cd6e0
add rsp, 0x6c8
pop r13
pop r12
pop rdi
pop rsi
ret