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

Disassembly:
push 0xffffffffffffffff
push 0x5ab343
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push ebp
push esi
mov edx, ecx
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
mov esi, dword [edx + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x240]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x30]
push eax
push ecx
mov ecx, edx
call fcn.0048c0a0
test al, al
jne 0x48c4eb
mov eax, dword [esi + 0x7c]
mov edx, dword [esi]
inc eax
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x90]
mov eax, dword [0x637770]
xor ebp, ebp
cmp eax, ebp
je 0x48c385
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48c385
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x78]
lea edx, [esp + 0x30]
push edx
push str._RX_
push ebp
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x637770]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb4c0
mov eax, dword [0x637770]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
call fcn.0044c540
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x48c3db
lea ecx, [esp + 0x30]
push ecx
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 + 0x20], esp
push edx
mov dword [esp + 0x248], ebp
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fc8]
mov dword [esp + 0x244], 0xffffffff
call fcn.00401160
mov eax, dword [0x631fd0]
cmp eax, ebp
je 0x48cc39
cmp dword [eax + 0x50], ebp
jle 0x48cc39
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x48c4da
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48c4da
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48c4d5
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48c4d5
mov ecx, dword [esi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x14]
mov dword [esp + 0x238], 1
mov eax, dword [edx - 8]
test eax, eax
je 0x48c4c1
mov al, byte [edi + 0x80]
test al, al
jne 0x48c4c1
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 0x48c4c1
lea ecx, [esp + 0x30]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], 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 + 0x28], esp
push edx
mov byte [esp + 0x248], 2
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x244], 1
call fcn.00402500
lea ecx, [esp + 0x14]
mov dword [esp + 0x238], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x48c3f7
jmp 0x48cc39
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x11c0]
mov ecx, dword [esi + 0x11bc]
push eax
push ecx
lea edx, [esp + 0x34]
push str.SELECT_COUNT_1__as_q_count_FROM__q_rec__WHERE_q_type_s__s
push edx
mov dword [esp + 0x248], 3
call sub.MFC42.DLL_CString::Format
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 0x14
mov dword [esp + 0x10], eax
xor ebp, ebp
mov byte [esp + 0x238], 4
cmp eax, ebp
je 0x48c54c
push str.PNRR
mov ecx, eax
call fcn.004dbdb0
mov edi, eax
mov dword [esp + 0x28], edi
jmp 0x48c552
mov dword [esp + 0x28], ebp
mov edi, ebp
mov eax, dword [esp + 0x2c]
push 3
push 3
push 1
push eax
mov ecx, edi
mov byte [esp + 0x248], 3
call fcn.004dbe40
test eax, eax
je 0x48c5aa
mov ecx, edi
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
jle 0x48c5aa
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
push ecx
push str.q_count
mov ecx, edi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov eax, dword [esp + 0x14]
cmp eax, ebp
jl 0x48c5aa
cmp eax, 0x270f
jle 0x48c5a4
mov eax, 0x270f
mov dword [esi + 0x11cc], eax
mov edx, dword [esi + 0x11c0]
mov eax, dword [esi + 0x11bc]
push edx
push eax
lea ecx, [esp + 0x34]
push str.SELECT_TOP_1_id__q_data_FROM__q_rec__WHERE_q_type_s__s_ORDER_BY_ID_DESC
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x3c]
add esp, 0x10
mov ecx, edi
push 3
push 3
push 1
push edx
call fcn.004dbe40
cmp eax, ebp
je 0x48ca40
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
mov byte [esp + 0x238], 5
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
jle 0x48c851
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
push 0x603170
mov dword [esp + 0x24], ebp
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea ecx, [esp + 0x14]
push ecx
push str.q_data
mov ecx, edi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov edx, dword [esp + 0x1c]
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [esi + 0x11d0], edx
mov dword [esi + 0x11d4], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
push esi
push ecx
call fcn.0048d4e0
add esp, 0xc
mov eax, dword [esp + 0x24]
mov edx, dword [esi]
push 1
push eax
mov ecx, esi
mov byte [esp + 0x240], 6
call dword [edx + 0x90]
mov eax, dword [0x637770]
cmp eax, ebp
je 0x48c6e0
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48c6e0
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x78]
push ecx
push str._RX_
push ebp
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x20], 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 0x48c734
mov edx, dword [esp + 0x24]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0x78]
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x248], 7
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fc8]
mov byte [esp + 0x244], 6
call fcn.00401160
mov eax, dword [0x631fd0]
cmp eax, ebp
je 0x48c83b
cmp dword [eax + 0x50], ebp
jle 0x48c83b
mov bl, 8
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x48c82b
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48c82b
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48c826
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48c826
mov ecx, dword [esi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x10]
mov byte [esp + 0x238], bl
mov eax, dword [edx - 8]
test eax, eax
je 0x48c815
mov al, byte [edi + 0x80]
test al, al
jne 0x48c815
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 0x48c815
mov ecx, dword [esp + 0x24]
push ecx
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 + 0x24], esp
push edx
mov byte [esp + 0x248], 9
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x244], bl
call fcn.00402500
lea ecx, [esp + 0x10]
mov byte [esp + 0x238], 6
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x48c74c
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x24]
mov byte [esp + 0x238], 5
call sub.MFC42.DLL_CString::CString
jmp 0x48ca2a
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi]
inc ecx
push ecx
push str.INTERNAL_Q_EMPTY
mov ecx, esi
call dword [eax + 0x90]
mov eax, dword [0x637770]
cmp eax, ebp
je 0x48c8cf
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48c8cf
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x78]
push str.INTERNAL_Q_EMPTY
push str._RX_
push ebp
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x28], 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 0x48c923
push str.INTERNAL_Q_EMPTY
push ecx
mov ecx, esp
mov dword [esp + 0x20], 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 + 0x248], 0xa
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fc8]
mov byte [esp + 0x244], 5
call fcn.00401160
mov eax, dword [0x631fd0]
cmp eax, ebp
je 0x48ca2a
cmp dword [eax + 0x50], ebp
jle 0x48ca2a
mov bl, 0xb
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x48ca1a
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48ca1a
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48ca15
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48ca15
mov ecx, dword [esi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x10]
mov byte [esp + 0x238], bl
mov eax, dword [edx - 8]
test eax, eax
je 0x48ca04
mov al, byte [edi + 0x80]
test al, al
jne 0x48ca04
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 0x48ca04
push str.INTERNAL_Q_EMPTY
push ecx
mov ecx, esp
mov dword [esp + 0x20], 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 + 0x248], 0xc
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x244], bl
call fcn.00402500
lea ecx, [esp + 0x10]
mov byte [esp + 0x238], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x48c93b
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x14]
mov byte [esp + 0x238], 3
call sub.MFC42.DLL_CString::CString
jmp 0x48cc19
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 0x48cabe
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48cabe
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 + 0x28], 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 0x48cb12
push 0x615b70
push ecx
mov ecx, esp
mov dword [esp + 0x20], 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 + 0x248], 0xd
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fc8]
mov byte [esp + 0x244], 3
call fcn.00401160
mov eax, dword [0x631fd0]
cmp eax, ebp
je 0x48cc19
cmp dword [eax + 0x50], ebp
jle 0x48cc19
mov bl, 0xe
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x48cc09
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48cc09
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48cc04
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48cc04
mov ecx, dword [esi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x10]
mov byte [esp + 0x238], bl
mov eax, dword [edx - 8]
test eax, eax
je 0x48cbf3
mov al, byte [edi + 0x80]
test al, al
jne 0x48cbf3
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 0x48cbf3
push 0x615b70
push ecx
mov ecx, esp
mov dword [esp + 0x20], 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 + 0x248], 0xf
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x244], bl
call fcn.00402500
lea ecx, [esp + 0x10]
mov byte [esp + 0x238], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x48cb2a
mov edi, dword [esp + 0x28]
test edi, edi
je 0x48cc25
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x238], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x22c
ret 4