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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485b6e
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4a19f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, edx
mov ebx, 4
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x48], ecx
mov dword [esi + 0xc], edi
call fcn.00415920
test eax, eax
je 0x410a57
mov eax, dword [eax + 0x2c]
mov edx, dword [eax]
push esi
push 0x4892b8
push eax
mov eax, dword [edx]
call eax
test eax, eax
js 0x410cc9
push 0x38
call fcn.00462d88
mov ebx, eax
add esp, 4
mov dword [ebp - 0x40], ebx
xor eax, eax
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x410a32
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x38]
mov eax, edi
mov edi, ebx
call fcn.0040fc60
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 4], eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
jmp 0x410bb2
mov ecx, dword [0x489418]
mov eax, dword [0x489420]
mov edx, dword [0x48941c]
mov dword [ebp - 0x24], ecx
mov ecx, dword [0x489424]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x38]
mov eax, ebx
mov dword [ebp - 0x20], edx
call fcn.0041c6f0
cmp eax, 0x48a938
je 0x410a91
cmp dword [eax + 8], 0
jg 0x410a95
xor ebx, ebx
jmp 0x410ac5
mov eax, dword [ebp - 0x38]
push 4
xor ebx, ebx
call fcn.0041cfb0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x410ac5
mov edx, dword [0x48aa58]
mov esi, dword [ebp - 0x38]
push edx
lea edi, [eax + 4]
call fcn.0041f8a0
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x3c]
add esp, 4
mov dword [ebp - 0x40], 0
test ebx, ebx
je 0x410b20
mov ecx, ebx
lea edx, [ebp - 0x24]
call fcn.00408b50
test eax, eax
jns 0x410b20
mov ecx, dword [ebp - 0x38]
mov eax, ebx
call fcn.0041f090
mov dword [ebp - 0x40], eax
test eax, eax
je 0x410afb
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x410b0d
mov edx, dword [ebp - 0x38]
mov ebx, str.Invalid_ProgID_
mov ecx, 4
call fcn.0041f7d0
mov esi, dword [ebp - 0x38]
mov edi, 4
call fcn.0041c900
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x3c]
push 0x38
call fcn.00462d88
mov ebx, eax
add esp, 4
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], 1
test ebx, ebx
je 0x410b4e
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x38]
mov eax, edi
mov edi, ebx
call fcn.0040fc60
mov edi, dword [ebp - 0x3c]
jmp 0x410b50
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 4], eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
cmp dword [ebp - 0x40], 0
jne 0x410cc9
push 8
call fcn.00462d88
add esp, 4
test eax, eax
je 0x410b89
mov dword [eax], vtable.CWBStorage.0
mov dword [eax + 4], 0
jmp 0x410b8b
xor eax, eax
mov dword [esi + 0x18], eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 4]
push esi
push ecx
push eax
push 0
push 1
push 0x4892b8
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.ole32.dll_OleCreate]
test eax, eax
js 0x410cc9
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push 0
push str.Aardio_Ole
push eax
call edx
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi]
push 1
push ecx
call dword [sym.imp.ole32.dll_OleSetContainedObject]
mov ebx, eax
test ebx, ebx
js 0x410c49
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [eax]
lea ebx, [ebp - 0x34]
push ebx
push edi
push 0xffffffffffffffff
push ecx
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [edx + 0x2c]
call eax
mov ebx, eax
test ebx, ebx
js 0x410c49
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [eax]
lea ebx, [ebp - 0x34]
push ebx
push edi
push 0
push ecx
push 0
push 0xfffffffffffffffb
push eax
mov eax, dword [edx + 0x2c]
call eax
mov edx, dword [ebp - 0x48]
mov eax, dword [esi]
mov ecx, dword [eax]
push edx
push 0x4893f8
push eax
mov eax, dword [ecx]
call eax
mov ebx, eax
test ebx, ebx
js 0x410c49
xor eax, eax
jmp 0x410cce
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x410c60
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
push 1
call eax
mov dword [esi + 4], 0
mov eax, dword [esi]
test eax, eax
je 0x410c76
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push eax
call edx
mov dword [esi], 0
xor eax, eax
cmp ebx, eax
jge 0x410cc2
mov dword [ebp - 0x20], vtable.tStringBuffer.0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.004078d0
mov ecx, dword [ebp - 0x38]
add esp, 4
push eax
push ecx
call fcn.0041f9b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add esp, 8
test eax, eax
je 0x410cc2
push eax
call fcn.00462cdd
add esp, 4
mov eax, 0xfffffffd
jmp 0x410cce
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00461231
mov esp, ebp
pop ebp
ret 0xc