Function at 0x140005a60
Capabilities:
Accept command line arguments
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0xd0
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rbx, rcx
mov dword [rax + 0x18], 8
mov dword [rax + 0x1c], 0xff
lea rcx, [rax + 0x18]
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov rcx, rbx
call fcn.14000bcbc
xor ecx, ecx
call fcn.14000da44
mov qword [rsp + 0x118], 0
xor ecx, ecx
call fcn.140032808
mov qword [rsp + 0x118], rax
lea r8, str._Y__m__d__H:_M:_S
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0x118]
call fcn.140006780
nop
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov r8, rax
mov r9, qword [rsp + 0x108]
lea rdx, str._r_n_r_n_s___s_r_n
lea rcx, vtable.CWriteLog.0
call fcn.140001380
lea rcx, [rsp + 0x20]
call fcn.140007c20
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000b71c
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x60]
lea rdx, str.Param_Q__s__LOG__s__r_n
lea rcx, vtable.CWriteLog.0
call fcn.140001380
mov rdx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x70]
cmp dword [rsp + 0x84], 0
jne 0x140005bce
cmp dword [rsp + 0x98], 0
jne 0x140005bce
cmp dword [rsp + 0x94], 0
jne 0x140005bce
cmp dword [rax - 0x10], 0
jne 0x140005bce
cmp dword [rdx - 0x10], 0
jne 0x140005bce
mov r8, qword [rsp + 0x68]
cmp dword [r8 - 0x10], 0
jne 0x140005bce
lea rdx, str.Param_Error_r_n
lea rcx, vtable.CWriteLog.0
call fcn.140001380
mov dword [rbx + 0x140], 0xfffffffe
lea rcx, [rsp + 0x20]
call fcn.140005e70
nop
mov rdx, qword [rsp + 0x108]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x140005bc7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140005e4b
lea rcx, [rax - 0x18]
mov rsi, qword [rbx + 0x150]
sub rsi, 0x18
or edi, 0xffffffff
cmp rcx, rsi
je 0x140005c40
cmp dword [rsi + 0x10], 0
jl 0x140005c28
mov rdx, qword [rsi]
cmp qword [rcx], rdx
jne 0x140005c28
call fcn.140001b20
mov r12, rax
mov ecx, edi
lock xadd dword [rsi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140005c15
mov rcx, qword [rsi]
mov r8, qword [rcx]
mov rdx, rsi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [r12 + 0x18]
mov qword [rbx + 0x150], rax
mov rdx, qword [rsp + 0x60]
jmp 0x140005c40
mov r8d, dword [rax - 0x10]
mov rdx, rax
lea rcx, [rbx + 0x150]
call fcn.140001f60
mov rdx, qword [rsp + 0x60]
lea rcx, [rdx - 0x18]
mov rsi, qword [rbx + 0x148]
sub rsi, 0x18
cmp rcx, rsi
je 0x140005ca1
cmp dword [rsi + 0x10], 0
jl 0x140005c91
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x140005c91
call fcn.140001b20
mov r13, rax
mov ecx, edi
lock xadd dword [rsi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140005c84
mov rcx, qword [rsi]
mov r8, qword [rcx]
mov rdx, rsi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [r13 + 0x18]
mov qword [rbx + 0x148], rax
jmp 0x140005ca1
mov r8d, dword [rdx - 0x10]
lea rcx, [rbx + 0x148]
call fcn.140001f60
mov rcx, qword [rsp + 0x68]
add rcx, 0xffffffffffffffe8
mov rsi, qword [rbx + 0x158]
sub rsi, 0x18
cmp rcx, rsi
je 0x140005d0c
cmp dword [rsi + 0x10], 0
jl 0x140005cf7
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x140005cf7
call fcn.140001b20
mov r13, rax
mov ecx, edi
lock xadd dword [rsi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140005cea
mov rcx, qword [rsi]
mov r8, qword [rcx]
mov rdx, rsi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [r13 + 0x18]
mov qword [rbx + 0x158], rax
jmp 0x140005d0c
mov rdx, qword [rsp + 0x68]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbx + 0x158]
call fcn.140001f60
mov rcx, qword [rbx + 0x150]
cmp dword [rcx - 0x10], 0
je 0x140005d63
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140005d63
test al, 0x10
jne 0x140005d63
mov rcx, qword [rbx + 0x150]
cmp dword [rcx - 0x10], 0
je 0x140005d56
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140005d56
test al, 1
je 0x140005d56
and eax, 0xfffffffe
mov edx, eax
mov rcx, qword [rbx + 0x150]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rbx + 0x150]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [rsp + 0x84], 0
je 0x140005d7c
mov dword [rbx + 0x140], 0xffffffff
jmp 0x140005e1e
cmp dword [rsp + 0x88], 0
je 0x140005d95
mov dword [rbx + 0x140], 0xffffffff
jmp 0x140005e1e
cmp dword [rsp + 0x8c], 0
je 0x140005dab
mov dword [rbx + 0x140], 0xffffffff
jmp 0x140005e1e
cmp dword [rsp + 0x90], 0
je 0x140005dc1
mov dword [rbx + 0x140], 0xffffffff
jmp 0x140005e1e
cmp dword [rsp + 0x94], 0
je 0x140005dd7
mov dword [rbx + 0x140], 0xffffffff
jmp 0x140005e1e
cmp dword [rsp + 0x98], 0
je 0x140005ded
mov dword [rbx + 0x140], 0xffffffff
jmp 0x140005e1e
cmp dword [rsp + 0x80], 0
je 0x140005dff
mov rcx, rbx
call fcn.1400060d0
cmp dword [rsp + 0x78], 0
je 0x140005e0e
mov rcx, rbx
call fcn.140005f50
cmp dword [rsp + 0x7c], 0
je 0x140005e1e
mov rcx, rbx
call fcn.140006490
nop
lea rcx, [rsp + 0x20]
call fcn.140005e70
nop
mov rdx, qword [rsp + 0x108]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x140005e49
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rbx, qword [rsp + 0x100]
add rsp, 0xd0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret