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

Disassembly:
push 0xffffffffffffffff
push 0x5a95a3
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 0x48bcda
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 0x48bd17
push str.PNRR
mov ecx, eax
call fcn.004dc060
mov ebp, eax
mov dword [esp + 0x1c], ebp
jmp 0x48bd1d
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.004dc0f0
cmp eax, ebx
je 0x48c0bc
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 0x48be35
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 0x48be1f
mov eax, dword [esp + 0x3c]
xor edi, edi
test eax, eax
jle 0x48be1f
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x3c]
call fcn.0041ac50
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 0x48bdd8
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 0x48bd9a
jmp 0x48be1f
mov eax, dword [esp + 0x24]
cmp eax, 0x270f
jle 0x48bde8
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 0x48bd5b
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 0x48bec2
mov bl, 7
test edi, edi
je 0x48be8e
mov eax, edi
and eax, reloc.WSOCK32.dll_closesocket
jns 0x48be81
dec eax
or eax, 0xfffffffc
inc eax
jne 0x48be8e
push 0xd
lea ecx, [esp + 0x14]
call fcn.005928d0
lea ecx, [esp + 0x14]
push edi
push ecx
lea ecx, [esp + 0x3c]
call fcn.0041ac50
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], bl
call fcn.00592b6a
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 0x48be6f
push 0x60a5d4
lea ecx, [esp + 0x14]
call fcn.005928ca
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 0
push eax
mov ecx, esi
call dword [edx + 0x90]
mov eax, dword [0x635400]
test eax, eax
je 0x48bf4c
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48bf4c
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 [0x635400]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb7d0
mov edx, dword [0x635400]
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 0x48bf9a
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 [0x62fc58]
mov byte [esp + 0x5c], 6
call fcn.00401140
mov eax, dword [0x62fc60]
test eax, eax
je 0x48c09b
mov ecx, dword [eax + 0x50]
xor ebx, ebx
test ecx, ecx
jle 0x48c09b
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebx*4]
test edi, edi
je 0x48c08b
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48c08b
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48c086
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48c086
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 0x48c078
mov al, byte [edi + 0x80]
test al, al
jne 0x48c078
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 0x48c078
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 [0x62fc60]
mov ecx, dword [eax + 0x50]
inc ebx
cmp ebx, ecx
jl 0x48bfba
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 0x48c287
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi]
inc ecx
push ecx
push 0x613e10
mov ecx, esi
call dword [eax + 0x90]
mov eax, dword [0x635400]
cmp eax, ebx
je 0x48c13a
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48c13a
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x78]
push 0x613e10
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 [0x635400]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb7d0
mov edx, dword [0x635400]
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 0x48c188
push 0x613e10
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 [0x62fc58]
mov byte [esp + 0x5c], 2
call fcn.00401140
mov eax, dword [0x62fc60]
cmp eax, ebx
je 0x48c287
mov ecx, dword [eax + 0x50]
test ecx, ecx
jle 0x48c287
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebx*4]
test edi, edi
je 0x48c277
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48c277
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x48c272
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48c272
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 0x48c264
mov al, byte [edi + 0x80]
test al, al
jne 0x48c264
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 0x48c264
push 0x613e10
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 [0x62fc60]
mov ecx, dword [eax + 0x50]
inc ebx
cmp ebx, ecx
jl 0x48c1a6
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x48c294
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.00592bb2
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