Function at 0x6523c180
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x2c
push ebp
mov ebp, dword [esp + 0x34]
mov eax, dword [ebp]
mov cl, byte [eax + 0x22]
push esi
xor esi, esi
cmp cl, 2
mov dword [esp + 8], esi
mov dword [esp + 0x38], 1
jne 0x6523c1ad
pop esi
mov eax, 1
pop ebp
add esp, 0x2c
ret
test byte [eax + 0x24], 4
jne 0x6523c1b8
cmp dword [ebp + 0x6c], esi
je 0x6523c1c9
mov eax, ebp
call fcn.6523bee0
test eax, eax
jne 0x6523c1c9
pop esi
pop ebp
add esp, 0x2c
ret
mov eax, dword [ebp]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
test byte [eax + 0x77], 2
mov edx, str.AND_not_exists___select_1_from_SYS.SYSCOLUMN_c__SYS.SYSDOMAIN_d_where_c.table_idSYS.SYSTABLE.table_id_AND_c.domain_idd.domain_id_AND_d.domain_name__java.lang.Object__
jne 0x6523c200
mov edx, 0x6528b61a
test byte [eax + 0x24], 0x10
mov ecx, str.AND_table_id_IN__SELECT_table_id_FROM_extract_tables_
jne 0x6523c210
mov ecx, 0x6528b61a
cmp dword [ebp + 0x60], esi
mov eax, str.AND_remote_location_IS_NULL
jne 0x6523c21f
mov eax, 0x6528b61a
push edx
push ecx
push eax
lea eax, [ebp + 0x278]
push str.SELECT_table_id__table_name__user_name__user_id_FROM_SYS.SYSUSERPERM__SYS.SYSTABLE__WHERE_SYS.SYSUSERPERM.user_id__SYS.SYSTABLE.creator_AND_table_type_IN__BASE__AND_user_id____0__s__s__s_ORDER_BY_table_id
push eax
call fcn.65237150
mov ecx, dword [ebp + 0x1e8]
push eax
push 2
push ecx
call fcn.65261aa0
mov edx, dword [ebp + 0x1e8]
push 2
push edx
call fcn.65262260
add esp, 0x28
test eax, eax
je 0x6523c643
push ebx
push edi
lea ecx, [ecx]
mov eax, dword [ebp + 0x1e8]
push 2
push 2
push eax
call fcn.652617d0
mov ecx, dword [ebp + 0x1e8]
push 1
push 2
push ecx
mov ebx, eax
mov dword [esp + 0x30], esi
call fcn.652617d0
push eax
lea edx, [esp + 0x34]
push edx
call fcn.6526d1f0
lea eax, [esp + 0x44]
push 0x6528b6ec
push eax
mov dword [esp + 0x4c], esi
call fcn.6526d1f0
lea ecx, [esp + 0x4c]
push ebx
push ecx
call fcn.6526d1f0
lea edx, [esp + 0x54]
push 0x652903d4
push edx
call fcn.6526d1f0
mov eax, dword [esp + 0x58]
push eax
lea ecx, [esp + 0x60]
push ecx
call fcn.6526d1f0
add esp, 0x40
lea edx, [esp + 0x24]
push 0x6528b6ec
push edx
call fcn.6526d1f0
mov eax, dword [esp + 0x28]
push eax
push ebx
push ebp
call fcn.6523edd0
add esp, 0x14
test eax, eax
je 0x6523c61c
mov edi, 0x65291a20
mov esi, ebx
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x6523c61a
mov eax, dword [ebp + 0x118]
push eax
push ebx
call fcn.652810f2
add esp, 8
test eax, eax
jne 0x6523c354
mov ecx, dword [ebp + 0x290]
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.65240060
add esp, 8
test eax, eax
je 0x6523c354
mov eax, dword [ebp + 0x298]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.65240060
add esp, 8
test eax, eax
je 0x6523c61a
push 0x65291ac0
push ebx
call fcn.652810f2
add esp, 8
test eax, eax
jne 0x6523c380
mov edx, dword [esp + 0x20]
push 0x652a442c
push edx
call fcn.65240060
add esp, 8
test eax, eax
jne 0x6523c61a
push str.rs_systabgroup
push ebx
call fcn.652810f2
add esp, 8
test eax, eax
jne 0x6523c3ae
mov eax, dword [ebp + 0x290]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.65240060
add esp, 8
test eax, eax
jne 0x6523c61a
mov eax, dword [ebp]
mov cl, byte [eax + 0x23]
test cl, cl
je 0x6523c3d0
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + 0x16]
push ecx
push ecx
push ebx
push 0x1545
push edx
call fcn.652659d0
add esp, 0x14
mov eax, dword [ebp]
mov al, byte [eax + 0x24]
test al, 4
jne 0x6523c5c3
mov ecx, dword [ebp + 0x6c]
test ecx, ecx
jne 0x6523c5c3
test al, 1
jne 0x6523c414
mov ecx, dword [ebp + 0x1e8]
push 0
push 2
push ecx
mov dword [esp + 0x3c], 0
call fcn.652617d0
push eax
lea edi, [esp + 0x40]
mov esi, ebp
call fcn.6523bd30
add esp, 0x10
mov ecx, dword [ebp + 0x1e8]
push 1
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x38]
push eax
push 0
push 2
push ecx
call fcn.652617d0
mov edx, dword [esp + 0x38]
add esp, 0xc
push eax
push edx
push ebx
push ebp
call fcn.65239320
mov ebx, eax
mov eax, dword [ebp]
mov cl, byte [eax + 0x23]
add esp, 0x1c
cmp cl, 2
mov dword [esp + 0x10], ebx
jne 0x6523c467
test byte [eax + 0x24], 0x10
je 0x6523c467
mov eax, dword [eax + 0x16]
push ebx
push eax
call fcn.65265990
add esp, 8
mov ecx, dword [ebp + 0x1e8]
push ebx
push 7
push ecx
call fcn.65261aa0
mov edx, dword [ebp + 0x1e8]
push 0
push 7
push edx
call fcn.65261680
mov edi, eax
xor edx, edx
lea ecx, [edi + 0x3c]
mov eax, 0x6000
div ecx
mov edx, dword [ebp + 0x1e8]
push 7
push edx
mov esi, eax
call fcn.65261640
add esp, 0x20
cmp esi, 1
jle 0x6523c4cf
imul eax, eax, 0x2e
or ecx, 0xffffffff
sub ecx, eax
lea eax, [eax + edi + 1]
imul eax, esi
sub ecx, edi
add eax, 0x3c
cmp eax, 0x6000
jle 0x6523c4cf
dec esi
add eax, ecx
cmp esi, 1
jg 0x6523c4c0
mov eax, esi
cdq
sub eax, edx
mov edi, eax
sar edi, 1
test edi, edi
jg 0x6523c4e1
mov edi, 1
mov eax, dword [ebp + 0x1ec]
push ebx
push 7
push eax
call fcn.65261aa0
mov ecx, dword [ebp + 0x1e8]
push edi
push 1
push 7
push ecx
call fcn.65261fd0
mov edx, dword [esp + 0x48]
mov ecx, dword [ebp + 0x1ec]
mov esi, eax
mov eax, dword [ebp + 0x1e8]
push esi
push 1
push edx
push 7
push eax
push ecx
call fcn.65263250
add esp, 0x34
xor ebx, ebx
test esi, esi
je 0x6523c596
jle 0x6523c52f
add ebx, esi
jmp 0x6523c530
inc ebx
mov eax, dword [ebp]
mov cl, byte [eax + 0x23]
test cl, cl
je 0x6523c551
mov edx, dword [esp + 0x20]
mov eax, dword [eax + 0x16]
push ebx
push edx
push 0x15b9
push eax
call fcn.652659d0
add esp, 0x10
mov ecx, dword [ebp + 0x1e8]
push edi
push 0
push 7
push ecx
call fcn.65261fd0
mov edx, dword [esp + 0x3c]
mov ecx, dword [ebp + 0x1ec]
mov esi, eax
mov eax, dword [ebp + 0x1e8]
push esi
push 0
push edx
push 7
push eax
push ecx
call fcn.65263250
add esp, 0x28
test eax, eax
je 0x6523c58e
test esi, esi
jne 0x6523c529
jmp 0x6523c596
mov dword [esp + 0x40], 0
mov edx, dword [ebp + 0x1ec]
push edx
call fcn.65262540
mov eax, dword [ebp + 0x1e8]
push 7
push eax
call fcn.65261d80
mov ecx, dword [ebp + 0x1ec]
push 7
push ecx
call fcn.65261d80
add esp, 0x14
jmp 0x6523c61a
test al, 0x10
je 0x6523c602
mov ecx, dword [ebp + 0x1e8]
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x38]
push eax
push 0
push 2
push ecx
mov dword [esp + 0x48], 0
call fcn.652617d0
mov edx, dword [esp + 0x38]
add esp, 0xc
push eax
push edx
push ebx
push ebp
call fcn.65239320
add esp, 0x1c
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push ebx
push ebp
call fcn.6523bf60
add esp, 0x10
test eax, eax
je 0x6523c637
xor esi, esi
mov edx, dword [ebp + 0x1e8]
push 2
push edx
call fcn.65262260
add esp, 8
test eax, eax
jne 0x6523c260
jmp 0x6523c641
mov dword [esp + 0x40], 0
xor esi, esi
pop edi
pop ebx
mov eax, dword [ebp]
test byte [eax + 0x24], 4
jne 0x6523c651
cmp dword [ebp + 0x6c], esi
je 0x6523c65e
call fcn.6523c120
test eax, eax
jne 0x6523c65e
mov dword [esp + 0x38], esi
mov ecx, dword [esp + 0x30]
push ecx
call fcn.652440f0
mov edx, dword [esp + 0x1c]
push edx
call fcn.652440f0
mov eax, dword [ebp + 0x1e8]
push 2
push eax
call fcn.65261d80
mov eax, dword [esp + 0x48]
add esp, 0x10
pop esi
pop ebp
add esp, 0x2c
ret