Function at 0x140225e90
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov r12d, dword [rcx + 0x30]
mov qword [rsp + 0x40], rdx
mov r13, rcx
test r12d, r12d
jne 0x140226202
mov rsi, qword [rcx + 0x160]
mov rdi, qword [rcx]
mov r8, qword [rsi + 0x60]
mov rcx, qword [rdi + 0x20]
test r8, r8
je 0x1402263d0
cmp r8, qword [rcx + 0x18]
je 0x1402262d8
lea rdx, [rcx + 0x20]
mov eax, 1
nop dword [rax + rax]
mov rbx, rax
mov rcx, rdx
mov r12d, eax
add rdx, 0x20
shl rbx, 5
add rax, 1
cmp r8, qword [rcx + 0x18]
jne 0x140225ee8
mov rax, qword [rsi]
mov r14, qword [rcx]
lea rbp, [rax + 0x10]
movsx rax, word [rsi + 0x36]
lea rdx, [rax + rax*2]
mov rax, qword [rsi + 8]
lea r15, [rax + rdx*8 - 0x18]
movzx eax, word [r15 + 0x10]
test ax, ax
je 0x140226218
cmp byte [rsi + 0x3f], 0
jne 0x140226218
mov r10, qword [rsi + 0x50]
test r10, r10
je 0x140225f57
cmp dword [r10], eax
jl 0x140226218
sub eax, 1
cdqe
shl rax, 5
mov r10, qword [r10 + rax + 8]
mov r8, r14
mov rdx, rbp
mov rcx, rdi
mov qword [rsp + 0x48], r10
call fcn.1401a1500
mov r8, r14
mov edx, 0x1a
mov rcx, r13
mov qword [rsp + 0x20], 0
mov r9, qword [rax]
mov qword [rsp + 0x50], rax
call fcn.140188fe0
test eax, eax
jne 0x140226202
movzx eax, word [r15 + 0x12]
mov r10, qword [rsp + 0x48]
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
test al, 1
jne 0x140226227
cmp qword [rsi + 0x10], 0
jne 0x140226220
test al, 0x60
je 0x140226240
test al, 0x40
jne 0x140226364
mov rax, qword [rsp + 0x40]
mov r9, qword [rax]
test r9, r9
mov qword [rsp + 0x48], r9
je 0x140226095
mov r8d, dword [rax + 8]
mov rcx, rdi
lea rdx, [r8 + 1]
mov qword [rsp + 0x58], r8
call fcn.140173f40
test rax, rax
je 0x140226095
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov rcx, rax
mov rdx, r9
call sub.msvcrt.dll_memcpy
mov r8, qword [rsp + 0x58]
lea rcx, [0x140450e00]
mov r10, rax
mov byte [rax + r8], 0
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 8]
sub eax, 1
add rax, r10
cmp rax, r10
jbe 0x14022605b
nop word [rax + rax]
movzx edx, byte [rax]
cmp dl, 0x3b
je 0x14022604e
test byte [rcx + rdx], 1
je 0x14022605b
sub rax, 1
mov byte [rax + 1], 0
cmp rax, r10
jne 0x140226040
mov r9d, dword [rsi + 0x40]
mov qword [rsp + 0x20], r10
mov rcx, r13
mov r8, r14
mov qword [rsp + 0x30], rbp
lea rdx, 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 [rsp + 0x28], r9d
mov qword [rsp + 0x40], r10
call fcn.1402214e0
mov r10, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, r10
call fcn.1401640a0
mov rdi, qword [r13 + 0x10]
test rdi, rdi
je 0x1402261e0
movzx eax, byte [r13 + 0x1f]
test al, al
je 0x140226353
sub eax, 1
mov byte [r13 + 0x1f], al
movzx eax, al
mov r10d, dword [r13 + rax*4 + 0xe8]
mov r9d, r10d
mov rcx, rdi
mov r8d, r12d
mov edx, 0x63
mov dword [rsp + 0x20], 2
mov dword [rsp + 0x40], r10d
call fcn.140182310
mov eax, 1
mov ecx, r12d
mov r10d, dword [rsp + 0x40]
shl eax, cl
or dword [rdi + 0xcc], eax
cmp r12d, 1
je 0x140226112
mov rdx, qword [rdi]
mov rdx, qword [rdx + 0x20]
mov rdx, qword [rdx + rbx + 8]
cmp byte [rdx + 0x11], 0
jne 0x140226334
mov r8d, r10d
mov edx, 0x56
mov rcx, rdi
mov dword [rsp + 0x40], r10d
mov dword [rsp + 0x20], 0
mov r9d, 0xfffffffe
call fcn.140182310
mov r10d, dword [rsp + 0x40]
mov edx, 0x3b
mov rcx, rdi
mov eax, dword [rdi + 0x90]
mov dword [rsp + 0x20], 0
mov r8d, r10d
lea r9d, [rax + 2]
call fcn.140182310
mov r8d, r12d
mov edx, 0x64
mov rcx, rdi
mov dword [rsp + 0x20], 3
mov r9d, 2
call fcn.140182310
mov r10d, dword [rsp + 0x40]
test r10d, r10d
je 0x140226191
movzx eax, byte [r13 + 0x1f]
cmp al, 7
jbe 0x14022633f
cmp qword [r13 + 0x10], 0
je 0x1402261a9
mov r8d, 3
mov edx, r12d
mov rcx, r13
call fcn.140183cb0
cmp qword [rsi + 0x20], 0
je 0x1402262e0
mov r9, r14
mov r8, rbp
lea rdx, str.SELECT_CASE_WHEN_quick_check_GLOB_CHECK_THEN_raise_ABORT_CHECK_constraint_failed__WHEN_quick_check_GLOB_non__value_in_THEN_raise_ABORT_type_mismatch_on_DEFAULT__ELSE_raise_ABORT_NOT_NULL_constraint_failed__END__FROM_pragma_quick_check__Q__Q__WHERE_quick_check_GLOB_CHECK_OR_quick_check_GLOB_NULL_OR_quick_check_GLOB_non__value_in
mov rcx, r13
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1402214e0
cmp qword [r13 + 0xb0], 0
je 0x140226387
mov rcx, r13
call fcn.140182380
mov rdi, rax
test rax, rax
jne 0x1402260a2
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r10d, r10d
jmp 0x140225f57
lea rdx, str.Cannot_add_a_UNIQUE_column
mov rcx, r13
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140173d40
test r10, r10
je 0x140226306
mov rax, qword [r10 + 0x10]
cmp byte [rax], 0x79
je 0x140226306
test byte [rdi + 0x31], 0x40
je 0x14022628b
cmp qword [rsi + 0x48], 0
je 0x14022628b
mov qword [rsp + 0x20], rbp
mov r9, r14
mov rcx, r13
lea r8, str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
mov qword [rsp + 0x48], r10
call fcn.1402214e0
mov r10, qword [rsp + 0x48]
lea rax, [rsp + 0x68]
mov r9d, 0x41
mov rdx, r10
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov r8d, 1
mov qword [rsp + 0x68], 0
call fcn.140193cf0
test eax, eax
jne 0x140226202
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14022639f
call fcn.14016b8f0
jmp 0x140225fc7
xor ebx, ebx
jmp 0x140225f03
test byte [r15 + 8], 0xf
je 0x1402262f2
test byte [r15 + 0x12], 0x60
jne 0x1402261b4
mov rax, qword [rsp + 0x50]
test byte [rax + 0x32], 1
je 0x140226202
jmp 0x1402261b4
test byte [r15 + 8], 0xf
je 0x140225fc7
mov qword [rsp + 0x20], rbp
mov r9, r14
mov rcx, r13
lea r8, str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
call fcn.1402214e0
jmp 0x140225fc7
or dword [rdi + 0xd0], eax
jmp 0x140226112
lea edx, [rax + 1]
mov byte [r13 + 0x1f], dl
mov dword [r13 + rax*4 + 0xe8], r10d
jmp 0x140226191
mov eax, dword [r13 + 0x38]
lea r10d, [rax + 1]
mov dword [r13 + 0x38], r10d
jmp 0x1402260c1
mov qword [rsp + 0x20], rbp
mov r9, r14
mov rcx, r13
lea r8, str.cannot_add_a_STORED_column
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
call fcn.1402214e0
jmp 0x140225fc7
mov rax, qword [r13]
test byte [rax + 0x60], 8
jne 0x1402261ee
mov byte [r13 + 0x23], 1
jmp 0x1402261ee
mov qword [rsp + 0x20], rbp
mov rcx, r13
mov r9, r14
lea r8, str.Cannot_add_a_column_with_non_constant_default
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
call fcn.1402214e0
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140225fc7
jmp 0x1402262cb
sub rcx, 0x100000
mov rbx, 0xfffffffffff00000
mov r12d, 0xffff8000
jmp 0x140225f03