Function at 0x45a880
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be468
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4ea688]
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 0x45aa84
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45aa84
lea edi, [ebp - 0x10]
mov eax, esi
mov dword [ebp - 0x10], 0
call fcn.0045a700
mov eax, dword [ebp - 0x10]
xor edi, edi
cmp eax, edi
je 0x45a8fa
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.0045a170
mov eax, dword [esi]
cmp eax, edi
je 0x45a91b
lea edx, [ebp + 0xc]
push edx
push 0x4d2234
call eax
cmp eax, edi
je 0x45a92d
mov esi, dword [esi + 4]
cmp esi, edi
je 0x45a92d
lea eax, [ebp + 0xc]
push eax
push 0x4d2234
call esi
or esi, 0xffffffff
cmp ebx, edi
je 0x45a936
mov dword [ebx], esi
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x45aa75
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 0x45aa72
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 0x45a9b6
mov eax, dword [ebp + 8]
shl eax, 0x10
sar eax, 0x1c
cmp eax, 2
je 0x45a981
cmp eax, 3
jne 0x45a9b6
cmp ebx, edi
je 0x45a98b
mov dword [ebx], 1
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x45a99d
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 0x45aa14
mov ecx, dword [ebp + 8]
and ecx, 0xf00
cmp ecx, 0x300
jne 0x45aa14
cmp ebx, edi
je 0x45a9e9
mov dword [ebx], 3
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x45a9fb
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 0x45aa72
mov ecx, dword [ebp + 8]
and ecx, 0xf0000
cmp ecx, 0x30000
jne 0x45aa72
cmp ebx, edi
je 0x45aa47
mov dword [ebx], 4
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x45a9fb
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 0x45aa84
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