Function at 0x10097c60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov esi, ecx
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [esp + 0xc8], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
lea edi, [esp + 0x80]
push 0x3a
push str....._base_filesmemory_mapped_file_win.cc
push str.MapFileRegionToMemory
push edi
call fcn.10065960
add esp, 0x10
lea ecx, [esp + 0x40]
push 0
push 0
push edi
call fcn.100bcef0
test byte [0x101bacd0], 0x19
jne 0x100980fc
mov eax, dword [esi]
xor ebx, ebx
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x10097e7c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp ecx, 3
ja case.default.0x10097cf1
jmp dword [ecx*4 + 0x101a65f4]
mov ecx, 2
jmp 0x10097e15
mov ebx, dword [edx + 8]
mov ecx, 4
jmp 0x10097e15
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0xb0], xmm0
movdqa xmmword [esp + 0xa0], xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
lea edi, [esp + 0x20]
push 0x1b
push str....._base_filesmemory_mapped_file_win.cc
push str.MapImageToMemory
push edi
call fcn.10065960
add esp, 0x10
lea ecx, [esp + 0x80]
push 0
push 0
push edi
call fcn.100bcef0
test byte [0x101bacd0], 0x19
jne 0x10098188
mov eax, dword [esi]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x10097def
sub esp, 0x18
movdqa xmm0, xmmword [0x101a6580]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp dword [esi + 0x24], eax
je 0x10097de3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x24]
inc eax
cmp eax, 2
jb 0x10097dc9
call fcn.10065990
push dword [esi + 0x24]
call fcn.100849b0
add esp, 4
mov dword [esi + 0x24], 0
mov eax, edi
inc eax
cmp eax, 2
jb 0x10097dd9
mov dword [esi + 0x24], edi
call fcn.10065990
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi + 0x24]
lea eax, [edi + 1]
cmp eax, 2
jae 0x10098022
xor ebx, ebx
test byte [0x101bacd0], 0x19
jne 0x100980b1
lea ecx, [esp + 0x80]
call fcn.100bd420
jmp 0x10097e7c
mov ecx, 4
jmp 0x10097e15
xor ecx, ecx
push 0
push ebx
push 0
mov dword [esp + 0x20], ecx
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp dword [esi + 0x24], eax
je 0x10097e71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x24]
inc eax
cmp eax, 2
jb 0x10097e57
call fcn.10065990
push dword [esi + 0x24]
call fcn.100849b0
add esp, 4
mov dword [esi + 0x24], 0
mov eax, edi
inc eax
cmp eax, 2
jb 0x10097e67
mov dword [esi + 0x24], edi
call fcn.10065990
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi + 0x24]
inc edi
cmp edi, 2
mov ecx, dword [ebp + 8]
jae 0x10097eac
xor ebx, ebx
test byte [0x101bacd0], 0x19
jne 0x10098134
lea ecx, [esp + 0x40]
call fcn.100bd420
mov ecx, dword [esp + 0xc8]
xor ecx, ebp
call fcn.101465a3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov edi, dword [ecx]
mov edx, dword [ecx + 4]
mov eax, edi
or eax, edx
jne 0x10097ef3
cmp dword [ecx + 8], 0
jne 0x10097ef3
mov ecx, esi
call fcn.1009dd50
mov dword [esp + 0x1c], eax
add eax, 0xffffffff
adc edx, 0xffffffff
mov dword [esp + 0x10], 0
mov ecx, 0xfffffffe
cmp ecx, eax
mov eax, 0
sbb eax, edx
mov ebx, 0
jb 0x10097e7c
xor edi, edi
xor edx, edx
xor eax, eax
jmp 0x10097f51
mov dword [esp + 0x18], edx
mov ebx, ecx
call fcn.100850c0
mov edx, dword [eax + 0x3c]
dec edx
js 0x100981c0
mov ecx, edx
and ecx, edi
mov eax, dword [ebx + 8]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
add eax, ecx
setb bl
mov ecx, ebx
neg ecx
xor ebx, ecx
setne byte [esp + 0xf]
xor ebx, ebx
cmp dword [esp + 0x18], 0
js 0x10097e7c
cmp byte [esp + 0xf], 0
jne 0x10097e7c
test ecx, ecx
js 0x10097e7c
not edx
and edi, edx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x14]
and ecx, 2
add ecx, 2
push eax
push edi
push edx
push ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov eax, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x101c1e84]
bt edx, ecx
jae 0x10097f93
push eax
call fcn.10069280
add esp, 4
mov ecx, ebx
shr ecx, 0xe
mov edx, 1
shl edx, cl
mov edi, ebx
shr edi, 0x13
mov eax, dword [edi*4 + 0x101c1e84]
bt eax, ecx
jae 0x10097fc3
push ebx
mov dword [esp + 0x18], edx
call fcn.10069180
mov edx, dword [esp + 0x18]
add esp, 4
jmp 0x10097fcf
mov eax, ebx
shr eax, 0x15
mov byte [eax + 0x101c9e84], 1
mov eax, dword [esp + 0x10]
mov dword [esi + 0x1c], ebx
test ebx, ebx
je 0x10097e7a
mov ecx, ebx
add ecx, eax
test dword [edi*4 + 0x101c1e84], edx
je 0x10097ffe
push eax
push ebx
mov edi, ecx
call fcn.100695b0
add esp, 8
test al, al
jne 0x10098018
int3
mov eax, ecx
shr eax, 0xe
mov edi, ecx
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x101c1e84]
bt ecx, eax
jb 0x100981c3
mov dword [esi + 0x1c], edi
mov bl, 1
jmp 0x10097e7c
sub esp, 0x14
movdqa xmm0, xmmword [0x101a6590]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov eax, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x101c1e84]
bt edx, ecx
jae 0x10098060
push eax
call fcn.10069280
add esp, 4
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x101c1e84]
bt ecx, eax
jae 0x10098081
push edi
call fcn.10069180
add esp, 4
jmp 0x1009808d
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x101c9e84], 1
mov dword [esi + 0x1c], edi
test edi, edi
je 0x10097def
mov eax, dword [edi + 0x3c]
mov eax, dword [edi + eax + 0x50]
mov dword [esi + 0x20], eax
mov bl, 1
test byte [0x101bacd0], 0x19
je 0x10097dfe
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
sub esp, 0x18
movq xmm0, qword [esp + 0x38]
movq qword [esp + 0x10], xmm0
mov dword [esp + 0xc], 0x10178420
mov dword [esp + 8], 0x1019dfb6
mov dword [esp + 4], 0x101bacd0
mov dword [esp], 0x45
call fcn.1003beb0
add esp, 0x18
jmp 0x10097dfe
mov dword [esp + 0x38], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
sub esp, 8
movq xmm0, qword [esp + 0x28]
movq qword [esp], xmm0
lea edx, [esp + 0x40]
mov ecx, str.ScopedBlockingCall
call fcn.10079ed0
add esp, 8
jmp 0x10097cd2
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
sub esp, 0x18
movq xmm0, qword [esp + 0x98]
movq qword [esp + 0x10], xmm0
mov dword [esp + 0xc], 0x10178420
mov dword [esp + 8], 0x1019dfb6
mov dword [esp + 4], 0x101bacd0
mov dword [esp], 0x45
call fcn.1003beb0
add esp, 0x18
jmp 0x10097e89
mov dword [esp + 0x34], edi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
sub esp, 8
movq xmm0, qword [esp + 0x40]
movq qword [esp], xmm0
lea edx, [esp + 0x3c]
mov ecx, str.ScopedBlockingCall
call fcn.10079ed0
add esp, 8
jmp 0x10097d6e
int3
int3