Function at 0x4068b6
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e2af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x164
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x134], ecx
mov ecx, dword [ebp - 0x134]
add ecx, 0x60
call fcn.00407390
push 0
mov ecx, dword [ebp - 0x134]
add ecx, 0x60
call fcn.00407360
push 0
lea ecx, [ebp - 0x78]
call fcn.00403cd0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 0
lea ecx, [ebp - 0x74]
call fcn.004036d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x108]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 0x138], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 0xb4]
push ecx
push str.SELECT__FROM_DC_WHERE_dc_desk_s
lea edx, [ebp - 0x108]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x108]
call fcn.004036c0
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x100]
call fcn.00405eb0
mov dword [ebp - 0x140], eax
mov byte [ebp - 4], 3
push 7
push 0
push 0x4131c8
lea ecx, [ebp - 0x78]
call fcn.00403da0
push eax
call fcn.00406330
add esp, 4
lea ecx, [ebp - 0x100]
push ecx
lea ecx, [ebp - 0x130]
call fcn.004073c0
mov dword [ebp - 0x144], eax
mov byte [ebp - 4], 4
push 1
mov ecx, dword [ebp - 0x134]
add ecx, 0xb0
call fcn.00403a10
push eax
lea ecx, [ebp - 0x120]
call fcn.00406170
mov dword [ebp - 0x148], eax
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x14c], edx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x78]
call fcn.00403d70
mov dword [ebp - 0x150], eax
push 1
push 3
push 1
mov eax, dword [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x130]
push ecx
mov ecx, dword [ebp - 0x150]
call fcn.00403910
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x120]
call fcn.00402180
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x130]
call fcn.00402180
lea ecx, [ebp - 0x78]
call fcn.00403d70
mov dword [ebp - 0x154], eax
mov edx, dword [ebp - 0x154]
mov dword [ebp - 0x158], edx
lea eax, [ebp - 0x7c]
push eax
push 0x4131b8
mov ecx, dword [ebp - 0x158]
push ecx
mov edx, dword [ebp - 0x158]
mov eax, dword [edx]
call dword [eax]
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x15c]
push ecx
call fcn.00406330
add esp, 4
lea edx, [ebp - 0x74]
push edx
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx]
call dword [edx + 0xc]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x160]
push eax
call fcn.00406330
add esp, 4
mov dword [ebp - 0x104], 0
mov ecx, dword [ebp - 0x134]
mov dword [ecx + 0xa4], 0
lea ecx, [ebp - 0x78]
call fcn.00403d70
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
call fcn.004037a0
mov word [ebp - 0x166], ax
movsx edx, word [ebp - 0x166]
test edx, edx
jne 0x406c33
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x134]
call fcn.004066b0
fstp dword [ebp - 0x16c]
mov ecx, dword [ebp - 0x16c]
mov dword [ebp - 0x10c], ecx
fld dword [ebp - 0x10c]
fmul dword [ebp - 0x28]
mov edx, dword [ebp - 0x134]
fadd dword [edx + 0xa4]
mov eax, dword [ebp - 0x134]
fstp dword [eax + 0xa4]
lea ecx, [ebp - 0x5c]
push ecx
push 0
mov ecx, dword [ebp - 0x134]
add ecx, 0x60
call fcn.00405d50
lea edx, [ebp - 0x48]
push edx
push 1
mov eax, dword [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x134]
add ecx, 0x60
call sub.MFC42.DLL_CListCtrl::SetItemText
lea ecx, [ebp - 0x3e]
push ecx
push 2
mov edx, dword [ebp - 0x104]
push edx
mov ecx, dword [ebp - 0x134]
add ecx, 0x60
call sub.MFC42.DLL_CListCtrl::SetItemText
fld dword [ebp - 0x10c]
sub esp, 8
fstp qword [esp]
push 0x4132c4
lea eax, [ebp - 0xfc]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [ebp - 0xfc]
push ecx
push 3
mov edx, dword [ebp - 0x104]
push edx
mov ecx, dword [ebp - 0x134]
add ecx, 0x60
call sub.MFC42.DLL_CListCtrl::SetItemText
fld dword [ebp - 0x28]
sub esp, 8
fstp qword [esp]
push 0x4132c8
lea eax, [ebp - 0xfc]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [ebp - 0xfc]
push ecx
push 4
mov edx, dword [ebp - 0x104]
push edx
mov ecx, dword [ebp - 0x134]
add ecx, 0x60
call sub.MFC42.DLL_CListCtrl::SetItemText
lea eax, [ebp - 0x24]
push eax
push 5
mov ecx, dword [ebp - 0x104]
push ecx
mov ecx, dword [ebp - 0x134]
add ecx, 0x60
call sub.MFC42.DLL_CListCtrl::SetItemText
lea ecx, [ebp - 0x78]
call fcn.00403d70
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
call fcn.004038d0
jmp 0x406ac4
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [ebp - 0x78]
call fcn.00403d70
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x174]
call fcn.00403890
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x100]
call fcn.00405f40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x108]
call fcn.0040d5b0
jmp 0x406cc1
mov dword [ebp - 4], 0
push 1
mov ecx, dword [ebp - 0x134]
add ecx, 0x60
call fcn.00407360
mov edx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x134]
fld dword [edx + 0xa4]
fmul dword [eax + 0xb8]
mov ecx, dword [ebp - 0x134]
fstp dword [ecx + 0xa8]
push 0
mov ecx, dword [ebp - 0x134]
call sub.MFC42.DLL_CWnd::UpdateData
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00403d50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret