Function at 0x6523a5b0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x8c
push ebx
push ebp
mov ebp, dword [esp + 0x98]
mov eax, dword [ebp]
test byte [eax + 0x24], 0x10
push esi
mov edx, str.AND_EXISTS__SELECT_user_id_from_extract_users_WHERE_user_id__SYS.SYSCOLPERM.grantee_
jne 0x6523a5d3
mov edx, 0x6528b61a
mov eax, dword [ebp + 0x48]
xor ebx, ebx
cmp eax, ebx
mov ecx, 0x65291120
jne 0x6523a67b
mov ecx, 0x6529111c
mov eax, str._SELECT_IF_updateauthG_THEN_Y_ELSE_N_ENDIF_FROM_SYS.SYSTABLEPERM_WHERE_stable_idSYS.SYSTABLE.table_id___AND_SYS.SYSTABLEPERM.granteegrantee___AND_SYS.SYSTABLEPERM.grantorgrantor___AND_SYS.SYSTABLEPERM.updateauth_IN__Y_G____AND_SYS.SYSTABLEPERM.updatecolsY__
push edx
mov edx, dword [esp + 0xa4]
push edx
push ecx
push eax
lea esi, [ebp + 0x278]
push str.SELECT_DISTINCT_c.user_name__table_name___s_grantee.user_name__grantee__grantor.user_name__grantor___s_FROM_SYS.SYSUSERPERM_c__SYS.SYSTABLE__SYS.SYSCOLPERM__SYS.SYSUSERPERM_grantee__SYS.SYSUSERPERM_grantor_WHERE__c.user_id__SYS.SYSTABLE.creator_AND_SYS.SYSTABLE.table_id__SYS.SYSCOLPERM.table_id_AND_SYS.SYSCOLPERM.grantee__grantee.user_id_AND_SYS.SYSCOLPERM.grantor__grantor.user_id_AND_SYS.SYSTABLE.table_id___s__sORDER_BY_grantor
push esi
call fcn.65237150
push eax
mov eax, dword [ebp + 0x1e8]
push 1
push eax
call fcn.65261aa0
mov ecx, dword [ebp + 0x1e8]
push 1
push ecx
mov byte [esp + 0x44], bl
call fcn.65262260
add esp, 0x2c
test eax, eax
je 0x6523a8f4
push edi
jmp 0x6523a640
mov edx, dword [ebp + 0x1e8]
push 5
push 1
push edx
lea esi, [esp + 0x28]
call fcn.652617d0
add esp, 0xc
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x6523a685
cmp cl, bl
je 0x6523a677
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x6523a685
add eax, 2
add esi, 2
cmp cl, bl
jne 0x6523a657
xor eax, eax
jmp 0x6523a68a
mov eax, str.is_grantable_
jmp 0x6523a5ef
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x6523a6cd
cmp dword [esp + 0xac], ebx
je 0x6523a6cd
mov esi, dword [esp + 0xb0]
cmp dword [esi], ebx
jne 0x6523a6cd
call fcn.652379d0
test eax, eax
jne 0x6523a6cd
mov eax, dword [esp + 0xa8]
push str.SET_TEMPORARY_OPTION_ON_ERRORCONTINUE_r_ngo_r_n
push eax
lea eax, [ebp + 0x128]
push eax
call fcn.652371f0
add esp, 0xc
mov dword [esi], 1
mov ecx, dword [ebp + 0x1e8]
push 7
push 1
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov edi, 0x6528b588
call fcn.652617d0
add esp, 0xc
mov esi, eax
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x6523a715
lea eax, [esp + 0x10]
push str.SELECT_
push eax
call fcn.6526d1f0
add esp, 8
jmp 0x6523a7c2
mov ecx, dword [ebp + 0x1e8]
push 7
push 1
push ecx
mov edi, 0x6528bc58
call fcn.652617d0
add esp, 0xc
mov esi, eax
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x6523a74e
lea eax, [esp + 0x10]
push str.UPDATE_
push eax
call fcn.6526d1f0
add esp, 8
jmp 0x6523a7c2
mov ecx, dword [ebp + 0x1e8]
push 7
push 1
push ecx
mov edi, 0x65290df8
call fcn.652617d0
add esp, 0xc
mov esi, eax
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x6523a787
lea eax, [esp + 0x10]
push str.REFERENCE_
push eax
call fcn.6526d1f0
add esp, 8
jmp 0x6523a7c2
lea ecx, [esp + 0x10]
push str.UNKNOWN_
push ecx
call fcn.6526d1f0
mov edx, dword [ebp + 0x1e8]
mov esi, dword [ebp]
push 1
push 1
push edx
call fcn.652617d0
push eax
lea eax, [ebp + 0x278]
push str.Warning:_Unkown_permission_type_found_on_columns_in_table__s__n_________Please_edit_the_sql_script_generated_and_contact_tech_support.
push eax
call fcn.65237150
add esp, 0x20
push eax
call dword [esi + 0x16]
mov eax, dword [ebp + 0x1e8]
push 2
push 1
push eax
call fcn.652617d0
mov ecx, dword [ebp + 0x1e8]
add esp, 0xc
push eax
push 7
push 1
push ecx
call fcn.652617d0
mov edx, dword [ebp + 0x1e8]
add esp, 0xc
push eax
push 6
push 1
push edx
call fcn.652617d0
push 4
mov esi, eax
mov eax, dword [ebp + 0x1e8]
push 1
push eax
call fcn.652617d0
mov edx, dword [esp + 0xc4]
mov ecx, eax
mov eax, esi
add esp, 0x18
lea edi, [esp + 0x18]
mov esi, ebp
call fcn.6523a4c0
lea ecx, [esp + 0x18]
push 0x6528b758
push ecx
call fcn.6526d1f0
mov edx, dword [ebp + 0x1e8]
push 2
push 1
push edx
call fcn.652617d0
movsx eax, byte [eax]
push eax
call fcn.6527c935
push 0x59
mov esi, eax
call fcn.6527c935
add esp, 0x24
cmp esi, eax
mov esi, str.GRANT__s_ON___s_.__s__TO___s__WITH_GRANT_OPTION_FROM___s__r_ngo_r_n
je 0x6523a867
mov esi, str.GRANT__s_ON___s_.__s__TO___s__FROM___s__r_ngo_r_n
mov ecx, dword [ebp + 0x1e8]
push 5
push 1
push ecx
call fcn.652617d0
mov edx, dword [ebp + 0x1e8]
add esp, 0xc
push eax
push 3
push 1
push edx
call fcn.652617d0
add esp, 0xc
push eax
mov eax, dword [ebp + 0x1e8]
push 1
push 1
push eax
call fcn.652617d0
mov ecx, dword [ebp + 0x1e8]
add esp, 0xc
push eax
push ebx
push 1
push ecx
call fcn.652617d0
mov edx, dword [esp + 0x30]
add esp, 0xc
push eax
mov eax, dword [esp + 0xb8]
push edx
push esi
push eax
lea eax, [ebp + 0x128]
push eax
call fcn.652371f0
mov ecx, dword [esp + 0x38]
push ecx
call fcn.652440f0
mov edx, dword [ebp + 0x1e8]
push 1
push edx
call fcn.65262260
add esp, 0x2c
test eax, eax
jne 0x6523a640
pop edi
mov eax, dword [ebp + 0x1e8]
push 1
push eax
call fcn.65261d80
add esp, 8
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret