Function at 0x496ba6
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9bcd
mov eax, dword fs:[0]
push eax
mov eax, 0x125c
call fcn.004569c0
mov eax, dword [0x4e106c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x1254], 0
push 0x53
pop eax
mov word [ebp - 0x428], ax
push 0x4f
pop eax
mov word [ebp - 0x426], ax
push 0x46
pop eax
mov word [ebp - 0x424], ax
push 0x54
pop eax
mov word [ebp - 0x422], ax
push 0x57
pop eax
mov word [ebp - 0x420], ax
push 0x41
pop eax
mov word [ebp - 0x41e], ax
push 0x52
pop eax
mov word [ebp - 0x41c], ax
push 0x45
pop eax
mov word [ebp - 0x41a], ax
push 0x5c
pop eax
mov word [ebp - 0x418], ax
push 0x54
pop eax
mov word [ebp - 0x416], ax
push 0x65
pop eax
mov word [ebp - 0x414], ax
push 0x6e
pop eax
mov word [ebp - 0x412], ax
push 0x63
pop eax
mov word [ebp - 0x410], ax
push 0x65
pop eax
mov word [ebp - 0x40e], ax
push 0x6e
pop eax
mov word [ebp - 0x40c], ax
push 0x74
pop eax
mov word [ebp - 0x40a], ax
push 0x5c
pop eax
mov word [ebp - 0x408], ax
push 0x51
pop eax
mov word [ebp - 0x406], ax
push 0x51
pop eax
mov word [ebp - 0x404], ax
push 0x50
pop eax
mov word [ebp - 0x402], ax
push 0x43
pop eax
mov word [ebp - 0x400], ax
push 0x4d
pop eax
mov word [ebp - 0x3fe], ax
push 0x67
pop eax
mov word [ebp - 0x3fc], ax
push 0x72
pop eax
mov word [ebp - 0x3fa], ax
xor eax, eax
mov word [ebp - 0x3f8], ax
push 0x1d8
push 0
lea eax, [ebp - 0x3f6]
push eax
call fcn.00458260
add esp, 0xc
push 0x5c
pop eax
mov word [ebp - 0x840], ax
push 0x51
pop eax
mov word [ebp - 0x83e], ax
push 0x51
pop eax
mov word [ebp - 0x83c], ax
push 0x50
pop eax
mov word [ebp - 0x83a], ax
push 0x43
pop eax
mov word [ebp - 0x838], ax
push 0x52
pop eax
mov word [ebp - 0x836], ax
push 0x74
pop eax
mov word [ebp - 0x834], ax
push 0x70
pop eax
mov word [ebp - 0x832], ax
push 0x2e
pop eax
mov word [ebp - 0x830], ax
push 0x65
pop eax
mov word [ebp - 0x82e], ax
push 0x78
pop eax
mov word [ebp - 0x82c], ax
push 0x65
pop eax
mov word [ebp - 0x82a], ax
xor eax, eax
mov word [ebp - 0x828], ax
push 0x1f0
push 0
lea eax, [ebp - 0x826]
push eax
call fcn.00458260
add esp, 0xc
push 0x5c
pop eax
mov word [ebp - 0x634], ax
push 0x51
pop eax
mov word [ebp - 0x632], ax
push 0x51
pop eax
mov word [ebp - 0x630], ax
push 0x50
pop eax
mov word [ebp - 0x62e], ax
push 0x43
pop eax
mov word [ebp - 0x62c], ax
push 0x54
pop eax
mov word [ebp - 0x62a], ax
push 0x72
pop eax
mov word [ebp - 0x628], ax
push 0x61
pop eax
mov word [ebp - 0x626], ax
push 0x79
pop eax
mov word [ebp - 0x624], ax
push 0x2e
pop eax
mov word [ebp - 0x622], ax
push 0x65
pop eax
mov word [ebp - 0x620], ax
push 0x78
pop eax
mov word [ebp - 0x61e], ax
push 0x65
pop eax
mov word [ebp - 0x61c], ax
xor eax, eax
mov word [ebp - 0x61a], ax
push 0x1ee
push 0
lea eax, [ebp - 0x618]
push eax
call fcn.00458260
add esp, 0xc
push 0x5c
pop eax
mov word [ebp - 0x21c], ax
push 0x51
pop eax
mov word [ebp - 0x21a], ax
push 0x4d
pop eax
mov word [ebp - 0x218], ax
push 0x55
pop eax
mov word [ebp - 0x216], ax
push 0x70
pop eax
mov word [ebp - 0x214], ax
push 0x64
pop eax
mov word [ebp - 0x212], ax
push 0x61
pop eax
mov word [ebp - 0x210], ax
push 0x74
pop eax
mov word [ebp - 0x20e], ax
push 0x65
pop eax
mov word [ebp - 0x20c], ax
push 0x5c
pop eax
mov word [ebp - 0x20a], ax
push 0x51
pop eax
mov word [ebp - 0x208], ax
push 0x51
pop eax
mov word [ebp - 0x206], ax
push 0x50
pop eax
mov word [ebp - 0x204], ax
push 0x43
pop eax
mov word [ebp - 0x202], ax
push 0x4d
pop eax
mov word [ebp - 0x200], ax
push 0x67
pop eax
mov word [ebp - 0x1fe], ax
push 0x72
pop eax
mov word [ebp - 0x1fc], ax
push 0x55
pop eax
mov word [ebp - 0x1fa], ax
push 0x70
pop eax
mov word [ebp - 0x1f8], ax
push 0x64
pop eax
mov word [ebp - 0x1f6], ax
push 0x61
pop eax
mov word [ebp - 0x1f4], ax
push 0x74
pop eax
mov word [ebp - 0x1f2], ax
push 0x65
pop eax
mov word [ebp - 0x1f0], ax
push 0x2e
pop eax
mov word [ebp - 0x1ee], ax
push 0x65
pop eax
mov word [ebp - 0x1ec], ax
push 0x78
pop eax
mov word [ebp - 0x1ea], ax
push 0x65
pop eax
mov word [ebp - 0x1e8], ax
xor eax, eax
mov word [ebp - 0x1e6], ax
push 0x1d2
push 0
lea eax, [ebp - 0x1e4]
push eax
call fcn.00458260
add esp, 0xc
push 0x5c
pop eax
mov word [ebp - 0xa4c], ax
push 0x55
pop eax
mov word [ebp - 0xa4a], ax
push 0x6e
pop eax
mov word [ebp - 0xa48], ax
push 0x69
pop eax
mov word [ebp - 0xa46], ax
push 0x6e
pop eax
mov word [ebp - 0xa44], ax
push 0x73
pop eax
mov word [ebp - 0xa42], ax
push 0x74
pop eax
mov word [ebp - 0xa40], ax
push 0x2e
pop eax
mov word [ebp - 0xa3e], ax
push 0x65
pop eax
mov word [ebp - 0xa3c], ax
push 0x78
pop eax
mov word [ebp - 0xa3a], ax
push 0x65
pop eax
mov word [ebp - 0xa38], ax
xor eax, eax
mov word [ebp - 0xa36], ax
push 0x1f2
push 0
lea eax, [ebp - 0xa34]
push eax
call fcn.00458260
add esp, 0xc
xor eax, eax
mov word [ebp - 0x1250], ax
push 0x802
push 0
lea eax, [ebp - 0x124e]
push eax
call fcn.00458260
add esp, 0xc
lea eax, [ebp - 0x1250]
push eax
push 0x4c526c
lea eax, [ebp - 0x428]
push eax
call fcn.004973ef
add esp, 0xc
mov dword [ebp - 0x1268], eax
cmp dword [ebp - 0x1268], 0
je 0x49722a
lea eax, [ebp - 0x1250]
push eax
call fcn.0045b661
pop ecx
test eax, eax
jbe 0x49722a
mov eax, dword [ebp - 0x1254]
or eax, 1
mov dword [ebp - 0x1254], eax
lea eax, [ebp - 0x1250]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49722a
mov eax, dword [ebp - 0x1254]
or eax, 2
mov dword [ebp - 0x1254], eax
lea eax, [ebp - 0x1250]
push eax
lea ecx, [ebp - 0x1264]
call fcn.0040700c
and dword [ebp - 4], 0
lea eax, [ebp - 0x840]
push eax
lea ecx, [ebp - 0x1264]
call fcn.00406fbb
lea ecx, [ebp - 0x1264]
call fcn.004026c4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4970c1
mov eax, dword [ebp - 0x1254]
or eax, 0x100
mov dword [ebp - 0x1254], eax
lea eax, [ebp - 0x1250]
push eax
lea ecx, [ebp - 0x1260]
call fcn.0040700c
mov byte [ebp - 4], 1
lea eax, [ebp - 0x634]
push eax
lea ecx, [ebp - 0x1260]
call fcn.00406fbb
lea ecx, [ebp - 0x1260]
call fcn.004026c4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x497110
mov eax, dword [ebp - 0x1254]
or eax, 0x200
mov dword [ebp - 0x1254], eax
lea eax, [ebp - 0x1250]
push eax
lea ecx, [ebp - 0x125c]
call fcn.0040700c
mov byte [ebp - 4], 2
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x125c]
call fcn.00406fbb
lea ecx, [ebp - 0x125c]
call fcn.004026c4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49715f
mov eax, dword [ebp - 0x1254]
or eax, 0x400
mov dword [ebp - 0x1254], eax
lea eax, [ebp - 0x1250]
push eax
lea ecx, [ebp - 0x1258]
call fcn.0040700c
mov byte [ebp - 4], 3
lea eax, [ebp - 0xa4c]
push eax
lea ecx, [ebp - 0x1258]
call fcn.00406fbb
lea ecx, [ebp - 0x1258]
call fcn.004026c4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4971ae
mov eax, dword [ebp - 0x1254]
or eax, 0x800
mov dword [ebp - 0x1254], eax
push str.9e837779447dca52c794c7bfe409d287
call fcn.00497249
pop ecx
test eax, eax
je 0x4971ce
mov eax, dword [ebp - 0x1254]
or eax, 0x10000
mov dword [ebp - 0x1254], eax
push str.afa7e40c8810995c805cc00ed8cd1eea
call fcn.00497249
pop ecx
test eax, eax
je 0x4971ee
mov eax, dword [ebp - 0x1254]
or eax, 0x20000
mov dword [ebp - 0x1254], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1258]
call fcn.00405d4a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x125c]
call fcn.00405d4a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1260]
call fcn.00405d4a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1264]
call fcn.00405d4a
mov eax, dword [ebp - 0x1254]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455912
mov esp, ebp
pop ebp
ret