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

Disassembly:
push ebp
lea ebp, [esp - 0x1c0]
sub esp, 0x240
mov eax, dword [0x419010]
xor eax, ebp
mov dword [ebp + 0x1bc], eax
mov eax, dword [ebp + 0x1c8]
push ebx
push esi
mov dword [ebp - 0x74], ecx
xor ebx, ebx
lea ecx, [ebp - 0x68]
push ecx
push ebx
mov esi, edx
push eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x4d], bl
mov dword [ebp - 0x68], ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayAllocDescriptor]
cmp eax, ebx
mov dword [ebp - 0x58], eax
jl 0x40efae
mov eax, dword [ebp - 0x68]
cmp eax, ebx
je 0x40efbb
mov ecx, dword [eax]
lea edx, [ebp - 0x5c]
push edx
push 0x406074
push eax
call dword [ecx]
cmp eax, ebx
mov dword [ebp - 0x58], eax
jl 0x40efae
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x40efae
lea edx, [ebp - 0x54]
push edx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x54], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
cmp eax, ebx
mov dword [ebp - 0x58], eax
jl 0x40ee3b
mov eax, dword [ebp - 0x54]
cmp eax, ebx
je 0x40ee3b
mov ecx, dword [eax]
push eax
call dword [ecx + 0x9c]
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
lea edx, [ebp - 0x6c]
push edx
push eax
call dword [ecx + 0x6c]
cmp dword [ebp - 0x6c], ebx
je 0x40ee3b
push dword [ebp - 0x6c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp esi, ebx
je 0x40ef9e
push edi
jmp 0x40ee49
mov esi, dword [ebp - 0x70]
push 0x104
push dword [esi]
lea eax, [ebp - 0x4c]
push eax
call sub.MSVCR80.dll__wfullpath
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x78]
call fcn.004092df
push 0x405d60
lea esi, [ebp - 0x7c]
call fcn.00408fe7
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x60], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40eeca
test al, 0x10
jne 0x40ef6a
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
lea edx, [ebp - 0x60]
push edx
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push eax
call dword [ecx + 0x64]
mov edi, eax
cmp edi, ebx
jl 0x40eeca
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x9c]
mov byte [ebp - 0x4d], 1
jmp 0x40ef6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, ebx
jge 0x40eed7
movzx eax, di
push ebx
push ebx
lea ecx, [ebp - 0x64]
push ecx
push 0x400
push eax
push ebx
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
add eax, 0x111
push eax
lea esi, [ebp - 0x80]
call fcn.0040f8d7
cmp dword [ebp - 0x64], ebx
mov ebx, dword [ebp - 0x80]
push ebx
je 0x40ef3a
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push dword [ebp - 0x64]
lea ecx, [ebp - 0x4c]
push ecx
push 0x405f18
push eax
push ebx
call fcn.0040da14
mov ecx, dword [ebp - 0x74]
add esp, 0x14
push 0xbb8
call fcn.0040e713
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40ef61
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push edi
lea ecx, [ebp - 0x4c]
push ecx
push 0x405f2c
push eax
push ebx
call fcn.0040da14
mov ecx, dword [ebp - 0x74]
add esp, 0x14
push 0xbb8
call fcn.0040e713
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor ebx, ebx
mov eax, dword [ebp - 0x70]
mov esi, dword [eax + 0x18]
mov eax, dword [ebp - 0x60]
cmp eax, ebx
mov dword [ebp - 0x70], esi
je 0x40ef80
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x7c]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push dword [ebp - 0x78]
call edi
cmp esi, ebx
jne 0x40ee46
cmp byte [ebp - 0x4d], bl
pop edi
je 0x40efa1
mov dword [ebp - 0x58], ebx
mov eax, dword [ebp - 0x54]
cmp eax, ebx
je 0x40efae
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x68]
cmp eax, ebx
je 0x40efbb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x5c]
pop esi
cmp eax, ebx
pop ebx
je 0x40efca
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp + 0x1bc]
mov eax, dword [ebp - 0x58]
xor ecx, ebp
call fcn.00413c2a
add ebp, 0x1c0
leave
ret 4