Function at 0x65243370
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x110
call fcn.652379d0
test eax, eax
jne 0x65243717
push ebp
push edi
lea edi, [esp + 8]
call fcn.652432c0
mov ebp, dword [esp + 0x11c]
mov eax, dword [ebp]
cmp byte [eax + 0x23], 2
jne 0x652433af
mov eax, dword [eax + 0x16]
push 0x15ee
push eax
call fcn.652659d0
add esp, 8
mov ecx, dword [ebp]
test byte [ecx + 0x24], 0x10
mov eax, str.AND_u.user_id_IN__SELECT_user_id_FROM_extract_users_
jne 0x652433c2
mov eax, 0x6528b61a
push eax
lea edx, [ebp + 0x278]
push str.SELECT_u.user_id__u.user_name___option___setting___if_u.user_namePUBLIC_then_0_else_1_endif_as_is_public_FROM_SYS.SYSOPTION_o__SYS.SYSUSERPERM_u_WHERE_o.user_id__u.user_id_AND__user_name____DBA_OR__option_____Command_delimiter___s_ORDER_BY_is_public
push edx
call fcn.65237150
push eax
mov eax, dword [ebp + 0x1e8]
push 9
push eax
call fcn.65261aa0
mov ecx, dword [ebp + 0x1e8]
push 9
push ecx
mov byte [esp + 0x30], 0
call fcn.65262260
add esp, 0x20
test eax, eax
je 0x652436df
push ebx
push esi
mov edx, dword [ebp + 0x1e8]
push 2
push 9
push edx
call fcn.652617d0
push eax
lea edx, [esp + 0x20]
call fcn.65243300
add esp, 0x10
test eax, eax
jne 0x652436c4
push eax
mov eax, dword [ebp + 0x1e8]
push 9
push eax
lea esi, [esp + 0x24]
call fcn.652617d0
add esp, 0xc
mov edi, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x65243468
test cl, cl
je 0x65243464
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x65243468
add eax, 2
add esi, 2
test cl, cl
jne 0x65243440
xor eax, eax
jmp 0x6524346d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x652434da
lea eax, [esp + 0x20]
push eax
push 0x1595
call fcn.65268a30
mov ecx, dword [ebp + 0x1e8]
push 1
push 9
push ecx
call fcn.652617d0
push eax
push pe_nt_image_headers32
lea edx, [esp + 0x3c]
push edx
push 0x1595
call fcn.65266420
lea eax, [esp + 0x44]
push eax
lea ecx, [ebp + 0x128]
push 0x16
push ecx
call fcn.65237280
mov edx, dword [ebp + 0x1e8]
push 0
push 9
push edx
call fcn.652617d0
add esp, 0x3c
lea ecx, [esp + 0x18]
nop
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x652434d0
mov eax, dword [ebp]
test byte [eax + 0x24], 0x10
je 0x65243571
mov ecx, dword [ebp + 0x1e8]
push 1
push 9
push ecx
mov edi, str.PUBLIC
call fcn.652617d0
add esp, 0xc
mov esi, eax
mov ecx, 7
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x65243571
mov eax, dword [ebp + 0x1e8]
push 2
push 9
push eax
mov edi, str.Login_mode
call fcn.652617d0
add esp, 0xc
mov esi, eax
mov ecx, 0xb
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x65243571
mov eax, dword [ebp + 0x1e8]
push str.Standard
push 2
push 9
push eax
call fcn.652617d0
mov ecx, dword [ebp + 0x1e8]
add esp, 0xc
push eax
push 1
push 9
push ecx
call fcn.652617d0
add esp, 0xc
push eax
push str.SET_OPTION___s_.__s____s_r_ngo_r_n
push 0x16
lea edx, [ebp + 0x128]
push edx
jmp 0x652436bc
mov eax, dword [ebp]
test byte [eax + 0x24], 0x10
je 0x652435eb
mov al, byte [ebp + 0x84]
test al, al
lea ebx, [ebp + 0x84]
je 0x652435eb
mov ecx, dword [ebp + 0x1e8]
push 2
push 9
push ecx
mov edi, str.Global_database_id
call fcn.652617d0
add esp, 0xc
mov esi, eax
mov ecx, 0x13
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x652435eb
mov eax, dword [ebp + 0x1e8]
push ebx
push 2
push 9
push eax
call fcn.652617d0
mov ecx, dword [ebp + 0x1e8]
add esp, 0xc
push eax
push 1
push 9
push ecx
call fcn.652617d0
add esp, 0xc
push eax
push str.SET_OPTION___s_.__s____s_r_ngo_r_n
push 0x16
lea edx, [ebp + 0x128]
push edx
jmp 0x652436bc
mov eax, dword [ebp + 0x1e8]
push 2
push 9
push eax
mov edi, str.ISQL_quote
call fcn.652617d0
add esp, 0xc
mov esi, eax
mov ecx, 0xb
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x65243672
mov eax, dword [ebp + 0x1e8]
push 3
push 9
push eax
mov edi, str._x_nov
call fcn.652617d0
add esp, 0xc
mov esi, eax
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x65243672
mov eax, dword [ebp + 0x1e8]
push 0x6528fe34
push 2
push 9
push eax
call fcn.652617d0
mov ecx, dword [ebp + 0x1e8]
add esp, 0xc
push eax
push 1
push 9
push ecx
call fcn.652617d0
add esp, 0xc
push eax
push str.SET_OPTION___s_.__s____s_r_ngo_r_n
push 0x16
lea edx, [ebp + 0x128]
push edx
jmp 0x652436bc
mov eax, dword [ebp + 0x1e8]
push 3
push 9
push eax
call fcn.652617d0
mov ecx, dword [ebp + 0x1e8]
add esp, 0xc
push eax
push 2
push 9
push ecx
call fcn.652617d0
mov edx, dword [ebp + 0x1e8]
add esp, 0xc
push eax
push 1
push 9
push edx
call fcn.652617d0
add esp, 0xc
push eax
push str.SET_OPTION___s_.__s____s_r_ngo_r_n
push 0x16
lea eax, [ebp + 0x128]
push eax
call fcn.652371f0
add esp, 0x18
mov ecx, dword [ebp + 0x1e8]
push 9
push ecx
call fcn.65262260
add esp, 8
test eax, eax
jne 0x65243403
pop esi
pop ebx
mov edx, dword [ebp + 0x1e8]
push 9
push edx
call fcn.65261d80
lea eax, [esp + 0x10]
push eax
call fcn.65266600
add esp, 0xc
test eax, eax
pop edi
pop ebp
je 0x65243717
push eax
call fcn.652440f0
lea ecx, [esp + 4]
push ecx
call fcn.65266600
add esp, 8
test eax, eax
jne 0x65243700
add esp, 0x110
ret