Function at 0x41be90
Capabilities:
Reference sql statements
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, edx
mov ebp, dword [esp + 0x3c]
cmp ebp, 2
jl 0x41bed5
mov edi, ecx
mov eax, dword [esi + 4]
mov ecx, 0xffffffff
nop dword [eax]
cmp byte [eax + ecx + 1], 0
lea ecx, [ecx + 1]
jne 0x41beb0
and ecx, 0x3fffffff
je 0x41bed5
push ecx
push str.fkey_indexes
push eax
call fcn.00428de0
add esp, 0xc
test eax, eax
je 0x41bf29
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.004062d0
add esp, 0xc
push 2
call edi
add esp, 4
push eax
push 1
push 0x18
push str.Where_sub_commands_are:_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
push 2
call edi
add esp, 4
push eax
push 1
push 0x11
push str.____fkey_indexes_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [edi]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x38]
mov dword [esp + 0x18], eax
mov dword [esp], 0
cmp ebp, 3
jl 0x41bfe7
mov dword [esp + 0x10], 0
mov edi, 2
mov dword [esp + 0xc], 0x51cfd7
mov dword [esp + 8], 0
jmp 0x41bf81
mov dword [esp + 8], 1
inc edi
cmp edi, ebp
je 0x41bfff
mov eax, dword [esi + edi*4]
mov ebx, 0xffffffff
nop dword [eax]
cmp byte [eax + ebx + 1], 0
lea ebx, [ebx + 1]
jne 0x41bf90
and ebx, 0x3fffffff
cmp ebx, 2
jb 0x41c071
push ebx
push eax
push str._verbose
call fcn.00428de0
add esp, 0xc
test eax, eax
je 0x41bf70
push ebx
push dword [esi + edi*4]
push str._groupbyparent
call fcn.00428de0
add esp, 0xc
test eax, eax
jne 0x41c071
mov dword [esp + 0xc], 0x525710
mov dword [esp + 0x10], 1
jmp 0x41bf78
mov dword [esp + 0xc], 0x51cfd7
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
push 0
push 0
push 0x420620
push 0
push 1
push 4
push str.fkey_collate_clause
mov edi, dword [esp + 0x20]
push edi
call fcn.0043a2a0
add esp, 0x20
test eax, eax
jne 0x41c2d2
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___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_schema_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.0042be00
add esp, 0x14
test eax, eax
jne 0x41c2d2
push dword [esp + 0x10]
push 1
push dword [esp + 8]
call fcn.00432550
add esp, 0xc
push dword [esp]
call fcn.0042be30
add esp, 4
xor ebx, ebx
cmp eax, 0x64
jne 0x41c250
xor ebx, ebx
jmp 0x41c0c6
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.004062d0
jmp 0x41bf21
push dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x14]
push str._s_s______s_n
push dword [esp + 0x28]
call fcn.004062d0
add esp, 0x14
mov edi, dword [esp + 4]
push dword [esp]
call fcn.0042be30
add esp, 4
cmp eax, 0x64
jne 0x41c250
mov dword [esp + 0x14], 0
push 0
push dword [esp + 4]
call fcn.00431d90
add esp, 8
mov ebp, eax
push 1
push dword [esp + 4]
call fcn.00431d90
add esp, 8
mov edi, eax
push 2
push dword [esp + 4]
call fcn.00431d90
add esp, 8
mov dword [esp + 0x24], eax
push 3
push dword [esp + 4]
call fcn.00431d90
add esp, 8
mov dword [esp + 0x1c], eax
push 4
push dword [esp + 4]
call fcn.00431d90
add esp, 8
mov dword [esp + 0x20], eax
push 5
push dword [esp + 4]
call fcn.00431d90
add esp, 8
test ebp, ebp
je 0x41c0ae
test edi, edi
je 0x41c0ae
mov esi, eax
push 0
lea eax, [esp + 0x18]
push eax
push 0xffffffffffffffff
push ebp
push dword [esp + 0x14]
call fcn.0042be00
add esp, 0x14
test eax, eax
jne 0x41c25d
push dword [esp + 0x14]
call fcn.0042be30
add esp, 4
mov ebp, 0xffffffff
cmp eax, 0x64
jne 0x41c1b8
push 3
push dword [esp + 0x18]
call fcn.00431d90
add esp, 8
test eax, eax
je 0x41c1af
mov ebp, eax
push eax
push edi
call fcn.00435560
add esp, 8
test eax, eax
je 0x41c1b3
push ebp
push str.SEARCH__USING_INTEGER_PRIMARY_KEY__rowid__
call fcn.00435560
add esp, 8
test eax, eax
sete al
jmp 0x41c1b5
xor eax, eax
jmp 0x41c1b5
mov al, 1
movzx ebp, al
push dword [esp + 0x14]
call fcn.0042d1d0
add esp, 4
test eax, eax
jne 0x41c25d
test ebp, ebp
js 0x41c293
cmp dword [esp + 0x10], 0
je 0x41c227
cmp dword [esp + 8], 0
jne 0x41c1ea
test ebp, ebp
jne 0x41c0ae
test ebx, ebx
je 0x41c1fc
push ebx
push esi
call fcn.00428d80
add esp, 8
test eax, eax
je 0x41c227
push esi
push str.___Parent_table__s_n
push dword [esp + 0x20]
call fcn.004062d0
add esp, 0xc
push ebx
call fcn.00424f10
add esp, 4
push esi
push 0x51d22f
call fcn.00428600
add esp, 8
mov ebx, eax
test ebp, ebp
je 0x41c091
cmp dword [esp + 8], 0
je 0x41c0ae
push dword [esp + 0x1c]
push dword [esp + 0x28]
push dword [esp + 0x14]
push str._s__no_extra_indexes_required_for__s_____s___n
jmp 0x41c0a2
push ebx
call fcn.00424f10
add esp, 4
mov bl, 1
jmp 0x41c2bf
push ebx
call fcn.00424f10
add esp, 4
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov esi, eax
mov edi, dword [esp + 4]
push edi
call fcn.004362c0
add esp, 4
push eax
push 0x51e066
push esi
call fcn.004062d0
add esp, 0xc
xor ebx, ebx
jmp 0x41c2bf
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0x15
push str.Error:_internal_error
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
push ebx
call fcn.00424f10
add esp, 4
mov bl, 1
mov edi, dword [esp + 4]
push dword [esp]
call fcn.0042d1d0
add esp, 4
test bl, bl
je 0x41c2f7
test eax, eax
je 0x41c2f7
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.004362c0
add esp, 4
push eax
push 0x51e066
push esi
call fcn.004062d0
add esp, 0xc
add esp, 0x28
jmp 0x41bf24