Function at 0x6523a910
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x98
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa8]
mov eax, dword [esi]
test byte [eax + 0x24], 0x10
mov ecx, str.AND_EXISTS__SELECT_user_id_from_extract_users_WHERE_user_id__SYS.SYSTABLEPERM.grantee_
jne 0x6523a932
mov ecx, 0x6528b61a
mov eax, dword [esi + 0x18]
xor ebx, ebx
cmp eax, ebx
mov eax, str.referenceauth
jne 0x6523a945
mov eax, str.indexauth
push ecx
mov ecx, dword [esp + 0xb0]
push ecx
push eax
lea edx, [esi + 0x278]
push str.SELECT_c.user_name__table_name__table_id__grantee.user_name__grantee__selectauth__insertauth__deleteauth__updateauth__alterauth___s__grantor.user_name_FROM_SYS.SYSUSERPERM_c__SYS.SYSTABLE__SYS.SYSTABLEPERM__SYS.SYSUSERPERM_grantee__SYS.SYSUSERPERM_grantor_WHERE__c.user_id__SYS.SYSTABLE.creator_AND_SYS.SYSTABLE.table_id__SYS.SYSTABLEPERM.stable_id_AND_SYS.SYSTABLEPERM.grantee__grantee.user_id_AND_SYS.SYSTABLEPERM.grantor__grantor.user_id_AND_table_id___s__sORDER_BY_grantor
push edx
call fcn.65237150
push eax
mov eax, dword [esi + 0x1e8]
push 1
push eax
call fcn.65261aa0
mov ecx, dword [esi + 0x1e8]
push 1
push ecx
mov byte [esp + 0x4c], bl
call fcn.65262260
mov ebp, dword [esp + 0xd8]
add esp, 0x28
test eax, eax
je 0x6523abec
push edi
mov edx, dword [esi + 0x1e8]
push 0xb
push 1
push edx
lea edi, [esp + 0x34]
call fcn.652617d0
add esp, 0xc
jmp 0x6523a9b0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x6523a9d4
cmp cl, bl
je 0x6523a9d0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x6523a9d4
add eax, 2
add edi, 2
cmp cl, bl
jne 0x6523a9b0
xor eax, eax
jmp 0x6523a9d9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x6523aa15
cmp dword [esp + 0xb8], ebx
je 0x6523aa15
mov edi, dword [esp + 0xbc]
cmp dword [edi], ebx
jne 0x6523aa15
call fcn.652379d0
test eax, eax
jne 0x6523aa15
push str.SET_TEMPORARY_OPTION_ON_ERRORCONTINUE_r_ngo_r_n
lea eax, [esi + 0x128]
push ebp
push eax
call fcn.652371f0
add esp, 0xc
mov dword [edi], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov edi, 5
mov ebp, 6
mov ecx, dword [esi + 0x1e8]
push edi
push 1
push ecx
call fcn.652617d0
movsx edx, byte [eax]
push edx
call fcn.6527c935
push 0x4e
mov ebx, eax
call fcn.6527c935
add esp, 0x14
cmp ebx, eax
je case.default.0x6523aa9a
mov eax, dword [esi + 0x1e8]
push edi
push 1
push eax
call fcn.652617d0
movsx ecx, byte [eax]
push ecx
call fcn.6527c935
push 0x47
mov ebx, eax
call fcn.6527c935
add esp, 0x14
cmp ebx, eax
lea eax, [esp + 0x1c]
je 0x6523aa8f
lea eax, [esp + 0x10]
lea edx, [edi - 5]
cmp edx, 5
ja case.default.0x6523aa9a
lea ecx, [edi - 5]
jmp dword [ecx*4 + 0x6523ac28]
push str.__SELECT
jmp 0x6523aac9
push str.__INSERT
jmp 0x6523aac9
push str.__DELETE
jmp 0x6523aac9
push str.__UPDATE
jmp 0x6523aac9
push str.__ALTER
jmp 0x6523aac9
push str.__REFERENCES
push eax
call fcn.6526d1f0
add esp, 8
inc edi
dec ebp
jne 0x6523aa37
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, ebx
jbe 0x6523ab59
mov edx, dword [esi + 0x1e8]
push 0xb
push 1
push edx
call fcn.652617d0
add esp, 0xc
push eax
mov eax, dword [esi + 0x1e8]
push 3
push 1
push eax
call fcn.652617d0
mov ecx, dword [esi + 0x1e8]
add esp, 0xc
push eax
push 1
push 1
push ecx
call fcn.652617d0
mov edx, dword [esi + 0x1e8]
add esp, 0xc
push eax
push ebx
push 1
push edx
call fcn.652617d0
mov ebp, dword [esp + 0xcc]
add esp, 0xc
push eax
mov eax, dword [esp + 0x28]
add eax, 2
push eax
push str.GRANT__s_ON___s_.__s__TO___s___FROM___s__r_ngo_r_n
lea ecx, [esi + 0x128]
push ebp
push ecx
call fcn.652371f0
add esp, 0x20
jmp 0x6523ab60
mov ebp, dword [esp + 0xb4]
cmp dword [esp + 0x1c], ebx
jbe 0x6523abbe
mov edx, dword [esi + 0x1e8]
push 3
push 1
push edx
call fcn.652617d0
add esp, 0xc
push eax
mov eax, dword [esi + 0x1e8]
push 1
push 1
push eax
call fcn.652617d0
mov ecx, dword [esi + 0x1e8]
add esp, 0xc
push eax
push ebx
push 1
push ecx
call fcn.652617d0
mov edx, dword [esp + 0x38]
add esp, 0xc
push eax
add edx, 2
push edx
push str.GRANT__s_ON___s_.__s__TO___s__WITH_GRANT_OPTION_r_ngo_r_n
lea eax, [esi + 0x128]
push ebp
push eax
call fcn.652371f0
add esp, 0x1c
mov ecx, dword [esp + 0x24]
push ecx
call fcn.652440f0
mov edx, dword [esp + 0x1c]
push edx
call fcn.652440f0
mov eax, dword [esi + 0x1e8]
push 1
push eax
call fcn.65262260
add esp, 0x10
test eax, eax
jne 0x6523a994
pop edi
mov ecx, dword [esi + 0x1e8]
push 1
push ecx
call fcn.65261d80
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xb4]
push edx
push eax
push ebp
push ecx
push esi
call fcn.6523a5b0
add esp, 0x1c
pop esi
pop ebp
pop ebx
add esp, 0x98
ret