Function at 0x4057e0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x5993a0
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 0x405854
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 0x405864
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 [0x635400]
add esp, 0x10
push esi
push esi
push edx
push str.XGSP
call fcn.0058f640
mov ebp, eax
cmp ebp, esi
jne 0x40595d
mov eax, dword [0x635400]
cmp eax, esi
je 0x4058f5
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4058f5
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
push 0x601778
push 0x601774
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str..dbs.
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x635400]
push str.runtime
push 0x601760
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb7d0
mov edx, dword [0x635400]
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 0x601778
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x50], 2
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x601774
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 0x60175c
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x62ffdc]
mov byte [esp + 0x58], 1
call fcn.00458cb0
jmp 0x405e26
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 0x405d9b
add edi, 0x148
lea ebx, [esi + 1]
lea ecx, [esp + 0x10]
push ebx
push 0x601758
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 0x601170
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 0x405a0b
push 0x601744
jmp 0x405a21
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 0x405a4a
push 0x601730
jmp 0x405a60
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 0x405a89
push 0x601730
jmp 0x405a9f
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, 0x601614
je 0x405acc
mov eax, 0x6016f8
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 0x405b37
push 0x6016dc
push 6
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
push 0x6016d8
push 7
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
push 0x6016d8
jmp 0x405cac
push 0x6016d4
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 0x405b8f
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 0x405bef
call sub.MFC42.DLL_COleDateTime::GetYear
cmp eax, 0x7f5
lea ecx, [esp + 0x34]
jle 0x405bc3
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 0x405bef
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 0x601698
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 0x405c47
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 0x405ca7
call sub.MFC42.DLL_COleDateTime::GetYear
cmp eax, 0x7f5
lea ecx, [esp + 0x34]
jle 0x405c7b
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 0x405ca7
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 0x601698
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 0x405cff
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 0x405d5f
call sub.MFC42.DLL_COleDateTime::GetYear
cmp eax, 0x7f5
lea ecx, [esp + 0x34]
jle 0x405d33
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 0x405d5f
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 0x601698
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 0x405994
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x330]
test eax, eax
jg 0x405dd0
push 0x62fc5c
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.004e96e0
mov byte [esp + 0x48], 5
lea ecx, [esp + 0x20]
jmp 0x405e13
lea esi, [edi + 0x60]
push 1
mov ecx, esi
call fcn.004e9730
mov eax, dword [esp + 0x14]
cmp eax, 1
mov eax, 0x601654
je 0x405def
mov eax, 0x60163c
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.004e96e0
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