Function at 0x100cbed0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x20], edx
push edi
cmp dword [esi + 0x24], 0
mov edi, dword [esi]
mov dword [esp + 0x14], edi
jne 0x100cc216
cmp byte [edi + 0x53], 0
jne 0x100cc216
mov edx, dword [esi + 0xe4]
mov ebx, 0xffff8000
mov dword [esp + 0x1c], edx
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x100cbf28
mov eax, dword [edi + 0x10]
xor ebx, ebx
add eax, 0xc
cmp dword [eax], ecx
je 0x100cbf28
nop
lea eax, [eax + 0x10]
inc ebx
cmp dword [eax], ecx
jne 0x100cbf20
mov eax, dword [edi + 0x10]
mov ecx, ebx
add ecx, ecx
mov eax, dword [eax + ecx*8]
movsx ecx, word [edx + 0x22]
mov dword [esp + 0xc], eax
mov eax, dword [edx]
add eax, 0x10
shl ecx, 4
mov dword [esp + 0x10], eax
mov eax, dword [edx + 4]
add eax, 0xfffffff0
add eax, ecx
mov dword [esp + 0x20], eax
movzx eax, word [eax + 0xc]
test ax, ax
jne 0x100cbf5f
xor edi, edi
jmp 0x100cbf7f
cmp byte [edx + 0x2b], 0
je 0x100cbf69
xor edi, edi
jmp 0x100cbf7f
mov edi, dword [edx + 0x34]
test edi, edi
je 0x100cbf7f
cmp dword [edi], eax
jge 0x100cbf78
xor edi, edi
jmp 0x100cbf7f
lea eax, [eax + eax*4]
mov edi, dword [edi + eax*4 - 0xc]
push dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
call fcn.100c3850
add esp, 4
mov edx, 0x1a
mov ecx, esi
push 0
push dword [eax]
push dword [esp + 0x14]
call fcn.100c4370
add esp, 0xc
test eax, eax
jne 0x100cc216
mov eax, dword [esp + 0x20]
movzx eax, word [eax + 0xe]
test al, 1
je 0x100cbfd3
push str.Cannot_add_a_PRIMARY_KEY_column
push esi
call fcn.1010dfc0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 8], 0
je 0x100cbff2
push str.Cannot_add_a_UNIQUE_column
push esi
call fcn.1010dfc0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test al, 0x60
jne 0x100cc0b7
test edi, edi
je 0x100cc009
mov eax, dword [edi + 0xc]
xor edx, edx
cmp byte [eax], 0x78
cmove edi, edx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x20]
and eax, 0x4000
or eax, 0
je 0x100cc03f
cmp dword [ecx + 0x30], 0
je 0x100cc03f
test edi, edi
je 0x100cc03f
push dword [esp + 0x10]
push dword [esp + 0x10]
push str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
push str.SELECT_raise_ABORT__Q__FROM___w_.__w_
push esi
call fcn.100c3ab0
add esp, 0x14
mov eax, dword [esp + 0x20]
test byte [eax + 4], 0xf
je 0x100cc05c
test edi, edi
jne 0x100cc060
push dword [esp + 0x10]
push dword [esp + 0x10]
push str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x100cc0c8
test edi, edi
je 0x100cc0d6
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0
push eax
push 0x41
push 1
mov edx, edi
mov dword [esp + 0x28], 0
call fcn.100ecaa0
add esp, 0x10
test eax, eax
jne 0x100cc216
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x100cc0b0
push dword [esp + 0x10]
push dword [esp + 0x10]
push str.Cannot_add_a_column_with_non_constant_default
push str.SELECT_raise_ABORT__Q__FROM___w_.__w_
push esi
call fcn.100c3ab0
mov ecx, dword [esp + 0x2c]
add esp, 0x14
call fcn.100ec4e0
jmp 0x100cc0d6
test al, 0x40
je 0x100cc0d6
push dword [esp + 0x10]
push dword [esp + 0x10]
push str.cannot_add_a_STORED_column
push str.SELECT_raise_ABORT__Q__FROM___w_.__w_
push esi
call fcn.100c3ab0
add esp, 0x14
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
push 0
push dword [eax + 4]
mov edx, dword [eax]
call fcn.101112e0
mov edi, eax
add esp, 8
test edi, edi
je 0x100cc146
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 4]
dec ecx
add ecx, edi
cmp ecx, edi
jbe 0x100cc11b
mov al, byte [ecx]
cmp al, 0x3b
je 0x100cc113
movzx eax, al
test byte [eax + 0x10135d70], 1
je 0x100cc11b
mov byte [ecx], 0
dec ecx
cmp ecx, edi
ja 0x100cc101
push dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x2c]
push eax
push edi
push eax
push dword [esp + 0x1c]
push str.UPDATE___w_.sqlite_master_SET_sql__printf___._ds___sql____Q__substr_sql_1length_printf___._ds_sql____WHERE_type__table_AND_name___Q
push esi
call fcn.100c3ab0
mov ecx, dword [esp + 0x30]
add esp, 0x1c
mov edx, edi
call fcn.10111980
mov ecx, esi
call fcn.100a4200
mov edi, eax
test edi, edi
je 0x100cc216
mov ecx, esi
call fcn.100cc7c0
push 2
push eax
push ebx
mov edx, 0x61
mov dword [esp + 0x24], eax
mov ecx, edi
call fcn.100ec050
mov ecx, dword [edi + 0xa4]
add esp, 0xc
bts ecx, ebx
mov dword [edi + 0xa4], ecx
cmp ebx, 1
je 0x100cc192
mov edx, ebx
mov ecx, edi
call fcn.100ea9f0
push 0xfffffffffffffffe
push dword [esp + 0x1c]
mov edx, 0x54
mov ecx, edi
call fcn.100ebf20
mov eax, dword [edi + 0x74]
mov edx, 0x31
add eax, 2
mov ecx, edi
push eax
push dword [esp + 0x24]
call fcn.100ebf20
push 3
push 2
push ebx
mov edx, 0x62
mov ecx, edi
call fcn.100ec050
mov edx, dword [esp + 0x34]
add esp, 0x1c
mov ecx, esi
call fcn.100cc7a0
push 1
mov edx, ebx
call fcn.100cc560
mov eax, dword [esp + 0x20]
add esp, 4
cmp dword [eax + 0x10], 0
jne 0x100cc200
mov eax, dword [esp + 0x20]
test byte [eax + 4], 0xf
je 0x100cc216
test byte [eax + 0xe], 0x60
je 0x100cc216
push dword [esp + 0xc]
push dword [esp + 0x14]
push 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___w____w___WHERE_quick_check_GLOB_CHECK_OR_quick_check_GLOB_NULL
push esi
call fcn.100c3ab0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret