Function at 0x48dc90
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5adedb
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 0x48e29d
mov eax, dword [esi + 0x11d4]
test eax, eax
je 0x48e29d
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, edi
call fcn.0048dc60
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 0x48ddbc
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 [0x63ac20]
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 0x48ddbc
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 0x48de0d
push str.PNRR
mov ecx, eax
call fcn.004dcfd0
mov edi, eax
mov dword [esp + 0x38], edi
jmp 0x48de13
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.004dd060
cmp eax, ebp
mov dword [esp + 0x18], ebp
je 0x48e0b1
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 0x48ded4
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.0048e490
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 0x48e09e
mov eax, dword [esi + 0x80]
mov edx, dword [esi]
inc eax
mov ecx, esi
push eax
push 0x618fc4
call dword [edx + 0x90]
mov eax, dword [0x63ac20]
cmp eax, ebp
je 0x48df55
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48df55
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x7c]
push 0x618fc4
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 [0x63ac20]
push str.command
push str.esms
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]
call fcn.0044c870
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x48dfa3
push 0x618fc4
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 [0x635478]
mov byte [esp + 0x3c], 5
call fcn.00401160
mov eax, dword [0x635480]
cmp eax, ebp
je 0x48e09e
cmp dword [eax + 0x50], ebp
jle 0x48e09e
mov bl, 8
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x48e08e
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48e08e
call fcn.0044c870
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48e089
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48e089
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 0x48e07b
mov al, byte [edi + 0x80]
test al, al
jne 0x48e07b
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 0x48e07b
push 0x618fc4
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.004024f0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x635480]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x48dfbb
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString
jmp 0x48e27b
mov ecx, dword [esi + 0x80]
mov eax, dword [esi]
inc ecx
push ecx
push 0x618d80
mov ecx, esi
call dword [eax + 0x90]
mov eax, dword [0x63ac20]
cmp eax, ebp
je 0x48e132
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48e132
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x7c]
push 0x618d80
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 [0x63ac20]
push str.command
push str.esms
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]
call fcn.0044c870
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x48e180
push 0x618d80
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 [0x635478]
mov byte [esp + 0x3c], 3
call fcn.00401160
mov eax, dword [0x635480]
cmp eax, ebp
je 0x48e27b
cmp dword [eax + 0x50], ebp
jle 0x48e27b
mov bl, 0xb
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x48e26b
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48e26b
call fcn.0044c870
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48e266
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48e266
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 0x48e258
mov al, byte [edi + 0x80]
test al, al
jne 0x48e258
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 0x48e258
push 0x618d80
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.004024f0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x635480]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x48e198
mov edi, dword [esp + 0x38]
test edi, edi
je 0x48e287
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 0x48e476
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 [0x63ac20]
test eax, eax
je 0x48e31f
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48e31f
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 [0x63ac20]
push str.command
push str.esms
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]
call fcn.0044c870
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x48e373
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 [0x635478]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00401160
mov eax, dword [0x635480]
test eax, eax
je 0x48e476
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x48e476
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x48e46a
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48e46a
call fcn.0044c870
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48e465
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48e465
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 0x48e454
mov al, byte [edi + 0x80]
test al, al
jne 0x48e454
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 0x48e454
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.004024f0
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x635480]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x48e393
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