Function at 0x14023c5a0
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rax, qword [0x1402cb038]
xor rax, rsp
mov qword [rsp + 0x278], rax
mov sil, 1
cmp qword [0x1402e5a30], 0
je 0x14023c5e6
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1401ce5b0
mov eax, esi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x1402e5a20]
test rdi, rdi
je 0x14023c6f1
test byte [0x1402da9cc], 1
je 0x14023c5c9
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x60], 0
cmp byte [rdi + 0x17], 0
jns 0x14023c61d
mov rdi, qword [rdi]
lea r8, [rsp + 0x40]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x14023c65e
mov eax, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x60]
shl rax, 0x20
or rax, rcx
cmp rax, 0x40000001
jb 0x14023c65e
mov rcx, qword [0x1402e5a20]
cmp byte [rcx + 0x17], 0
jns 0x14023c658
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [0x1402e5a20]
cmp byte [rcx + 0x17], 0
jns 0x14023c66e
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1402e5a30], rax
mov sil, 1
inc rax
cmp rax, 1
ja 0x14023c5c9
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1401d06e0
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x14023c7b6
xor esi, esi
jmp 0x14023c5c9
mov ecx, 0x18
call fcn.1401cbbc4
mov rdi, rax
lea rbx, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1401d06e0
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x14029ca60]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.140207340
movzx eax, byte [rdi + 0x17]
test al, al
js 0x14023c757
and eax, 0x7f
mov rcx, rdi
jmp 0x14023c75e
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
je 0x14023c795
add rax, rax
test rax, rax
je 0x14023c795
lea rdx, [rax - 2]
cmp word [rcx + rax - 2], 0x5c
mov rax, rdx
jne 0x14023c766
cmp rdx, 0xfffffffffffffffe
je 0x14023c795
sar rdx, 1
inc rdx
mov rcx, rdi
mov r8, 0xffffffffffffffff
call fcn.1401c9290
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.14001de40
mov qword [0x1402e5a20], rdi
jmp 0x14023c5f6
lea rdi, [rsp + 0x70]
mov rcx, rdi
call fcn.1401cc340
mov rcx, qword [0x1402e5a20]
mov rdx, rdi
mov r8, rax
call fcn.14005fbb0
mov rcx, qword [0x1402e5a20]
call fcn.14022e190
cmp word [rax], 0x5c
je 0x14023c800
mov rcx, qword [0x1402e5a20]
lea rdx, [0x1402a263c]
mov r8d, 1
call fcn.14001de40
mov rcx, qword [0x1402e5a20]
lea rdx, str.debug.log
mov r8d, 9
call fcn.14001de40
mov rcx, qword [0x1402e5a20]
cmp byte [rcx + 0x17], 0
jns 0x14023c829
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1402e5a30], rax
inc rax
cmp rax, 1
ja 0x14023c5c9
mov qword [0x1402e5a30], 0
jmp 0x14023c6ea