Function at 0x409d90
Capabilities:
Check if file exists
Get file attributes
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x417eb2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov eax, dword [0x427b3c]
push ebx
push esi
push edi
mov esi, ecx
push 0x10
mov dword [esp + 0x228], eax
mov dword [esp + 0x18], esi
call sub.MFC71U.DLL_CWordArray::CWordArray
mov edi, eax
add esp, 4
mov dword [esp + 0xc], edi
test edi, edi
mov dword [esp + 0x234], 0
je 0x409e09
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.SOFTWAREMicrosoftMSSQLserv80Setup
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_3]
push 0x80000002
mov ecx, edi
call fcn.0040ee90
mov edi, eax
jmp 0x409e0b
xor edi, edi
test edi, edi
mov dword [esp + 0x234], 0xffffffff
mov ebx, edi
je 0x409ed6
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.SQLPath
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_3]
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.0040ef30
add esi, 0x330
push eax
mov ecx, esi
mov dword [esp + 0x238], 1
call dword [0x41a404]
lea ecx, [esp + 0x10]
mov dword [esp + 0x234], 0xffffffff
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 4
jge 0x409f24
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
push 0x10
call sub.MFC71U.DLL_CWordArray::CWordArray
mov edi, eax
add esp, 4
mov dword [esp + 0xc], edi
test edi, edi
mov dword [esp + 0x234], 2
je 0x409ec3
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.SoftwareMicrosoftMSSQLServerSetup
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_3]
push 0x80000002
mov ecx, edi
call fcn.0040ee90
mov edi, eax
jmp 0x409ec5
xor edi, edi
test edi, edi
mov dword [esp + 0x234], 0xffffffff
mov ebx, edi
jne 0x409edd
xor eax, eax
jmp 0x409fbd
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.SQLPath
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_3]
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.0040ef30
push eax
mov ecx, esi
mov dword [esp + 0x238], 3
call dword [0x41a404]
lea ecx, [esp + 0xc]
mov dword [esp + 0x234], 0xffffffff
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
xor eax, eax
mov word [esp + 0x18], 0
mov ecx, 0x81
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
push 0x104
lea ecx, [esp + 0x1c]
stosw word es:[edi], ax
mov eax, dword [esi]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x409f5e
push str.GetShortPathName_failed__using_m_strSphinxPath_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x409f6b
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call dword [0x41a42c]
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 0x328]
push esi
call fcn.00413700
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
mov eax, dword [edi + 0x328]
mov ecx, dword [eax + 0xf8]
push 0xb9
call fcn.00403ea0
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx + 4]
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x224]
call fcn.00416740
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret