Function at 0x140003170
Capabilities:
Accept command line arguments
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0xbc0]
sub rsp, 0xcc0
mov rax, qword [0x140073080]
xor rax, rsp
mov qword [rbp + 0xbb0], rax
movdqa xmm0, xmmword [0x140067e40]
lea rcx, [rbp + 0x580]
xor edx, edx
mov dword [0x140077e9c], 2
mov r8d, 0x208
mov dword [0x140077e98], 0xa
movdqu xmmword [0x140077e88], xmm0
call fcn.140026cc0
xor edx, edx
lea rcx, [rbp + 0x370]
mov r8d, 0x208
call fcn.140026cc0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
test rax, rax
je 0x1400032a3
lea rdx, str._logAnthorFile
mov rcx, rax
call fcn.140025f38
mov rbx, rax
test rax, rax
je 0x1400032a3
lea rcx, str._logAnthorFile
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rbx, [rbx + rcx*2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [rbx], 0x20
mov ecx, 0xffffffff
mov r9d, ecx
jne 0x1400032a3
mov r8d, 1
movsxd r10, eax
cmp r10, r8
jle 0x1400032a3
mov edx, r8d
nop dword [rax + rax]
cmp word [rbx + rdx*2], 0x20
jne 0x140003325
cmp ecx, r9d
je 0x14000332c
lea r9d, [r8 - 1]
cmp ecx, 0xffffffff
je 0x1400032a3
cmp r9d, 0xffffffff
jne 0x140003282
lea r9d, [rax - 1]
cmp r9d, ecx
jle 0x1400032a3
cmp r9d, 0xffffffff
je 0x1400032a3
sub r9d, ecx
movsxd rax, ecx
inc r9d
lea rcx, [rbp + 0x370]
movsxd r9, r9d
mov edx, 0x104
lea r8, [rbx + rax*2]
call fcn.14002f15c
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.140026cc0
xor edx, edx
lea rcx, [rbp + 0x9a0]
mov r8d, 0x208
call fcn.140026cc0
xor edx, edx
lea rcx, [rbp + 0x160]
mov r8d, 0x208
call fcn.140026cc0
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x104
lea rcx, [rbp + 0x790]
call qword [sym.imp.USERENV.dll_GetAllUsersProfileDirectoryW]
lea rbx, [0x140077e88]
test eax, eax
jne 0x140003340
lea rdx, str.error_dont_read_slog_config
mov rcx, rbx
call fcn.140004170
lea rdx, str.error_dont_read_log_config
mov rcx, rbx
call fcn.140003e80
jmp 0x14000340d
cmp ecx, r9d
cmove ecx, r8d
inc r8d
inc rdx
cmp rdx, r10
jl 0x140003250
jmp 0x140003268
lea rax, [0x1400640e8]
mov edx, 0x104
lea r9, [rbp + 0x790]
mov qword [rsp + 0x20], rax
lea r8, str._sASUS_s
lea rcx, [rsp + 0x50]
call fcn.1400012b0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000337d
test al, 0x10
jne 0x140003387
lea rcx, [rsp + 0x50]
call fcn.140013600
lea rcx, [rbp + 0x160]
call fcn.140013550
lea rcx, [rbp + 0x370]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x1400033b8
lea rdx, [rbp + 0x370]
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r8, [rsp + 0x50]
lea rdx, str._s_asus.txt
lea rcx, [rbp + 0x9a0]
call fcn.140001d70
cmp dword [0x140077e98], 0
lea r8, [rsp + 0x50]
je 0x1400033f3
lea r9, [rbp + 0x580]
lea rdx, [rbp + 0x160]
call fcn.140003490
jmp 0x14000340d
lea r9, [rbp + 0x160]
lea rdx, str._s_s.log
lea rcx, [rbp + 0x580]
call fcn.140001d70
mov eax, dword [0x140077e9c]
add eax, 0xfffffffe
cmp eax, 1
ja 0x140003463
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0x580]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140077e88], rax
cmp rax, 0xffffffffffffffff
jne 0x140003463
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rcx, qword [rbp + 0xbb0]
xor rcx, rsp
call fcn.140023e40
mov rbx, qword [rsp + 0xcd0]
add rsp, 0xcc0
pop rbp
ret