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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a974b
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 0x48d607
mov eax, dword [esi + 0x11d0]
test eax, eax
je 0x48d607
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, edi
call fcn.0048cfd0
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 0x48d12c
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 [0x635400]
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 0x48d12c
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 0x48d17d
push str.PNRR
mov ecx, eax
call fcn.004dc060
mov edi, eax
mov dword [esp + 0x38], edi
jmp 0x48d183
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.004dc0f0
cmp eax, ebp
mov dword [esp + 0x18], ebp
je 0x48d41e
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 0x48d244
lea ecx, [esp + 0x18]
push ecx
push 0x601170
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.0048d800
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 0x48d40b
mov eax, dword [esi + 0x7c]
mov edx, dword [esi]
inc eax
mov ecx, esi
push eax
push 0x614054
call dword [edx + 0x90]
mov eax, dword [0x635400]
cmp eax, ebp
je 0x48d2c2
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48d2c2
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x78]
push 0x614054
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 [0x635400]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb7d0
mov edx, dword [0x635400]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c560
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x48d310
push 0x614054
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 [0x62fc58]
mov byte [esp + 0x3c], 5
call fcn.00401140
mov eax, dword [0x62fc60]
cmp eax, ebp
je 0x48d40b
cmp dword [eax + 0x50], ebp
jle 0x48d40b
mov bl, 8
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x48d3fb
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48d3fb
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48d3f6
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48d3f6
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 0x48d3e8
mov al, byte [edi + 0x80]
test al, al
jne 0x48d3e8
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 0x48d3e8
push 0x614054
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.004024b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fc60]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x48d328
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString
jmp 0x48d5e5
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi]
inc ecx
push ecx
push 0x613e10
mov ecx, esi
call dword [eax + 0x90]
mov eax, dword [0x635400]
cmp eax, ebp
je 0x48d49c
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48d49c
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x78]
push 0x613e10
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 [0x635400]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb7d0
mov edx, dword [0x635400]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c560
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x48d4ea
push 0x613e10
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 [0x62fc58]
mov byte [esp + 0x3c], 3
call fcn.00401140
mov eax, dword [0x62fc60]
cmp eax, ebp
je 0x48d5e5
cmp dword [eax + 0x50], ebp
jle 0x48d5e5
mov bl, 0xb
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x48d5d5
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48d5d5
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48d5d0
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48d5d0
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 0x48d5c2
mov al, byte [edi + 0x80]
test al, al
jne 0x48d5c2
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 0x48d5c2
push 0x613e10
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.004024b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fc60]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x48d502
mov edi, dword [esp + 0x38]
test edi, edi
je 0x48d5f1
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 0x48d7dd
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 [0x635400]
test eax, eax
je 0x48d686
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48d686
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 [0x635400]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb7d0
mov edx, dword [0x635400]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c560
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x48d6da
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 [0x62fc58]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00401140
mov eax, dword [0x62fc60]
test eax, eax
je 0x48d7dd
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x48d7dd
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x48d7d1
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48d7d1
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48d7cc
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48d7cc
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 0x48d7bb
mov al, byte [edi + 0x80]
test al, al
jne 0x48d7bb
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 0x48d7bb
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.004024b0
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fc60]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x48d6fa
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