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

Disassembly:
push 0xffffffffffffffff
push 0x5af5c4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [0x63ac10]
push ebx
push ebp
push esi
mov eax, dword [eax + 0xc]
push edi
test eax, eax
mov dword [esp + 0x14], ecx
je 0x49b7df
mov eax, dword [eax + 4]
test eax, eax
je 0x49b7df
mov dl, byte [eax + 0x330]
test dl, dl
je 0x49b7df
call fcn.0049b800
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 0x49b31c
push str.XGSP
mov ecx, eax
call fcn.004dd020
mov edi, eax
jmp 0x49b31e
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.004dd0b0
test eax, eax
jne 0x49b416
test edi, edi
je 0x49b346
mov edx, dword [edi]
push ebx
mov ecx, edi
call dword [edx]
mov eax, dword [0x63ac10]
test eax, eax
je 0x49b3af
mov cl, byte [eax + 0x40]
test cl, cl
je 0x49b3af
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 [0x63ac10]
push str.runtime
push 0x60677c
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ec730
mov edx, dword [0x63ac10]
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 [0x6357ec]
mov byte [esp + 0x7c], bl
call fcn.004590c0
jmp 0x49b7c0
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 0x49b678
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 0x49b4a8
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 0x49b4aa
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 0x49b62c
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 0x49b5b8
mov word [esp + 0x54], bp
jmp 0x49b5c5
cmp ax, 0x7f5
jbe 0x49b5c5
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 0x49b60a
mov word [esp + 0x54], bp
jmp 0x49b617
cmp ax, 0x7f5
jbe 0x49b617
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.0049f7f0
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 0x49b46b
test edi, edi
je 0x49b683
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 0x49b77b
push eax
lea ecx, [esp + 0x1c]
push 0x61a7c8
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x63ac10]
add esp, 0xc
test eax, eax
je 0x49b713
mov cl, byte [eax + 0x40]
test cl, cl
je 0x49b713
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
lea ecx, [esp + 0x1c]
call fcn.0041a990
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 [0x63ac10]
push str.runtime
push 0x60677c
mov eax, dword [edx + 0x44]
push eax
call fcn.004ec730
mov ecx, dword [0x63ac10]
add esp, 0x1c
add ecx, 0x248
mov edx, dword [ecx]
call dword [edx + 0x1c]
lea ecx, [esp + 0x18]
call fcn.0041a990
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 [0x6357ec]
mov byte [esp + 0x7c], 0xa
call fcn.004590c0
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