Function at 0x5bd7a00
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 0x5bd7d3a
mov edx, dword [esi + 0xf4]
mov ebx, 0xffff8000
mov dword [esp + 0x1c], edx
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x5bd7a4c
mov eax, dword [edi + 0x10]
xor ebx, ebx
add eax, 0xc
cmp dword [eax], ecx
je 0x5bd7a4c
lea eax, [eax + 0x10]
inc ebx
cmp dword [eax], ecx
jne 0x5bd7a44
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 0x5bd7a83
xor edi, edi
jmp 0x5bd7aa3
cmp byte [edx + 0x2b], 0
je 0x5bd7a8d
xor edi, edi
jmp 0x5bd7aa3
mov edi, dword [edx + 0x34]
test edi, edi
je 0x5bd7aa3
cmp dword [edi], eax
jge 0x5bd7a9c
xor edi, edi
jmp 0x5bd7aa3
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.05bcee60
add esp, 4
mov edx, 0x1a
mov ecx, esi
push 0
push dword [eax]
push dword [esp + 0x14]
call fcn.05bcf990
add esp, 0xc
test eax, eax
jne 0x5bd7d3a
mov eax, dword [esp + 0x20]
movzx eax, word [eax + 0xe]
test al, 1
je 0x5bd7af7
push str.Cannot_add_a_PRIMARY_KEY_column
push esi
call fcn.05c1c6a0
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 0x5bd7b16
push str.Cannot_add_a_UNIQUE_column
push esi
call fcn.05c1c6a0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test al, 0x60
jne 0x5bd7bdb
test edi, edi
je 0x5bd7b2d
mov eax, dword [edi + 0xc]
xor edx, edx
cmp byte [eax], 0x79
cmove edi, edx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x20]
and eax, 0x4000
or eax, 0
je 0x5bd7b63
cmp dword [ecx + 0x30], 0
je 0x5bd7b63
test edi, edi
je 0x5bd7b63
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.05bcf0c0
add esp, 0x14
mov eax, dword [esp + 0x20]
test byte [eax + 4], 0xf
je 0x5bd7b80
test edi, edi
jne 0x5bd7b84
push dword [esp + 0x10]
push dword [esp + 0x10]
push str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x5bd7bec
test edi, edi
je 0x5bd7bfa
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.05bfa040
add esp, 0x10
test eax, eax
jne 0x5bd7d3a
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x5bd7bd4
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.05bcf0c0
mov ecx, dword [esp + 0x2c]
add esp, 0x14
call fcn.05bf9a30
jmp 0x5bd7bfa
test al, 0x40
je 0x5bd7bfa
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.05bcf0c0
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.05c20460
mov edi, eax
add esp, 8
test edi, edi
je 0x5bd7c6a
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 4]
dec ecx
add ecx, edi
cmp ecx, edi
jbe 0x5bd7c3f
mov al, byte [ecx]
cmp al, 0x3b
je 0x5bd7c37
movzx eax, al
test byte [eax + 0x5c462f0], 1
je 0x5bd7c3f
mov byte [ecx], 0
dec ecx
cmp ecx, edi
ja 0x5bd7c25
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.05bcf0c0
mov ecx, dword [esp + 0x30]
add esp, 0x1c
mov edx, edi
call fcn.05c20b20
mov ecx, esi
call fcn.05badf00
mov edi, eax
test edi, edi
je 0x5bd7d3a
mov ecx, esi
call fcn.05bd8340
push 2
push eax
push ebx
mov edx, 0x63
mov dword [esp + 0x24], eax
mov ecx, edi
call fcn.05bf95d0
mov ecx, dword [edi + 0x9c]
add esp, 0xc
bts ecx, ebx
mov dword [edi + 0x9c], ecx
cmp ebx, 1
je 0x5bd7cb6
mov edx, ebx
mov ecx, edi
call fcn.05bf7e30
push 0xfffffffffffffffe
push dword [esp + 0x1c]
mov edx, 0x56
mov ecx, edi
call fcn.05bf94a0
mov eax, dword [edi + 0x6c]
mov edx, 0x3b
add eax, 2
mov ecx, edi
push eax
push dword [esp + 0x24]
call fcn.05bf94a0
push 3
push 2
push ebx
mov edx, 0x64
mov ecx, edi
call fcn.05bf95d0
mov edx, dword [esp + 0x34]
add esp, 0x1c
mov ecx, esi
call fcn.05bd8320
push 3
mov edx, ebx
call fcn.05bd8090
mov eax, dword [esp + 0x20]
add esp, 4
cmp dword [eax + 0x10], 0
jne 0x5bd7d24
mov eax, dword [esp + 0x20]
test byte [eax + 4], 0xf
je 0x5bd7d3a
test byte [eax + 0xe], 0x60
je 0x5bd7d3a
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__Q__Q__WHERE_quick_check_GLOB_CHECK_OR_quick_check_GLOB_NULL
push esi
call fcn.05bcf0c0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret