Function at 0x140018fa0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x14010a010]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rsi, rcx
lea rdi, str.C:Userspaul1_leeDesktopAsusAppServiceAsusAppServiceAsusAppServiceLogSessionHelper.cpp
mov rcx, rdi
mov edx, 0x5c
call fcn.14008d088
test rax, rax
je 0x140019000
mov edx, 0x5c
mov rcx, rdi
call fcn.14008d088
inc rax
jmp 0x140019003
mov rax, rdi
lea r9, str.Start
mov edx, 0x51
lea r8, str.StartAllLogSession
mov rcx, rax
call fcn.140015a30
cmp qword [rsi + 0x20], 8
lea rcx, [rsi + 8]
jb 0x14001902d
mov rcx, qword [rsi + 8]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor r12d, r12d
test eax, eax
jne 0x140019064
lea rdx, [rsi + 8]
mov qword [rsp + 0x20], r12
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
call sym.AsusAppService.exe_private:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::_Construct_lv_contents_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64____ptr64
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14001b980
mov edx, 0x5c
mov rcx, rdi
call fcn.14008d088
test rax, rax
je 0x140019088
mov edx, 0x5c
mov rcx, rdi
call fcn.14008d088
inc rax
jmp 0x14001908b
mov rax, rdi
lea r9, str.Start
mov edx, 0x71
lea r8, str.StopAllOldNamingLogSession
mov rcx, rax
call fcn.140015a30
mov rdx, qword [rsi + 0xa0]
mov r14d, r12d
mov rax, qword [rsi + 0xa8]
sub rax, rdx
sar rax, 5
test rax, rax
je 0x14001915b
mov rbx, r12
nop word [rax + rax]
cmp qword [rdx + rbx + 0x18], 8
lea r8, [rdx + rbx]
jb 0x1400190df
mov r8, qword [r8]
lea rdx, str.stop___s___ets
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], r12
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 7
inc r8
cmp word [rax + r8*2], r12w
jne 0x140019110
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call sym.AsusAppService.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64__unsigned_long_long_unsigned___int64_____ptr64
lea rdx, [rsp + 0x20]
call fcn.140019c10
mov rdx, qword [rsi + 0xa0]
inc r14d
mov rcx, qword [rsi + 0xa8]
add rbx, 0x20
sub rcx, rdx
movsxd rax, r14d
sar rcx, 5
cmp rax, rcx
jb 0x1400190d0
mov edx, 0x5c
mov rcx, rdi
call fcn.14008d088
test rax, rax
je 0x14001917f
mov edx, 0x5c
mov rcx, rdi
call fcn.14008d088
inc rax
jmp 0x140019182
mov rax, rdi
lea r9, [0x1400da940]
mov edx, 0x7a
lea r8, str.StopAllOldNamingLogSession
mov rcx, rax
call fcn.140015a30
mov edx, 0x5c
mov rcx, rdi
call fcn.14008d088
test rax, rax
je 0x1400191c1
mov edx, 0x5c
mov rcx, rdi
call fcn.14008d088
inc rax
jmp 0x1400191c4
mov rax, rdi
lea r9, str.Start
mov edx, 0x7f
lea r8, str.DeleteAllOldNamingLogSession
mov rcx, rax
call fcn.140015a30
mov rdx, qword [rsi + 0xa0]
mov r14d, r12d
mov rax, qword [rsi + 0xa8]
sub rax, rdx
sar rax, 5
test rax, rax
je 0x14001928e
mov rbx, r12
cmp qword [rdx + rbx + 0x18], 8
lea r8, [rdx + rbx]
jb 0x140019212
mov r8, qword [r8]
lea rdx, str.delete___s_
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], r12
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 7
inc r8
cmp word [rax + r8*2], r12w
jne 0x140019243
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call sym.AsusAppService.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64__unsigned_long_long_unsigned___int64_____ptr64
lea rdx, [rsp + 0x20]
call fcn.140019c10
mov rdx, qword [rsi + 0xa0]
inc r14d
mov rcx, qword [rsi + 0xa8]
add rbx, 0x20
sub rcx, rdx
movsxd rax, r14d
sar rcx, 5
cmp rax, rcx
jb 0x140019203
mov edx, 0x5c
mov rcx, rdi
call fcn.14008d088
test rax, rax
je 0x1400192b2
mov edx, 0x5c
mov rcx, rdi
call fcn.14008d088
inc rax
jmp 0x1400192b5
mov rax, rdi
lea r9, [0x1400da940]
mov edx, 0x88
lea r8, str.DeleteAllOldNamingLogSession
mov rcx, rax
call fcn.140015a30
mov rcx, rsi
call fcn.1400193d0
lea rdx, [rsi + 0x28]
mov qword [rsp + 0x20], r12
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
call sym.AsusAppService.exe_private:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::_Construct_lv_contents_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64____ptr64
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140019f50
lea rdx, [rsi + 8]
mov qword [rsp + 0x20], r12
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
call sym.AsusAppService.exe_private:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::_Construct_lv_contents_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64____ptr64
lea rdx, [rsp + 0x20]
call fcn.14001c200
lea rdx, [rsi + 0x28]
mov rcx, rsi
call fcn.140019550
lea rdx, [rsi + 0x28]
mov qword [rsp + 0x20], r12
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
call sym.AsusAppService.exe_private:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::_Construct_lv_contents_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64____ptr64
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14001b1c0
mov edx, 0x5c
mov rcx, rdi
call fcn.14008d088
test rax, rax
je 0x140019382
mov edx, 0x5c
mov rcx, rdi
call fcn.14008d088
lea rdi, [rax + 1]
lea r9, [0x1400da940]
mov edx, 0x63
lea r8, str.StartAllLogSession
mov rcx, rdi
call fcn.140015a30
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140060fe0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret