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

Disassembly:
push 0xffffffffffffffff
push 0x5a9983
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 + 0x11c0]
lea edi, [esi + 0x11c0]
mov byte [esp + 0x50], 2
cmp dword [edx - 8], ebx
jne 0x48beda
mov eax, dword [esi + 0x78]
lea ecx, [esi + 0x11c8]
add eax, 0x3c
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esi + 0x78]
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 0x48bf17
push str.PNRR
mov ecx, eax
call fcn.004dc2a0
mov ebp, eax
mov dword [esp + 0x1c], ebp
jmp 0x48bf1d
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.004dc330
cmp eax, ebx
je 0x48c2bc
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 0x48c035
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 0x48c01f
mov eax, dword [esp + 0x3c]
xor edi, edi
test eax, eax
jle 0x48c01f
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 0x48bfd8
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 0x48bf9a
jmp 0x48c01f
mov eax, dword [esp + 0x24]
cmp eax, 0x270f
jle 0x48bfe8
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 0x48bf5b
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x11c8]
mov ecx, dword [esi + 0x11c4]
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 0x48c0c2
mov bl, 7
test edi, edi
je 0x48c08e
mov eax, edi
and eax, reloc.WSOCK32.dll_closesocket
jns 0x48c081
dec eax
or eax, 0xfffffffc
inc eax
jne 0x48c08e
push 0xd
lea ecx, [esp + 0x14]
call fcn.00592cb0
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.00592f4a
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 0x48c06f
push 0x60a5d4
lea ecx, [esp + 0x14]
call fcn.00592caa
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 0
push eax
mov ecx, esi
call dword [edx + 0x90]
mov eax, dword [0x635490]
test eax, eax
je 0x48c14c
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48c14c
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x78]
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 [0x635490]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eba10
mov edx, dword [0x635490]
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 0x48c19a
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 + 0x78]
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 [0x62fce8]
mov byte [esp + 0x5c], 6
call fcn.00401140
mov eax, dword [0x62fcf0]
test eax, eax
je 0x48c29b
mov ecx, dword [eax + 0x50]
xor ebx, ebx
test ecx, ecx
jle 0x48c29b
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebx*4]
test edi, edi
je 0x48c28b
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48c28b
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48c286
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48c286
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 byte [esp + 0x50], 9
mov eax, dword [edx - 8]
test eax, eax
je 0x48c278
mov al, byte [edi + 0x80]
test al, al
jne 0x48c278
mov eax, dword [esi + 0x78]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x48c278
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 + 0x78]
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.004024b0
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 6
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebx
cmp ebx, ecx
jl 0x48c1ba
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 0x48c487
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi]
inc ecx
push ecx
push 0x613e20
mov ecx, esi
call dword [eax + 0x90]
mov eax, dword [0x635490]
cmp eax, ebx
je 0x48c33a
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48c33a
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x78]
push 0x613e20
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 [0x635490]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eba10
mov edx, dword [0x635490]
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 0x48c388
push 0x613e20
push ecx
mov ecx, esp
mov dword [esp + 0x38], 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 + 0x38], esp
push edx
mov byte [esp + 0x60], 0xb
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x62fce8]
mov byte [esp + 0x5c], 2
call fcn.00401140
mov eax, dword [0x62fcf0]
cmp eax, ebx
je 0x48c487
mov ecx, dword [eax + 0x50]
test ecx, ecx
jle 0x48c487
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebx*4]
test edi, edi
je 0x48c477
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48c477
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48c472
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48c472
mov ecx, dword [esi + 0x78]
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 0x48c464
mov al, byte [edi + 0x80]
test al, al
jne 0x48c464
mov eax, dword [esi + 0x78]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x48c464
push 0x613e20
push ecx
mov ecx, esp
mov dword [esp + 0x38], 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 + 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.004024b0
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebx
cmp ebx, ecx
jl 0x48c3a6
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x48c494
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.00592f92
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