Function at 0x413520
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov dword [esp + 0xc], ecx
mov eax, dword [0x511014]
xor eax, ebp
mov dword [esp + 0xc8], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x40]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x80]
push 0x3a
push str....._base_filesmemory_mapped_file_win.cc
push str.MapFileRegionToMemory
push esi
call fcn.00454af0
add esp, 0x10
xor ebx, ebx
mov ecx, edi
push ebx
push ebx
push esi
call fcn.0046afe0
test byte [0x512ba0], 0x19
jne 0x4139c4
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
xor ebx, ebx
lea ecx, [eax + 1]
cmp ecx, 2
jae 0x4135c4
lea ecx, [esp + 0x40]
call fcn.004840c0
mov ecx, dword [esp + 0xc8]
xor ecx, ebp
call fcn.00496ce3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
test ecx, ecx
jne 0x413734
mov edx, 2
xor ecx, ecx
push ecx
push ebx
push ecx
mov dword [esp + 0x28], edx
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x24], eax
je 0x413627
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x24]
inc eax
cmp eax, 2
jae 0x4137b5
mov eax, edi
inc eax
cmp eax, 2
mov esi, dword [esp + 0xc]
jb 0x41361d
mov dword [esi + 0x24], edi
call fcn.00459380
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi + 0x24]
inc edi
cmp edi, 2
mov ecx, dword [ebp + 8]
jb 0x4137ae
mov edi, dword [ecx]
mov esi, dword [ecx + 4]
mov eax, edi
or eax, esi
jne 0x4138ec
cmp dword [ecx + 8], 0
jne 0x4138ec
mov ecx, dword [esp + 0xc]
call fcn.00413a90
mov ecx, eax
add ecx, 0xffffffff
adc edx, 0xffffffff
mov dword [esp + 0x10], 0
mov esi, 0xfffffffe
cmp esi, ecx
mov ecx, 0
sbb ecx, edx
jb 0x4137ae
xor edi, edi
xor esi, esi
xor edx, edx
mov ebx, dword [esp + 0xc]
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x1c]
and eax, 2
add eax, 2
push edx
push edi
push esi
push eax
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov eax, dword [ebx + 0x1c]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x518914]
bt edx, ecx
jb 0x4139f2
mov ecx, esi
shr ecx, 0xe
xor edx, edx
inc edx
shl edx, cl
mov edi, esi
shr edi, 0x13
mov eax, dword [edi*4 + 0x518914]
bt eax, ecx
jb 0x413a00
mov eax, esi
shr eax, 0x15
mov byte [eax + 0x520914], 1
mov eax, dword [esp + 0xc]
mov dword [eax + 0x1c], esi
test esi, esi
je 0x4137ae
mov ebx, esi
mov eax, dword [esp + 0x10]
add ebx, eax
test dword [edi*4 + 0x518914], edx
jne 0x413a12
mov eax, ebx
shr eax, 0xe
mov ecx, ebx
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x518914]
bt ecx, eax
jb 0x413a27
mov eax, dword [esp + 0xc]
mov dword [eax + 0x1c], ebx
mov bl, 1
jmp 0x4135a1
cmp ecx, 3
jne 0x413947
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x80]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x20]
push 0x1b
push str....._base_filesmemory_mapped_file_win.cc
push str.MapImageToMemory
push esi
call fcn.00454af0
add esp, 0x10
xor ebx, ebx
mov ecx, edi
push ebx
push ebx
push esi
call fcn.0046afe0
test byte [0x512ba0], 0x19
jne 0x413a2a
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
lea ecx, [eax + 1]
cmp ecx, 2
jae 0x413801
xor ebx, ebx
lea ecx, [esp + 0x80]
call fcn.004840c0
jmp 0x4135a1
xor ebx, ebx
jmp 0x4135a1
call fcn.00459380
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x24]
mov dword [esp + 0x10], eax
cmp dword [0x523df0], 0
je 0x41397d
mov eax, dword [0x523df0]
mov dword [esp + 0x18], eax
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
call dword [section..00cfg]
mov ecx, dword [esp + 0x18]
push dword [esp + 0x10]
call dword [esp + 0x18]
mov dword [esi + 0x24], 0
jmp 0x413609
sub esp, 0x18
movdqa xmm0, xmmword [0x504aa0]
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 0x41385d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x24]
inc eax
cmp eax, 2
jae 0x41395d
mov eax, edi
inc eax
cmp eax, 2
mov esi, dword [esp + 0xc]
jb 0x413853
mov dword [esi + 0x24], edi
call fcn.00459380
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi + 0x24]
lea eax, [edi + 1]
cmp eax, 2
jb 0x41379b
sub esp, 0x14
movdqa xmm0, xmmword [0x504ab0]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x1c]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x518914]
bt edx, ecx
jb 0x413a58
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x518914]
bt ecx, eax
jb 0x413a66
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x520914], 1
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x1c], edi
test edi, edi
je 0x41379b
mov eax, dword [edi + 0x3c]
mov eax, dword [edi + eax + 0x50]
mov dword [ecx + 0x20], eax
mov bl, 1
jmp 0x41379d
mov ebx, ecx
call fcn.0048dd90
dec eax
js 0x413a74
mov dword [esp + 0x18], eax
mov ecx, eax
and ecx, edi
mov eax, dword [ebx + 8]
xor ebx, ebx
mov edx, eax
mov dword [esp + 0x10], ecx
add edx, ecx
setb bl
mov ecx, ebx
neg ecx
xor ebx, ecx
setne byte [esp + 0x14]
xor ebx, ebx
test esi, esi
js 0x4135a1
cmp byte [esp + 0x14], 0
jne 0x4135a1
test ecx, ecx
js 0x4135a1
mov ecx, dword [esp + 0x18]
not ecx
and edi, ecx
jmp 0x413680
cmp ecx, 2
jne 0x413a77
mov ebx, dword [edx + 8]
mov edx, 4
jmp 0x4135d7
call fcn.00459380
mov esi, dword [esp + 0xc]
push dword [esi + 0x24]
call fcn.0048c780
add esp, 4
mov dword [esi + 0x24], 0
jmp 0x41383f
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x50511c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x413a87
mov ecx, eax
cmp eax, sym.opera.exe_GetHandleVerifier
je 0x4139be
call dword [section..00cfg]
call ecx
push 0
push eax
call fcn.00426270
add esp, 8
mov esi, dword [esp + 0xc]
jmp 0x4137d2
push 1
push 0
jmp 0x4139ad
lea edx, [esp + 0x38]
mov dword [edx], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
sub esp, 8
movq xmm0, qword [esp + 0x28]
movq qword [esp], xmm0
mov ecx, str.ScopedBlockingCall
call fcn.004d8680
add esp, 8
jmp 0x413591
push eax
call fcn.00454d60
add esp, 4
jmp 0x4136bd
push esi
mov ebx, edx
call fcn.00455550
mov edx, ebx
add esp, 4
jmp 0x4136e8
push eax
push esi
call fcn.00492ca0
add esp, 8
test al, al
jne 0x413726
int3
int3
lea edx, [esp + 0x34]
mov dword [edx], esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
sub esp, 8
movq xmm0, qword [esp + 0x40]
movq qword [esp], xmm0
mov ecx, str.ScopedBlockingCall
call fcn.004d8680
add esp, 8
jmp 0x41378d
push eax
call fcn.00454d60
add esp, 4
jmp 0x4138a6
push edi
call fcn.00455550
add esp, 4
jmp 0x4138cc
int3
cmp ecx, 1
je 0x413953
xor edx, edx
jmp 0x4135d7
xor eax, eax
push eax
jmp 0x4139ac