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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d18e
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4989d4]
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 dword [ebp - 0x38], eax
mov dword [esi + 0xc], eax
mov ebx, 4
mov eax, edi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x4c], ecx
call fcn.004156b0
test eax, eax
je 0x410846
mov eax, dword [eax + 0x2c]
mov edx, dword [eax]
push esi
push 0x481208
push eax
mov eax, dword [edx]
call eax
test eax, eax
js 0x410a8a
push 0x34
call fcn.0045ba76
mov ebx, eax
add esp, 4
mov dword [ebp - 0x40], ebx
xor eax, eax
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x410821
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x38]
mov edx, edi
mov edi, ebx
call fcn.0040f9c0
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 edx, dword [esi + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
jmp 0x41097b
mov ecx, dword [0x481368]
mov eax, dword [0x481370]
mov edx, dword [0x48136c]
mov dword [ebp - 0x24], ecx
mov ecx, dword [0x481374]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov eax, ebx
mov ecx, edi
mov dword [ebp - 0x20], edx
call fcn.0041c1a0
cmp eax, 0x482990
je 0x41087f
cmp dword [eax + 8], 0
jg 0x410883
xor eax, eax
jmp 0x410891
push 0
push 4
mov eax, edi
call fcn.0041f410
add esp, 8
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0
test eax, eax
je 0x4108ec
lea ebx, [ebp - 0x24]
call fcn.00408fe0
test eax, eax
jns 0x4108ec
mov eax, dword [ebp - 0x44]
mov ecx, edi
call fcn.0041e1a0
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4108c8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4108d9
mov ebx, str.Invalid_ProgID_
mov ecx, 4
mov edx, edi
call fcn.0041e870
mov esi, dword [ebp - 0x3c]
mov edi, 4
call fcn.0041c3b0
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x3c]
push 0x34
call fcn.0045ba76
mov ebx, eax
add esp, 4
mov dword [ebp - 0x40], ebx
mov dword [ebp - 4], 1
test ebx, ebx
je 0x410917
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x38]
mov edx, edi
mov edi, ebx
call fcn.0040f9c0
jmp 0x410919
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 4], eax
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x48], 0
jne 0x410a8a
push 8
call fcn.0045ba76
add esp, 4
test eax, eax
je 0x410952
mov dword [eax], vtable.CWBStorage.0
mov dword [eax + 4], 0
jmp 0x410954
xor eax, eax
mov dword [esi + 0x18], eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 4]
push esi
push eax
push ecx
push 0
push 1
push 0x481208
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.ole32.dll_OleCreate]
xor ebx, ebx
cmp eax, ebx
jl 0x410a8a
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 0x410a18
mov ebx, dword [ebp - 0x38]
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
push edx
mov edx, dword [esi + 4]
push ebx
push 0xffffffffffffffff
push edx
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov edi, eax
test edi, edi
js 0x410a16
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
push edx
mov edx, dword [esi + 4]
push ebx
push 0
push edx
push 0
push 0xfffffffffffffffb
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov edx, dword [ebp - 0x4c]
mov eax, dword [esi]
mov ecx, dword [eax]
push edx
push 0x481348
push eax
mov eax, dword [ecx]
call eax
mov edi, eax
test edi, edi
js 0x410a16
xor eax, eax
jmp 0x410a8f
xor ebx, ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x410a2b
push eax
call fcn.0045b9cb
add esp, 4
mov dword [esi + 4], ebx
mov eax, dword [esi]
cmp eax, ebx
je 0x410a3d
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push eax
call edx
mov dword [esi], ebx
cmp edi, ebx
jge 0x410a83
mov dword [ebp - 0x20], vtable.tStringBuffer.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea ebx, [ebp - 0x20]
mov ecx, edi
mov dword [ebp - 4], 2
call fcn.00407f20
push eax
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0041eab0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add esp, 8
test eax, eax
je 0x410a83
push eax
call fcn.0045b9cb
add esp, 4
mov eax, 0xfffffffd
jmp 0x410a8f
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.0045a0d3
mov esp, ebp
pop ebp
ret 0xc