Function at 0x405870
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x59b0e0
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 0x4058e4
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 0x4058f4
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 [0x637770]
add esp, 0x10
push esi
push esi
push edx
push str.XGSP
call fcn.00590210
mov ebp, eax
cmp ebp, esi
jne 0x4059ed
mov eax, dword [0x637770]
cmp eax, esi
je 0x405985
mov cl, byte [eax + 0x40]
test cl, cl
je 0x405985
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
push 0x603778
push 0x603774
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str..dbs.
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x637770]
push str.runtime
push 0x603760
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb4c0
mov edx, dword [0x637770]
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 0x603778
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x50], 2
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x603774
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 0x60375c
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63234c]
mov byte [esp + 0x58], 1
call fcn.00458dc0
jmp 0x405eb6
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 0x405e2b
add edi, 0x148
lea ebx, [esi + 1]
lea ecx, [esp + 0x10]
push ebx
push 0x603758
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 0x603170
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 0x405a9b
push 0x603744
jmp 0x405ab1
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 0x405ada
push 0x603730
jmp 0x405af0
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 0x405b19
push 0x603730
jmp 0x405b2f
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, 0x603614
je 0x405b5c
mov eax, 0x6036f8
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 0x405bc7
push 0x6036dc
push 6
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
push 0x6036d8
push 7
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
push 0x6036d8
jmp 0x405d3c
push 0x6036d4
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 0x405c1f
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 0x405c7f
call sub.MFC42.DLL_COleDateTime::GetYear
cmp eax, 0x7f5
lea ecx, [esp + 0x34]
jle 0x405c53
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 0x405c7f
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 0x603698
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 0x405cd7
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 0x405d37
call sub.MFC42.DLL_COleDateTime::GetYear
cmp eax, 0x7f5
lea ecx, [esp + 0x34]
jle 0x405d0b
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 0x405d37
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 0x603698
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 0x405d8f
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 0x405def
call sub.MFC42.DLL_COleDateTime::GetYear
cmp eax, 0x7f5
lea ecx, [esp + 0x34]
jle 0x405dc3
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 0x405def
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 0x603698
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 0x405a24
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x330]
test eax, eax
jg 0x405e60
push 0x631fcc
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.004e93f0
mov byte [esp + 0x48], 5
lea ecx, [esp + 0x20]
jmp 0x405ea3
lea esi, [edi + 0x60]
push 1
mov ecx, esi
call fcn.004e9440
mov eax, dword [esp + 0x14]
cmp eax, 1
mov eax, 0x603654
je 0x405e7f
mov eax, 0x60363c
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.004e93f0
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