Function at 0x6525b710
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x110
mov ecx, dword [str.sarmtapi]
push esi
mov esi, dword [esp + 0x118]
push 0
push 2
push 0
push 0
push str.SELECT_count____min_sup.user_id__n_FROM_SYS.SYSUSERPERM_sup__n_SYS.SYSREMOTEOPTIONTYPE_srot__n_SYS.SYSREMOTEOPTION_sro__n_SYS.SYSREMOTETYPE_srt_n_WHERE_sup.user_id__sro.user_id_n_AND_srot.option_id__sro.option_id_n_AND_srt.type_id__srot.type_id_n_AND_sup.publishauth__Y_n_AND_UCASE__srt.type_name____ucase__:link_name___n_AND_UCASE__srot._option_____ucase__:option__
lea eax, [esp + 0x18]
push eax
push ecx
push 0
push esi
mov dword [esp + 0x28], 0
call sub.dblib8.dll_Ordinal_260
mov eax, dword [esi + 0xc]
test eax, eax
jge 0x6525b766
mov edx, dword [0x652fa95c]
push edx
push esi
call fcn.652596c0
add esp, 8
pop esi
add esp, 0x110
ret
push ebp
mov ebp, dword [esp + 0x124]
push edi
mov edi, dword [esp + 0x124]
push 0x652e52f0
lea eax, [esp + 0x14]
push 0x652e5288
mov dword [0x652e5304], eax
lea ecx, [esp + 0x20]
lea eax, [esp + 0x14]
push eax
mov dword [0x652e5330], ecx
mov ecx, dword [str.sarmtapi]
push ecx
push 0
lea edx, [esp + 0x28]
push esi
mov dword [0x652e529c], edi
mov dword [0x652e52c8], ebp
mov dword [0x652e5334], edx
call sub.dblib8.dll_Ordinal_267
mov eax, dword [esi + 0xc]
test eax, eax
jge 0x6525b7de
mov edx, dword [0x652fa95c]
push edx
push esi
call fcn.652596c0
add esp, 8
pop edi
pop ebp
pop esi
add esp, 0x110
ret
cmp word [esp + 0x10], 0
jg 0x6525b88a
mov ecx, dword [str.sarmtapi]
push 0
push 2
push 0
push 0
push str.SELECT_count____min__sro.user_id___n_FROM_SYS.SYSUSERPERM_sup__n_SYS.SYSREMOTEOPTIONTYPE_srot__n_SYS.SYSREMOTEOPTION_sro__n_SYS.SYSREMOTETYPE_srt__n_SYS.SYSGROUP_ssg_n_WHERE_sro.user_id__ssg.group_id_n_AND_ssg.group_member__sup.user_id_n_AND_sup.publishauth__Y_n_AND_srot.option_id__sro.option_id_n_AND_srt.type_id__srot.type_id_n_AND_UCASE__srt.type_name____ucase__:link_name___n_AND_UCASE__srot._option_____ucase__:option__
lea eax, [esp + 0x20]
push eax
push ecx
push 0
push esi
mov dword [esp + 0x30], 0
call sub.dblib8.dll_Ordinal_260
mov eax, dword [esi + 0xc]
test eax, eax
jl 0x6525b7c4
push 0x652e5568
lea eax, [esp + 0x14]
push 0x652e5500
mov dword [0x652e557c], eax
lea ecx, [esp + 0x20]
lea eax, [esp + 0x14]
push eax
mov dword [0x652e55a8], ecx
mov ecx, dword [str.sarmtapi]
push ecx
push 0
lea edx, [esp + 0x28]
push esi
mov dword [0x652e5514], edi
mov dword [0x652e5540], ebp
mov dword [0x652e55ac], edx
call sub.dblib8.dll_Ordinal_267
mov eax, dword [esi + 0xc]
test eax, eax
jl 0x6525b7c4
cmp word [esp + 0x10], 0
jg 0x6525b88a
mov eax, dword [esp + 0x12c]
pop edi
pop ebp
mov byte [eax], 0
xor eax, eax
pop esi
add esp, 0x110
ret
mov edx, dword [str.sarmtapi]
push 0
push 2
push 0
push 0
push str.SELECT_sro._setting__n_FROM_SYS.SYSREMOTEOPTIONTYPE_srot__n_SYS.SYSREMOTEOPTION_sro__n_SYS.SYSREMOTETYPE_srt_n_WHERE_srot.option_id__sro.option_id_n_AND_srt.type_id__srot.type_id_n_AND_UCASE__srt.type_name____ucase__:link_name___n_AND_UCASE__srot._option_____ucase__:option___n_AND_sro.user_id__:user_or_group_id
lea ecx, [esp + 0x20]
push ecx
push edx
push 0
push esi
mov dword [esp + 0x30], 0
call sub.dblib8.dll_Ordinal_260
mov eax, dword [esi + 0xc]
test eax, eax
jge 0x6525b8d3
mov eax, dword [0x652fa95c]
push eax
push esi
call fcn.652596c0
add esp, 8
pop edi
pop ebp
pop esi
add esp, 0x110
ret
push 0x652e579c
push 0x652e5708
lea ecx, [esp + 0x20]
lea eax, [esp + 0x14]
push eax
mov dword [0x652e5774], ecx
mov ecx, dword [str.sarmtapi]
push ecx
push 0
lea edx, [esp + 0x30]
push esi
mov dword [0x652e571c], edi
mov dword [0x652e5748], ebp
mov dword [0x652e57b0], edx
call sub.dblib8.dll_Ordinal_267
mov eax, dword [esi + 0xc]
test eax, eax
jl 0x6525b7c4
lea ecx, [esp + 0x1c]
call fcn.65257680
mov esi, dword [esp + 0x130]
mov edi, dword [esp + 0x12c]
push esi
lea eax, [esp + 0x20]
push eax
push edi
call fcn.6527b7d0
add esp, 0xc
mov byte [edi + esi], 0
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x110
ret