Function at 0x1400bac90
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x15d0]
mov eax, 0x16d0
call fcn.1401e33b0
sub rsp, rax
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x15c0], rax
mov rsi, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rbp + 0x370]
mov r8d, 0x208
call fcn.1401e7e40
xor edx, edx
lea rcx, [rbp + 0xdc0]
mov r8d, 0x800
call fcn.1401e7e40
xor edx, edx
lea rcx, [rbp + 0x160]
mov r8d, 0x208
call fcn.1401e7e40
xor edx, edx
lea rcx, [rbp + 0x9a0]
mov r8d, 0x208
call fcn.1401e7e40
xor edx, edx
lea rcx, [rbp + 0xbb0]
mov r8d, 0x208
call fcn.1401e7e40
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.1401e7e40
xor edx, edx
lea rcx, [rbp + 0x580]
mov r8d, 0x208
call fcn.1401e7e40
test rsi, rsi
jne 0x1400bad63
mov dword [0x1402bbd98], 1
mov eax, 0x80010001
jmp 0x1400bafcb
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x1700], rbx
test rcx, rcx
je 0x1400bad81
call fcn.1401fc204
mov qword [rdi + 8], 0
mov qword [rsp + 0x40], 0x104
lea rax, [rbp + 0x580]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0xdc0]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], 0x104
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x370]
mov r8d, 0x104
mov qword [rsp + 0x20], 0x400
mov rcx, rsi
call fcn.1401fded0
lea rax, [rbp + 0xdc0]
mov edx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [0x1402528f8]
lea rax, [rbp + 0x370]
mov r8, 0xffffffffffffffff
lea rcx, [rbp + 0x160]
mov qword [rsp + 0x20], rax
call fcn.140051530
lea rdx, [0x140251dfc]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
lea rcx, [rsp + 0x50]
test eax, eax
jne 0x1400bae2f
lea rdx, str.Silent.log
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x1400bae3c
lea rdx, [rbp + 0x580]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp + 0x160]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400baeb6
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov rcx, rax
lea r8, [rbp + 0xdc0]
lea rdx, str.WindowsFolder
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
lea rax, [rsp + 0x50]
mov edx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [0x1402528f8]
lea rax, [rbp + 0xdc0]
mov r8, 0xffffffffffffffff
lea rcx, [rbp + 0x160]
mov qword [rsp + 0x20], rax
call fcn.140051530
jmp 0x1400baf0e
cmp word [rbp + 0xdc0], 0x5c
je 0x1400baecd
lea rcx, [rbp + 0x370]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rax, [rsp + 0x50]
mov edx, 0x104
mov qword [rsp + 0x30], rax
lea r9, [0x14025b2e0]
lea rax, [rbp + 0xdc0]
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x28], rax
lea rcx, [rbp + 0x160]
lea rax, [rbp + 0x370]
mov qword [rsp + 0x20], rax
call fcn.140051530
xor edx, edx
lea rcx, [rbp + 0x790]
mov r8d, 0x208
call fcn.1401e7e40
lea r8, [rbp + 0x160]
mov edx, 0x104
lea rcx, [rbp + 0x790]
call fcn.1401ebfa8
lea r8, str.wt_ccsUNICODE
lea rdx, [rbp + 0x790]
lea rcx, [rdi + 8]
call fcn.1401fc080
cmp qword [rdi + 8], 0
jne 0x1400baf69
mov dword [0x1402bbd98], 5
mov eax, 0x80010005
jmp 0x1400bafc3
mov rax, qword [rdi]
lea rdx, [rbp + 0x9a0]
mov r8d, 0x104
mov rcx, rdi
mov rax, qword [rax + 0x20]
call qword [case.0x1400136d6.0]
lea rcx, [rbp + 0x9a0]
mov edx, 0x104
mov qword [rsp + 0x20], rcx
lea r9, str._Logging_started:__s__n
lea rcx, [rbp + 0xbb0]
mov r8, 0xffffffffffffffff
call fcn.140051530
mov rdx, qword [rdi + 8]
lea rcx, [rbp + 0xbb0]
call fcn.1401fef40
xor eax, eax
mov rbx, qword [rsp + 0x1700]
mov rcx, qword [rbp + 0x15c0]
xor rcx, rsp
call fcn.1401e2900
add rsp, 0x16d0
pop rdi
pop rsi
pop rbp
ret