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

Disassembly:
push 0xffffffffffffffff
push 0x417e66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0x10
mov ebp, ecx
call sub.MFC71U.DLL_CWordArray::CWordArray
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
mov dword [esp + 0x24], 0
je 0x409b8c
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.SoftwareMicrosoftMSSQLServ65MSSQLServerParameters
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_3]
push 0x80000002
mov ecx, esi
call fcn.0040ee90
mov esi, eax
jmp 0x409b8e
xor esi, esi
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.SQLArg0
mov dword [esp + 0x2c], 0xffffffff
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_3]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.0040ef30
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
mov edi, 1
cmp eax, edi
lea ecx, [esp + 0x10]
setl bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
test bl, bl
je 0x409c85
test esi, esi
je 0x409be1
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 4]
push 0x10
call sub.MFC71U.DLL_CWordArray::CWordArray
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
mov dword [esp + 0x24], edi
je 0x409c1b
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.SoftwareMicrosoftMSSQLServ60MSSQLServerParameters
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_3]
push 0x80000002
mov ecx, esi
call fcn.0040ee90
mov esi, eax
jmp 0x409c1d
xor esi, esi
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.SQLArg0
mov dword [esp + 0x2c], 0xffffffff
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_3]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.0040ef30
mov ecx, dword [eax]
cmp dword [ecx - 0xc], edi
lea ecx, [esp + 0x10]
setl bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
test bl, bl
je 0x409c7e
push 0xffffffffffffffff
push 0
push 0x15c
call sub.MFC71U.DLL_AfxMergeMenus
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
push 0x41c7e8
jmp 0x409c8a
push 0x41c7e0
lea ecx, [ebp + 0x32c]
mov dword [esp + 0x14], ecx
call dword [0x41a42c]
mov ebx, 2
push ebx
lea edx, [esp + 0x18]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.SQLArg0
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_3]
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.0040ef30
mov ecx, eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.MFC71U.DLL_COleMessageFilter::XMessageFilter::MessagePending]
mov edi, dword [esp + 0x2c]
push eax
mov ecx, edi
mov byte [esp + 0x28], 3
call dword [0x41a404]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0xffffffff
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [ebp + 0x328]
mov ecx, dword [ecx + 0xf8]
push 0xd3
call fcn.004040f0
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push edi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
mov edx, dword [ebp + 0x328]
mov ecx, dword [edx + 0xf8]
push 0xb2
call fcn.00403ea0
test esi, esi
je 0x409d46
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409c67
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
cmp dword [edx - 0xc], ebx
jne 0x409c67
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 4