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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x492c5e
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4af9fc]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x4af9fc]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, edx
mov ebx, 4
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], ecx
mov dword [esi + 0xc], edi
call fcn.00418450
test eax, eax
je 0x41266e
mov eax, dword [eax + 0x34]
mov edx, dword [eax]
push esi
push 0x497354
push eax
mov eax, dword [edx]
call eax
test eax, eax
js 0x412872
push 0x38
call fcn.0046f0f3
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
xor eax, eax
mov dword [esp + 0x58], eax
cmp ebx, eax
je 0x4125aa
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, edi
mov edi, ebx
call fcn.00411870
mov edi, dword [esp + 0x18]
mov dword [esp + 0x58], 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
test eax, eax
js 0x412872
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, [esp + 0x38]
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 0x4127ec
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [eax]
lea ebx, [esp + 0x38]
push ebx
push edi
push 0
push ecx
push 0
push 0xfffffffffffffffb
push eax
mov eax, dword [edx + 0x2c]
call eax
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [eax]
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 0x4127ec
mov edx, dword [esp + 0x24]
mov eax, dword [esi]
mov ecx, dword [eax]
push edx
push 0x4974b4
push eax
mov eax, dword [ecx]
call eax
mov ebx, eax
test ebx, ebx
js 0x4127ec
xor eax, eax
jmp 0x412872
mov ecx, dword [0x4974d4]
mov eax, dword [0x4974dc]
mov edx, dword [0x4974d8]
mov dword [esp + 0x28], ecx
mov ecx, dword [0x4974e0]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x14]
mov eax, ebx
mov dword [esp + 0x2c], edx
call fcn.0041f3a0
cmp eax, 0x4980b0
je 0x4126ad
cmp dword [eax + 8], 0
jg 0x4126b1
xor ebx, ebx
jmp 0x4126e5
mov eax, dword [esp + 0x14]
push 4
xor ebx, ebx
call fcn.0041fb60
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4126e5
mov edx, dword [0x49802c]
mov esi, dword [esp + 0x14]
push edx
lea edi, [eax + 4]
call fcn.00422740
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x1c], 0
test ebx, ebx
je 0x412748
mov ecx, ebx
lea edx, [esp + 0x28]
call fcn.00409f70
test eax, eax
jns 0x412748
mov ecx, dword [esp + 0x14]
mov eax, ebx
call fcn.00421ca0
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41271f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x412732
mov edx, dword [esp + 0x14]
mov ebx, str.Invalid_ProgID_
mov ecx, 4
call fcn.00422670
mov esi, dword [esp + 0x14]
mov edi, 4
call fcn.0041f5b0
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
push 0x38
call fcn.0046f0f3
mov ebx, eax
add esp, 4
mov dword [esp + 0x20], ebx
mov dword [esp + 0x58], 1
test ebx, ebx
je 0x41277a
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, edi
mov edi, ebx
call fcn.00411870
mov edi, dword [esp + 0x18]
jmp 0x41277c
xor eax, eax
mov dword [esp + 0x58], 0xffffffff
mov dword [esi + 4], eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
cmp dword [esp + 0x1c], 0
jne 0x4127e2
push 8
call fcn.0046f0f3
add esp, 4
test eax, eax
je 0x4127b3
mov dword [eax], vtable.CWBStorage.0
mov dword [eax + 4], 0
jmp 0x4127b5
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 0x497354
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.ole32.dll_OleCreate]
jmp 0x4125cb
mov eax, 0x80004001
jmp 0x412872
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x412803
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 0x412819
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 0x41286d
mov dword [esp + 0x28], vtable.tStringBuffer.0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
push eax
mov ecx, ebx
mov dword [esp + 0x5c], 2
call fcn.00408cf0
mov ecx, dword [esp + 0x18]
add esp, 4
push eax
push ecx
call fcn.00422850
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x38]
add esp, 8
test eax, eax
je 0x41286d
push eax
call fcn.0046f048
add esp, 4
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0046d4f1
mov esp, ebp
pop ebp
ret 0xc