Function at 0x40ac80
Capabilities:
Delete file
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x418193
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x770
mov eax, dword [0x427b3c]
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x774], eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
push 0x10
mov dword [esp + 0x788], 0
call sub.MFC71U.DLL_CWordArray::CWordArray
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
test esi, esi
mov byte [esp + 0x784], 1
je 0x40ad07
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str.SOFTWAREMicrosoftMSSQLserv80Setup
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_3]
push 0x80000002
mov ecx, esi
call fcn.0040ee90
mov esi, eax
jmp 0x40ad09
xor esi, esi
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.SQLPath
mov byte [esp + 0x78c], 0
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_3]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0040ef30
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
cmp eax, 4
mov byte [esp + 0x784], 2
jge 0x40addf
test esi, esi
je 0x40ad54
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
push 0x10
call sub.MFC71U.DLL_CWordArray::CWordArray
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
test esi, esi
mov byte [esp + 0x784], 3
je 0x40ad92
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str.SoftwareMicrosoftMSSQLServerSetup
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_3]
push 0x80000002
mov ecx, esi
call fcn.0040ee90
mov esi, eax
jmp 0x40ad94
xor esi, esi
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.SQLPath
mov byte [esp + 0x78c], 2
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_3]
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.0040ef30
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x788], 4
call dword [0x41a404]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x784], 2
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov edx, dword [esp + 0x18]
mov word [esp + 0x568], 0
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x56a]
rep stosd dword es:[edi], eax
push 0x104
lea ecx, [esp + 0x56c]
push ecx
push edx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x40ae24
push str.GetShortPathName_failed__using_m_strSphinxPath_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40ae36
lea eax, [esp + 0x568]
push eax
lea ecx, [esp + 0x1c]
call dword [0x41a42c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebx + 0x328]
call fcn.00413700
xor edi, edi
cmp esi, edi
je 0x40ae55
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
mov eax, dword [ebx + 0x328]
mov ecx, dword [eax + 0x100]
mov edx, dword [eax + 0x108]
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
lea ecx, [esp + 0x34]
push str._sbinn_replupd.exe__ActionType_CheckStatus__SecurityMode_0__UserName_sa__Password___s___Server__s
push ecx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0x14
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
mov edx, dword [ebx + 0x328]
mov eax, dword [edx + 0x114]
push eax
lea ecx, [esp + 0x24]
push str._sreplupd.out
push ecx
mov byte [esp + 0x790], 5
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
mov edx, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0xc
push edx
call esi
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebx + 0x328]
mov ecx, dword [eax + 0x114]
push ecx
lea edx, [esp + 0x20]
push str._sreplupd_err.out
push edx
mov byte [esp + 0x790], 6
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
mov eax, dword [esp + 0x28]
add esp, 0xc
push eax
call esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ecx
push edx
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x7c]
call fcn.0040ece0
push edi
lea ecx, [esp + 0x74]
mov byte [esp + 0x788], 7
call fcn.0040e9c0
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x70]
mov byte [esp + 0x784], 0xa
call fcn.0040e710
mov esi, eax
cmp esi, edi
mov dword [esp + 0x3c], esi
je 0x40b061
lea ecx, [esp + 0x54]
call fcn.00415ec6
mov ecx, dword [esp + 0x1c]
push edi
push edi
push ecx
lea ecx, [esp + 0x60]
mov byte [esp + 0x790], 0xb
call sub.MFC71U.DLL_CDataPathProperty::Open
test eax, eax
lea ecx, [esp + 0x54]
je 0x40b34c
lea edx, [esp + 0x108]
push edx
mov dword [esp + 0x10c], edi
mov dword [esp + 0x110], edi
mov dword [esp + 0x114], edi
mov dword [esp + 0x118], edi
mov dword [esp + 0x11c], edi
mov dword [esp + 0x120], edi
call sub.MFC71U.DLL_CRichEditDoc::GetStartPosition
test eax, eax
je 0x40b047
mov edi, dword [esp + 0x120]
inc edi
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
lea ecx, [esp + 0x54]
je 0x40b34c
mov eax, dword [esp + 0x120]
push eax
push esi
add edi, edi
call sub.MFC71U.DLL_CAsyncMonikerFile::Read
push edi
push edi
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71U.DLL_CRecordset::GetBoundParamIndex]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71U.DLL_CDC::ReleaseAttribDC]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [esp + 0x3c]
xor edi, edi
lea ecx, [esp + 0x54]
call sub.MFC71U.DLL_CDatabase::Close
lea ecx, [esp + 0x54]
mov byte [esp + 0x784], 0xa
call sub.MFC71U.DLL_CEvent::CEvent
lea eax, [esi - 2]
cmp eax, 0xa
ja case.0x40b069.8
jmp dword [eax*4 + 0x40b610]
push 0x7d2
jmp 0x40b0e5
push 0x7d3
jmp 0x40b0a3
push 0x7d4
jmp 0x40b0c4
push 0x7d5
jmp 0x40b0e5
push 0x7d6
jmp 0x40b0a3
push 0x7d7
jmp 0x40b0c4
push 0xa
jmp 0x40b0e5
push 0x7db
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_CWinApp::LoadStdProfileSettings]
mov eax, dword [esp + 0xc]
push eax
push esi
push 0x15f
lea ecx, [esp + 0x1c]
push ecx
jmp 0x40b0ff
push 0x7dc
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_CWinApp::LoadStdProfileSettings]
mov edx, dword [esp + 0xc]
push edx
push esi
push 0x15f
lea eax, [esp + 0x1c]
push eax
jmp 0x40b0ff
push 0x7cf
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_CWinApp::LoadStdProfileSettings]
mov ecx, dword [esp + 0xc]
push ecx
push esi
lea edx, [esp + 0x18]
push 0x15f
push edx
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::Fork]
add esp, 0x10
cmp esi, edi
je 0x40b13f
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], edi
je 0x40b133
push 0x41ccd4
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_1]
mov edx, dword [esp + 0x10]
push edi
push edi
push edx
call sub.MFC71U.DLL_AfxMessageBox
lea ecx, [esp + 0x44]
call fcn.00415ec6
mov eax, dword [esp + 0x20]
push edi
push edi
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x790], 0xc
call sub.MFC71U.DLL_CDataPathProperty::Open
test eax, eax
je 0x40b348
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x338]
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x788], 0xd
mov dword [esp + 0x33c], edi
mov dword [esp + 0x340], edi
mov dword [esp + 0x344], edi
mov dword [esp + 0x348], edi
mov dword [esp + 0x34c], edi
mov dword [esp + 0x350], edi
call sub.MFC71U.DLL_CRichEditDoc::GetStartPosition
test eax, eax
je 0x40b33e
mov edi, dword [esp + 0x350]
inc edi
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40b33e
mov edx, dword [esp + 0x350]
push edx
push esi
lea ecx, [esp + 0x4c]
add edi, edi
call sub.MFC71U.DLL_CAsyncMonikerFile::Read
push edi
push edi
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_CRecordset::GetBoundParamIndex]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_CDC::ReleaseAttribDC]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [esp + 0x44]
call sub.MFC71U.DLL_CDatabase::Close
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
push 0
push 0x41ccd0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78c], 0x10
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Find]
mov esi, eax
test esi, esi
jl 0x40b320
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0x38
jl 0x40b320
cmp esi, 0xffffffff
jle 0x40b4b3
lea ebx, [ebx]
mov ecx, dword [esp + 0x34]
cmp dword [ecx - 0xc], 1
push esi
jge 0x40b3d3
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_CToolBar::Layout]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x788], 0x11
call dword [0x41a404]
lea ecx, [esp + 0x68]
mov byte [esp + 0x784], 0x10
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
push 1
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.MFC71U.DLL_RFX_Text_Bulk]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x788], 0x12
call dword [0x41a404]
lea ecx, [esp + 0x64]
mov byte [esp + 0x784], 0x10
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
push 0x41ac3c
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC71U.DLL_CWinThread::CommonConstruct]
test eax, eax
jne 0x40b461
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x44]
mov byte [esp + 0x784], 0xa
call sub.MFC71U.DLL_CEvent::CEvent
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x70]
mov byte [esp + 0x784], 6
call fcn.0040e7b0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
xor eax, eax
mov ecx, dword [esp + 0x77c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x774]
call fcn.00416740
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_CToolBar::Layout]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x788], 0x13
call dword [0x41a404]
lea ecx, [esp + 0x6c]
mov byte [esp + 0x784], 0x10
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
push 1
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC71U.DLL_RFX_Text_Bulk]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x788], 0x14
call dword [0x41a404]
lea ecx, [esp + 0x40]
mov byte [esp + 0x784], 0x10
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
push 0x41c5d8
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71U.DLL_CWinThread::CommonConstruct]
mov ecx, dword [ebx + 0x328]
neg eax
sbb al, al
inc al
movzx eax, al
mov dword [ecx + 0x138], eax
inc esi
push esi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_COleMessageFilter::XMessageFilter::MessagePending]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x788], 0x15
call dword [0x41a404]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x784], 0x10
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
push 0
push 0x41ccd0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Find]
mov esi, eax
cmp esi, 0xffffffff
jg 0x40b290
push 0
push 0x41b218
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Find]
inc eax
push eax
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_COleMessageFilter::XMessageFilter::MessagePending]
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x788], 0x16
call dword [0x41a404]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x784], 0x10
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov edx, dword [ebx + 0x328]
mov esi, dword [edx + 0xf8]
push 0xd3
mov ecx, esi
call fcn.004040f0
push 0
push ecx
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
push 0xa8
mov ecx, esi
call fcn.00403ea0
push 0
push ecx
lea edx, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
push 0xa9
mov ecx, esi
call fcn.00403ea0
mov ebx, dword [ebx + 0x328]
lea eax, [esp + 0x38]
push eax
lea ecx, [ebx + 0x110]
call dword [0x41a404]
mov eax, dword [esp + 0x3c]
xor ecx, ecx
test eax, eax
sete cl
mov esi, ecx
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x44]
mov byte [esp + 0x784], 0xa
call sub.MFC71U.DLL_CEvent::CEvent
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x70]
mov byte [esp + 0x784], 6
call fcn.0040e7b0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, esi
jmp 0x40b3b2