Function at 0x140040830
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401ba028]
xor rax, rsp
mov qword [rsp + 0xf8], rax
movaps xmm6, xmmword [0x1401879f0]
lea rbx, [rsp + 0x50]
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.CreateDirectoryAndGetError
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0xb0]
mov rcx, r14
mov r9d, 0x2f4
call fcn.1400b5990
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1400ac660
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x1400408b8
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140040904
mov bl, 1
test al, 0x10
je 0x140040a9d
lea rcx, [rsp + 0x50]
call fcn.1400ac6e0
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.1400de300
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x30]
mov qword [r14 + 0x10], rax
movaps xmmword [r14], xmm6
mov rcx, rdi
mov rdx, r14
call fcn.1400b6740
movzx eax, byte [rdi + 0x17]
test al, al
js 0x140040936
and eax, 0x7f
mov rcx, rdi
jmp 0x14004093d
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
js 0x140040aba
test rcx, rcx
jne 0x140040954
test rax, rax
jne 0x140040ae6
movzx r8d, byte [rsp + 0x47]
mov edx, r8d
and edx, 0x7f
test r8b, r8b
cmovs rdx, qword [rsp + 0x38]
cmovs r14, qword [rsp + 0x30]
test rdx, rdx
js 0x140040aba
test r14, r14
jne 0x140040986
test rdx, rdx
jne 0x140040ae6
cmp rdx, rax
je 0x140040a50
lea rcx, [rsp + 0x30]
mov rdx, rsi
call 0x140040830
test al, al
je 0x140040a88
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x1400409c4
lea rcx, [rsp + 0x30]
call fcn.1400b6470
jmp 0x1400408d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
jne 0x140040a8f
lea r14, [rsp + 0xb0]
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
lea rdx, str.DirectoryExists
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x90]
mov rcx, r15
mov r9d, 0x233
call fcn.1400b5990
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400ac660
cmp byte [rdi + 0x17], 0
jns 0x140040a2d
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, r14
call fcn.1400ac6e0
cmp edi, 0xffffffff
je 0x140040a8f
and edi, 0x10
jne 0x1400409b5
jmp 0x140040a8f
test rax, rax
je 0x140040a6f
xor edx, edx
movzx r8d, word [r14 + rdx*2]
cmp r8w, word [rcx + rdx*2]
jne 0x14004098f
inc rdx
cmp rax, rdx
jne 0x140040a57
mov eax, 0xfffffffc
mov ebp, 2
test rsi, rsi
je 0x140040a80
mov dword [rsi], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x1400409b5
test rsi, rsi
je 0x140040a80
mov ecx, ebp
call fcn.14003f2d0
jmp 0x140040a7e
test rsi, rsi
je 0x140040aa8
mov dword [rsi], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x1400408d0
lea rax, str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__len___static_cast_size_type__numeric_limits_difference_type_::max___
mov r8d, 0x13a
call fcn.140115f00
lea rax, str.string_view::string_view__CharT___size_t_:_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__len__0____s___nullptr
mov r8d, 0x13c
call fcn.140115f00
int3
xor edx, edx
jmp 0x140040830