Function at 0x4a16d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x28], eax
xor eax, eax
mov ebx, 2
cmp dword [ebp + 0xc], ebx
push edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 0x5e1790
mov dword [esp + 0x30], eax
jle 0x4a1788
lea esp, [esp]
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + ebx*4]
cmp byte [esi], 0
mov eax, esi
je 0x4a1726
lea ecx, [ecx]
inc eax
cmp byte [eax], 0
jne 0x4a1720
sub eax, esi
and eax, 0x3fffffff
mov edi, eax
cmp edi, 1
jle 0x4a199c
push edi
push esi
push str._verbose
call fcn.004ae830
add esp, 0xc
test eax, eax
jne 0x4a1755
mov dword [esp + 0x24], 1
jmp 0x4a177c
push edi
push esi
push str._groupbyparent
call fcn.004ae830
add esp, 0xc
test eax, eax
jne 0x4a1999
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0x5f7928
inc ebx
cmp ebx, dword [ebp + 0xc]
jl 0x4a1710
mov esi, dword [esp + 0x14]
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push 0x4a14c0
push eax
push 1
push 4
push str.fkey_collate_clause
mov eax, esi
call fcn.00526850
mov edi, eax
add esp, 0x28
test edi, edi
jne 0x4a1aa8
push eax
lea ecx, [esp + 0x34]
push ecx
push eax
push 0x80
push 0xffffffffffffffff
push str.SELECT______EXPLAIN_QUERY_PLAN_SELECT_1_FROM___quote_s.name____WHERE____group_concat_quote_s.name___.__quote_f._from_________fkey_collate_clause________f._table___COALESCE_f._to___p._name____s.name__f._from____AND_________SEARCH_TABLE___s.name___USING_COVERING_INDEX____group_concat_____AND____________s.name______group_concat_f._from_________________f._table______group_concat_COALESCE_f._to___p._name_____________CREATE_INDEX___quote_s.name___group_concat_f._from__________ON___quote_s.name_______group_concat_quote_f._from___________fkey_collate_clause___________f._table___COALESCE_f._to___p._name____s.name__f._from___________________f._table__FROM_sqlite_master_AS_s__pragma_foreign_key_list_s.name__AS_f_LEFT_JOIN_pragma_table_info_AS_p_ON__pk_1seq_AND_p.argf._table___GROUP_BY_s.name__f.id_ORDER_BY__CASE_WHEN___THEN_f._table__ELSE_s.name_END_
mov eax, esi
call fcn.00501540
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x4a1aa8
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x30]
cdq
push edx
push eax
push 1
push esi
call fcn.004d2b40
push esi
mov dword [esp + 0x44], edi
call fcn.004d1cc0
add esp, 0x14
cmp eax, 0x64
jne 0x4a1a59
push 0
push esi
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x20], 0
call fcn.004d2500
push 1
push esi
mov edi, eax
call fcn.004d2500
push 2
push esi
mov ebx, eax
call fcn.004d2500
push 3
push esi
mov dword [esp + 0x5c], eax
call fcn.004d2500
push 4
push esi
mov dword [esp + 0x5c], eax
call fcn.004d2500
push 5
push esi
mov dword [esp + 0x68], eax
call fcn.004d2500
push 0
lea edx, [esp + 0x4c]
push edx
push 0
push 0x80
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x54]
push 0xffffffffffffffff
push edi
call fcn.00501540
mov edi, eax
add esp, 0x48
test edi, edi
jne 0x4a1a59
mov edi, dword [esp + 0x18]
push edi
call fcn.004d1cc0
add esp, 4
cmp eax, 0x64
jne 0x4a18d5
push 3
push edi
call fcn.004d2500
push 0x5b
mov edi, eax
push 0x5e49c0
push edi
push ebx
call fcn.004f4740
add esp, 0x18
test eax, eax
je 0x4a18cd
push 0x5b
push 0x5e49c0
push edi
push str.SEARCH_TABLE__USING_INTEGER_PRIMARY_KEY__rowid__
call fcn.004f4740
add esp, 0x10
mov dword [esp + 0x10], 0
test eax, eax
jne 0x4a18d5
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x18]
push eax
call fcn.004d0dd0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4a1a59
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x4a1a43
cmp dword [esp + 0x1c], edi
je 0x4a19e5
cmp dword [esp + 0x24], edi
jne 0x4a1910
test eax, eax
jne 0x4a1a2f
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x4a192f
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4a192f
mov eax, ebx
call fcn.004ae7e0
test eax, eax
je 0x4a19e5
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
push ecx
push str.___Parent_table__s_n
push edx
call fcn.00585612
add esp, 0xc
test ebx, ebx
je 0x4a19cf
cmp dword [0x631928], 0
je 0x4a19c5
mov eax, dword [0x640888]
test eax, eax
je 0x4a196a
push eax
call dword [0x631984]
add esp, 4
push ebx
call dword [0x631960]
sub dword [0x640828], eax
dec dword [0x64084c]
push ebx
call dword [0x631958]
mov eax, dword [0x640888]
add esp, 8
test eax, eax
je 0x4a19cf
push eax
call dword [0x63198c]
jmp 0x4a19cc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
push edx
push eax
push str.Usage:__s__s___verbose____groupbyparent__n
call fcn.00587376
add eax, 0x40
push eax
call fcn.00585612
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [0x631958]
add esp, 4
mov eax, dword [esp + 0x20]
push eax
push 0x5f7c60
call fcn.004ad880
add esp, 8
mov dword [esp + 0x30], eax
cmp dword [esp + 0x10], 0
jne 0x4a1a07
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
push str._s_s______s_n
push ecx
jmp 0x4a1a27
cmp dword [esp + 0x24], 0
je 0x4a1a2f
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
push str._s__no_extra_indexes_required_for__s_____s___n
push edx
call fcn.00585612
add esp, 0x14
push esi
call fcn.004d1cc0
add esp, 4
cmp eax, 0x64
je 0x4a1800
jmp 0x4a1a59
push str.Error:_internal_error
call fcn.00587376
add eax, 0x40
push eax
call fcn.00585612
add esp, 8
mov eax, dword [esp + 0x30]
push eax
call fcn.004ab490
add esp, 4
test edi, edi
je 0x4a1a8e
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005270e0
add esp, 4
push eax
push 0x5e1654
call fcn.00587376
add eax, 0x40
push eax
call fcn.00585612
add esp, 0xc
push esi
call fcn.004d0dd0
add esp, 4
test edi, edi
jne 0x4a1ac8
test eax, eax
je 0x4a1ac8
mov edx, dword [esp + 0x14]
mov edi, eax
push edx
jmp 0x4a1aa9
push esi
call fcn.005270e0
add esp, 4
push eax
push 0x5e1654
call fcn.00587376
add eax, 0x40
push eax
call fcn.00585612
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret