Function at 0x4057f0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x5a2340
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 0x405864
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 0x405874
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 [0x641030]
add esp, 0x10
push esi
push esi
push edx
push str.XGSP
call fcn.00598520
mov ebp, eax
cmp ebp, esi
jne 0x40596d
mov eax, dword [0x641030]
cmp eax, esi
je 0x405905
mov cl, byte [eax + 0x40]
test cl, cl
je 0x405905
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
push 0x60c794
push 0x60c790
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str..dbs.
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x641030]
push str.runtime
push 0x60c77c
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ed3c0
mov edx, dword [0x641030]
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 0x60c794
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x50], 2
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x60c790
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 0x60c778
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63bc8c]
mov byte [esp + 0x58], 1
call fcn.00459390
jmp 0x405e36
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 0x405dab
add edi, 0x148
lea ebx, [esi + 1]
lea ecx, [esp + 0x10]
push ebx
push 0x60c774
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 0x60c170
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 0x405a1b
push 0x60c760
jmp 0x405a31
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 0x405a5a
push 0x60c74c
jmp 0x405a70
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 0x405a99
push 0x60c74c
jmp 0x405aaf
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, 0x60c630
je 0x405adc
mov eax, 0x60c714
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 0x405b47
push 0x60c6f8
push 6
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
push 0x60c6f4
push 7
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
push 0x60c6f4
jmp 0x405cbc
push 0x60c6f0
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 0x405b9f
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 0x405bff
call sub.MFC42.DLL_COleDateTime::GetYear
cmp eax, 0x7f5
lea ecx, [esp + 0x34]
jle 0x405bd3
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 0x405bff
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 0x60c6b4
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 0x405c57
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 0x405cb7
call sub.MFC42.DLL_COleDateTime::GetYear
cmp eax, 0x7f5
lea ecx, [esp + 0x34]
jle 0x405c8b
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 0x405cb7
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 0x60c6b4
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 0x405d0f
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 0x405d6f
call sub.MFC42.DLL_COleDateTime::GetYear
cmp eax, 0x7f5
lea ecx, [esp + 0x34]
jle 0x405d43
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 0x405d6f
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 0x60c6b4
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 0x4059a4
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x330]
test eax, eax
jg 0x405de0
push 0x63b90c
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.004eb370
mov byte [esp + 0x48], 5
lea ecx, [esp + 0x20]
jmp 0x405e23
lea esi, [edi + 0x60]
push 1
mov ecx, esi
call fcn.004eb3c0
mov eax, dword [esp + 0x14]
cmp eax, 1
mov eax, 0x60c670
je 0x405dff
mov eax, 0x60c658
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.004eb370
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