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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x501156
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x53602c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 0x50], 0
cmp dword [esi + 0x14], 8
jb 0x4ebaa1
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ebb4d
sub esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
mov ecx, esp
jb 0x4ebac0
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00454040
add esp, 0xc
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x50], 2
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x75
push str.E:.conan709e391_sourcesexternalcrashpadutil_file_filesystem_win.cc
push str.bool___cdecl_crashpad::IsRegularFile_const_class_base::FilePath__
lea ecx, [ebp - 0x12c]
call fcn.00452ce0
push str.GetFileAttributes
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x50], 6
call fcn.004012f0
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x4ebb2a
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.00402280
add esp, 0xc
lea ecx, [ebp - 0x12c]
call fcn.00452fa0
lea ecx, [ebp - 0x7c]
call fcn.004035e0
jmp 0x4ebc97
test eax, 0x410
jne 0x4ebc97
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4ebb62
mov eax, dword [esi]
lea ecx, [ebp - 0x48]
push ecx
push eax
call fcn.004ef8a4
add esp, 8
test eax, eax
jne 0x4ebb7e
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
jmp 0x4ebc9b
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0xac
push str.E:.conan709e391_sourcesexternalcrashpadutil_file_filesystem_win.cc
push str.unsigned___int64___cdecl_crashpad::GetFileSize_const_class_base::FilePath__
lea ecx, [ebp - 0x1dc]
call fcn.00452ce0
push str.stat
push eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x50], 1
call fcn.004012f0
add esp, 8
mov dword [ebp - 0x54], eax
cmp dword [esi + 0x14], 8
jb 0x4ebbc7
mov esi, dword [esi]
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x4c], 0
call fcn.004032f0
cmp byte [ebp - 0x60], 0
mov edi, 4
mov dword [ebp - 4], 3
je 0x4ebc64
mov edx, dword [ebp - 0x54]
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov eax, dword [eax + edx + 0x30]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x58], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 4
push eax
call fcn.00402860
mov ecx, dword [ebp - 0x58]
add esp, 4
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 3
test ecx, ecx
je 0x4ebc31
mov edx, dword [ecx]
mov edx, dword [edx + 8]
call edx
test eax, eax
je 0x4ebc31
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x4c]
mov byte [ebp - 0x5c], 0
push esi
mov eax, dword [ecx]
mov edx, dword [edx]
add ecx, dword [eax + 4]
movzx eax, byte [ecx + 0x40]
push eax
push ecx
push dword [ecx + 0x38]
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x5c]
push dword [ebp - 0x5c]
push eax
call dword [edx + 0xc]
xor eax, eax
cmp byte [ebp - 0x5c], al
cmovne eax, edi
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x54]
push 0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, edx
cmp dword [ecx + 0x38], eax
cmovne edi, eax
or edi, dword [ecx + 0xc]
or edi, dword [ebp - 0x4c]
push edi
call fcn.004072b0
lea ecx, [ebp - 0x64]
call fcn.00403d30
lea ecx, [ebp - 0x1dc]
call fcn.00452fa0
xor eax, eax
xor edx, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047d116
mov esp, ebp
pop ebp
ret