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

Disassembly:
sub esp, 0x214
push esi
push edi
mov esi, dword [esp + 0x220]
mov eax, dword [esi]
push eax
call fcn.00470e60
add esp, 4
test eax, eax
jne 0x46a8d6
push 0x45e
call fcn.0046c420
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 [esi]
push ecx
call fcn.00470b30
add esp, 0xc
cmp byte [esp + 0xf], 0
jne 0x46a904
cmp byte [esp + 0xe], 0x5c
jne 0x46a904
xor eax, eax
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x46a91f
xor eax, eax
pop edi
pop esi
add esp, 0x214
ret
test al, 0x10
je 0x46a931
mov eax, 1
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 8]
mov ecx, dword [esi]
push eax
push ecx
call fcn.00470bf0
lea eax, [esp + 0x10]
add esp, 8
cmp byte [esp + 8], 0x2e
jne 0x46a950
lea eax, [esp + 9]
push 0x105
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004c6fe0
lea eax, [esp + 0x18]
add esp, 0xc
mov edi, dword [sym.imp.USER32.dll_CharUpperA]
push eax
call edi
lea ecx, [esp + 0x114]
push 0
push 0x5c0
push 0x105
push ecx
call fcn.004c8000
lea eax, [esp + 0x124]
add esp, 0x10
push eax
call edi
lea eax, [esp + 0x114]
lea ecx, [esp + 0xc]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push ecx
call esi
test eax, eax
jne 0x46a9bd
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.004c8000
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 0x46aa04
mov eax, 3
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506fc8
push eax
call esi
test eax, eax
jne 0x46aa22
mov eax, 4
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506fc4
push eax
call esi
test eax, eax
jne 0x46aa40
mov eax, 4
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506fc0
push eax
call esi
test eax, eax
jne 0x46aa5e
mov eax, 4
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506fbc
push eax
call esi
test eax, eax
jne 0x46aa7c
mov eax, 4
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506fb8
push eax
call esi
test eax, eax
jne 0x46aa9a
mov eax, 4
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506fb4
push eax
call esi
test eax, eax
jne 0x46aab8
mov eax, 5
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506fb0
push eax
call esi
test eax, eax
jne 0x46aad6
mov eax, 5
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506fac
push eax
call esi
test eax, eax
jne 0x46aaf4
mov eax, 5
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506fa8
push eax
call esi
test eax, eax
jne 0x46ab12
mov eax, 5
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506fa4
push eax
call esi
test eax, eax
jne 0x46ab30
mov eax, 5
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506fa0
push eax
call esi
test eax, eax
jne 0x46ab4e
mov eax, 5
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f9c
push eax
call esi
test eax, eax
jne 0x46ab6c
mov eax, 5
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f98
push eax
call esi
test eax, eax
jne 0x46ab8a
mov eax, 6
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f94
push eax
call esi
test eax, eax
jne 0x46aba8
mov eax, 6
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f90
push eax
call esi
test eax, eax
jne 0x46abc6
mov eax, 6
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f8c
push eax
call esi
test eax, eax
jne 0x46abe4
mov eax, 6
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f88
push eax
call esi
test eax, eax
jne 0x46ac02
mov eax, 6
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f84
push eax
call esi
test eax, eax
jne 0x46ac20
mov eax, 6
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f80
push eax
call esi
test eax, eax
jne 0x46ac3e
mov eax, 6
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f7c
push eax
call esi
test eax, eax
jne 0x46ac5c
mov eax, 6
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f78
push eax
call esi
test eax, eax
jne 0x46ac7a
mov eax, 6
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f74
push eax
call esi
test eax, eax
jne 0x46ac98
mov eax, 8
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f70
push eax
call esi
test eax, eax
jne 0x46acb6
mov eax, 8
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f6c
push eax
call esi
test eax, eax
jne 0x46acd4
mov eax, 8
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f68
push eax
call esi
test eax, eax
jne 0x46acf2
mov eax, 9
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f64
push eax
call esi
test eax, eax
jne 0x46ad10
mov eax, 9
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f60
push eax
call esi
test eax, eax
jne 0x46ad2e
mov eax, 0xa
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f5c
push eax
call esi
test eax, eax
jne 0x46ad4c
mov eax, 0xa
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f58
push eax
call esi
test eax, eax
jne 0x46ad6a
mov eax, 0xa
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f54
push eax
call esi
test eax, eax
jne 0x46ad88
mov eax, 0xa
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f50
push eax
call esi
test eax, eax
jne 0x46ada6
mov eax, 0xc
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f4c
push eax
call esi
test eax, eax
jne 0x46adc4
mov eax, 0xc
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f48
push eax
call esi
test eax, eax
jne 0x46ade2
mov eax, 0xc
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f44
push eax
call esi
test eax, eax
jne 0x46ae00
mov eax, 0xc
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f40
push eax
call esi
test eax, eax
jne 0x46ae1e
mov eax, 0xc
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f3c
push eax
call esi
test eax, eax
jne 0x46ae3c
mov eax, 0xc
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f38
push eax
call esi
test eax, eax
jne 0x46ae5a
mov eax, 0xd
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f34
push eax
call esi
test eax, eax
jne 0x46ae78
mov eax, 0xd
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f30
push eax
call esi
test eax, eax
jne 0x46ae96
mov eax, 0xd
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f2c
push eax
call esi
test eax, eax
jne 0x46aeb4
mov eax, 0xd
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f28
push eax
call esi
test eax, eax
jne 0x46aed2
mov eax, 0xd
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f24
push eax
call esi
test eax, eax
jne 0x46aef0
mov eax, 2
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f20
push eax
call esi
test eax, eax
jne 0x46af0e
mov eax, 2
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f1c
push eax
call esi
test eax, eax
jne 0x46af2c
mov eax, 2
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f18
push eax
call esi
test eax, eax
jne 0x46af4a
mov eax, 2
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f14
push eax
call esi
test eax, eax
jne 0x46af68
mov eax, 2
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f10
push eax
call esi
test eax, eax
jne 0x46af86
mov eax, 2
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f0c
push eax
call esi
test eax, eax
jne 0x46afa4
mov eax, 2
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f08
push eax
call esi
test eax, eax
jne 0x46afc2
mov eax, 2
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f04
push eax
call esi
test eax, eax
jne 0x46afe0
mov eax, 2
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506f00
push eax
call esi
test eax, eax
jne 0x46affe
mov eax, 2
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506efc
push eax
call esi
test eax, eax
jne 0x46b01c
mov eax, 2
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506ef8
push eax
call esi
test eax, eax
jne 0x46b03a
mov eax, 2
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506ef4
push eax
call esi
test eax, eax
jne 0x46b058
mov eax, 2
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506ef0
push eax
call esi
test eax, eax
jne 0x46b076
mov eax, 3
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506eec
push eax
call esi
test eax, eax
jne 0x46b094
mov eax, 3
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506ee8
push eax
call esi
test eax, eax
jne 0x46b0b2
mov eax, 3
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506ee4
push eax
call esi
test eax, eax
jne 0x46b0d0
mov eax, 3
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506ee0
push eax
call esi
test eax, eax
jne 0x46b0ee
mov eax, 3
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506edc
push eax
call esi
test eax, eax
jne 0x46b10c
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506ed8
push eax
call esi
test eax, eax
jne 0x46b12a
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506ed4
push eax
call esi
test eax, eax
jne 0x46b148
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506ed0
push eax
call esi
test eax, eax
jne 0x46b166
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506ecc
push eax
call esi
test eax, eax
jne 0x46b184
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506ec8
push eax
call esi
test eax, eax
jne 0x46b1a2
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506ec4
push eax
call esi
test eax, eax
jne 0x46b1c0
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506ec0
push eax
call esi
test eax, eax
jne 0x46b1de
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506ebc
push eax
call esi
test eax, eax
jne 0x46b1fc
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506eb8
push eax
call esi
test eax, eax
jne 0x46b21a
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506eb4
push eax
call esi
test eax, eax
jne 0x46b238
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506eb0
push eax
call esi
test eax, eax
jne 0x46b256
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506eac
push eax
call esi
test eax, eax
jne 0x46b274
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506ea8
push eax
call esi
test eax, eax
jne 0x46b292
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506ea4
push eax
call esi
test eax, eax
jne 0x46b2b0
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506ea0
push eax
call esi
test eax, eax
jne 0x46b2ce
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506e9c
push eax
call esi
test eax, eax
jne 0x46b2ec
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506e98
push eax
call esi
test eax, eax
jne 0x46b30a
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506e94
push eax
call esi
test eax, eax
jne 0x46b328
mov eax, 0xe
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506e90
push eax
call esi
test eax, eax
jne 0x46b346
mov eax, 0xf
pop edi
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
push 0x506e8c
push eax
call esi
pop edi
cmp eax, 1
sbb eax, eax
pop esi
and eax, 4
add esp, 0x214
add eax, 0xb
ret