Function at 0x65243870
Capabilities:
Reference sql statements

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
lea ebx, [esi + 0x278]
push str.SELECT_srvname__srvclass__srvinfo__srvreadonly_FROM_SYS.SYSSERVERS
push ebx
call fcn.65237150
push eax
mov eax, dword [esi + 0x1e8]
push 0x1c
push eax
call fcn.65261aa0
mov ecx, dword [esi + 0x1e8]
push 0x1c
push ecx
call fcn.65262260
add esp, 0x1c
test eax, eax
je 0x65243945
lea edi, [esi + 0x128]
mov edx, dword [esi + 0x1e8]
push 3
push 0x1c
push edx
call fcn.652617d0
push eax
push 0x65297100
call fcn.652810f2
add esp, 0x14
test eax, eax
mov eax, str.READ_ONLY
je 0x652438e2
mov eax, 0x6528b61a
push eax
mov eax, dword [esi + 0x1e8]
push 2
push 0x1c
push eax
call fcn.652617d0
mov ecx, dword [esi + 0x1e8]
add esp, 0xc
push eax
push 1
push 0x1c
push ecx
call fcn.652617d0
mov edx, dword [esi + 0x1e8]
add esp, 0xc
push eax
push 0
push 0x1c
push edx
call fcn.652617d0
add esp, 0xc
push eax
push str.CREATE_SERVER___s__CLASS__s_USING__s__s_r_ngo_r_n
push 5
push edi
call fcn.652371f0
mov eax, dword [esi + 0x1e8]
push 0x1c
push eax
call fcn.65262260
add esp, 0x24
test eax, eax
jne 0x652438b6
mov ecx, dword [esi + 0x1e8]
push 0x1c
push ecx
call fcn.65261d80
push str.SELECT_srvname__capname__capvalue_FROM_SYS.SYSSERVERS_t_servers__SYS.SYSCAPABILITY_t_caps__SYS.SYSCAPABILITYNAME_t_capname_WHERE_t_servers.srvid__t_caps.srvid___AND_t_caps.capid__t_capname.capid
push ebx
call fcn.65237150
mov edx, dword [esi + 0x1e8]
push eax
push 0x1d
push edx
call fcn.65261aa0
mov eax, dword [esi + 0x1e8]
push 0x1d
push eax
call fcn.65262260
add esp, 0x24
test eax, eax
je 0x65243a07
lea edi, [esi + 0x128]
lea esp, [esp]
mov ecx, dword [esi + 0x1e8]
push 2
push 0x1d
push ecx
call fcn.652617d0
push eax
push 0x65296ff0
call fcn.652810f2
add esp, 0x14
test eax, eax
mov eax, 0x65296fec
je 0x652439bc
mov eax, 0x65296fe8
mov edx, dword [esi + 0x1e8]
push eax
push 1
push 0x1d
push edx
call fcn.652617d0
add esp, 0xc
push eax
mov eax, dword [esi + 0x1e8]
push 0
push 0x1d
push eax
call fcn.652617d0
add esp, 0xc
push eax
push str.ALTER_SERVER___s__CAPABILITY__s__s_r_ngo_r_n
push 5
push edi
call fcn.652371f0
mov ecx, dword [esi + 0x1e8]
push 0x1d
push ecx
call fcn.65262260
add esp, 0x20
test eax, eax
jne 0x65243990
mov edx, dword [esi + 0x1e8]
push 0x1d
push edx
call fcn.65261d80
push str.SELECT_user_name__srvname__remote_login__remote_password_FROM_SYS.SYSSERVERS_t_servers_SYS.SYSEXTERNLOGINS_t_logins_SYS.SYSUSERPERM_t_user_WHERE_t_servers.srvid__t_logins.srvid_AND_t_user.user_id__t_logins.user_id
push ebx
call fcn.65237150
push eax
mov eax, dword [esi + 0x1e8]
push 0x1e
push eax
call fcn.65261aa0
mov ecx, dword [esi + 0x1e8]
push 0x1e
push ecx
call fcn.65262260
add esp, 0x24
test eax, eax
je 0x65243b38
lea edi, [esi + 0x128]
mov edi, edi
mov edx, dword [esi + 0x1e8]
push 1
push 0x1e
push edx
call fcn.652617d0
add esp, 0xc
push eax
mov eax, dword [esi + 0x1e8]
push 0
push 0x1e
push eax
call fcn.652617d0
add esp, 0xc
push eax
push str.CREATE_EXTERNLOGIN__s_TO___s_
push 5
push edi
call fcn.652371f0
mov ecx, dword [esi + 0x1e8]
push 2
push 0x1e
push ecx
call fcn.65261720
add esp, 0x20
test eax, eax
jne 0x65243b12
mov edx, dword [esi + 0x1e8]
push 2
push 0x1e
push edx
call fcn.652617d0
push eax
push str._REMOTE_LOGIN___s_
push 5
push edi
call fcn.652371f0
mov eax, dword [esi + 0x1e8]
push 3
push 0x1e
push eax
call fcn.65261720
add esp, 0x28
test eax, eax
jne 0x65243b12
push str._IDENTIFIED_BY_ENCRYPTED_
push 5
push edi
call fcn.652371f0
mov ecx, dword [esi + 0x1e8]
add esp, 0xc
push str._x_nov
push 3
push 0x1e
push ecx
call fcn.65261780
add esp, 0xc
push eax
push 5
push edi
call fcn.65237240
push str._x_nov
push 5
push edi
call fcn.652371f0
add esp, 0x1c
push 0x6528fa54
push 5
push edi
call fcn.652371f0
mov edx, dword [esi + 0x1e8]
push 0x1e
push edx
call fcn.65262260
add esp, 0x14
test eax, eax
jne 0x65243a50
mov eax, dword [esi + 0x1e8]
push 0x1e
push eax
call fcn.65261d80
add esp, 8
pop edi
pop esi
pop ebx
ret