Function at 0x40c330
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422a8e
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x42d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x74], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c37b
mov eax, 0x80004005
jmp 0x40c62f
mov ecx, esi
call fcn.0040c650
test eax, eax
js 0x40c371
push edi
lea ecx, [ebp - 0x58]
mov ebx, 0x80004005
call fcn.00401ff0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x58]
call fcn.00408da0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x58]
call fcn.00408470
mov dword [ebp - 0x70], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x88]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0040cfa0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
mov edx, dword [esi + 0xc]
movups xmm0, xmmword [eax]
push ecx
sub esp, 0x10
mov esi, dword [edx]
mov ecx, esp
push edx
movups xmmword [ecx], xmm0
call dword [esi + 0x24]
mov esi, eax
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
jns 0x40c40d
jmp 0x40c5be
mov dword [ebp - 0x6c], 0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x14], 8
mov edi, dword [ebp - 0x70]
jb 0x40c453
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x40c456
xor esi, esi
mov dword [ebp - 0x60], esi
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 6
mov eax, dword [edi]
push ecx
push esi
push edi
call dword [eax + 0x30]
push esi
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jns 0x40c470
mov ebx, 0x80004005
jmp 0x40c5ad
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x60], esi
test esi, esi
jne 0x40c42d
push 0x8007000e
call fcn.00405f60
mov dword [ebp - 0x64], 0
mov byte [ebp - 4], 7
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x6c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x58]
test eax, eax
js 0x40c597
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x68]
mov dword [ebp - 0x68], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x40c597
xor esi, esi
cmp dword [ebp - 0x68], esi
jle 0x40c59c
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, 3
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x88], ax
mov dword [ebp - 0x80], esi
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp - 0x64]
movups xmm0, xmmword [ebp - 0x88]
push ecx
sub esp, 0x10
mov edx, dword [eax]
mov ecx, esp
push eax
movups xmmword [ecx], xmm0
call dword [edx + 0x28]
test eax, eax
lea eax, [ebp - 0x88]
push eax
sets bl
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test bl, bl
jne 0x40c586
mov dword [ebp - 0x60], 0
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x5c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
js 0x40c581
push dword [ebp - 0x74]
push dword [ebp - 0x60]
call fcn.00414dc6
add esp, 8
test eax, eax
je 0x40c55e
push dword [ebp - 0x60]
call edi
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x40c54d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc esi
mov eax, 3
cmp esi, dword [ebp - 0x68]
jl 0x40c4c2
jmp 0x40c597
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
push dword [ebp - 0x60]
mov ebx, eax
call edi
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x40c59c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40c59c
push dword [ebp - 0x60]
call edi
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x40c597
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, 0x80004005
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x40c5ad
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x40c5be
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x40c5cf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40c5e1
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00402450
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x40c607
inc eax
push eax
push dword [ebp - 0x40]
call fcn.00402450
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x40c62d
inc ecx
push ecx
push dword [ebp - 0x58]
call fcn.00402450
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d320
mov esp, ebp
pop ebp
ret 8