Function at 0x49b100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5af794
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [0x63ac20]
push ebx
push ebp
push esi
mov eax, dword [eax + 0xc]
push edi
test eax, eax
mov dword [esp + 0x14], ecx
je 0x49b6bf
mov eax, dword [eax + 4]
test eax, eax
je 0x49b6bf
mov dl, byte [eax + 0x330]
test dl, dl
je 0x49b6bf
call fcn.0049b6e0
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x24]
mov dword [esp + 0x6c], 0
push ecx
call sub.MFC42.DLL_CTime::GetTickCount
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
mov ebx, 1
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], bl
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CTime::GetLocalTm
mov esi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x28]
inc esi
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0x14]
push edi
add eax, 0x76c
push esi
push eax
lea edx, [esp + 0x28]
push 0x6066b4
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x30]
add esp, 0x14
push eax
push eax
lea eax, [esp + 0x28]
push str.select__from_av_policy_where_disable0_and__no_time_limit1_OR_end_date___s_23:59:59__ORDER_BY_rec_time_DESC
push eax
call sub.MFC42.DLL_CString::Format
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 0x14
mov dword [esp + 0x38], eax
test eax, eax
mov byte [esp + 0x6c], 2
je 0x49b1fc
push str.XGSP
mov ecx, eax
call fcn.004dcfd0
mov edi, eax
jmp 0x49b1fe
xor edi, edi
mov ecx, dword [esp + 0x20]
push 3
push 3
push ebx
push ecx
mov ecx, edi
mov byte [esp + 0x7c], bl
call fcn.004dd060
test eax, eax
jne 0x49b2f6
test edi, edi
je 0x49b226
mov edx, dword [edi]
push ebx
mov ecx, edi
call dword [edx]
mov eax, dword [0x63ac20]
test eax, eax
je 0x49b28f
mov cl, byte [eax + 0x40]
test cl, cl
je 0x49b28f
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push str._av_policy_
push 0x606790
push ecx
mov ecx, esp
mov dword [esp + 0x48], 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 + 0x3c], esp
push str._av_policy_
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x74], 3
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x606790
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x78], 4
mov ecx, esp
mov dword [esp + 0x48], esp
push str..dbs.
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x7c], 5
mov ecx, esp
mov dword [esp + 0x50], esp
push 0x606778
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x6357fc]
mov byte [esp + 0x7c], bl
call fcn.00458fc0
jmp 0x49b6a0
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], 6
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 7
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 8
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 9
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
mov byte [esp + 0x6c], 0xa
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
jne 0x49b558
push 0x1c
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x40], esi
test esi, esi
mov byte [esp + 0x6c], 0xb
je 0x49b388
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0xc]
mov byte [esp + 0x6c], 0xc
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x10]
mov byte [esp + 0x6c], 0xd
call sub.MFC42.DLL_CString::CString_1
jmp 0x49b38a
xor esi, esi
push esi
push str.group_id
mov ecx, edi
mov byte [esp + 0x74], 0xa
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea ecx, [esp + 0x10]
push ecx
push str.all_group
mov ecx, edi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x10]
cmp ebp, ebx
push eax
sete dl
push str.start_all
mov ecx, edi
mov byte [esi + 4], dl
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
cmp eax, ebx
push edx
sete cl
mov byte [esi + 5], cl
push str.arrival_all
mov ecx, edi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
lea ecx, [esp + 0x10]
sete al
push ecx
push str.no_time_limit
mov ecx, edi
mov byte [esi + 6], al
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov edx, dword [esp + 0x10]
lea eax, [esi + 8]
cmp edx, ebx
push eax
sete dl
push str.start_city
mov ecx, edi
mov byte [esi + 7], dl
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea ecx, [esi + 0xc]
push ecx
push str.arrival_city
mov ecx, edi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea edx, [esi + 0x10]
mov ecx, edi
push edx
push str.message
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov al, byte [esi + 7]
test al, al
jne 0x49b50c
lea eax, [esp + 0x48]
mov ecx, edi
push eax
push str.start_date
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_COleDateTime__
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_COleDateTime::GetAsSystemTime
mov ax, word [esp + 0x54]
mov ebp, 0x7d0
cmp ax, bp
jae 0x49b498
mov word [esp + 0x54], bp
jmp 0x49b4a5
cmp ax, 0x7f5
jbe 0x49b4a5
mov word [esp + 0x54], 0x7f5
lea edx, [esp + 0x54]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CTime::CTime
mov eax, dword [eax]
lea ecx, [esp + 0x48]
push ecx
push str.end_date
mov ecx, edi
mov dword [esi + 0x14], eax
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_COleDateTime__
lea edx, [esp + 0x54]
lea ecx, [esp + 0x48]
push edx
call sub.MFC42.DLL_COleDateTime::GetAsSystemTime
mov ax, word [esp + 0x54]
cmp ax, bp
jae 0x49b4ea
mov word [esp + 0x54], bp
jmp 0x49b4f7
cmp ax, 0x7f5
jbe 0x49b4f7
mov word [esp + 0x54], 0x7f5
lea eax, [esp + 0x54]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CTime::CTime
mov ecx, dword [eax]
mov dword [esi + 0x18], ecx
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
mov ecx, edx
mov ebp, dword [edx + 0xa8]
lea eax, [edx + 0xa0]
add ecx, 0xa0
lea eax, [ebp + 1]
push eax
call fcn.0054c510
mov edx, dword [esp + 0x14]
mov ecx, edi
lea eax, [edx + 0xa0]
mov eax, dword [edx + 0xa4]
mov dword [eax + ebp*4], esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
mov ecx, edi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
je 0x49b34b
test edi, edi
je 0x49b563
mov edx, dword [edi]
push ebx
mov ecx, edi
call dword [edx]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xa8]
test eax, eax
jle 0x49b65b
push eax
lea ecx, [esp + 0x1c]
push 0x61a7c4
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x63ac20]
add esp, 0xc
test eax, eax
je 0x49b5f3
mov cl, byte [eax + 0x40]
test cl, cl
je 0x49b5f3
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
lea ecx, [esp + 0x1c]
call fcn.0041a9a0
push eax
push 0x60e5d8
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [0x63ac20]
push str.runtime
push 0x60677c
mov eax, dword [edx + 0x44]
push eax
call fcn.004ec710
mov ecx, dword [0x63ac20]
add esp, 0x1c
add ecx, 0x248
mov edx, dword [ecx]
call dword [edx + 0x1c]
lea ecx, [esp + 0x18]
call fcn.0041a9a0
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x74], 0xe
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x60e5d8
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x78], 0xf
mov ecx, esp
mov dword [esp + 0x44], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x7c], 0x10
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x606778
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x6357fc]
mov byte [esp + 0x7c], 0xa
call fcn.00458fc0
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x6c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret