Function at 0x48cbe0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x5b2753
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
push edi
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CStringArray::CStringArray
mov eax, dword [esp + 0x3c]
xor ebx, ebx
push str.GQ_0000
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x58], ebx
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov ecx, dword [esp + 0x3c]
push str.RP_0000
push ecx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov edx, dword [esp + 0x3c]
push str.KK_0000
push edx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov eax, dword [esp + 0x3c]
push str.RE_0000
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov ecx, dword [esp + 0x3c]
push str.SR_0000
push ecx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov edx, dword [esp + 0x3c]
push str.TC_0000
push edx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov eax, dword [esp + 0x3c]
push str.TL_0000
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov ecx, dword [esp + 0x3c]
push str.SC_0000
push ecx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 1
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esi + 0x11c4]
lea edi, [esi + 0x11c4]
mov byte [esp + 0x50], 2
cmp dword [edx - 8], ebx
jne 0x48ccfa
mov eax, dword [esi + 0x7c]
lea ecx, [esi + 0x11cc]
add eax, 0x3c
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esi + 0x7c]
mov edx, dword [ecx + 0x3c]
push edx
push str._AND_account_s_AND_q_cflagFalse
push edi
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov eax, dword [edi]
lea ecx, [esp + 0x20]
push eax
push str.SELECT_count_1__as_q_count__q_type_FROM__q_rec__WHERE_11__s_group_by_q_type
push ecx
call sub.MFC42.DLL_CString::Format
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 0x10
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x50], 3
je 0x48cd37
push str.PNRR
mov ecx, eax
call fcn.004ddd00
mov ebp, eax
mov dword [esp + 0x1c], ebp
jmp 0x48cd3d
mov dword [esp + 0x1c], ebx
mov ebp, ebx
mov edx, dword [esp + 0x20]
push 3
push 3
push 1
push edx
mov ecx, ebp
mov byte [esp + 0x60], 2
call fcn.004ddd90
cmp eax, ebx
je 0x48d0dc
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
mov byte [esp + 0x50], 4
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
jne 0x48ce55
mov bl, 5
lea eax, [esp + 0x18]
mov ecx, ebp
push eax
push str.q_type
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea ecx, [esp + 0x24]
push ecx
push str.q_count
mov ecx, ebp
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 8]
test eax, eax
je 0x48ce3f
mov eax, dword [esp + 0x3c]
xor edi, edi
test eax, eax
jle 0x48ce3f
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x3c]
call fcn.0041abd0
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x50], bl
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jge 0x48cdf8
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x3c]
inc edi
cmp edi, eax
jl 0x48cdba
jmp 0x48ce3f
mov eax, dword [esp + 0x24]
cmp eax, 0x270f
jle 0x48ce08
mov eax, 0x270f
mov edx, dword [esp + 0x18]
push eax
push edx
lea eax, [esp + 0x1c]
push str._s__04d
push eax
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x48]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
lea ecx, [edx + edi*4]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 4
call sub.MFC42.DLL_CString::CString
mov ecx, ebp
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
mov ecx, ebp
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
je 0x48cd7b
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x11cc]
mov ecx, dword [esi + 0x11c8]
push eax
push ecx
lea edx, [esp + 0x18]
push str.________________QT__s__s_r
push edx
mov byte [esp + 0x60], 6
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x4c]
add esp, 0x10
xor edi, edi
test eax, eax
jle 0x48cee2
mov bl, 7
test edi, edi
je 0x48ceae
mov eax, edi
and eax, reloc.WSOCK32.dll_closesocket
jns 0x48cea1
dec eax
or eax, 0xfffffffc
inc eax
jne 0x48ceae
push 0xd
lea ecx, [esp + 0x14]
call fcn.0059b7b2
lea ecx, [esp + 0x14]
push edi
push ecx
lea ecx, [esp + 0x3c]
call fcn.0041abd0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], bl
call fcn.0059ba4c
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 6
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x3c]
inc edi
cmp edi, eax
jl 0x48ce8f
push 0x615698
lea ecx, [esp + 0x14]
call fcn.0059b7ac
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 0
push eax
mov ecx, esi
call dword [edx + 0x94]
mov eax, dword [0x641030]
test eax, eax
je 0x48cf6c
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48cf6c
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x7c]
push ecx
push str._RX_
push 0
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x641030]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ed3c0
mov edx, dword [0x641030]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c9d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x48cfba
mov edx, dword [esp + 0x10]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0x7c]
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
mov byte [esp + 0x60], 8
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x63b908]
mov byte [esp + 0x5c], 6
call fcn.00401140
mov eax, dword [0x63b910]
test eax, eax
je 0x48d0bb
mov ecx, dword [eax + 0x50]
xor ebx, ebx
test ecx, ecx
jle 0x48d0bb
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebx*4]
test edi, edi
je 0x48d0ab
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48d0ab
call fcn.0044c9d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48d0a6
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48d0a6
mov ecx, dword [esi + 0x7c]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x14]
mov byte [esp + 0x50], 9
mov eax, dword [edx - 8]
test eax, eax
je 0x48d098
mov al, byte [edi + 0x80]
test al, al
jne 0x48d098
mov eax, dword [esi + 0x7c]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x48d098
mov ecx, dword [esp + 0x10]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x34], 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 + 0x3c], esp
push edx
mov byte [esp + 0x60], 0xa
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x5c], 9
call fcn.00402460
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 6
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x63b910]
mov ecx, dword [eax + 0x50]
inc ebx
cmp ebx, ecx
jl 0x48cfda
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 2
call sub.MFC42.DLL_CString::CString
jmp 0x48d2aa
mov ecx, dword [esi + 0x80]
mov eax, dword [esi]
inc ecx
push ecx
push 0x61ed20
mov ecx, esi
call dword [eax + 0x94]
mov eax, dword [0x641030]
cmp eax, ebx
je 0x48d15d
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48d15d
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x7c]
push 0x61ed20
push str._RX_
push ebx
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x641030]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ed3c0
mov edx, dword [0x641030]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c9d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x48d1ab
push 0x61ed20
push ecx
mov ecx, esp
mov dword [esp + 0x38], 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 + 0x38], esp
push edx
mov byte [esp + 0x60], 0xb
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x63b908]
mov byte [esp + 0x5c], 2
call fcn.00401140
mov eax, dword [0x63b910]
cmp eax, ebx
je 0x48d2aa
mov ecx, dword [eax + 0x50]
test ecx, ecx
jle 0x48d2aa
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebx*4]
test edi, edi
je 0x48d29a
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48d29a
call fcn.0044c9d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48d295
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48d295
mov ecx, dword [esi + 0x7c]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x18]
mov byte [esp + 0x50], 0xc
mov eax, dword [edx - 8]
test eax, eax
je 0x48d287
mov al, byte [edi + 0x80]
test al, al
jne 0x48d287
mov eax, dword [esi + 0x7c]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x48d287
push 0x61ed20
push ecx
mov ecx, esp
mov dword [esp + 0x38], 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 + 0x38], esp
push edx
mov byte [esp + 0x60], 0xd
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x5c], 0xc
call fcn.00402460
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x63b910]
mov ecx, dword [eax + 0x50]
inc ebx
cmp ebx, ecx
jl 0x48d1c9
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x48d2b7
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov dword [esp + 0x50], 0xffffffff
call fcn.0059ba94
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret 4