Function at 0x1006f3c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ecx]
mov ebx, ecx
mov dword [ebp - 0x24], edx
mov ecx, dword [eax + 0x18]
cmp byte [eax + 0x51], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x3c], ecx
jne 0x1006f6be
mov eax, dword [ebp - 0x24]
mov ecx, ebx
xor edx, edx
add eax, 8
push eax
call fcn.100805e0
add esp, 4
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x1006f6be
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + 0x48]
test ecx, ecx
je 0x1006f6db
mov edx, dword [ebx]
mov esi, dword [ebp - 0x14]
mov edx, dword [edx + 0x10]
add edx, 0xc
xor edi, edi
dec edi
inc edi
cmp dword [edx], ecx
lea edx, [edx + 0x10]
jne 0x1006f420
mov ecx, dword [esi + 0x10]
mov edx, edi
mov dword [ebp - 0x28], edi
shl edx, 4
mov ecx, dword [ecx + edx]
mov dword [ebp - 0x18], ecx
or dword [esi + 0x18], 2
test eax, eax
je 0x1006f6be
mov ecx, dword [eax]
test ecx, ecx
mov dword [ebp - 0x20], ecx
je 0x1006f6be
mov edi, dword [eax + 4]
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov edx, edi
inc edx
sete al
push eax
call fcn.10019ed0
add esp, 4
test eax, eax
je 0x1006f6be
mov esi, eax
push edi
push dword [ebp - 0x20]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esi + edi], 0
mov edi, esi
mov dword [ebp - 0x10], esi
movzx eax, byte [esi]
cmp byte [eax + 0x101944e0], 0
js 0x1006f6e8
mov esi, dword [ebp - 0x14]
mov edx, edi
mov ecx, esi
push dword [ebp - 0x18]
call fcn.10017e00
add esp, 4
test eax, eax
jne 0x1006f6cd
mov ecx, esi
mov edx, edi
push dword [ebp - 0x18]
call fcn.1004b400
add esp, 4
test eax, eax
jne 0x1006f6cd
mov edx, dword [ebp - 0x1c]
mov ecx, esi
push edi
call fcn.1007aed0
add esp, 4
test eax, eax
jne 0x1006f6cd
mov edi, dword [ebp - 0x1c]
mov ecx, ebx
mov edx, edi
call fcn.100a6ae0
test eax, eax
jne 0x1006f689
mov edx, dword [ebp - 0x10]
mov ecx, ebx
push edx
push 0x101b21d8
call fcn.1007a9c0
add esp, 8
test eax, eax
jne 0x1006f689
cmp dword [edi + 0xc], 0
mov eax, dword [edi]
jne 0x1006f720
mov ecx, ebx
mov edx, 0x1a
push 0
push eax
push dword [ebp - 0x18]
call fcn.1007a8c0
add esp, 0xc
test eax, eax
jne 0x1006f689
mov ecx, ebx
mov edx, edi
call fcn.10080620
test eax, eax
jne 0x1006f689
xor edx, edx
cmp dword [edi + 0x38], 0
jne 0x1006f728
mov eax, dword [ebx + 8]
mov dword [ebp - 0x20], edx
test eax, eax
jne 0x1006f580
cmp dword [ebx + 0x74], 0
jne 0x1006f571
mov eax, dword [ebx]
test byte [eax + 0x4c], 8
jne 0x1006f571
mov byte [ebx + 0x17], 1
mov ecx, ebx
call fcn.1000f530
test eax, eax
je 0x1006f689
mov ecx, dword [ebx + 0x74]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
test ecx, ecx
cmove ecx, ebx
xor esi, esi
mov byte [ecx + 0x15], 1
mov edi, dword [edi]
cmp edi, 0xffffffff
je 0x1006f5bb
mov cl, byte [edi]
test cl, cl
je 0x1006f5bb
xor esi, esi
mov eax, edi
cmp cl, 0xc0
jae 0x1006f6ab
inc eax
mov cl, byte [eax]
inc esi
test cl, cl
je 0x1006f5bb
cmp eax, 0xffffffff
jne 0x1006f5a5
xor eax, eax
cmp dword [ebp - 0x28], 1
sete al
push edi
mov dword [ebp - 0x34], eax
push eax
mov ebx, edi
mov edi, dword [ebp - 0x10]
push edi
push ebx
mov eax, dword [ebp - 0x18]
push eax
push eax
push str.UPDATE___w_.sqlite_master_SET_sql__sqlite_rename_table__Q__type__name__sql___Q___Q___d__WHERE__type_index_OR_tbl_name_Q_COLLATE_nocase_AND___name_NOT_LIKE_sqliteX____ESCAPE_X
push dword [ebp - 0x2c]
call fcn.1007b6b0
add esp, 0x20
mov dword [ebp - 0x38], ebx
push ebx
push esi
push edi
push edi
push edi
mov ebx, dword [ebp - 0x18]
push ebx
push str.UPDATE__Q.sqlite_master_SET_tbl_name___Q__name__CASE_WHEN_typetable_THEN__Q_WHEN_name_LIKE_sqliteX_autoindex___ESCAPE_X______AND_typeindex_THEN_sqlite_autoindex____Q__substr_name__d18__ELSE_name_END_WHERE_tbl_name_Q_COLLATE_nocase_AND__typetable_OR_typeindex_OR_typetrigger__
mov eax, dword [ebp - 0x2c]
mov esi, eax
push eax
call fcn.1007b6b0
add esp, 0x20
mov edi, dword [ebp - 0x14]
mov edx, str.sqlite_sequence
mov ecx, edi
push ebx
call fcn.10017e00
add esp, 4
test eax, eax
jne 0x1006f74c
mov ebx, esi
cmp dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x10]
je 0x1006f644
push esi
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
push esi
push ecx
push eax
push str.UPDATE_sqlite_temp_schema_SET_sql__sqlite_rename_table__Q__type__name__sql___Q___Q__1___tbl_name__CASE_WHEN_tbl_name_Q_COLLATE_nocase_AND___________sqlite_rename_test__Q__sql__type__name__1__THEN__Q_ELSE_tbl_name_END_WHERE_type_IN__view__trigger_
push ebx
call fcn.1007b6b0
add esp, 0x20
mov eax, dword [ebp - 0x20]
mov esi, edi
test eax, eax
jne 0x1006f76a
mov edi, dword [ebp - 0x28]
mov ecx, ebx
mov edx, edi
call fcn.100a6be0
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x18]
push eax
push eax
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push ebx
call fcn.1007b6b0
add esp, 0x14
cmp edi, 1
je 0x1006f689
push dword [ebp - 0x18]
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push ebx
call fcn.1007b6b0
add esp, 0xc
mov edx, dword [ebp - 0x24]
mov ecx, esi
call fcn.1004c130
mov edx, dword [ebp - 0x10]
mov ecx, esi
call fcn.10019c40
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x18], eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov cl, byte [eax + 1]
inc eax
mov edx, ecx
and dl, 0xc0
cmp dl, 0x80
je 0x1006f6ab
jmp 0x1006f5b1
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov ecx, esi
call fcn.1004c130
jmp 0x1006f69d
push edi
push str.there_is_already_another_table_or_index_with_this_name:__s
push ebx
call fcn.1000f470
jmp 0x1006f686
mov esi, dword [ebp - 0x14]
mov edi, 0xffff8000
jmp 0x1006f428
cmp al, 0x5b
movzx eax, al
mov esi, 0x5d
cmovne esi, eax
xor edx, edx
inc edx
mov eax, dword [ebp - 0x10]
mov ecx, esi
mov al, byte [eax + edx]
cmp al, cl
jne 0x1006f71a
mov eax, dword [ebp - 0x10]
mov ecx, esi
cmp byte [eax + edx + 1], cl
jne 0x1006f7c7
mov eax, esi
inc edx
mov byte [edi], al
jmp 0x1006f71c
mov byte [edi], al
inc edx
inc edi
jmp 0x1006f6f8
push eax
push str.view__s_may_not_be_altered
jmp 0x1006f6d3
mov eax, dword [edi + 0x40]
xor edx, edx
test eax, eax
je 0x1006f7d4
mov ecx, dword [ebp - 0x14]
cmp dword [eax], ecx
je 0x1006f7d2
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x1006f738
jmp 0x1006f7d4
mov eax, dword [ebp - 0x1c]
push dword [eax]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push str.UPDATE___w_.sqlite_sequence_set_name___Q_WHERE_name___Q
push esi
call fcn.1007b6b0
add esp, 0x14
jmp 0x1006f61f
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebp - 0x30]
xor eax, eax
mov edx, 0x73
inc esi
mov ecx, edi
mov dword [ebx + 0x2c], esi
push eax
push esi
push eax
call fcn.1004e520
add esp, 0xc
mov edx, eax
xor eax, eax
mov ecx, edi
push eax
push dword [ebp - 0x10]
call fcn.1000f710
add esp, 8
xor eax, eax
mov ecx, edi
mov edx, 0xa8
push eax
push eax
push esi
mov esi, dword [ebp - 0x14]
call fcn.1004e520
add esp, 0xc
mov ecx, edi
mov edx, eax
push 0xfffffffffffffff4
push dword [ebp - 0x20]
call fcn.1000f710
add esp, 8
jmp 0x1006f651
mov byte [edi], 0
mov edi, dword [ebp - 0x10]
jmp 0x1006f499
mov edx, eax
mov eax, dword [edx + 8]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 0x4c]
test eax, eax
cmove edx, eax
jmp 0x1006f555