Function at 0x4d0b90
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x5b4863
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x20]
mov byte [ebp], bl
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x7c]
lea edx, [esp + 0x20]
mov dword [esp + 0x18], ebx
mov ecx, dword [eax + 0x3c]
push ecx
push str.SELECT_count_1__as_q_count_FROM__q_rec__WHERE_account_s_AND_q_cflagFalse_AND__q_typeSC
push edx
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esi + 0x7c]
add esp, 0xc
add ecx, 0x228
push 0x610fec
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jl 0x4d0bff
push str._OR_q_typeKK
lea ecx, [esp + 0x24]
call fcn.00596c9a
mov ecx, dword [esi + 0x7c]
push 0x610ff4
add ecx, 0x228
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jl 0x4d0c24
push str._OR_q_typeGQ
lea ecx, [esp + 0x24]
call fcn.00596c9a
mov ecx, dword [esi + 0x7c]
push 0x610ff0
add ecx, 0x228
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jl 0x4d0c49
push str._OR_q_typeRP
lea ecx, [esp + 0x24]
call fcn.00596c9a
mov ecx, dword [esi + 0x7c]
push 0x610fe8
add ecx, 0x228
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jl 0x4d0c6e
push str._OR_q_typeRE
lea ecx, [esp + 0x24]
call fcn.00596c9a
mov ecx, dword [esi + 0x7c]
push 0x610fe4
add ecx, 0x228
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jl 0x4d0c93
push str._OR_q_typeSR
lea ecx, [esp + 0x24]
call fcn.00596c9a
mov ecx, dword [esi + 0x7c]
push 0x610fe0
add ecx, 0x228
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jl 0x4d0cb8
push str._OR_q_typeTC
lea ecx, [esp + 0x24]
call fcn.00596c9a
mov ecx, dword [esi + 0x7c]
push 0x610fdc
add ecx, 0x228
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jl 0x4d0cdd
push str._OR_q_typeTL
lea ecx, [esp + 0x24]
call fcn.00596c9a
push 0x620168
lea ecx, [esp + 0x24]
call fcn.00596c9a
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x18], 1
je 0x4d0d12
push str.PNRR
mov ecx, eax
call fcn.004dd020
mov esi, eax
jmp 0x4d0d14
xor esi, esi
mov eax, dword [esp + 0x20]
push edi
push 3
push 3
push 1
push eax
mov ecx, esi
mov byte [esp + 0x2c], bl
call fcn.004dd0b0
cmp eax, ebx
je 0x4d0d85
mov ecx, esi
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
jle 0x4d0d85
lea ecx, [esp + 0x10]
push ecx
push str.q_count
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov eax, dword [esp + 0x10]
cmp eax, ebx
jle 0x4d0d85
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push 0x1e
push 0x1e
push 0x1d
push eax
push 0x1c
push str._r_r_c
push ebp
call edi
mov eax, dword [esp + 0x44]
add esp, 0x1c
cmp eax, ebx
je 0x4d0d85
mov edx, dword [esp + 0x10]
push edx
push 0x6200fc
push eax
call edi
add esp, 0xc
cmp esi, ebx
pop edi
je 0x4d0d92
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov al, byte [ebp]
lea ecx, [esp + 0x20]
cmp al, bl
mov dword [esp + 0x18], 0xffffffff
setne bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop esi
mov al, bl
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8