Function at 0x48e020
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b28fb
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
mov eax, dword [esi + 0x11c0]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48e62d
mov eax, dword [esi + 0x11d4]
test eax, eax
je 0x48e62d
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, edi
call fcn.0048dff0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov al, byte [edi + 0x20]
mov dword [esp + 0x30], 3
test al, al
jne 0x48e14c
lea edx, [esp + 0x38]
push edx
call sub.MFC42.DLL_CTime::GetTickCount
push 0
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebp, dword [eax]
push 0
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebx, dword [eax + 4]
push 0
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 8]
push 0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_CTime::GetLocalTm
mov ecx, dword [eax + 0xc]
push 0
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x3c]
inc edi
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [esi + 0x11d4]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
push edx
mov edx, dword [esp + 0x18]
push ebp
push ebx
push ecx
add eax, 0x76c
push edx
push edi
push eax
mov eax, dword [esi + 0x7c]
lea edx, [esp + 0x2c]
mov ecx, dword [eax + 0x3c]
push ecx
push str.UPDATE__q_rec__SET_q_cflagTrue__q_view_account_s__q_view_time_04d__02d__02d__02d:_02d:_02d_WHERE_id_d
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x38]
mov edx, dword [0x641030]
add esp, 0x28
lea ecx, [esp + 0x1c]
push eax
push str.PNRR
push ecx
mov ecx, dword [edx + 8]
call sym.ETermProxy.exe_public:_class__com_ptr_t_class__com_IIID_struct_ADODB::_Recordset__struct___s_GUID__GUID_00000556_0000_0010_8000_00aa006d2ea4_____thiscall_CDBConnCollect::Execute_char___char_const__
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x48e14c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esi + 0x11d4]
mov eax, dword [esi + 0x11c4]
mov ecx, dword [esi + 0x11c0]
push edx
push eax
push ecx
lea edx, [esp + 0x1c]
push str.SELECT_TOP_1_id__q_data_FROM__q_rec__WHERE_q_type_s__s_AND_id__d_ORDER_BY_ID_DESC
push edx
call sub.MFC42.DLL_CString::Format
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 0x18
mov dword [esp + 0x38], eax
xor ebp, ebp
mov byte [esp + 0x30], 4
cmp eax, ebp
je 0x48e19d
push str.PNRR
mov ecx, eax
call fcn.004ddd00
mov edi, eax
mov dword [esp + 0x38], edi
jmp 0x48e1a3
mov dword [esp + 0x38], ebp
mov edi, ebp
mov eax, dword [esp + 0x10]
push 3
push 3
push 1
push eax
mov ecx, edi
mov byte [esp + 0x40], 3
call fcn.004ddd90
cmp eax, ebp
mov dword [esp + 0x18], ebp
je 0x48e441
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
mov byte [esp + 0x30], 5
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
jle 0x48e264
lea ecx, [esp + 0x18]
push ecx
push 0x60c170
mov ecx, edi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str.q_data
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov eax, dword [esp + 0x18]
push ecx
mov dword [esi + 0x11d4], eax
mov eax, dword [esi + 0x11d8]
lea edx, [esp + 0x18]
inc eax
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov dword [esi + 0x11d8], eax
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x3c]
push esi
push eax
call fcn.0048e820
add esp, 0xc
mov eax, dword [esp + 0x38]
mov edx, dword [esi]
push 1
push eax
mov ecx, esi
mov byte [esp + 0x38], 6
call dword [edx + 0x94]
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 5
call sub.MFC42.DLL_CString::CString
jmp 0x48e42e
mov eax, dword [esi + 0x80]
mov edx, dword [esi]
inc eax
mov ecx, esi
push eax
push 0x61ef64
call dword [edx + 0x94]
mov eax, dword [0x641030]
cmp eax, ebp
je 0x48e2e5
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48e2e5
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x7c]
push 0x61ef64
push str._RX_
push ebp
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x641030]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ed3c0
mov edx, dword [0x641030]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c9d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x48e333
push 0x61ef64
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x7c]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x40], 7
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x63b908]
mov byte [esp + 0x3c], 5
call fcn.00401140
mov eax, dword [0x63b910]
cmp eax, ebp
je 0x48e42e
cmp dword [eax + 0x50], ebp
jle 0x48e42e
mov bl, 8
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x48e41e
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48e41e
call fcn.0044c9d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48e419
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48e419
mov ecx, dword [esi + 0x7c]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x1c]
mov byte [esp + 0x30], bl
mov eax, dword [edx - 8]
test eax, eax
je 0x48e40b
mov al, byte [edi + 0x80]
test al, al
jne 0x48e40b
mov eax, dword [esi + 0x7c]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x48e40b
push 0x61ef64
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x7c]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x40], 9
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x3c], bl
call fcn.00402460
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x63b910]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x48e34b
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString
jmp 0x48e60b
mov ecx, dword [esi + 0x80]
mov eax, dword [esi]
inc ecx
push ecx
push 0x61ed20
mov ecx, esi
call dword [eax + 0x94]
mov eax, dword [0x641030]
cmp eax, ebp
je 0x48e4c2
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48e4c2
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x7c]
push 0x61ed20
push str._RX_
push ebp
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x641030]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ed3c0
mov edx, dword [0x641030]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c9d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x48e510
push 0x61ed20
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x7c]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x40], 0xa
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x63b908]
mov byte [esp + 0x3c], 3
call fcn.00401140
mov eax, dword [0x63b910]
cmp eax, ebp
je 0x48e60b
cmp dword [eax + 0x50], ebp
jle 0x48e60b
mov bl, 0xb
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x48e5fb
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48e5fb
call fcn.0044c9d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48e5f6
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48e5f6
mov ecx, dword [esi + 0x7c]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x1c]
mov byte [esp + 0x30], bl
mov eax, dword [edx - 8]
test eax, eax
je 0x48e5e8
mov al, byte [edi + 0x80]
test al, al
jne 0x48e5e8
mov eax, dword [esi + 0x7c]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x48e5e8
push 0x61ed20
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x7c]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x40], 0xc
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x3c], bl
call fcn.00402460
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x63b910]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x48e528
mov edi, dword [esp + 0x38]
test edi, edi
je 0x48e617
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x48e806
mov eax, dword [esi + 0x80]
mov edx, dword [esi]
inc eax
mov ecx, esi
push eax
push str.INTERNAL_QTYPE
call dword [edx + 0x94]
mov eax, dword [0x641030]
test eax, eax
je 0x48e6af
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48e6af
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x7c]
push str.INTERNAL_QTYPE
push str._RX_
push 0
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x641030]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ed3c0
mov edx, dword [0x641030]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c9d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x48e703
push str.INTERNAL_QTYPE
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x7c]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov dword [esp + 0x40], 0
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x63b908]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00401140
mov eax, dword [0x63b910]
test eax, eax
je 0x48e806
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x48e806
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x48e7fa
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48e7fa
call fcn.0044c9d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48e7f5
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48e7f5
mov ecx, dword [esi + 0x7c]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x38]
mov dword [esp + 0x30], 1
mov eax, dword [edx - 8]
test eax, eax
je 0x48e7e4
mov al, byte [edi + 0x80]
test al, al
jne 0x48e7e4
mov eax, dword [esi + 0x7c]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x48e7e4
push str.INTERNAL_QTYPE
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x7c]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x40], 2
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x3c], 1
call fcn.00402460
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x63b910]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x48e723
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 4