Function at 0x48cce0
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ab3bb
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 + 0x11bc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48d2e7
mov eax, dword [esi + 0x11d0]
test eax, eax
je 0x48d2e7
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, edi
call fcn.0048ccb0
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 0x48ce0c
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 + 0x11d0]
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 + 0x78]
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 [0x637770]
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 0x48ce0c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esi + 0x11d0]
mov eax, dword [esi + 0x11c0]
mov ecx, dword [esi + 0x11bc]
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 0x48ce5d
push str.PNRR
mov ecx, eax
call fcn.004dbdb0
mov edi, eax
mov dword [esp + 0x38], edi
jmp 0x48ce63
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.004dbe40
cmp eax, ebp
mov dword [esp + 0x18], ebp
je 0x48d0fe
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 0x48cf24
lea ecx, [esp + 0x18]
push ecx
push 0x603170
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 + 0x11d0], eax
mov eax, dword [esi + 0x11d4]
lea edx, [esp + 0x18]
inc eax
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov dword [esi + 0x11d4], eax
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x3c]
push esi
push eax
call fcn.0048d4e0
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 0x48d0eb
mov eax, dword [esi + 0x7c]
mov edx, dword [esi]
inc eax
mov ecx, esi
push eax
push 0x615db4
call dword [edx + 0x90]
mov eax, dword [0x637770]
cmp eax, ebp
je 0x48cfa2
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48cfa2
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x78]
push 0x615db4
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 [0x637770]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb4c0
mov edx, dword [0x637770]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c540
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x48cff0
push 0x615db4
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
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 [0x631fc8]
mov byte [esp + 0x3c], 5
call fcn.00401160
mov eax, dword [0x631fd0]
cmp eax, ebp
je 0x48d0eb
cmp dword [eax + 0x50], ebp
jle 0x48d0eb
mov bl, 8
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x48d0db
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48d0db
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48d0d6
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48d0d6
mov ecx, dword [esi + 0x78]
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 0x48d0c8
mov al, byte [edi + 0x80]
test al, al
jne 0x48d0c8
mov eax, dword [esi + 0x78]
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 0x48d0c8
push 0x615db4
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
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.00402500
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x48d008
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString
jmp 0x48d2c5
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi]
inc ecx
push ecx
push 0x615b70
mov ecx, esi
call dword [eax + 0x90]
mov eax, dword [0x637770]
cmp eax, ebp
je 0x48d17c
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48d17c
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x78]
push 0x615b70
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 [0x637770]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb4c0
mov edx, dword [0x637770]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c540
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x48d1ca
push 0x615b70
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
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 [0x631fc8]
mov byte [esp + 0x3c], 3
call fcn.00401160
mov eax, dword [0x631fd0]
cmp eax, ebp
je 0x48d2c5
cmp dword [eax + 0x50], ebp
jle 0x48d2c5
mov bl, 0xb
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x48d2b5
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48d2b5
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48d2b0
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48d2b0
mov ecx, dword [esi + 0x78]
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 0x48d2a2
mov al, byte [edi + 0x80]
test al, al
jne 0x48d2a2
mov eax, dword [esi + 0x78]
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 0x48d2a2
push 0x615b70
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
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.00402500
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x48d1e2
mov edi, dword [esp + 0x38]
test edi, edi
je 0x48d2d1
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 0x48d4bd
mov eax, dword [esi + 0x7c]
mov edx, dword [esi]
inc eax
mov ecx, esi
push eax
push str.INTERNAL_QTYPE
call dword [edx + 0x90]
mov eax, dword [0x637770]
test eax, eax
je 0x48d366
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48d366
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x78]
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 [0x637770]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb4c0
mov edx, dword [0x637770]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c540
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x48d3ba
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 + 0x78]
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 [0x631fc8]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00401160
mov eax, dword [0x631fd0]
test eax, eax
je 0x48d4bd
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x48d4bd
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x48d4b1
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48d4b1
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48d4ac
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48d4ac
mov ecx, dword [esi + 0x78]
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 0x48d49b
mov al, byte [edi + 0x80]
test al, al
jne 0x48d49b
mov eax, dword [esi + 0x78]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x48d49b
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 + 0x78]
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.00402500
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x48d3da
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