Function at 0x1400199e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x680
mov rax, qword [0x14002f198]
xor rax, rsp
mov qword [rsp + 0x660], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0x6a8], rbp
cmp rcx, 0xffffffffffffffff
je 0x140019a22
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x48], 0xffffffffffffffff
mov rcx, qword [rbx + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x140019a3a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x40], 0xffffffffffffffff
mov r15d, 4
xor r14d, r14d
lea ebp, [r15 - 3]
cmp dword [rbx + 0x558], r14d
je 0x140019d07
cmp dword [rbx + 0x55c], r14d
mov qword [rsp + 0x40], 0x100
mov qword [rsp + 0x6b0], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x6b8], rdi
mov qword [rsp + 0x678], r12
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x260]
mov qword [rsp + 0x30], 0x100
mov qword [rsp + 0x28], rax
lea rcx, [rbx + 0x564]
lea r9, [rsp + 0x460]
lea r8d, [r15 - 1]
lea rdx, [rsp + 0x50]
mov r12d, 2
mov qword [rsp + 0x20], 0x100
mov qword [rsp + 0x670], r13
cmovne r12d, r15d
call fcn.14001d7f8
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x260]
lea r8, str._s_s_s_s
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x460]
lea rcx, [rbx + 0x148]
mov edx, 0x208
mov qword [rsp + 0x20], rax
call fcn.14001bfe0
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x260]
lea r8, str._s_s_s.old_s
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x460]
lea rcx, [rbx + 0x350]
mov edx, 0x208
mov qword [rsp + 0x20], rax
call fcn.14001bfe0
mov qword [rsp + 0x30], r14
lea r8d, [r15 + 1]
lea rcx, [rbx + 0x148]
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 0x40], rax
mov edi, ebp
cmp rax, 0xffffffffffffffff
jne 0x140019c8a
nop
cmp edi, 0x3e8
jae 0x140019c8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140019bc8
lea rcx, [rbx + 0x148]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140019bc8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140019c8a
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x50]
lea r8, str._s_s_s._d_s
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x260]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x460]
lea rcx, [rbx + 0x148]
mov edx, 0x208
mov qword [rsp + 0x20], rax
call fcn.14001bfe0
lea r11, [rsp + 0x60]
lea rax, [rsp + 0x260]
mov qword [rsp + 0x38], r11
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x460]
lea r9, [rsp + 0x50]
lea r8, str._s_s_s._d.old_s
lea rcx, [rbx + 0x350]
mov edx, 0x208
mov qword [rsp + 0x20], rax
call fcn.14001bfe0
xor r9d, r9d
mov qword [rsp + 0x30], r14
lea rcx, [rbx + 0x148]
lea r8d, [r9 + 5]
mov edx, 0x40000000
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
inc edi
mov qword [rbx + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x140019b90
cmp qword [rbx + 0x40], 0xffffffffffffffff
mov r13, qword [rsp + 0x670]
mov r12, qword [rsp + 0x678]
mov rdi, qword [rsp + 0x6b8]
je 0x140019cff
xor r9d, r9d
mov qword [rsp + 0x30], r14
lea rcx, [rbx + 0x148]
lea r8d, [r9 + 3]
mov edx, 0x80000000
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rbx + 0x40]
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r8d, dword [rbx + 0x50]
mov rcx, qword [rbx + 0x40]
test eax, eax
setne dl
call fcn.1400184c0
mov rsi, qword [rsp + 0x6b0]
cmp qword [rbx + 0x40], 0xffffffffffffffff
jne 0x140019d17
cmp qword [rbx + 0x30], r14
jne 0x140019d17
mov ebp, r14d
mov byte [rbx + 0xc], bpl
test bpl, bpl
mov rbp, qword [rsp + 0x6a8]
je 0x140019d62
lea rax, [0x14002c208]
lea r8, str.......CommonTraceLog.cpp
lea rdx, str.Start_of_log_file
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r15d
mov r9d, 0x4be
mov rcx, rbx
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 0x10
call fcn.140019d80
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.14001cea0
add rsp, 0x680
pop r15
pop r14
pop rbx
ret