Function at 0x4150c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebp, dword [esp + 0x40]
mov esi, edx
cmp ebp, 2
jl 0x415106
mov eax, dword [esi + 4]
mov edi, ecx
lea ecx, [eax - 1]
nop word [eax + eax]
cmp byte [ecx + 1], 0
lea ecx, [ecx + 1]
jne 0x4150e0
sub ecx, eax
and ecx, 0x3fffffff
je 0x415106
push ecx
push str.fkey_indexes
push eax
call fcn.0041f620
add esp, 0xc
test eax, eax
je 0x415152
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 2
call edi
add esp, 4
push dword [esi]
push str.Usage__s_sub_command__switches...__n
push eax
call fcn.00404690
add esp, 0xc
push 2
call edi
add esp, 4
push str.Where_sub_commands_are:_n
push eax
call fcn.00404690
add esp, 8
push 2
call edi
add esp, 4
push str.____fkey_indexes_n
push eax
call fcn.00404690
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [edi]
mov ecx, dword [edi + 0x28]
cmp ebp, 3
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 0x1c], ecx
jl 0x415208
mov edi, 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x501917
mov dword [esp + 0xc], 0
jmp 0x4151a1
mov dword [esp + 0xc], 1
inc edi
cmp edi, ebp
je 0x415220
mov eax, dword [esi + edi*4]
lea ebx, [eax - 1]
nop word [eax + eax]
cmp byte [ebx + 1], 0
lea ebx, [ebx + 1]
jne 0x4151b0
sub ebx, eax
and ebx, 0x3fffffff
cmp ebx, 2
jb 0x415292
push ebx
push eax
push str._verbose
call fcn.0041f620
add esp, 0xc
test eax, eax
je 0x415190
push ebx
push dword [esi + edi*4]
push str._groupbyparent
call fcn.0041f620
add esp, 0xc
test eax, eax
jne 0x415292
mov dword [esp + 0x10], 0x508ab2
mov dword [esp + 0x14], 1
jmp 0x415198
mov dword [esp + 0x10], 0x501917
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
push 0
push 0
push 0x4190a0
push 0
push 1
push 4
push str.fkey_collate_clause
mov edi, dword [esp + 0x20]
push edi
call fcn.00430c00
add esp, 0x20
test eax, eax
jne 0x4154eb
mov eax, esp
push 0
push eax
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 edi
call fcn.0042cf00
add esp, 0x14
test eax, eax
jne 0x4154eb
push dword [esp + 0x14]
push 1
push dword [esp + 8]
call fcn.00428c30
add esp, 0xc
push dword [esp]
call fcn.00426830
add esp, 4
xor edi, edi
cmp eax, 0x64
jne 0x41546d
xor edi, edi
jmp 0x4152e6
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push dword [esi + 4]
push dword [esi]
push str.Usage:__s__s___verbose____groupbyparent__n
push eax
call fcn.00404690
add esp, 0x10
jmp 0x415510
push dword [esp + 0x20]
push dword [esp + 0x2c]
push dword [esp + 0x18]
push str._s_s______s_n
push dword [esp + 0x2c]
call fcn.00404690
add esp, 0x14
push dword [esp]
call fcn.00426830
add esp, 4
cmp eax, 0x64
jne 0x41546d
mov dword [esp + 8], edi
mov dword [esp + 0x18], 0
push 0
push dword [esp + 4]
call fcn.00428220
add esp, 8
mov ebp, eax
push 1
push dword [esp + 4]
call fcn.00428220
add esp, 8
mov edi, eax
push 2
push dword [esp + 4]
call fcn.00428220
add esp, 8
mov esi, eax
push 3
push dword [esp + 4]
call fcn.00428220
add esp, 8
mov dword [esp + 0x20], eax
push 4
push dword [esp + 4]
call fcn.00428220
add esp, 8
mov dword [esp + 0x28], eax
push 5
push dword [esp + 4]
call fcn.00428220
add esp, 8
mov ebx, eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push ebp
push dword [esp + 0x14]
call fcn.0042cf00
add esp, 0x14
test eax, eax
jne 0x41547e
mov dword [esp + 0x24], esi
push dword [esp + 0x18]
call fcn.00426830
add esp, 4
mov esi, 0xffffffff
cmp eax, 0x64
jne 0x4153c6
push 3
push dword [esp + 0x1c]
call fcn.00428220
add esp, 8
mov ebp, eax
push eax
push edi
call fcn.0042c020
add esp, 8
test eax, eax
je 0x4153c1
push ebp
push str.SEARCH_TABLE__USING_INTEGER_PRIMARY_KEY__rowid__
call fcn.0042c020
add esp, 8
test eax, eax
sete al
jmp 0x4153c3
mov al, 1
movzx esi, al
push dword [esp + 0x18]
call fcn.00425440
add esp, 4
test eax, eax
jne 0x41547e
test esi, esi
js 0x415482
cmp dword [esp + 0x14], 0
je 0x4153fd
cmp dword [esp + 0xc], 0
jne 0x415403
test esi, esi
je 0x415403
mov edi, dword [esp + 8]
jmp 0x4152d2
mov edi, dword [esp + 8]
jmp 0x415444
mov edi, dword [esp + 8]
test edi, edi
je 0x415419
push edi
push ebx
call fcn.0041f5c0
add esp, 8
test eax, eax
je 0x415444
push ebx
push str.___Parent_table__s_n
push dword [esp + 0x24]
call fcn.00404690
add esp, 0xc
push edi
call fcn.0041c220
add esp, 4
push ebx
push 0x501b14
call fcn.0041ef10
add esp, 8
mov edi, eax
test esi, esi
je 0x4152b5
cmp dword [esp + 0xc], 0
je 0x4152d2
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esp + 0x18]
push str._s__no_extra_indexes_required_for__s_____s___n
jmp 0x4152c6
push edi
call fcn.0041c220
add esp, 4
mov edi, dword [esp + 4]
mov bl, 1
jmp 0x4154d8
mov ebp, eax
jmp 0x41549d
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.Error:_internal_error
push eax
call fcn.00404690
add esp, 8
xor ebp, ebp
push dword [esp + 8]
call fcn.0041c220
add esp, 4
test ebp, ebp
je 0x415476
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov edi, dword [esp + 4]
mov esi, eax
push edi
call fcn.0042cf50
add esp, 4
push eax
push 0x50188d
push esi
call fcn.00404690
add esp, 0xc
xor ebx, ebx
push dword [esp]
call fcn.00425440
add esp, 4
test bl, bl
je 0x415510
test eax, eax
je 0x415510
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov esi, eax
push edi
call fcn.0042cf50
add esp, 4
push eax
push 0x50188d
push esi
call fcn.00404690
add esp, 0xc
add esp, 0x2c
jmp 0x41514d