Function at 0x457660
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522f5e
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x450], ecx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4576a6
xor eax, eax
jmp 0x4579b4
mov dword [ebp - 0x430], 0x80004005
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x224]
call fcn.00458de0
mov dword [ebp - 4], 0
xor ecx, ecx
mov word [ebp - 0x21c], cx
push 0x206
push 0
lea edx, [ebp - 0x21a]
push edx
call fcn.004ba280
add esp, 0xc
mov dword [ebp - 0x434], 0
xor eax, eax
mov word [ebp - 0x42c], ax
push 0x206
push 0
lea ecx, [ebp - 0x42a]
push ecx
call fcn.004ba280
add esp, 0xc
lea edx, [ebp - 0x434]
push edx
lea eax, [ebp - 0x21c]
push eax
push 0x104
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x457769
mov edx, dword [ebp - 0x430]
mov dword [ebp - 0x43c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.004587b0
mov eax, dword [ebp - 0x43c]
jmp 0x4579b4
lea ecx, [ebp - 0x224]
call fcn.00458b70
push eax
push 0x5354b0
push 1
push 0
push 0x535500
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jl 0x457990
lea ecx, [ebp - 0x224]
call fcn.0045cf10
push eax
lea ecx, [ebp - 0x438]
call fcn.00458b30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.0045cf10
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x454]
push ecx
mov edx, dword [ebp - 0x454]
mov eax, dword [edx]
mov ecx, dword [eax + 0x50]
call ecx
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jge 0x45782a
mov edx, dword [ebp - 0x430]
mov dword [ebp - 0x440], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.00458790
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.004587b0
mov eax, dword [ebp - 0x440]
jmp 0x4579b4
cmp dword [ebp + 0xc], 0
je 0x45783b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x458], eax
jmp 0x457845
mov dword [ebp - 0x458], 0x52f2d8
lea ecx, [ebp - 0x224]
call fcn.0045cf10
mov dword [ebp - 0x45c], eax
mov ecx, dword [ebp - 0x458]
push ecx
mov edx, dword [ebp - 0x45c]
push edx
mov eax, dword [ebp - 0x45c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
call edx
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jge 0x4578b8
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x444], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.00458790
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.004587b0
mov eax, dword [ebp - 0x444]
jmp 0x4579b4
cmp dword [ebp + 0x14], 0
je 0x457930
lea ecx, [ebp - 0x224]
call fcn.0045cf10
mov dword [ebp - 0x460], eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x460]
push edx
mov eax, dword [ebp - 0x460]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
call edx
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jge 0x457930
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x448], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.00458790
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.004587b0
mov eax, dword [ebp - 0x448]
jmp 0x4579b4
push 0x104
mov ecx, dword [ebp + 0x10]
push ecx
push 0x104
lea edx, [ebp - 0x42c]
push edx
call fcn.004c18b4
add esp, 0x10
lea ecx, [ebp - 0x438]
call fcn.0045cf10
mov dword [ebp - 0x464], eax
push 1
lea eax, [ebp - 0x42c]
push eax
mov ecx, dword [ebp - 0x464]
push ecx
mov edx, dword [ebp - 0x464]
mov eax, dword [edx]
mov ecx, dword [eax + 0x18]
call ecx
mov dword [ebp - 0x430], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.00458790
mov edx, dword [ebp - 0x430]
mov dword [ebp - 0x44c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.004587b0
mov eax, dword [ebp - 0x44c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret 0x10