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

Disassembly:
push 0xffffffffffffffff
push 0x5aaed3
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 0x48b5da
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 0x48b617
push str.PNRR
mov ecx, eax
call fcn.004db9f0
mov ebp, eax
mov dword [esp + 0x1c], ebp
jmp 0x48b61d
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.004dba80
cmp eax, ebx
je 0x48b9bc
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 0x48b735
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 0x48b71f
mov eax, dword [esp + 0x3c]
xor edi, edi
test eax, eax
jle 0x48b71f
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x3c]
call fcn.0040aa20
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 0x48b6d8
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 0x48b69a
jmp 0x48b71f
mov eax, dword [esp + 0x24]
cmp eax, 0x270f
jle 0x48b6e8
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 0x48b65b
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 0x48b7c2
mov bl, 7
test edi, edi
je 0x48b78e
mov eax, edi
and eax, reloc.WSOCK32.dll_closesocket
jns 0x48b781
dec eax
or eax, 0xfffffffc
inc eax
jne 0x48b78e
push 0xd
lea ecx, [esp + 0x14]
call fcn.005942a0
lea ecx, [esp + 0x14]
push edi
push ecx
lea ecx, [esp + 0x3c]
call fcn.0040aa20
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], bl
call fcn.0059453a
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 0x48b76f
push 0x60c5d4
lea ecx, [esp + 0x14]
call fcn.0059429a
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 0
push eax
mov ecx, esi
call dword [edx + 0x90]
mov eax, dword [0x637760]
test eax, eax
je 0x48b84c
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48b84c
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 [0x637760]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb100
mov edx, dword [0x637760]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c4d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x48b89a
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 [0x631fb8]
mov byte [esp + 0x5c], 6
call fcn.00401140
mov eax, dword [0x631fc0]
test eax, eax
je 0x48b99b
mov ecx, dword [eax + 0x50]
xor ebx, ebx
test ecx, ecx
jle 0x48b99b
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebx*4]
test edi, edi
je 0x48b98b
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48b98b
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48b986
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48b986
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 0x48b978
mov al, byte [edi + 0x80]
test al, al
jne 0x48b978
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 0x48b978
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.00402490
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 6
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebx
cmp ebx, ecx
jl 0x48b8ba
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 0x48bb87
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi]
inc ecx
push ecx
push 0x615b10
mov ecx, esi
call dword [eax + 0x90]
mov eax, dword [0x637760]
cmp eax, ebx
je 0x48ba3a
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48ba3a
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x78]
push 0x615b10
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 [0x637760]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb100
mov edx, dword [0x637760]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c4d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x48ba88
push 0x615b10
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 [0x631fb8]
mov byte [esp + 0x5c], 2
call fcn.00401140
mov eax, dword [0x631fc0]
cmp eax, ebx
je 0x48bb87
mov ecx, dword [eax + 0x50]
test ecx, ecx
jle 0x48bb87
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebx*4]
test edi, edi
je 0x48bb77
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48bb77
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48bb72
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48bb72
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 0x48bb64
mov al, byte [edi + 0x80]
test al, al
jne 0x48bb64
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 0x48bb64
push 0x615b10
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.00402490
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebx
cmp ebx, ecx
jl 0x48baa6
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x48bb94
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.00594582
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