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

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x1400be8e2
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
je 0x1400be90d
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140079ea0
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400be93b
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140079ea0
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp 0x1400beb27
mov ecx, 2
call fcn.140062530
test al, al
je 0x1400be9f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x266
mov r9d, 2
call fcn.1400e24c0
lea rcx, [rsp + 0x60]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.14006c36d
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.140054e90
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1400be9cd
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.14006c36d
cmp byte [rsp + 0x4f], 0
jns 0x1400be9e9
mov rcx, qword [rsp + 0x38]
call fcn.140076eb8
lea rcx, [rsp + 0x50]
call fcn.1400c3280
xor edi, edi
jmp 0x1400be8f1
push rsi
push rdi
sub rsp, 0x1a8
mov rsi, rcx
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [rcx + 0x17], 0
jns 0x1400beb4e
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400beb80
mov dil, 1
test al, 0x10
je 0x1400bec3d
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140079ea0
mov eax, edi
add rsp, 0x1a8
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140062530
test al, al
je 0x1400bed00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x251
mov r9d, 2
call fcn.1400e24c0
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.14006c36d
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x38]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.140054e90
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1400bec12
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.14006c36d
cmp byte [rsp + 0x5f], 0
jns 0x1400bec2e
mov rcx, qword [rsp + 0x48]
call fcn.140076eb8
lea rcx, [rsp + 0x60]
call fcn.1400c3280
jmp 0x1400bed00
mov ecx, 2
call fcn.140062530
test al, al
je 0x1400bed00
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x255
mov r9d, 2
call fcn.1400caa50
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.14006c36d
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.140054e90
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1400becc5
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.14006c36d
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.14006c36d
cmp byte [rsp + 0x5f], 0
jns 0x1400becf6
mov rcx, qword [rsp + 0x48]
call fcn.140076eb8
lea rcx, [rsp + 0x60]
call fcn.140001da0
xor edi, edi
jmp 0x1400beb64