Function at 0x406350
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4178d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1190
call fcn.00416770
mov eax, dword [0x427b3c]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0xec]
cmp eax, 1
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1018], ecx
jl 0x406699
push 0x41bcc8
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_2]
call sub.MFC71U.DLL_AfxGetModuleShortFileName
mov esi, dword [eax + 0xc]
call sub.MFC71U.DLL_AfxGetModuleShortFileName
mov edi, dword [eax + 0xc]
push 0x41bcc0
push 0x6c
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4063e4
push str.Couldnt_load_usage_instructions__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x4066ca
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + eax + 2]
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 0x101c], eax
je 0x406699
push edi
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x406446
mov eax, dword [ebp - 0x101c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x4066ca
lea ecx, [ebp - 0x1088]
call sub.MFC71U.DLL_CCtrlView::CCtrlView
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x102c], edi
lea esp, [esp]
cmp edi, dword [ebx + 0xec]
jge 0x4066a2
test edi, edi
lea esi, [ebx + 0xe4]
jl 0x40669d
cmp edi, dword [esi + 8]
jge 0x40669d
mov ecx, dword [esi + 4]
push 3
lea edx, [ebp - 0x1024]
lea ecx, [ecx + edi*4]
push edx
call dword [sym.imp.MFC71U.DLL_COleMessageFilter::XMessageFilter::MessagePending]
mov eax, dword [eax]
mov ecx, dword [ebx + 0xe0]
mov edx, dword [ecx + 0x108]
push eax
push edx
lea eax, [ebp - 0x814]
push str.DSNSQLUpgrade_UIDsa_PWD_s_DATABASE_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x1024]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, dword [ebx + 0xe0]
push 0
push 0
push 0x400
lea ecx, [ebp - 0x1014]
push ecx
mov ecx, dword [eax + 0xd8]
push 0xffffffffffffffff
lea edx, [ebp - 0x814]
push edx
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x40651a
push 0x400
lea edx, [ebp - 0x814]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x1014]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
lea ecx, [ebp - 0x814]
push ecx
lea ecx, [ebp - 0x1088]
mov byte [ebp - 4], 1
call sub.MFC71U.DLL_CWinApp::OpenDocumentFile
test eax, eax
je 0x40665c
mov edx, dword [ebx + 0xe0]
mov eax, dword [edx + 0xd8]
mov ecx, dword [ebp - 0x1084]
push eax
push 0x91a7
push ecx
call sub.ODBC32.dll_SQLSetConnectOptionW
lea edx, [ebp - 0x1088]
push edx
lea ecx, [ebp - 0x11a0]
call fcn.00405860
mov eax, dword [ebp - 0x101c]
push 0
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x11a0]
mov byte [ebp - 4], 2
call sub.MFC71U.DLL_CMonikerFile::Open
test eax, eax
je 0x406636
mov eax, dword [ebp - 0x10d8]
test eax, eax
jne 0x4065ea
push edi
mov ecx, esi
call fcn.00402ea0
push 3
lea ecx, [ebp - 0x1020]
push ecx
mov ecx, eax
call dword [sym.imp.MFC71U.DLL_COleMessageFilter::XMessageFilter::MessagePending]
mov edx, dword [eax]
push edx
lea eax, [ebp - 0xc14]
push str._r_n_s_r_n_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x1020]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov esi, dword [ebp - 0x1018]
lea ecx, [ebp - 0xc14]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator]
jmp 0x4065f0
mov esi, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x10d8]
test eax, eax
jne 0x40662b
lea edx, [ebp - 0x1090]
push edx
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_1]
push 0x41bb80
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator]
mov eax, dword [ebp - 0x11a0]
push 1
push 1
lea ecx, [ebp - 0x11a0]
call dword [eax + 0x1c]
jmp 0x4065f0
lea ecx, [ebp - 0x11a0]
call sub.MFC71U.DLL_COleStreamFile::Close
lea ecx, [ebp - 0x1088]
call sub.MFC71U.DLL_CCachedDataPathProperty::Close
lea ecx, [ebp - 0x1090]
mov byte [ebp - 4], 1
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [ebp - 0x11a0]
call fcn.00415dc6
mov dword [ebp - 4], 0
inc edi
jmp 0x406460
xor eax, eax
jmp 0x4066ca
call sub.MFC71U.DLL_AfxThrowInternetException
mov eax, dword [ebp - 0x1018]
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
xor edx, edx
test eax, eax
setg dl
lea ecx, [ebp - 0x1088]
mov dword [ebp - 4], 0xffffffff
mov esi, edx
call fcn.00415eee
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00416740
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4