Function at 0x466640
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [0x5f3024]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x3a
push str....._base_filesmemory_mapped_file_win.cc
push str.MapFileRegionToMemory
push ebx
call fcn.004cfde0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004da670
mov dword [esp], esi
mov ecx, esi
call fcn.00465a40
xor ebx, ebx
test al, al
je 0x466811
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x466831
mov edi, 2
mov esi, dword [esp]
mov ecx, esi
call fcn.00465a50
xor ecx, ecx
push ecx
push ebx
push ecx
mov dword [esp + 0x10], edi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp dword [esi + 0x24], eax
je 0x466713
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 0x24]
inc eax
cmp eax, 2
jae 0x46684a
mov eax, ebx
inc eax
cmp eax, 2
jb 0x466706
mov eax, dword [esp]
mov dword [eax + 0x24], ebx
call fcn.004cfe10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp]
mov ebx, dword [eax + 0x24]
inc ebx
cmp ebx, 2
jb 0x4668cd
mov dword [esp + 0xc], 0
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x5daa60
call fcn.00457360
test al, al
je 0x466869
mov edi, dword [esp]
mov ecx, edi
call fcn.00465b70
mov ecx, eax
add ecx, 0xffffffff
adc edx, 0xffffffff
xor ebx, ebx
mov esi, 0xfffffffe
cmp esi, ecx
mov ecx, 0
sbb ecx, edx
jb 0x466811
mov dword [edi + 0x20], eax
xor ecx, ecx
xor eax, eax
mov edx, dword [esp + 4]
and edx, 2
add edx, 2
push eax
push ebx
push ecx
push edx
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov eax, dword [edi + 0x1c]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x5fc3c8]
bt edx, ecx
jb 0x4668e9
mov ecx, ebx
shr ecx, 0xe
xor edx, edx
inc edx
shl edx, cl
mov esi, ebx
shr esi, 0x13
mov eax, dword [esi*4 + 0x5fc3c8]
bt eax, ecx
jb 0x4668f7
mov eax, ebx
shr eax, 0x15
mov byte [eax + 0x6043c8], 1
mov eax, dword [esp]
mov dword [eax + 0x1c], ebx
test ebx, ebx
je 0x4668cd
mov eax, dword [esp + 0xc]
mov edi, ebx
add edi, eax
test dword [esi*4 + 0x5fc3c8], edx
jne 0x466909
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x5fc3c8]
bt ecx, eax
jb 0x46691e
mov eax, dword [esp]
mov dword [eax + 0x1c], edi
mov bl, 1
lea ecx, [esp + 0x20]
call fcn.004da6f0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0050db32
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
cmp eax, 3
jne 0x4668d4
sub esp, 4
mov ecx, dword [esp + 4]
call fcn.00466490
mov ebx, eax
jmp 0x466811
call fcn.004cfe10
mov esi, dword [esp]
push dword [esi + 0x24]
call fcn.004dfa90
add esp, 4
mov dword [esi + 0x24], 0
jmp 0x4666f3
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
lea eax, [esp + 8]
mov dword [eax], esi
lea ebx, [esp + 0xc]
push ebx
push eax
lea eax, [esp + 0x18]
push eax
push dword [edi + 8]
push dword [edi + 4]
push dword [edi]
call fcn.004574e0
add esp, 0x18
mov edx, dword [edi + 8]
mov eax, dword [ebx]
mov ecx, eax
sar ecx, 0x1f
add eax, edx
adc ecx, esi
mov esi, ecx
and esi, 1
neg esi
xor ecx, esi
setne bl
mov ecx, dword [esp + 0x14]
test ecx, ecx
js 0x4668cd
test bl, bl
jne 0x4668cd
test esi, esi
js 0x4668cd
mov ebx, dword [esp + 0x10]
mov edi, dword [esp]
mov dword [edi + 0x20], edx
jmp 0x46676b
xor ebx, ebx
jmp 0x466811
cmp eax, 2
jne 0x466921
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 8]
mov edi, 4
jmp 0x4666bb
push eax
call fcn.004d10e0
add esp, 4
jmp 0x4667a1
push ebx
mov edi, edx
call fcn.004d0fc0
mov edx, edi
add esp, 4
jmp 0x4667cc
push eax
push ebx
call fcn.004d1430
add esp, 8
test al, al
jne 0x466809
int3
int3
cmp eax, 1
je 0x4668df
xor edi, edi
jmp 0x4666bb