Function at 0x49b750
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x5af814
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x63ac20]
push ebx
push ebp
push esi
mov eax, dword [eax + 0xc]
push edi
mov edi, ecx
test eax, eax
mov dword [esp + 0x10], edi
je 0x49baf5
mov eax, dword [eax + 4]
test eax, eax
je 0x49baf5
mov cl, byte [eax + 0x23f]
test cl, cl
je 0x49baf5
mov ecx, edi
call fcn.0049bb10
push str.SELECT_office_code_q_si_q_type_q_time_q_freq_FROM__q_config__WHERE_q_disableFalse_ORDER_BY_q_level_DESC
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
push 0x40
mov dword [esp + 0x34], 0
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x30], 1
je 0x49b7df
push str.XGSP
mov ecx, eax
call fcn.004dcfd0
mov esi, eax
jmp 0x49b7e1
xor esi, esi
mov ecx, dword [esp + 0x14]
push 3
push 3
push 1
push ecx
mov ecx, esi
mov byte [esp + 0x40], 0
call fcn.004dd060
test eax, eax
jne 0x49b8dd
test esi, esi
je 0x49b80c
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov eax, dword [0x63ac20]
test eax, eax
je 0x49b875
mov cl, byte [eax + 0x40]
test cl, cl
je 0x49b875
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push str._q_config_
push 0x606790
push ecx
mov ecx, esp
mov dword [esp + 0x28], 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 + 0x1c], esp
push str._q_config_
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x38], 2
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x606790
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x3c], 3
mov ecx, esp
mov dword [esp + 0x2c], esp
push str..dbs.
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x40], 4
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x606778
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x6357fc]
mov byte [esp + 0x40], 0
call fcn.00458fc0
jmp 0x49bae4
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
jne 0x49b9bf
lea ebx, [edi + 0xc8]
push 0x14
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
mov byte [esp + 0x30], 5
je 0x49b93b
mov ecx, edi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [edi + 4]
mov byte [esp + 0x30], 6
call sub.MFC42.DLL_CString::CString_1
lea ecx, [edi + 8]
mov byte [esp + 0x30], 7
call sub.MFC42.DLL_CString::CString_1
lea ecx, [edi + 0xc]
mov byte [esp + 0x30], 8
call sub.MFC42.DLL_CString::CString_1
jmp 0x49b93d
xor edi, edi
push edi
push str.office_code
mov ecx, esi
mov byte [esp + 0x38], 0
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea ecx, [edi + 4]
push ecx
push str.q_si
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea edx, [edi + 8]
mov ecx, esi
push edx
push str.q_type
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea eax, [edi + 0xc]
mov ecx, esi
push eax
push str.q_time
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea ecx, [edi + 0x10]
push ecx
push str.q_freq
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov ebp, dword [ebx + 8]
push 0xffffffffffffffff
mov ecx, ebx
lea edx, [ebp + 1]
push edx
call fcn.0054c510
mov eax, dword [ebx + 4]
mov ecx, esi
mov dword [eax + ebp*4], edi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
je 0x49b8f2
mov edi, dword [esp + 0x10]
test esi, esi
je 0x49b9cb
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov eax, dword [edi + 0xd0]
test eax, eax
jle 0x49bae4
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [edi + 0xd0]
mov bl, 9
push eax
lea eax, [esp + 0x14]
push 0x61a868
push eax
mov byte [esp + 0x3c], bl
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x63ac20]
add esp, 0xc
test eax, eax
je 0x49ba6f
mov cl, byte [eax + 0x40]
test cl, cl
je 0x49ba6f
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
lea ecx, [esp + 0x14]
call fcn.0041a9a0
push eax
push 0x60e5d8
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63ac20]
push str.runtime
push 0x60677c
mov edx, dword [ecx + 0x44]
push edx
call fcn.004ec710
mov eax, dword [0x63ac20]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
lea ecx, [esp + 0x10]
call fcn.0041a9a0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x38], 0xa
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x60e5d8
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x3c], 0xb
mov ecx, esp
mov dword [esp + 0x28], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x40], 0xc
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x606778
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x6357fc]
mov byte [esp + 0x40], bl
call fcn.00458fc0
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret