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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476d13
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4914c4]
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 + 0xc]
mov edi, dword [ebp + 8]
mov esi, edx
mov edx, dword [0x47a348]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x4c], ecx
mov ecx, dword [0x47a350]
mov dword [esi + 0xc], eax
mov eax, dword [0x47a34c]
xor ebx, ebx
mov dword [ebp - 0x24], edx
mov edx, dword [0x47a354]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
lea eax, [ebx + 4]
mov ecx, edi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x54], 0x47c014
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x18], edx
call fcn.00419540
cmp eax, 0x47b7e8
je 0x40e487
cmp dword [eax + 8], ebx
jg 0x40e48b
xor eax, eax
jmp 0x40e498
push ebx
push 4
mov eax, edi
call fcn.0041c840
add esp, 8
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], ebx
cmp eax, ebx
je 0x40e4ef
lea ebx, [ebp - 0x24]
call fcn.004072c0
test eax, eax
jns 0x40e4ef
mov eax, dword [ebp - 0x3c]
mov ecx, edi
call fcn.0041b630
mov dword [ebp - 0x44], eax
test eax, eax
je 0x40e4cb
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40e4dc
mov ebx, str.Invalid_ProgID_
mov ecx, 4
mov edx, edi
call fcn.0041bca0
mov esi, dword [ebp - 0x40]
mov edi, 4
call fcn.00419750
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x40]
push 0x34
call fcn.0045427d
mov ebx, eax
add esp, 4
mov dword [ebp - 0x48], ebx
xor eax, eax
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x40e516
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x38]
mov edx, edi
mov edi, ebx
call fcn.0040d9b0
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 [ebp - 0x44]
xor ebx, ebx
cmp eax, ebx
jne 0x40e550
mov ecx, dword [esi + 4]
push esi
lea eax, [ebp - 0x54]
push eax
push ecx
push ebx
push 1
push 0x47a2c8
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.ole32.dll_OleCreate]
mov edi, eax
jmp 0x40e5a6
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e553
sub eax, edx
lea edi, [eax + 1]
lea eax, [edi + edi]
push eax
call fcn.00454a4f
mov ecx, dword [ebp - 0x44]
add esp, 4
push edi
mov ebx, eax
push ecx
push ebx
call fcn.0045456a
mov eax, dword [esi + 4]
add esp, 0xc
push esi
lea edx, [ebp - 0x54]
push edx
push eax
push 0
push 1
push 0x47a2c8
push ebx
push 0x47a1e8
call dword [sym.imp.ole32.dll_OleCreateFromFile]
push ebx
mov edi, eax
call fcn.00454a15
add esp, 4
xor ebx, ebx
cmp edi, ebx
jl 0x40e697
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 ebx
push str.AAuto_Ole
push eax
call edx
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi]
push 1
push edx
call dword [sym.imp.ole32.dll_OleSetContainedObject]
mov edi, eax
cmp edi, ebx
jl 0x40e625
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
push edx
mov edx, dword [ebp - 0x38]
push edx
mov edx, dword [esi + 4]
push 0xffffffffffffffff
push edx
push ebx
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov edi, eax
cmp edi, ebx
jl 0x40e625
mov edx, dword [ebp - 0x4c]
mov eax, dword [esi]
mov ecx, dword [eax]
push edx
push 0x47a298
push eax
mov eax, dword [ecx]
call eax
mov edi, eax
cmp edi, ebx
jl 0x40e625
xor eax, eax
jmp 0x40e69c
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40e638
push eax
call fcn.004541d2
add esp, 4
mov dword [esi + 4], ebx
mov eax, dword [esi]
cmp eax, ebx
je 0x40e64a
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push eax
call edx
mov dword [esi], ebx
cmp edi, ebx
jge 0x40e690
mov dword [ebp - 0x60], vtable.tStringBuffer.0
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
lea ebx, [ebp - 0x60]
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.00406220
push eax
mov eax, dword [ebp - 0x40]
push eax
call fcn.0041bee0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x58]
add esp, 8
test eax, eax
je 0x40e690
push eax
call fcn.004541d2
add esp, 4
mov eax, 0xfffffffd
jmp 0x40e69c
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.00454023
mov esp, ebp
pop ebp
ret 0xc