Function at 0x404d70
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40bba3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x10], esp
push edi
mov eax, dword [ebx + 0x80]
push edi
push 0x1009
push eax
mov dword [ebp - 0x2c], ebx
call esi
mov ecx, dword [ebx + 0x80]
push edi
push edi
push 0xb
push ecx
call esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0xb8], 0x40d888
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebx + 0xb4]
lea eax, [ebp - 0x20]
push edx
push str.SELECT__FROM_DC_WHERE_dc_desk_s
push eax
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::Format
mov esi, dword [ebp - 0x20]
add esp, 0xc
push 0xc
call sub.MFC42.DLL_operatornew
mov ecx, eax
add esp, 4
mov dword [ebp - 0x24], ecx
cmp ecx, edi
mov byte [ebp - 4], 3
je 0x404e1b
push esi
call fcn.00404630
mov edi, eax
test edi, edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x24], edi
jne 0x404e30
push 0x8007000e
call fcn.0040b3c2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004035e0
lea ecx, [ebp - 0x18]
push ecx
push 0x4111b0
push 7
push 0
push 0x4111a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x404e8a
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ole32.dll_OleRun]
mov esi, eax
test esi, esi
jl 0x404e7d
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
push 0x411190
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
jge 0x404e90
push esi
call fcn.0040b3c2
test edi, edi
mov word [ebp - 0x40], 8
je 0x404e9e
mov esi, dword [edi]
jmp 0x404ea0
xor esi, esi
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
test eax, eax
mov dword [ebp - 0x38], eax
jne 0x404ec0
push 0x8007000e
call fcn.0040b3c2
mov eax, dword [ebx + 0xb0]
mov word [ebp - 0x50], 9
mov dword [ebp - 0x48], eax
push eax
mov edx, dword [eax]
mov byte [ebp - 4], 5
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 6
test eax, eax
jne 0x404ef1
push 0x80004003
call fcn.0040b3c2
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x50]
push 1
push 3
push 1
sub esp, 0x10
mov ecx, dword [eax]
mov edx, esp
sub esp, 0x10
mov esi, eax
mov dword [edx], edi
mov edi, dword [ebp - 0x4c]
mov dword [edx + 4], edi
mov edi, dword [ebp - 0x48]
mov dword [edx + 8], edi
mov edi, dword [ebp - 0x44]
mov dword [edx + 0xc], edi
mov edi, dword [ebp - 0x40]
mov edx, esp
push eax
mov dword [edx], edi
mov edi, dword [ebp - 0x3c]
mov dword [edx + 4], edi
mov edi, dword [ebp - 0x38]
mov dword [edx + 8], edi
mov edi, dword [ebp - 0x34]
mov dword [edx + 0xc], edi
call dword [ecx + 0xa0]
test eax, eax
jge 0x404f4a
push 0x411100
push esi
push eax
call fcn.0040b3d0
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 5
call esi
test eax, eax
jge 0x404f64
push eax
call fcn.0040b3c2
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
push ecx
call esi
test eax, eax
jge 0x404f78
push eax
call fcn.0040b3c2
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x404f8c
push 0x80004003
call fcn.0040b3c2
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
push 0x411110
push eax
call dword [edx]
test eax, eax
jge 0x404fa4
push eax
call fcn.0040b3c2
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0xb8]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0xc]
test eax, eax
jge 0x404fbe
push eax
call fcn.0040b3c2
xor edi, edi
mov dword [ebx + 0xa4], edi
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x404fda
push 0x80004003
call fcn.0040b3c2
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
lea ecx, [ebp - 0x16]
push ecx
push eax
mov esi, eax
call dword [edx + 0x50]
test eax, eax
jge 0x404ff6
push 0x411100
push esi
push eax
call fcn.0040b3d0
cmp word [ebp - 0x16], 0
jne 0x40510d
lea edx, [ebp - 0x8c]
mov ecx, ebx
push edx
call fcn.00404b10
fstp dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
push 0
fld dword [ebp - 0x6c]
mov dword [ebp - 0x28], eax
push 0
fmul dword [ebp - 0x28]
push 0
lea ecx, [ebp - 0xa0]
push 0
lea esi, [ebx + 0x60]
fadd dword [ebx + 0xa4]
push ecx
push 0
push 1
mov ecx, esi
fstp dword [ebx + 0xa4]
call sub.MFC42.DLL_CListCtrl::InsertItem
lea edx, [ebp - 0x8c]
mov ecx, esi
push edx
push 1
push edi
call sub.MFC42.DLL_CListCtrl::SetItemText
lea eax, [ebp - 0x82]
mov ecx, esi
push eax
push 2
push edi
call sub.MFC42.DLL_CListCtrl::SetItemText
fld dword [ebp - 0x28]
sub esp, 8
lea ecx, [ebp - 0x138]
fstp qword [esp]
push 0x41115c
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [ebp - 0x138]
mov ecx, esi
push edx
push 3
push edi
call sub.MFC42.DLL_CListCtrl::SetItemText
fld dword [ebp - 0x6c]
sub esp, 8
lea eax, [ebp - 0x138]
fstp qword [esp]
push 0x41115c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [ebp - 0x138]
push ecx
push 4
push edi
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::SetItemText
lea edx, [ebp - 0x68]
mov ecx, esi
push edx
push 5
push edi
call sub.MFC42.DLL_CListCtrl::SetItemText
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4050e9
push 0x80004003
call fcn.0040b3c2
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
mov esi, eax
call dword [ecx + 0x90]
test eax, eax
jge 0x404fc6
push 0x411100
push esi
push eax
call fcn.0040b3d0
jmp 0x404fc6
mov eax, dword [ebp - 0x1c]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40512a
push 0x80004003
call fcn.0040b3c2
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
mov esi, eax
call dword [ecx + 0x80]
test eax, eax
jge 0x405145
push 0x411100
push esi
push eax
call fcn.0040b3d0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x405151
call fcn.00404670
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040afa0
mov edx, dword [ebx + 0x80]
push 0
push 1
push 0xb
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_SendMessageA]
fld dword [ebx + 0xb8]
fmul dword [ebx + 0xa4]
push 0
mov ecx, ebx
fstp dword [ebx + 0xa8]
call sub.MFC42.DLL_CWnd::UpdateData
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4051ed
jmp 0x4051e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret