Function at 0x48ddb0
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5add0b
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 0x48e3bd
mov eax, dword [esi + 0x11d4]
test eax, eax
je 0x48e3bd
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, edi
call fcn.0048dd80
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 0x48dedc
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 [0x63ac10]
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 0x48dedc
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 0x48df2d
push str.PNRR
mov ecx, eax
call fcn.004dd020
mov edi, eax
mov dword [esp + 0x38], edi
jmp 0x48df33
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.004dd0b0
cmp eax, ebp
mov dword [esp + 0x18], ebp
je 0x48e1d1
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 0x48dff4
lea ecx, [esp + 0x18]
push ecx
push 0x606170
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.0048e5b0
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 + 0x90]
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 5
call sub.MFC42.DLL_CString::CString
jmp 0x48e1be
mov eax, dword [esi + 0x80]
mov edx, dword [esi]
inc eax
mov ecx, esi
push eax
push 0x618fc8
call dword [edx + 0x90]
mov eax, dword [0x63ac10]
cmp eax, ebp
je 0x48e075
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48e075
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x7c]
push 0x618fc8
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 [0x63ac10]
push str.command
push str.esms
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]
call fcn.0044c8d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x48e0c3
push 0x618fc8
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 [0x635468]
mov byte [esp + 0x3c], 5
call fcn.00401150
mov eax, dword [0x635470]
cmp eax, ebp
je 0x48e1be
cmp dword [eax + 0x50], ebp
jle 0x48e1be
mov bl, 8
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x48e1ae
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48e1ae
call fcn.0044c8d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48e1a9
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48e1a9
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 0x48e19b
mov al, byte [edi + 0x80]
test al, al
jne 0x48e19b
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 0x48e19b
push 0x618fc8
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.004024d0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x635470]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x48e0db
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString
jmp 0x48e39b
mov ecx, dword [esi + 0x80]
mov eax, dword [esi]
inc ecx
push ecx
push 0x618d84
mov ecx, esi
call dword [eax + 0x90]
mov eax, dword [0x63ac10]
cmp eax, ebp
je 0x48e252
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48e252
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x7c]
push 0x618d84
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 [0x63ac10]
push str.command
push str.esms
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]
call fcn.0044c8d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x48e2a0
push 0x618d84
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 [0x635468]
mov byte [esp + 0x3c], 3
call fcn.00401150
mov eax, dword [0x635470]
cmp eax, ebp
je 0x48e39b
cmp dword [eax + 0x50], ebp
jle 0x48e39b
mov bl, 0xb
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x48e38b
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48e38b
call fcn.0044c8d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48e386
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48e386
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 0x48e378
mov al, byte [edi + 0x80]
test al, al
jne 0x48e378
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 0x48e378
push 0x618d84
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.004024d0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x635470]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x48e2b8
mov edi, dword [esp + 0x38]
test edi, edi
je 0x48e3a7
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 0x48e596
mov eax, dword [esi + 0x80]
mov edx, dword [esi]
inc eax
mov ecx, esi
push eax
push str.INTERNAL_QTYPE
call dword [edx + 0x90]
mov eax, dword [0x63ac10]
test eax, eax
je 0x48e43f
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48e43f
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 [0x63ac10]
push str.command
push str.esms
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]
call fcn.0044c8d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x48e493
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 [0x635468]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00401150
mov eax, dword [0x635470]
test eax, eax
je 0x48e596
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x48e596
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x48e58a
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48e58a
call fcn.0044c8d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48e585
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48e585
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 0x48e574
mov al, byte [edi + 0x80]
test al, al
jne 0x48e574
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 0x48e574
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.004024d0
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x635470]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x48e4b3
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