Function at 0x45f7c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x214
push esi
push edi
mov edi, dword [esp + 0x220]
mov eax, dword [edi]
push eax
call fcn.00465a20
add esp, 4
test eax, eax
jne 0x45f7f6
push 0x45e
call fcn.00461120
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x105
push eax
mov ecx, dword [edi]
push ecx
call fcn.00465830
add esp, 0xc
cmp byte [esp + 0xf], 0
jne 0x45f824
cmp byte [esp + 0xe], 0x5c
jne 0x45f824
xor eax, eax
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
mov esi, dword [0x4f6bf8]
push eax
lea eax, [esp + 0x10]
push eax
call esi
lea ecx, [esp + 0xc]
push ecx
call dword [0x4f6a44]
cmp eax, 0xffffffff
jne 0x45f851
xor eax, eax
pop edi
pop esi
add esp, 0x214
ret
test al, 0x10
je 0x45f863
mov eax, 1
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 8]
mov ecx, dword [edi]
push eax
push ecx
call fcn.004658f0
lea eax, [esp + 0x10]
add esp, 8
cmp byte [esp + 8], 0x2e
jne 0x45f882
lea eax, [esp + 9]
push 0x105
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004b0590
lea eax, [esp + 0x18]
add esp, 0xc
mov edi, dword [0x4f6ce8]
push eax
call edi
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x10]
push ecx
call esi
lea ecx, [esp + 0x114]
push 0
push 0x5c0
push 0x105
push ecx
call fcn.004b14d0
lea ecx, [esp + 0x124]
add esp, 0x10
push ecx
call edi
lea ecx, [esp + 0x114]
lea edx, [esp + 0xc]
push ecx
mov esi, dword [0x4f6a5c]
push edx
call esi
test eax, eax
jne 0x45f8fb
mov eax, 2
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0x114]
push 1
push 0x5c0
push 0x105
push eax
call fcn.004b14d0
lea eax, [esp + 0x124]
add esp, 0x10
push eax
call edi
lea eax, [esp + 0x114]
lea ecx, [esp + 0xc]
push eax
push ecx
call esi
test eax, eax
jne 0x45f942
mov eax, 3
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9ffc
push eax
call esi
test eax, eax
jne 0x45f960
mov eax, 4
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9ff8
push eax
call esi
test eax, eax
jne 0x45f97e
mov eax, 4
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9ff4
push eax
call esi
test eax, eax
jne 0x45f99c
mov eax, 5
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9ff0
push eax
call esi
test eax, eax
jne 0x45f9ba
mov eax, 5
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9fec
push eax
call esi
test eax, eax
jne 0x45f9d8
mov eax, 5
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9fe8
push eax
call esi
test eax, eax
jne 0x45f9f6
mov eax, 5
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9fe4
push eax
call esi
test eax, eax
jne 0x45fa14
mov eax, 6
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9fe0
push eax
call esi
test eax, eax
jne 0x45fa32
mov eax, 6
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9fdc
push eax
call esi
test eax, eax
jne 0x45fa50
mov eax, 6
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9fd8
push eax
call esi
test eax, eax
jne 0x45fa6e
mov eax, 6
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9fd4
push eax
call esi
test eax, eax
jne 0x45fa8c
mov eax, 6
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9fd0
push eax
call esi
test eax, eax
jne 0x45faaa
mov eax, 6
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9fcc
push eax
call esi
test eax, eax
jne 0x45fac8
mov eax, 6
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9fc8
push eax
call esi
test eax, eax
jne 0x45fae6
mov eax, 6
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9fc4
push eax
call esi
test eax, eax
jne 0x45fb04
mov eax, 6
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9fc0
push eax
call esi
test eax, eax
jne 0x45fb22
mov eax, 8
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9fbc
push eax
call esi
test eax, eax
jne 0x45fb40
mov eax, 8
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9fb8
push eax
call esi
test eax, eax
jne 0x45fb5e
mov eax, 8
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9fb4
push eax
call esi
test eax, eax
jne 0x45fb7c
mov eax, 9
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9fb0
push eax
call esi
test eax, eax
jne 0x45fb9a
mov eax, 9
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9fac
push eax
call esi
test eax, eax
jne 0x45fbb8
mov eax, 0xa
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9fa8
push eax
call esi
test eax, eax
jne 0x45fbd6
mov eax, 0xa
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9fa4
push eax
call esi
test eax, eax
jne 0x45fbf4
mov eax, 0xa
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9fa0
push eax
call esi
test eax, eax
jne 0x45fc12
mov eax, 0xa
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f9c
push eax
call esi
test eax, eax
jne 0x45fc30
mov eax, 0xc
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f98
push eax
call esi
test eax, eax
jne 0x45fc4e
mov eax, 0xc
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f94
push eax
call esi
test eax, eax
jne 0x45fc6c
mov eax, 0xc
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f90
push eax
call esi
test eax, eax
jne 0x45fc8a
mov eax, 0xd
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f8c
push eax
call esi
test eax, eax
jne 0x45fca8
mov eax, 0xd
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f88
push eax
call esi
test eax, eax
jne 0x45fcc6
mov eax, 2
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f84
push eax
call esi
test eax, eax
jne 0x45fce4
mov eax, 2
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f80
push eax
call esi
test eax, eax
jne 0x45fd02
mov eax, 2
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f7c
push eax
call esi
test eax, eax
jne 0x45fd20
mov eax, 2
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f78
push eax
call esi
test eax, eax
jne 0x45fd3e
mov eax, 2
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f74
push eax
call esi
test eax, eax
jne 0x45fd5c
mov eax, 2
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f70
push eax
call esi
test eax, eax
jne 0x45fd7a
mov eax, 2
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f6c
push eax
call esi
test eax, eax
jne 0x45fd98
mov eax, 3
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f68
push eax
call esi
test eax, eax
jne 0x45fdb6
mov eax, 3
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f64
push eax
call esi
test eax, eax
jne 0x45fdd4
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f60
push eax
call esi
test eax, eax
jne 0x45fdf2
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f5c
push eax
call esi
test eax, eax
jne 0x45fe10
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f58
push eax
call esi
test eax, eax
jne 0x45fe2e
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f54
push eax
call esi
test eax, eax
jne 0x45fe4c
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f50
push eax
call esi
test eax, eax
jne 0x45fe6a
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f4c
push eax
call esi
test eax, eax
jne 0x45fe88
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f48
push eax
call esi
test eax, eax
jne 0x45fea6
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f44
push eax
call esi
test eax, eax
jne 0x45fec4
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f40
push eax
call esi
test eax, eax
jne 0x45fee2
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f3c
push eax
call esi
test eax, eax
jne 0x45ff00
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f38
push eax
call esi
test eax, eax
jne 0x45ff1e
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f34
push eax
call esi
test eax, eax
jne 0x45ff3c
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f30
push eax
call esi
test eax, eax
jne 0x45ff5a
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f2c
push eax
call esi
test eax, eax
jne 0x45ff78
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f28
push eax
call esi
test eax, eax
jne 0x45ff96
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f24
push eax
call esi
test eax, eax
jne 0x45ffb4
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f20
push eax
call esi
test eax, eax
jne 0x45ffd2
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f1c
push eax
call esi
test eax, eax
jne 0x45fff0
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f18
push eax
call esi
test eax, eax
jne 0x46000e
mov eax, 0xf
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x4e9f14
push eax
call esi
pop edi
cmp eax, 1
sbb eax, eax
pop esi
and eax, 4
add esp, 0x214
add eax, 0xb
ret