Function at 0x4a43b0
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 0x4a445a
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + edi*4]
cmp byte [ecx], 0
mov eax, ecx
je 0x4a43f9
inc eax
cmp byte [eax], 0
jne 0x4a43f3
sub eax, ecx
and eax, 0x3fffffff
mov esi, eax
mov ebp, 1
cmp esi, ebp
jle 0x4a459d
push esi
push ecx
push str._verbose
call fcn.004ad000
add esp, 0xc
test eax, eax
jne 0x4a4428
mov dword [esp + 0x1c], ebp
jmp 0x4a4452
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + edi*4]
push esi
push edx
push str._groupbyparent
call fcn.004ad000
add esp, 0xc
test eax, eax
jne 0x4a4599
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], 0x5e3530
add edi, ebp
cmp edi, dword [esp + 0x40]
jl 0x4a43e5
push 0
push 0
push 0x4a42c0
push 0
push 1
push 4
push str.fkey_collate_clause
push ebx
call fcn.004f7b40
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x4a46fb
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.00521170
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4a46fb
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push 1
push ecx
call fcn.004f9760
mov edx, dword [esp + 0x1c]
push edx
mov dword [esp + 0x38], esi
call fcn.005277b0
add esp, 0x10
cmp eax, 0x64
jne 0x4a46b3
lea esp, [esp]
mov eax, dword [esp + 0x10]
push 0
push eax
or ebp, 0xffffffff
mov dword [esp + 0x48], 0
call fcn.004cfe50
mov ecx, dword [esp + 0x18]
push 1
push ecx
mov esi, eax
call fcn.004cfe50
mov edx, dword [esp + 0x20]
push 2
push edx
mov edi, eax
call fcn.004cfe50
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x28]
push 3
push eax
call fcn.004cfe50
mov ecx, dword [esp + 0x30]
push 4
push ecx
mov dword [esp + 0x54], eax
call fcn.004cfe50
mov edx, dword [esp + 0x38]
push 5
push edx
mov dword [esp + 0x60], eax
call fcn.004cfe50
mov ecx, dword [esp + 0x44]
push 0
mov ebx, eax
lea eax, [esp + 0x74]
push eax
push ebp
push esi
push ecx
call fcn.00521170
mov esi, eax
add esp, 0x44
test esi, esi
jne 0x4a46af
mov edx, dword [esp + 0x40]
push edx
call fcn.005277b0
add esp, 4
cmp eax, 0x64
jne 0x4a45c9
mov eax, dword [esp + 0x40]
push 3
push eax
call fcn.004cfe50
mov esi, eax
push esi
push edi
call fcn.004b7e80
add esp, 0x10
test eax, eax
je 0x4a45c4
push esi
push str.SEARCH_TABLE__USING_INTEGER_PRIMARY_KEY__rowid__
call fcn.004b7e80
add esp, 8
test eax, eax
je 0x4a45c4
xor ebp, ebp
jmp 0x4a45c9
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.0058b93f
add eax, 0x40
push eax
call fcn.00589fad
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.005125e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4a46af
test ebp, ebp
jl 0x4a4699
cmp dword [esp + 0x18], eax
je 0x4a463a
cmp dword [esp + 0x1c], eax
jne 0x4a45fc
test ebp, ebp
jne 0x4a4681
mov edi, dword [esp + 0x28]
test edi, edi
je 0x4a4612
push edi
push ebx
call fcn.004bc240
add esp, 8
test eax, eax
je 0x4a463a
mov edx, dword [esp + 0x24]
push ebx
push str.___Parent_table__s_n
push edx
call fcn.00589fad
push edi
call fcn.004ac9a0
push ebx
push 0x5e3678
call fcn.004d30e0
add esp, 0x18
mov dword [esp + 0x28], eax
test ebp, ebp
jne 0x4a4659
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 0x4a4679
cmp dword [esp + 0x1c], 0
je 0x4a4681
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.00589fad
add esp, 0x14
mov edx, dword [esp + 0x10]
push edx
call fcn.005277b0
add esp, 4
cmp eax, 0x64
je 0x4a44d0
jmp 0x4a46af
push str.Error:_internal_error
call fcn.0058b93f
add eax, 0x40
push eax
call fcn.00589fad
add esp, 8
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
push eax
call fcn.004ac9a0
add esp, 4
test esi, esi
je 0x4a46e4
push ebx
call fcn.004f7d70
add esp, 4
push eax
push 0x5d30c0
call fcn.0058b93f
add eax, 0x40
push eax
call fcn.00589fad
add esp, 0xc
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005125e0
add esp, 4
test esi, esi
jne 0x4a471b
test eax, eax
je 0x4a471b
mov esi, eax
push ebx
call fcn.004f7d70
add esp, 4
push eax
push 0x5d30c0
call fcn.0058b93f
add eax, 0x40
push eax
call fcn.00589fad
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret