Function at 0x4a7e00
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x5b0f51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, ecx
mov dword [esp + 0x18], edi
mov eax, dword [ebp + 0x244]
mov dword [esp + 0x48], edi
cmp eax, edi
jne 0x4a7e45
push 0x807d0
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp + 0x244], eax
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_1
mov esi, dword [esp + 0x50]
push edi
mov ecx, esi
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebx, dword [eax]
push edi
mov ecx, esi
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 4]
push edi
mov ecx, esi
mov dword [esp + 0x54], eax
call sub.MFC42.DLL_CTime::GetLocalTm
mov ecx, dword [eax + 8]
push edi
mov dword [esp + 0x30], ecx
mov ecx, esi
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [eax + 0xc]
push edi
mov ecx, esi
mov dword [esp + 0x28], edx
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0x10]
push 0
mov ecx, esi
inc edi
call sub.MFC42.DLL_CTime::GetLocalTm
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x2c]
mov eax, dword [eax + 0x14]
push ebx
push ecx
mov ecx, dword [esp + 0x2c]
push edx
add eax, 0x76c
push ecx
push edi
push eax
lea edx, [esp + 0x40]
push str.SELECT__FROM__q_rec__WHERE_rec_time____d__02d__02d__02d:_02d:_02d_ORDER_BY__account___id__ASC
push edx
call sub.MFC42.DLL_CString::Format
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 0x24
mov dword [esp + 0x50], eax
test eax, eax
mov byte [esp + 0x48], 2
je 0x4a7efc
push str.PNRR
mov ecx, eax
call fcn.004dcfd0
mov ebx, eax
jmp 0x4a7efe
xor ebx, ebx
mov eax, dword [esp + 0x28]
push 3
push 3
push 1
push eax
mov ecx, ebx
mov byte [esp + 0x58], 1
call fcn.004dd060
cmp eax, 1
jne 0x4a866d
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 3
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 4
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 5
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 6
call sub.MFC42.DLL_CString::CString_1
mov edi, 0x61c1e0
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x48], 7
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x20], 1
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 0x244]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
jne 0x4a81a0
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
push str.account
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x30]
mov ecx, ebp
push eax
call fcn.004a88d0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 7
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4a818a
lea edx, [esp + 0x50]
mov ecx, ebx
push edx
push str.q_type
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x10]
mov eax, ecx
inc ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x50]
push ecx
push eax
push str._r_n_r_n
push edx
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp + 0x244]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x50]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push str.office_code
mov ecx, ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x10]
push ecx
push str.__OFFICE__s_
push edx
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp + 0x244]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4a80d6
push 0x60ad98
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_3
or dword [esp + 0x18], 1
mov eax, dword [eax]
mov byte [esp + 0x48], 9
push eax
lea eax, [esp + 0x14]
push 0x61c1a8
push eax
call sub.MFC42.DLL_CString::Format
mov al, byte [esp + 0x24]
add esp, 0xc
test al, 1
mov dword [esp + 0x48], 7
je 0x4a810c
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x30]
and al, 0xfe
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp + 0x244]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x50]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push str.q_data
mov ecx, ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
push 0x60f6a8
push 0x60f6ac
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CString::Replace
mov edi, dword [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp + 0x244]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
mov ecx, ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
je 0x4a7fa1
mov edi, dword [ebp + 0x244]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x29
jbe 0x4a81e1
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x4a81c7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x4a81c9
xor eax, eax
mov ecx, dword [ebp + 0x244]
mov edx, dword [eax + 0x20]
push ecx
push 0xa
push 0x485
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, 0x61c1e0
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x20], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 0x244]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveFirst_void_
mov ecx, ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
jne 0x4a8555
lea ecx, [esp + 0x1c]
push ecx
push str.account
mov ecx, ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
cmp dword [esp + 0x20], 1
jne 0x4a824b
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x24]
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4a827c
mov edi, dword [ebp + 0x244]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x80000
jb 0x4a8371
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x34]
mov ecx, ebp
push eax
call fcn.004a88d0
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push ecx
push 0x61c174
push edx
mov byte [esp + 0x54], 0xa
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 7
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x34]
push 0x28
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 0xb
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], 7
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x14]
mov edi, dword [ebp + 0x244]
mov ecx, dword [esi - 8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x4a831b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x4a831d
xor eax, eax
mov ecx, dword [ebp + 0x244]
mov edx, dword [eax + 0x20]
push ecx
push 0xa
push 0x485
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, 0x61c1e0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 0x244]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::operator_1
mov dword [esp + 0x20], 1
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x30]
mov ecx, ebp
push eax
call fcn.004a88d0
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x48], 0xc
mov eax, dword [ecx - 8]
test eax, eax
je 0x4a8531
lea edx, [esp + 0x50]
mov ecx, ebx
push edx
push str.q_type
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x10]
mov eax, ecx
inc ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x50]
push ecx
push eax
push str._r_n_r_n
push edx
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp + 0x244]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x50]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push str.office_code
mov ecx, ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x10]
push ecx
push str.__OFFICE__s_
push edx
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp + 0x244]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4a847d
push 0x60ad98
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_3
or dword [esp + 0x18], 2
mov eax, dword [eax]
mov byte [esp + 0x48], 0xd
push eax
lea eax, [esp + 0x14]
push 0x61c1a8
push eax
call sub.MFC42.DLL_CString::Format
mov al, byte [esp + 0x24]
add esp, 0xc
test al, 2
mov dword [esp + 0x48], 0xc
je 0x4a84b3
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x38]
and al, 0xfd
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp + 0x244]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x50]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push str.q_data
mov ecx, ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
push 0x60f6a8
push 0x60f6ac
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CString::Replace
mov edi, dword [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp + 0x244]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 7
call sub.MFC42.DLL_CString::CString
mov ecx, ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
je 0x4a8225
mov edi, dword [ebp + 0x244]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x29
jbe 0x4a8627
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebp
call fcn.004a88d0
mov edx, dword [eax]
lea eax, [esp + 0x14]
push edx
push 0x61c174
push eax
mov byte [esp + 0x54], 0xe
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x38]
mov byte [esp + 0x48], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
push 0x28
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 0xf
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x38]
mov byte [esp + 0x48], 7
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x14]
mov edi, dword [ebp + 0x244]
mov ecx, dword [esi - 8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x4a860d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x4a860f
xor eax, eax
mov ecx, dword [ebp + 0x244]
mov edx, dword [eax + 0x20]
push ecx
push 0xa
push 0x485
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CString::CString
test ebx, ebx
je 0x4a8679
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x54]
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 8