Function at 0x405880
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x59d9e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor esi, esi
push esi
push esi
mov eax, dword [edi + 0x168]
push 0x1009
push eax
mov dword [esp + 0x34], edi
call dword [sym.imp.USER32.dll_SendMessageA]
push str.__SELECT_av_policy.id__av_policy.group_id__av_policy.all_group__group_list.group_name__group_list.av_policy_enable___t_tav_policy.start_all__av_policy.arrival_all__av_policy.start_city__av_policy.arrival_city___t_tav_policy.message__av_policy.no_time_limit___t_tav_policy.start_date__av_policy.end_date__av_policy.disable__av_policy.rec_time__t_tFROM_av_policy_LEFT_JOIN_group_list_ON_av_policy.group_id__group_list.id_
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], esi
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [edi + 0x330]
mov byte [esp + 0x48], 1
cmp eax, esi
jne 0x4058f4
mov ecx, dword [esp + 0x1c]
push esi
push ecx
lea edx, [esp + 0x20]
push str.SELECT__FROM__s_WHERE_av_policy.all_group1_ORDER_BY_av_policy.rec_time_DESC
push edx
jmp 0x405904
push eax
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push str.SELECT__FROM__s_WHERE_av_policy.group_id_d_ORDER_BY_av_policy.rec_time_DESC
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x28]
mov ecx, dword [0x63ac20]
add esp, 0x10
push esi
push esi
push edx
push str.XGSP
call fcn.00593c40
mov ebp, eax
cmp ebp, esi
jne 0x4059fd
mov eax, dword [0x63ac20]
cmp eax, esi
je 0x405995
mov cl, byte [eax + 0x40]
test cl, cl
je 0x405995
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
push 0x606794
push 0x606790
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str..dbs.
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x63ac20]
push str.runtime
push 0x60677c
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ec710
mov edx, dword [0x63ac20]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x606794
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x50], 2
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x606790
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x54], 3
mov ecx, esp
mov dword [esp + 0x38], esp
push str..dbs.
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x58], 4
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x606778
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x6357fc]
mov byte [esp + 0x58], 1
call fcn.00458fc0
jmp 0x405ec6
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
mov byte [esp + 0x48], 5
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
jne 0x405e3b
add edi, 0x148
lea ebx, [esi + 1]
lea ecx, [esp + 0x10]
push ebx
push 0x606774
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, edi
push 0
push 0
push 0
push 0
push edx
push esi
push 1
call sub.MFC42.DLL_CListCtrl::InsertItem
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
push 0x606170
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov ecx, dword [esp + 0x14]
push ecx
push 0
push 0
push 0
push 0
push 4
push 0
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItem
lea edx, [esp + 0x14]
mov ecx, ebp
push edx
push str.all_group
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x405aab
push 0x606760
jmp 0x405ac1
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
push str.group_name
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, dword [esp + 0x10]
push ecx
push 1
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
lea edx, [esp + 0x14]
mov ecx, ebp
push edx
push str.start_all
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
cmp dword [esp + 0x14], 1
jne 0x405aea
push 0x60674c
jmp 0x405b00
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
push str.start_city
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, dword [esp + 0x10]
push ecx
push 2
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
lea edx, [esp + 0x14]
mov ecx, ebp
push edx
push str.arrival_all
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
cmp dword [esp + 0x14], 1
jne 0x405b29
push 0x60674c
jmp 0x405b3f
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
push str.arrival_city
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, dword [esp + 0x10]
push ecx
push 3
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
lea edx, [esp + 0x14]
mov ecx, ebp
push edx
push str.disable
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov eax, dword [esp + 0x14]
test eax, eax
mov eax, 0x606630
je 0x405b6c
mov eax, 0x606714
push eax
push 4
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
push str.message
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, dword [esp + 0x10]
push ecx
push 5
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
lea edx, [esp + 0x14]
mov ecx, ebp
push edx
push str.no_time_limit
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
cmp dword [esp + 0x14], 1
jne 0x405bd7
push 0x6066f8
push 6
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
push 0x6066f4
push 7
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
push 0x6066f4
jmp 0x405d4c
push 0x6066f0
push 6
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
lea eax, [esp + 0x34]
mov ecx, ebp
push eax
push str.start_date
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_COleDateTime__
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_COleDateTime::GetYear
cmp eax, 0x7d0
lea ecx, [esp + 0x34]
jge 0x405c2f
call sub.MFC42.DLL_COleDateTime::GetDay
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_COleDateTime::GetMonth
push eax
lea ecx, [esp + 0x18]
push str.2000__02d__02d
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x405c8f
call sub.MFC42.DLL_COleDateTime::GetYear
cmp eax, 0x7f5
lea ecx, [esp + 0x34]
jle 0x405c63
call sub.MFC42.DLL_COleDateTime::GetDay
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_COleDateTime::GetMonth
push eax
lea edx, [esp + 0x18]
push str.2037__02d__02d
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x405c8f
call sub.MFC42.DLL_COleDateTime::GetDay
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_COleDateTime::GetMonth
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_COleDateTime::GetYear
push eax
lea eax, [esp + 0x1c]
push 0x6066b4
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, dword [esp + 0x10]
push ecx
push 7
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
lea edx, [esp + 0x34]
mov ecx, ebp
push edx
push str.end_date
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_COleDateTime__
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_COleDateTime::GetYear
cmp eax, 0x7d0
lea ecx, [esp + 0x34]
jge 0x405ce7
call sub.MFC42.DLL_COleDateTime::GetDay
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_COleDateTime::GetMonth
push eax
lea eax, [esp + 0x18]
push str.2000__02d__02d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x405d47
call sub.MFC42.DLL_COleDateTime::GetYear
cmp eax, 0x7f5
lea ecx, [esp + 0x34]
jle 0x405d1b
call sub.MFC42.DLL_COleDateTime::GetDay
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_COleDateTime::GetMonth
push eax
lea ecx, [esp + 0x18]
push str.2037__02d__02d
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x405d47
call sub.MFC42.DLL_COleDateTime::GetDay
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_COleDateTime::GetMonth
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_COleDateTime::GetYear
push eax
lea edx, [esp + 0x1c]
push 0x6066b4
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov eax, dword [esp + 0x10]
push eax
push 8
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
lea ecx, [esp + 0x34]
push ecx
push str.rec_time
mov ecx, ebp
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_COleDateTime__
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_COleDateTime::GetYear
cmp eax, 0x7d0
lea ecx, [esp + 0x34]
jge 0x405d9f
call sub.MFC42.DLL_COleDateTime::GetDay
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_COleDateTime::GetMonth
push eax
lea edx, [esp + 0x18]
push str.2000__02d__02d
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x405dff
call sub.MFC42.DLL_COleDateTime::GetYear
cmp eax, 0x7f5
lea ecx, [esp + 0x34]
jle 0x405dd3
call sub.MFC42.DLL_COleDateTime::GetDay
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_COleDateTime::GetMonth
push eax
lea eax, [esp + 0x18]
push str.2037__02d__02d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x405dff
call sub.MFC42.DLL_COleDateTime::GetDay
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_COleDateTime::GetMonth
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_COleDateTime::GetYear
push eax
lea ecx, [esp + 0x1c]
push 0x6066b4
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov edx, dword [esp + 0x10]
mov ecx, edi
push edx
push 9
push esi
call sub.MFC42.DLL_CListCtrl::SetItemText
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
push str.av_policy_enable
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov ecx, ebp
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
mov ecx, ebp
mov esi, ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
je 0x405a34
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x330]
test eax, eax
jg 0x405e70
push 0x63547c
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 6
push ecx
lea ecx, [edi + 0x60]
call fcn.004ea630
mov byte [esp + 0x48], 5
lea ecx, [esp + 0x20]
jmp 0x405eb3
lea esi, [edi + 0x60]
push 1
mov ecx, esi
call fcn.004ea680
mov eax, dword [esp + 0x14]
cmp eax, 1
mov eax, 0x606670
je 0x405e8f
mov eax, 0x606658
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_3
lea edx, [esp + 0x20]
mov ecx, esi
push edx
mov byte [esp + 0x4c], 7
call fcn.004ea630
mov byte [esp + 0x48], 5
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x3c
ret