Function at 0x48c970
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x5adb63
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 0x48ca8a
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 0x48cac7
push str.PNRR
mov ecx, eax
call fcn.004dd020
mov ebp, eax
mov dword [esp + 0x1c], ebp
jmp 0x48cacd
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.004dd0b0
cmp eax, ebx
je 0x48ce6c
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 0x48cbe5
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 0x48cbcf
mov eax, dword [esp + 0x3c]
xor edi, edi
test eax, eax
jle 0x48cbcf
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x3c]
call fcn.0040aaa0
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 0x48cb88
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 0x48cb4a
jmp 0x48cbcf
mov eax, dword [esp + 0x24]
cmp eax, 0x270f
jle 0x48cb98
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 0x48cb0b
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 0x48cc72
mov bl, 7
test edi, edi
je 0x48cc3e
mov eax, edi
and eax, reloc.WSOCK32.dll_closesocket
jns 0x48cc31
dec eax
or eax, 0xfffffffc
inc eax
jne 0x48cc3e
push 0xd
lea ecx, [esp + 0x14]
call fcn.00596ca0
lea ecx, [esp + 0x14]
push edi
push ecx
lea ecx, [esp + 0x3c]
call fcn.0040aaa0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], bl
call fcn.00596f3a
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 0x48cc1f
push 0x60f6a0
lea ecx, [esp + 0x14]
call fcn.00596c9a
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 0
push eax
mov ecx, esi
call dword [edx + 0x90]
mov eax, dword [0x63ac10]
test eax, eax
je 0x48ccfc
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48ccfc
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 [0x63ac10]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ec730
mov edx, dword [0x63ac10]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c8d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x48cd4a
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 [0x635468]
mov byte [esp + 0x5c], 6
call fcn.00401150
mov eax, dword [0x635470]
test eax, eax
je 0x48ce4b
mov ecx, dword [eax + 0x50]
xor ebx, ebx
test ecx, ecx
jle 0x48ce4b
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebx*4]
test edi, edi
je 0x48ce3b
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48ce3b
call fcn.0044c8d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48ce36
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48ce36
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 0x48ce28
mov al, byte [edi + 0x80]
test al, al
jne 0x48ce28
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 0x48ce28
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.004024d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 6
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x635470]
mov ecx, dword [eax + 0x50]
inc ebx
cmp ebx, ecx
jl 0x48cd6a
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 0x48d03a
mov ecx, dword [esi + 0x80]
mov eax, dword [esi]
inc ecx
push ecx
push 0x618d84
mov ecx, esi
call dword [eax + 0x90]
mov eax, dword [0x63ac10]
cmp eax, ebx
je 0x48ceed
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48ceed
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x7c]
push 0x618d84
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 [0x63ac10]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ec730
mov edx, dword [0x63ac10]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c8d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x48cf3b
push 0x618d84
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 [0x635468]
mov byte [esp + 0x5c], 2
call fcn.00401150
mov eax, dword [0x635470]
cmp eax, ebx
je 0x48d03a
mov ecx, dword [eax + 0x50]
test ecx, ecx
jle 0x48d03a
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebx*4]
test edi, edi
je 0x48d02a
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48d02a
call fcn.0044c8d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48d025
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48d025
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 0x48d017
mov al, byte [edi + 0x80]
test al, al
jne 0x48d017
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 0x48d017
push 0x618d84
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.004024d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x635470]
mov ecx, dword [eax + 0x50]
inc ebx
cmp ebx, ecx
jl 0x48cf59
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x48d047
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.00596f82
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