Function at 0x466720
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.004cfec0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004da750
mov dword [esp], esi
mov ecx, esi
call fcn.00465b20
xor ebx, ebx
test al, al
je 0x4668f1
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x466911
mov edi, 2
mov esi, dword [esp]
mov ecx, esi
call fcn.00465b30
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 0x4667f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 0x24]
inc eax
cmp eax, 2
jae 0x46692a
mov eax, ebx
inc eax
cmp eax, 2
jb 0x4667e6
mov eax, dword [esp]
mov dword [eax + 0x24], ebx
call fcn.004cfef0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp]
mov ebx, dword [eax + 0x24]
inc ebx
cmp ebx, 2
jb 0x4669ad
mov dword [esp + 0xc], 0
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x5daae0
call fcn.00457440
test al, al
je 0x466949
mov edi, dword [esp]
mov ecx, edi
call fcn.00465c50
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 0x4668f1
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 + 0x5fc3d8]
bt edx, ecx
jb 0x4669c9
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 + 0x5fc3d8]
bt eax, ecx
jb 0x4669d7
mov eax, ebx
shr eax, 0x15
mov byte [eax + 0x6043d8], 1
mov eax, dword [esp]
mov dword [eax + 0x1c], ebx
test ebx, ebx
je 0x4669ad
mov eax, dword [esp + 0xc]
mov edi, ebx
add edi, eax
test dword [esi*4 + 0x5fc3d8], edx
jne 0x4669e9
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x5fc3d8]
bt ecx, eax
jb 0x4669fe
mov eax, dword [esp]
mov dword [eax + 0x1c], edi
mov bl, 1
lea ecx, [esp + 0x20]
call fcn.004da7d0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0050dc12
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
cmp eax, 3
jne 0x4669b4
sub esp, 4
mov ecx, dword [esp + 4]
call fcn.00466570
mov ebx, eax
jmp 0x4668f1
call fcn.004cfef0
mov esi, dword [esp]
push dword [esi + 0x24]
call fcn.004dfb70
add esp, 4
mov dword [esi + 0x24], 0
jmp 0x4667d3
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.004575c0
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 0x4669ad
test bl, bl
jne 0x4669ad
test esi, esi
js 0x4669ad
mov ebx, dword [esp + 0x10]
mov edi, dword [esp]
mov dword [edi + 0x20], edx
jmp 0x46684b
xor ebx, ebx
jmp 0x4668f1
cmp eax, 2
jne 0x466a01
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 8]
mov edi, 4
jmp 0x46679b
push eax
call fcn.004d11c0
add esp, 4
jmp 0x466881
push ebx
mov edi, edx
call fcn.004d10a0
mov edx, edi
add esp, 4
jmp 0x4668ac
push eax
push ebx
call fcn.004d1510
add esp, 8
test al, al
jne 0x4668e9
int3
int3
cmp eax, 1
je 0x4669bf
xor edi, edi
jmp 0x46679b