Function at 0x6893c86c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x5c
mov eax, dword [eax]
cmp dword [edi + 0x24], 0
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x30], eax
jne 0x6893cbaf
mov ebx, dword [edi + 0xf4]
mov edx, dword [ebx + 0x3c]
call fcn.688d1267
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
shl eax, 4
add eax, dword [ecx + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx]
add eax, 0x10
mov dword [ebp - 0x34], eax
movsx eax, word [ebx + 0x22]
add eax, 0xfffffff
shl eax, 4
add eax, dword [ebx + 4]
mov dx, word [eax + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, ebx
call fcn.688d3be5
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x30]
call fcn.688cfd51
xor ecx, ecx
mov edx, 0x1a
mov dword [esp + 4], ecx
mov eax, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, edi
call fcn.688e4385
test eax, eax
jne 0x6893cbaf
mov eax, dword [ebp - 0x3c]
mov ax, word [eax + 0xe]
test al, 1
je 0x6893c915
mov dword [esp + 4], str.Cannot_add_a_PRIMARY_KEY_column
jmp 0x6893c924
mov esi, dword [ebx + 8]
test esi, esi
je 0x6893c931
mov dword [esp + 4], str.Cannot_add_a_UNIQUE_column
mov dword [esp], edi
call fcn.688dce5c
jmp 0x6893cbaf
test al, 0x60
jne 0x6893ca2a
cmp dword [ebp - 0x48], 0
je 0x6893c94c
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0xc]
cmp byte [eax], 0x79
cmovne esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x44], edx
xor edx, edx
mov dword [ebp - 0x48], eax
and eax, 0x4000
test edx, edx
jne 0x6893c96a
test eax, eax
je 0x6893c99a
cmp dword [ebx + 0x30], 0
je 0x6893c99a
test esi, esi
je 0x6893c99a
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
mov dword [esp + 4], str.SELECT_raise_ABORT__Q__FROM___w_.__w_
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], edi
mov dword [esp + 0xc], eax
call fcn.6893a30e
mov eax, dword [ebp - 0x3c]
test byte [eax + 4], 0xf
je 0x6893c9c2
test esi, esi
jne 0x6893c9ca
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], eax
jmp 0x6893ca44
test esi, esi
je 0x6893ca54
lea eax, [ebp - 0x1c]
mov dword [esp], 0x41
xor edx, edx
mov ecx, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], edx
mov edx, esi
call fcn.688e7a88
test eax, eax
jne 0x6893cbaf
cmp dword [ebp - 0x1c], 0
jne 0x6893ca20
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], str.Cannot_add_a_column_with_non_constant_default
mov dword [esp + 4], str.SELECT_raise_ABORT__Q__FROM___w_.__w_
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], edi
mov dword [esp + 0xc], eax
call fcn.6893a30e
mov eax, dword [ebp - 0x1c]
call fcn.688d1946
jmp 0x6893ca54
test al, 0x40
je 0x6893ca54
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], str.cannot_add_a_STORED_column
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.SELECT_raise_ABORT__Q__FROM___w_.__w_
mov dword [esp], edi
call fcn.6893a30e
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 4]
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
mov eax, dword [ebp - 0x30]
call fcn.688dea49
mov esi, eax
test eax, eax
je 0x6893cadc
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 4]
lea eax, [esi + eax - 1]
cmp esi, eax
jb 0x6893cac2
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0x10], esi
mov dword [esp + 4], str.UPDATE___w_.sqlite_master_SET_sql__printf___._ds___sql____Q__substr_sql_1length_printf___._ds_sql____WHERE_type__table_AND_name___Q
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x18], ecx
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.6893a30e
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.688cf033
jmp 0x6893cadc
movzx edx, byte [eax]
cmp dl, 0x3b
jne 0x6893cad1
dec eax
mov byte [eax + 1], 0
jmp 0x6893ca80
test byte [edx + 0x68a3b420], 1
jne 0x6893caca
jmp 0x6893ca84
mov eax, edi
call fcn.688e33f4
mov esi, eax
test eax, eax
je 0x6893cbaf
mov eax, edi
call fcn.688cb46c
mov dword [esp + 4], 2
mov ecx, dword [ebp - 0x38]
mov edx, 0x63
mov dword [esp], eax
mov dword [ebp - 0x30], eax
mov eax, esi
call fcn.688e29bf
mov edx, dword [ebp - 0x38]
mov eax, esi
call fcn.688cac07
mov dword [esp], 0xfffffffe
mov ecx, dword [ebp - 0x30]
mov edx, 0x56
call fcn.688e3363
mov eax, dword [esi + 0x6c]
mov ecx, dword [ebp - 0x30]
mov edx, 0x3b
add eax, 2
mov dword [esp], eax
mov eax, esi
call fcn.688e3363
mov ecx, dword [ebp - 0x38]
mov edx, 0x64
mov eax, esi
mov dword [esp + 4], 3
mov dword [esp], 2
call fcn.688e29bf
mov edx, dword [ebp - 0x30]
mov eax, edi
call fcn.688d0fa6
mov edx, dword [ebp - 0x38]
mov ecx, 3
call fcn.688e3913
cmp dword [ebx + 0x10], 0
jne 0x6893cb91
mov eax, dword [ebp - 0x3c]
test byte [eax + 4], 0xf
je 0x6893cbaf
test byte [eax + 0xe], 0x60
je 0x6893cbaf
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.SELECT_CASE_WHEN_quick_check_GLOB_CHECK_THEN_raise_ABORT_CHECK_constraint_failed__ELSE_raise_ABORT_NOT_NULL_constraint_failed__END__FROM_pragma_quick_check__Q__Q__WHERE_quick_check_GLOB_CHECK_OR_quick_check_GLOB_NULL
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], eax
call fcn.6893a30e
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret