Function at 0x4745a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x575010]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x60], 0xffffffff
lea esi, [esp + 0x20]
push 0x179
push str....._base_files_file_win.cc
push str.DoInitialize
push esi
call fcn.004877c0
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push esi
call fcn.00479320
mov eax, ebx
and eax, 1
neg eax
and eax, 3
test bl, 2
mov ecx, 1
cmove ecx, eax
test bl, 4
mov eax, 4
cmovne ecx, eax
test bl, 8
mov edx, 2
cmove edx, ecx
test bl, 0x10
mov esi, 5
cmove esi, edx
test esi, esi
je 0x474807
mov ecx, ebx
and ecx, 0x40
shl ecx, 0x18
test bl, bl
cmovns eax, ecx
mov ecx, ebx
rol ecx, 0x1a
and ecx, 0x80000100
or ecx, eax
test ebx, 0x40000
mov dword [esp + 8], edi
je 0x474680
test ebx, 0x200000
jne 0x474885
or ecx, 0x20000000
mov edx, ebx
shr edx, 4
and edx, 0x10000
or edx, ecx
mov eax, ebx
shr eax, 8
and eax, 3
mov edi, ebx
shr edi, 0xd
and edi, 4
or edi, eax
mov eax, ebx
and eax, 0x400
mov dword [esp + 0x1c], eax
shl eax, 0x14
mov ecx, ebx
shr ecx, 3
and ecx, 0x100
or ecx, eax
mov eax, ebx
shr eax, 0xb
and eax, 2
or eax, ecx
mov ecx, ebx
shl ecx, 0xd
and ecx, 0x4000000
or ecx, eax
shl ebx, 8
and ebx, 0xa000000
or ebx, ecx
mov ecx, dword [ebp + 8]
xor edi, 3
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x4746ec
mov eax, dword [ecx]
push 0
push ebx
mov dword [esp + 0x14], esi
push esi
push 0
mov dword [esp + 0x24], edi
push edi
mov dword [esp + 0x2c], edx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov esi, dword [esp + 8]
cmp dword [esi], eax
je 0x474766
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x474742
mov dword [esp + 0x10], ecx
call fcn.004877f0
mov esi, dword [esp + 8]
push dword [esi]
call fcn.00470390
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [esi], 0
mov eax, edi
inc eax
cmp eax, 2
jb 0x474759
mov eax, dword [esp + 8]
mov dword [eax], edi
mov esi, ecx
call fcn.004877f0
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 8]
mov edi, dword [eax]
mov esi, dword [esp + 0xc]
inc edi
cmp edi, 1
ja 0x4747e7
call fcn.004c5230
test al, al
je 0x4747e7
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0xb], 0
mov eax, ecx
mov edx, dword [esp + 0x18]
jns 0x47478a
mov eax, dword [ecx]
push 0
push ebx
push esi
push 0
push dword [esp + 0x24]
push edx
push eax
call fcn.004c5320
add esp, 0x1c
mov edi, eax
mov eax, dword [esp + 8]
cmp dword [eax], edi
je 0x4747e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov esi, dword [esp + 8]
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x4747d1
call fcn.004877f0
push dword [esi]
call fcn.00470390
add esp, 4
mov dword [esi], 0
lea eax, [edi + 1]
cmp eax, 2
jb 0x4747e0
mov dword [esi], edi
call fcn.004877f0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [esp + 8]
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x47481d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004744e0
add esp, 4
mov dword [esi + 0x14], eax
jmp 0x474867
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [edi + 0x14], 0xffffffff
call fcn.0048db80
jmp 0x474867
mov eax, dword [esp + 0x1c]
shr eax, 0xa
mov dword [esi + 0x14], 0
mov byte [esi + 0x19], al
mov ebx, dword [ebp + 0xc]
test bl, 4
jne 0x474844
test bl, 0xa
mov eax, dword [ebp + 8]
je 0x474856
mov byte [esi + 0x18], 1
jmp 0x474856
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [esi + 0x18]
mov eax, dword [ebp + 8]
test ebx, 0x200000
je 0x474867
push eax
call fcn.00475a30
add esp, 4
lea ecx, [esp + 0x30]
call fcn.004793a0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00508d63
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
int3