Function at 0x409199
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e796
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x1c8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x198], ecx
lea eax, [ebp - 0xf8]
push eax
mov ecx, dword [ebp - 0x198]
add ecx, 0xa0
push ecx
call fcn.004025e6
add esp, 8
mov ecx, dword [ebp - 0x198]
add ecx, 0x60
call fcn.00407390
push 0
mov ecx, dword [ebp - 0x198]
add ecx, 0x60
call fcn.00407360
push 0
lea ecx, [ebp - 0x78]
call fcn.00403cd0
mov dword [ebp - 4], 0
mov dword [ebp - 0xfc], 0
lea ecx, [ebp - 0x74]
call fcn.004036d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x188]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 0x19c], eax
mov byte [ebp - 4], 2
lea edx, [ebp - 0xf8]
push edx
mov eax, dword [ebp - 0x198]
mov ecx, dword [eax + 0xa4]
push ecx
push str.SELECT__FROM_DC_WHERE_dc_desk_s_AND_dc_date_s
lea edx, [ebp - 0x188]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x188]
call fcn.004036c0
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x180]
call fcn.00405eb0
mov dword [ebp - 0x1a4], 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
push 1
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x190], esp
lea edx, [ebp - 0x180]
push edx
call fcn.00405e80
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x1ac], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x198]
add ecx, 0xbc
call fcn.00403a20
mov dword [ebp - 0x1b0], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x194]
push ecx
mov ecx, dword [ebp - 0x1b0]
call fcn.00403700
mov dword [ebp - 0x1b4], eax
mov edx, dword [ebp - 0x1b4]
mov dword [ebp - 0x1b8], edx
mov eax, dword [ebp - 0x1b8]
push eax
lea ecx, [ebp - 0x78]
call fcn.00403d30
lea ecx, [ebp - 0x194]
call fcn.00403d50
lea ecx, [ebp - 0x78]
call fcn.00403d70
mov dword [ebp - 0x1bc], eax
mov ecx, dword [ebp - 0x1bc]
mov dword [ebp - 0x1c0], ecx
lea edx, [ebp - 0xfc]
push edx
push 0x4131b8
mov eax, dword [ebp - 0x1c0]
push eax
mov ecx, dword [ebp - 0x1c0]
mov edx, dword [ecx]
call dword [edx]
mov dword [ebp - 0x1c4], eax
mov eax, dword [ebp - 0x1c4]
push eax
call fcn.00406330
add esp, 4
lea ecx, [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0xfc]
push edx
mov eax, dword [ebp - 0xfc]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov dword [ebp - 0x1c8], eax
mov edx, dword [ebp - 0x1c8]
push edx
call fcn.00406330
add esp, 4
mov dword [ebp - 0x184], 0
lea ecx, [ebp - 0x78]
call fcn.00403d70
mov dword [ebp - 0x1cc], eax
mov ecx, dword [ebp - 0x1cc]
call fcn.004037a0
mov word [ebp - 0x1ce], ax
movsx eax, word [ebp - 0x1ce]
test eax, eax
jne 0x4094a0
lea ecx, [ebp - 0x5c]
push ecx
push 0
mov ecx, dword [ebp - 0x198]
add ecx, 0x60
call fcn.00405d50
lea edx, [ebp - 0x48]
push edx
push 1
mov eax, dword [ebp - 0x184]
push eax
mov ecx, dword [ebp - 0x198]
add ecx, 0x60
call sub.MFC42.DLL_CListCtrl::SetItemText
lea ecx, [ebp - 0x3e]
push ecx
push 2
mov edx, dword [ebp - 0x184]
push edx
mov ecx, dword [ebp - 0x198]
add ecx, 0x60
call sub.MFC42.DLL_CListCtrl::SetItemText
fld dword [ebp - 0x28]
sub esp, 8
fstp qword [esp]
push 0x413488
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [ebp - 0x17c]
push ecx
push 3
mov edx, dword [ebp - 0x184]
push edx
mov ecx, dword [ebp - 0x198]
add ecx, 0x60
call sub.MFC42.DLL_CListCtrl::SetItemText
lea eax, [ebp - 0x24]
push eax
push 4
mov ecx, dword [ebp - 0x184]
push ecx
mov ecx, dword [ebp - 0x198]
add ecx, 0x60
call sub.MFC42.DLL_CListCtrl::SetItemText
lea ecx, [ebp - 0x78]
call fcn.00403d70
mov dword [ebp - 0x1d4], eax
mov ecx, dword [ebp - 0x1d4]
call fcn.004038d0
jmp 0x4093b2
mov edx, dword [ebp - 0xfc]
push edx
mov eax, dword [ebp - 0xfc]
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [ebp - 0x78]
call fcn.00403d70
mov dword [ebp - 0x1d8], eax
mov ecx, dword [ebp - 0x1d8]
call fcn.00403890
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x180]
call fcn.00405f40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x188]
call fcn.0040d5b0
jmp 0x409527
mov dword [ebp - 4], 0
push 1
mov ecx, dword [ebp - 0x198]
add ecx, 0x60
call fcn.00407360
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