Function at 0x101117e0
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 0x10111b1d
mov ebx, dword [edi + 0xec]
mov edx, dword [ebx + 0x3c]
call sym._sqlite3SchemaToIndex
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x3c], 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 - 0x38], eax
mov eax, ebx
call sym._sqlite3ColumnExpr.isra.0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
mov esi, eax
mov eax, dword [ebp - 0x30]
call sym._sqlite3FindTable
xor ecx, ecx
mov edx, 0x1a
mov dword [esp + 4], ecx
mov eax, dword [eax]
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov eax, edi
call sym._sqlite3AuthCheck
test eax, eax
jne 0x10111b1d
mov eax, dword [ebp - 0x38]
mov ax, word [eax + 0xe]
test al, 1
je 0x10111888
mov dword [esp + 4], str.Cannot_add_a_PRIMARY_KEY_column
jmp 0x10111897
mov edx, dword [ebx + 8]
test edx, edx
je 0x101118a4
mov dword [esp + 4], str.Cannot_add_a_UNIQUE_column
mov dword [esp], edi
call sym._sqlite3ErrorMsg
jmp 0x10111b1d
test al, 0x60
jne 0x1011199c
test esi, esi
je 0x101118b9
mov eax, dword [esi + 0xc]
cmp byte [eax], 0x79
cmove esi, edx
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x44], eax
and eax, 0x4000
or eax, 0
je 0x1011190c
cmp dword [ebx + 0x30], 0
je 0x1011190c
test esi, esi
jne 0x101118e4
mov eax, dword [ebp - 0x38]
test byte [eax + 4], 0xf
jne 0x10111919
jmp 0x101119c6
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.SELECT_raise_ABORT__Q__FROM___w_.__w_
mov dword [esp], edi
call sym._sqlite3NestedParse
jmp 0x1011193c
mov eax, dword [ebp - 0x38]
test byte [eax + 4], 0xf
je 0x10111934
test esi, esi
jne 0x1011193c
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
mov dword [esp + 0xc], eax
jmp 0x101119b6
test esi, esi
je 0x101119c6
xor edx, edx
lea eax, [ebp - 0x1c]
mov ecx, 1
mov dword [ebp - 0x1c], edx
mov edx, esi
mov dword [esp + 4], eax
mov dword [esp], 0x41
mov eax, dword [ebp - 0x30]
call sym._sqlite3ValueFromExpr
test eax, eax
jne 0x10111b1d
cmp dword [ebp - 0x1c], 0
jne 0x10111992
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], str.Cannot_add_a_column_with_non_constant_default
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.SELECT_raise_ABORT__Q__FROM___w_.__w_
mov dword [esp], edi
call sym._sqlite3NestedParse
mov eax, dword [ebp - 0x1c]
call sym._sqlite3ValueFree
jmp 0x101119c6
test al, 0x40
je 0x101119c6
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], str.cannot_add_a_STORED_column
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.SELECT_raise_ABORT__Q__FROM___w_.__w_
mov dword [esp], edi
call sym._sqlite3NestedParse
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 sym._sqlite3DbStrNDup
mov esi, eax
test eax, eax
je 0x10111a4a
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 4]
lea eax, [esi + eax - 1]
cmp esi, eax
jae 0x10111a0e
movzx edx, byte [eax]
cmp dl, 0x3b
jne 0x10111a05
dec eax
mov byte [eax + 1], 0
jmp 0x101119f2
test byte [edx + 0x101f09a0], 1
jne 0x101119fe
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
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 + 8], eax
mov dword [esp], edi
call sym._sqlite3NestedParse
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._sqlite3DbFree
mov eax, edi
call sym._sqlite3GetVdbe
mov esi, eax
test eax, eax
je 0x10111b1d
mov eax, edi
call sym._sqlite3GetTempReg
mov edx, 0x63
mov dword [ebp - 0x30], eax
mov dword [esp], eax
mov eax, esi
mov dword [esp + 4], 2
mov ecx, dword [ebp - 0x3c]
call sym._sqlite3VdbeAddOp3
mov edx, dword [ebp - 0x3c]
mov eax, esi
call sym._sqlite3VdbeUsesBtree
mov dword [esp], 0xfffffffe
mov ecx, dword [ebp - 0x30]
mov edx, 0x56
call sym._sqlite3VdbeAddOp2
mov eax, dword [esi + 0x6c]
mov edx, 0x31
add eax, 2
mov dword [esp], eax
mov ecx, dword [ebp - 0x30]
mov eax, esi
call sym._sqlite3VdbeAddOp2
mov dword [esp + 4], 3
mov edx, 0x64
mov eax, esi
mov dword [esp], 2
mov ecx, dword [ebp - 0x3c]
call sym._sqlite3VdbeAddOp3
mov edx, dword [ebp - 0x30]
mov eax, edi
call sym._sqlite3ReleaseTempReg
mov edx, dword [ebp - 0x3c]
mov ecx, 3
call sym._renameReloadSchema
cmp dword [ebx + 0x10], 0
jne 0x10111aff
mov eax, dword [ebp - 0x38]
test byte [eax + 4], 0xf
je 0x10111b1d
test byte [eax + 0xe], 0x60
je 0x10111b1d
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
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 + 8], eax
mov dword [esp], edi
call sym._sqlite3NestedParse
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret