Function at 0x101ef500
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x24], edx
push edi
cmp dword [esi + 0x24], 0
mov edx, dword [esi]
mov dword [esp + 0x1c], edx
jne 0x101ef825
mov ebp, dword [esi + 0xec]
mov ebx, 0xffff8000
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
je 0x101ef548
mov eax, dword [edx + 0x10]
xor ebx, ebx
add eax, 0xc
cmp dword [eax], ecx
je 0x101ef548
nop dword [eax + eax]
lea eax, [eax + 0x10]
inc ebx
cmp dword [eax], ecx
jne 0x101ef540
mov eax, dword [edx + 0x10]
mov ecx, ebx
mov edx, dword [ebp]
add ecx, ecx
add edx, 0x10
mov dword [esp + 0x18], edx
mov eax, dword [eax + ecx*8]
movsx ecx, word [ebp + 0x22]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 4]
shl ecx, 4
add eax, ecx
mov dword [esp + 0x24], eax
movzx eax, word [eax - 4]
test ax, ax
jne 0x101ef57d
xor edi, edi
jmp 0x101ef59d
cmp byte [ebp + 0x2b], 0
je 0x101ef587
xor edi, edi
jmp 0x101ef59d
mov edi, dword [ebp + 0x34]
test edi, edi
je 0x101ef59d
cmp dword [edi], eax
jge 0x101ef596
xor edi, edi
jmp 0x101ef59d
lea eax, [eax + eax*4]
mov edi, dword [edi + eax*4 - 0xc]
push dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
call fcn.101e8f90
add esp, 4
mov edx, 0x1a
mov ecx, esi
push 0
push dword [eax]
push dword [esp + 0x1c]
call fcn.101e9b80
add esp, 0xc
test eax, eax
jne 0x101ef825
mov eax, dword [esp + 0x24]
movzx eax, word [eax - 2]
test al, 1
je 0x101ef5ee
push str.Cannot_add_a_PRIMARY_KEY_column
push esi
call fcn.102339b0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp dword [ebp + 8], 0
je 0x101ef60a
push str.Cannot_add_a_UNIQUE_column
push esi
call fcn.102339b0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test al, 0x60
jne 0x101ef6ce
test edi, edi
je 0x101ef621
mov eax, dword [edi + 0xc]
xor ecx, ecx
cmp byte [eax], 0x79
cmove edi, ecx
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x20]
and eax, 0x4000
or eax, 0
je 0x101ef65b
cmp dword [ebp + 0x30], 0
je 0x101ef65b
test edi, edi
je 0x101ef65b
push dword [esp + 0x18]
push dword [esp + 0x18]
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.101e9290
mov ecx, dword [esp + 0x30]
add esp, 0x14
mov eax, dword [esp + 0x24]
test byte [eax - 0xc], 0xf
je 0x101ef678
test edi, edi
jne 0x101ef67c
push dword [esp + 0x18]
push dword [esp + 0x18]
push str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x101ef6df
test edi, edi
je 0x101ef6ed
push ecx
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0x41
push 1
mov edx, edi
call fcn.10211160
add esp, 0x10
test eax, eax
jne 0x101ef825
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x101ef6c7
push dword [esp + 0x18]
push dword [esp + 0x18]
push str.Cannot_add_a_column_with_non_constant_default
push str.SELECT_raise_ABORT__Q__FROM___w_.__w_
push esi
call fcn.101e9290
mov ecx, dword [esp + 0x34]
add esp, 0x14
call fcn.102110f0
jmp 0x101ef6ed
test al, 0x40
je 0x101ef6ed
push dword [esp + 0x18]
push dword [esp + 0x18]
push str.cannot_add_a_STORED_column
push str.SELECT_raise_ABORT__Q__FROM___w_.__w_
push esi
call fcn.101e9290
add esp, 0x14
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
push 0
push dword [eax + 4]
mov edx, dword [eax]
call fcn.10236bd0
mov edi, eax
add esp, 8
test edi, edi
je 0x101ef759
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + 4]
dec ecx
add ecx, edi
cmp ecx, edi
jbe 0x101ef732
mov al, byte [ecx]
cmp al, 0x3b
je 0x101ef72a
movzx eax, al
test byte [eax + 0x1025c6b0], 1
je 0x101ef732
mov byte [ecx], 0
dec ecx
cmp ecx, edi
ja 0x101ef718
push dword [esp + 0x18]
mov eax, dword [ebp + 0x2c]
push eax
push edi
push eax
push dword [esp + 0x24]
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.101e9290
mov ecx, dword [esp + 0x38]
add esp, 0x1c
mov edx, edi
call fcn.102371f0
mov ecx, esi
call fcn.101c9c80
mov edi, eax
test edi, edi
je 0x101ef825
mov ecx, esi
call fcn.101efe10
push 2
push eax
push ebx
mov edx, 0x63
mov dword [esp + 0x2c], eax
mov ecx, edi
call fcn.10210cb0
mov ecx, dword [edi + 0x9c]
add esp, 0xc
bts ecx, ebx
mov dword [edi + 0x9c], ecx
cmp ebx, 1
je 0x101ef7a5
mov edx, ebx
mov ecx, edi
call fcn.1020f8e0
push 0xfffffffffffffffe
push dword [esp + 0x24]
mov edx, 0x56
mov ecx, edi
call fcn.10210b80
mov eax, dword [edi + 0x6c]
mov edx, 0x31
add eax, 2
mov ecx, edi
push eax
push dword [esp + 0x2c]
call fcn.10210b80
push 3
push 2
push ebx
mov edx, 0x64
mov ecx, edi
call fcn.10210cb0
mov edx, dword [esp + 0x3c]
add esp, 0x1c
mov ecx, esi
call fcn.101efdf0
push 3
mov edx, ebx
call fcn.101efb70
add esp, 4
cmp dword [ebp + 0x10], 0
jne 0x101ef80f
mov eax, dword [esp + 0x24]
test byte [eax - 0xc], 0xf
je 0x101ef825
test byte [eax - 2], 0x60
je 0x101ef825
push dword [esp + 0x14]
push dword [esp + 0x1c]
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__Q__Q__WHERE_quick_check_GLOB_CHECK_OR_quick_check_GLOB_NULL
push esi
call fcn.101e9290
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret