Function at 0x466920
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1cf1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4e24e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov esi, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x466b24
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x466b24
lea edi, [ebp - 0x10]
mov eax, esi
mov dword [ebp - 0x10], 0
call fcn.00466160
mov eax, dword [ebp - 0x10]
xor edi, edi
cmp eax, edi
je 0x46699a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp + 0xc], edi
push esi
mov dword [ebp - 4], edi
call fcn.00465b60
mov eax, dword [esi]
cmp eax, edi
je 0x4669bb
lea edx, [ebp + 0xc]
push edx
push 0x4cecf0
call eax
cmp eax, edi
je 0x4669cd
mov esi, dword [esi + 4]
cmp esi, edi
je 0x4669cd
lea eax, [ebp + 0xc]
push eax
push 0x4cecf0
call esi
or esi, 0xffffffff
cmp ebx, edi
je 0x4669d6
mov dword [ebx], esi
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x466b15
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
push edi
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x466b12
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edx
mov dword [ebp + 8], edi
mov ecx, dword [eax]
push 4
push eax
mov eax, dword [ecx + 0x54]
call eax
test eax, eax
je 0x466a56
mov eax, dword [ebp + 8]
shl eax, 0x10
sar eax, 0x1c
cmp eax, 2
je 0x466a21
cmp eax, 3
jne 0x466a56
cmp ebx, edi
je 0x466a2b
mov dword [ebx], 1
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x466a3d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edx
mov dword [ebp + 8], edi
mov ecx, dword [eax]
push 3
push eax
mov eax, dword [ecx + 0x54]
call eax
test eax, eax
je 0x466ab4
mov ecx, dword [ebp + 8]
and ecx, 0xf00
cmp ecx, 0x300
jne 0x466ab4
cmp ebx, edi
je 0x466a89
mov dword [ebx], 3
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x466a9b
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edx
mov dword [ebp + 8], edi
mov ecx, dword [eax]
push 5
push eax
mov eax, dword [ecx + 0x54]
call eax
test eax, eax
je 0x466b12
mov ecx, dword [ebp + 8]
and ecx, 0xf0000
cmp ecx, 0x30000
jne 0x466b12
cmp ebx, edi
je 0x466ae7
mov dword [ebx], 4
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x466a9b
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], esi
cmp eax, edi
je 0x466b24
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8