Function at 0x490e30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov esi, ecx
mov eax, dword [0x597010]
xor eax, ebp
mov dword [esp + 0xa8], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
lea edi, [esp + 0x70]
push 0x3a
push str....._base_filesmemory_mapped_file_win.cc
push str.MapFileRegionToMemory
push edi
call fcn.004733a0
add esp, 0x10
lea ecx, [esp + 0x40]
push 0
push 0
call fcn.004a1610
test byte [0x598b10], 0x19
jne 0x4912b0
mov eax, dword [esi]
xor ebx, ebx
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x49102f
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp ecx, 3
ja case.default.0x490eb7
jmp dword [ecx*4 + 0x586f24]
mov ecx, 2
jmp 0x490fc8
mov ebx, dword [edx + 8]
mov ecx, 4
jmp 0x490fc8
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
lea edi, [esp + 0x20]
push 0x1b
push str....._base_filesmemory_mapped_file_win.cc
push str.MapImageToMemory
push edi
call fcn.004733a0
add esp, 0x10
lea ecx, [esp + 0x70]
push 0
push 0
call fcn.004a1610
test byte [0x598b10], 0x19
jne 0x491336
mov eax, dword [esi]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x490fa5
sub esp, 0x18
movdqa xmm0, xmmword [0x586eb0]
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 0x490f99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x24]
inc eax
cmp eax, 2
jb 0x490f7f
call fcn.004733d0
push dword [esi + 0x24]
call fcn.00456a60
add esp, 4
mov dword [esi + 0x24], 0
mov eax, edi
inc eax
cmp eax, 2
jb 0x490f8f
mov dword [esi + 0x24], edi
call fcn.004733d0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi + 0x24]
lea eax, [edi + 1]
cmp eax, 2
jae 0x4911d6
xor ebx, ebx
test byte [0x598b10], 0x19
jne 0x491265
lea ecx, [esp + 0x70]
call fcn.004a1a80
jmp 0x49102f
mov ecx, 4
jmp 0x490fc8
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 0x491024
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x24]
inc eax
cmp eax, 2
jb 0x49100a
call fcn.004733d0
push dword [esi + 0x24]
call fcn.00456a60
add esp, 4
mov dword [esi + 0x24], 0
mov eax, edi
inc eax
cmp eax, 2
jb 0x49101a
mov dword [esi + 0x24], edi
call fcn.004733d0
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 0x49105f
xor ebx, ebx
test byte [0x598b10], 0x19
jne 0x4912e8
lea ecx, [esp + 0x40]
call fcn.004a1a80
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.00528e13
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 0x4910a6
cmp dword [ecx + 8], 0
jne 0x4910a6
mov ecx, esi
call fcn.0045db10
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 0x49102f
xor edi, edi
xor edx, edx
xor eax, eax
jmp 0x491104
mov dword [esp + 0x18], edx
mov ebx, ecx
call fcn.004569a0
mov edx, dword [eax + 0x3c]
dec edx
js 0x49136e
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 0x49102f
cmp byte [esp + 0xf], 0
jne 0x49102f
test ecx, ecx
js 0x49102f
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 + 0x59f9d0]
bt edx, ecx
jae 0x491146
push eax
call fcn.0042f1aa
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 + 0x59f9d0]
bt eax, ecx
jae 0x491176
push ebx
mov dword [esp + 0x18], edx
call fcn.0042f0b8
mov edx, dword [esp + 0x18]
add esp, 4
jmp 0x491182
mov eax, ebx
shr eax, 0x15
mov byte [eax + 0x5a79d0], 1
mov eax, dword [esp + 0x10]
mov dword [esi + 0x1c], ebx
test ebx, ebx
je 0x49102d
mov ecx, ebx
add ecx, eax
test dword [edi*4 + 0x59f9d0], edx
je 0x4911b2
push eax
push ebx
mov edi, ecx
call fcn.0042f4b4
add esp, 8
cmp eax, 1
jne 0x4911cc
int3
mov eax, ecx
shr eax, 0xe
mov edi, ecx
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x59f9d0]
bt ecx, eax
jb 0x491371
mov dword [esi + 0x1c], edi
mov bl, 1
jmp 0x49102f
sub esp, 0x14
movdqa xmm0, xmmword [0x586ec0]
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 + 0x59f9d0]
bt edx, ecx
jae 0x491214
push eax
call fcn.0042f1aa
add esp, 4
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x59f9d0]
bt ecx, eax
jae 0x491235
push edi
call fcn.0042f0b8
add esp, 4
jmp 0x491241
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x5a79d0], 1
mov dword [esi + 0x1c], edi
test edi, edi
je 0x490fa5
mov eax, dword [edi + 0x3c]
mov eax, dword [edi + eax + 0x50]
mov dword [esi + 0x20], eax
mov bl, 1
test byte [0x598b10], 0x19
je 0x490fb4
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], 0x57f540
mov dword [esp + 8], 0x57d4a9
mov dword [esp + 4], 0x598b10
mov dword [esp], 0x45
call fcn.00433670
add esp, 0x18
jmp 0x490fb4
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.00462090
add esp, 8
jmp 0x490e98
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
sub esp, 0x18
movq xmm0, qword [esp + 0x88]
movq qword [esp + 0x10], xmm0
mov dword [esp + 0xc], 0x57f540
mov dword [esp + 8], 0x57d4a9
mov dword [esp + 4], 0x598b10
mov dword [esp], 0x45
call fcn.00433670
add esp, 0x18
jmp 0x49103c
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.00462090
add esp, 8
jmp 0x490f24
int3
int3