Function at 0x140005a80
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, 0xe0
mov qword [rsp + 0xd0], 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.14000c06c
xor ecx, ecx
call fcn.14000ddf4
mov qword [rsp + 0x128], 0
xor ecx, ecx
call fcn.140032bb8
mov qword [rsp + 0x128], rax
lea r8, str._Y__m__d__H:_M:_S
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x128]
call fcn.1400067e0
nop
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov r8, rax
mov r9, qword [rsp + 0x118]
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.140007c60
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000bad4
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 + 0x8c], 0
jne 0x140005bee
cmp dword [rsp + 0xa0], 0
jne 0x140005bee
cmp dword [rsp + 0x9c], 0
jne 0x140005bee
cmp dword [rax - 0x10], 0
jne 0x140005bee
cmp dword [rdx - 0x10], 0
jne 0x140005bee
mov r8, qword [rsp + 0x68]
cmp dword [r8 - 0x10], 0
jne 0x140005bee
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.140005e90
nop
mov rdx, qword [rsp + 0x118]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x140005be7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140005e71
lea rcx, [rax - 0x18]
mov rsi, qword [rbx + 0x150]
sub rsi, 0x18
or edi, 0xffffffff
cmp rcx, rsi
je 0x140005c60
cmp dword [rsi + 0x10], 0
jl 0x140005c48
mov rdx, qword [rsi]
cmp qword [rcx], rdx
jne 0x140005c48
call fcn.140001b20
mov r12, rax
mov ecx, edi
lock xadd dword [rsi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140005c35
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 0x140005c60
mov r8d, dword [rax - 0x10]
mov rdx, rax
lea rcx, [rbx + 0x150]
call fcn.140001f50
mov rdx, qword [rsp + 0x60]
lea rcx, [rdx - 0x18]
mov rsi, qword [rbx + 0x148]
sub rsi, 0x18
cmp rcx, rsi
je 0x140005cc1
cmp dword [rsi + 0x10], 0
jl 0x140005cb1
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x140005cb1
call fcn.140001b20
mov r13, rax
mov ecx, edi
lock xadd dword [rsi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140005ca4
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 0x140005cc1
mov r8d, dword [rdx - 0x10]
lea rcx, [rbx + 0x148]
call fcn.140001f50
mov rcx, qword [rsp + 0x68]
add rcx, 0xffffffffffffffe8
mov rsi, qword [rbx + 0x158]
sub rsi, 0x18
cmp rcx, rsi
je 0x140005d2c
cmp dword [rsi + 0x10], 0
jl 0x140005d17
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x140005d17
call fcn.140001b20
mov r13, rax
mov ecx, edi
lock xadd dword [rsi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140005d0a
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 0x140005d2c
mov rdx, qword [rsp + 0x68]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbx + 0x158]
call fcn.140001f50
mov rcx, qword [rbx + 0x150]
cmp dword [rcx - 0x10], 0
je 0x140005d83
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140005d83
test al, 0x10
jne 0x140005d83
mov rcx, qword [rbx + 0x150]
cmp dword [rcx - 0x10], 0
je 0x140005d76
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140005d76
test al, 1
je 0x140005d76
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 + 0x8c], 0
je 0x140005d9c
mov dword [rbx + 0x140], 0xffffffff
jmp 0x140005e44
cmp dword [rsp + 0x90], 0
je 0x140005db5
mov dword [rbx + 0x140], 0xffffffff
jmp 0x140005e44
cmp dword [rsp + 0x94], 0
je 0x140005dcb
mov dword [rbx + 0x140], 0xffffffff
jmp 0x140005e44
cmp dword [rsp + 0x98], 0
je 0x140005de1
mov dword [rbx + 0x140], 0xffffffff
jmp 0x140005e44
cmp dword [rsp + 0x9c], 0
je 0x140005df7
mov dword [rbx + 0x140], 0xffffffff
jmp 0x140005e44
cmp dword [rsp + 0xa0], 0
je 0x140005e0d
mov dword [rbx + 0x140], 0xffffffff
jmp 0x140005e44
cmp dword [rsp + 0x88], 0
je 0x140005e1f
mov rcx, rbx
call fcn.140006130
cmp dword [rsp + 0x80], 0
je 0x140005e31
mov rcx, rbx
call fcn.140005fb0
cmp dword [rsp + 0x84], 0
je 0x140005e44
mov rcx, rbx
call fcn.1400064f0
nop
lea rcx, [rsp + 0x20]
call fcn.140005e90
nop
mov rdx, qword [rsp + 0x118]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x140005e6f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rbx, qword [rsp + 0x110]
add rsp, 0xe0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret