Function at 0x407660
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c0bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x188
push ebx
push esi
mov ebx, ecx
push edi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x10], esp
lea ecx, [ebx + 0xa0]
push eax
push ecx
mov dword [ebp - 0x1c], ebx
call fcn.00402730
mov edx, dword [ebx + 0x80]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 8
xor edi, edi
push edi
push edi
push 0x1009
push edx
call esi
mov eax, dword [ebx + 0x80]
push edi
push edi
push 0xb
push eax
call esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x94], 0x40d888
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebx + 0xa4]
lea ecx, [ebp - 0x114]
push ecx
push edx
lea eax, [ebp - 0x20]
push str.SELECT__FROM_DC_WHERE_dc_desk_s_AND_dc_date_s
push eax
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::Format
mov esi, dword [ebp - 0x20]
add esp, 0x10
push 0xc
call sub.MFC42.DLL_operatornew
mov ecx, eax
add esp, 4
mov dword [ebp - 0x18], ecx
cmp ecx, edi
mov byte [ebp - 4], 3
je 0x407728
push esi
call fcn.00404630
jmp 0x40772a
xor eax, eax
cmp eax, edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x24], eax
jne 0x40773f
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 edi
push 0x4111a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, edi
jl 0x407798
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ole32.dll_OleRun]
mov esi, eax
cmp esi, edi
jl 0x40778b
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]
cmp esi, edi
jge 0x40779e
push esi
call fcn.0040b3c2
push 1
push edi
push ecx
lea edx, [ebp - 0x24]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push edx
call fcn.004045c0
lea ecx, [ebx + 0xbc]
mov byte [ebp - 4], 5
call fcn.004035f0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.00403520
mov edx, dword [eax]
lea ecx, [ebp - 0x14]
push edx
call fcn.00403ad0
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x4077e6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x4077fa
push 0x80004003
call fcn.0040b3c2
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
push 0x411110
push eax
call dword [edx]
cmp eax, edi
jge 0x407812
push eax
call fcn.0040b3c2
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x94]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0xc]
cmp eax, edi
jge 0x40782c
push eax
call fcn.0040b3c2
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x407846
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 0x407862
push 0x411100
push esi
push eax
call fcn.0040b3d0
cmp word [ebp - 0x16], 0
jne 0x407917
mov edx, dword [ebp - 0x1c]
push 0
push 0
push 0
lea eax, [ebp - 0x7c]
push 0
lea esi, [edx + 0x60]
push eax
push 0
push 1
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::InsertItem
lea ecx, [ebp - 0x68]
push ecx
push 1
push edi
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::SetItemText
lea edx, [ebp - 0x5e]
mov ecx, esi
push edx
push 2
push edi
call sub.MFC42.DLL_CListCtrl::SetItemText
fld dword [ebp - 0x48]
sub esp, 8
lea eax, [ebp - 0x194]
fstp qword [esp]
push 0x41115c
push eax
call ebx
add esp, 0x10
lea ecx, [ebp - 0x194]
push ecx
push 3
push edi
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::SetItemText
lea edx, [ebp - 0x44]
mov ecx, esi
push edx
push 4
push edi
call sub.MFC42.DLL_CListCtrl::SetItemText
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4078f3
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 0x407832
push 0x411100
push esi
push eax
call fcn.0040b3d0
jmp 0x407832
mov eax, dword [ebp - 0x28]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x407934
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 0x40794f
push 0x411100
push esi
push eax
call fcn.0040b3d0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x407962
call fcn.00404670
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040afa0
mov edx, dword [ebp - 0x1c]
push 0
push 1
push 0xb
mov eax, dword [edx + 0x80]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x14]
call fcn.004035e0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret