Function at 0x4a4580
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [eax]
mov eax, dword [eax + 0x18]
push ebp
push esi
push edi
mov dword [esp + 0x24], eax
xor eax, eax
mov edi, 2
cmp dword [esp + 0x40], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0x5d3001
mov dword [esp + 0x10], eax
jle 0x4a462a
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + edi*4]
cmp byte [ecx], 0
mov eax, ecx
je 0x4a45c9
inc eax
cmp byte [eax], 0
jne 0x4a45c3
sub eax, ecx
and eax, 0x3fffffff
mov esi, eax
mov ebp, 1
cmp esi, ebp
jle 0x4a476d
push esi
push ecx
push str._verbose
call fcn.004ad1c0
add esp, 0xc
test eax, eax
jne 0x4a45f8
mov dword [esp + 0x1c], ebp
jmp 0x4a4622
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + edi*4]
push esi
push edx
push str._groupbyparent
call fcn.004ad1c0
add esp, 0xc
test eax, eax
jne 0x4a4769
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], 0x5e3470
add edi, ebp
cmp edi, dword [esp + 0x40]
jl 0x4a45b5
push 0
push 0
push 0x4a4490
push 0
push 1
push 4
push str.fkey_collate_clause
push ebx
call fcn.004f7d00
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x4a48cb
push eax
lea edx, [esp + 0x14]
push edx
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_
push ebx
call fcn.00521340
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4a48cb
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push 1
push ecx
call fcn.004f9920
mov edx, dword [esp + 0x1c]
push edx
mov dword [esp + 0x38], esi
call fcn.00527980
add esp, 0x10
cmp eax, 0x64
jne 0x4a4883
lea esp, [esp]
mov eax, dword [esp + 0x10]
push 0
push eax
or ebp, 0xffffffff
mov dword [esp + 0x48], 0
call fcn.004d0010
mov ecx, dword [esp + 0x18]
push 1
push ecx
mov esi, eax
call fcn.004d0010
mov edx, dword [esp + 0x20]
push 2
push edx
mov edi, eax
call fcn.004d0010
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x28]
push 3
push eax
call fcn.004d0010
mov ecx, dword [esp + 0x30]
push 4
push ecx
mov dword [esp + 0x54], eax
call fcn.004d0010
mov edx, dword [esp + 0x38]
push 5
push edx
mov dword [esp + 0x60], eax
call fcn.004d0010
mov ecx, dword [esp + 0x44]
push 0
mov ebx, eax
lea eax, [esp + 0x74]
push eax
push ebp
push esi
push ecx
call fcn.00521340
mov esi, eax
add esp, 0x44
test esi, esi
jne 0x4a487f
mov edx, dword [esp + 0x40]
push edx
call fcn.00527980
add esp, 4
cmp eax, 0x64
jne 0x4a4799
mov eax, dword [esp + 0x40]
push 3
push eax
call fcn.004d0010
mov esi, eax
push esi
push edi
call fcn.004b8040
add esp, 0x10
test eax, eax
je 0x4a4794
push esi
push str.SEARCH_TABLE__USING_INTEGER_PRIMARY_KEY__rowid__
call fcn.004b8040
add esp, 8
test eax, eax
je 0x4a4794
xor ebp, ebp
jmp 0x4a4799
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 4]
mov ecx, dword [edx]
push eax
push ecx
push str.Usage:__s__s___verbose____groupbyparent__n
call fcn.0058bb1f
add eax, 0x40
push eax
call fcn.0058a18d
add esp, 0x10
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x28
ret
mov ebp, 1
mov ecx, dword [esp + 0x40]
push ecx
call fcn.005127b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4a487f
test ebp, ebp
jl 0x4a4869
cmp dword [esp + 0x18], eax
je 0x4a480a
cmp dword [esp + 0x1c], eax
jne 0x4a47cc
test ebp, ebp
jne 0x4a4851
mov edi, dword [esp + 0x28]
test edi, edi
je 0x4a47e2
push edi
push ebx
call fcn.004bc3f0
add esp, 8
test eax, eax
je 0x4a480a
mov edx, dword [esp + 0x24]
push ebx
push str.___Parent_table__s_n
push edx
call fcn.0058a18d
push edi
call fcn.004acb60
push ebx
push 0x5e35b8
call fcn.004d32a0
add esp, 0x18
mov dword [esp + 0x28], eax
test ebp, ebp
jne 0x4a4829
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push str._s_s______s_n
push eax
jmp 0x4a4849
cmp dword [esp + 0x1c], 0
je 0x4a4851
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push str._s__no_extra_indexes_required_for__s_____s___n
push ecx
call fcn.0058a18d
add esp, 0x14
mov edx, dword [esp + 0x10]
push edx
call fcn.00527980
add esp, 4
cmp eax, 0x64
je 0x4a46a0
jmp 0x4a487f
push str.Error:_internal_error
call fcn.0058bb1f
add eax, 0x40
push eax
call fcn.0058a18d
add esp, 8
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
push eax
call fcn.004acb60
add esp, 4
test esi, esi
je 0x4a48b4
push ebx
call fcn.004f7f30
add esp, 4
push eax
push 0x5d30c0
call fcn.0058bb1f
add eax, 0x40
push eax
call fcn.0058a18d
add esp, 0xc
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005127b0
add esp, 4
test esi, esi
jne 0x4a48eb
test eax, eax
je 0x4a48eb
mov esi, eax
push ebx
call fcn.004f7f30
add esp, 4
push eax
push 0x5d30c0
call fcn.0058bb1f
add eax, 0x40
push eax
call fcn.0058a18d
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret