Function at 0x180074780
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
push rbx
push rbp
push r13
sub rsp, 0x70
cmp dword [rcx + 0x30], 0
mov r13, rdx
mov rbp, qword [rcx]
mov rbx, rcx
jne 0x180074d93
mov qword [rax + 0x10], rsi
xor edx, edx
mov qword [rax - 0x28], r12
mov esi, 0xffff8000
mov r12, qword [rcx + 0x160]
mov qword [rax - 0x30], r14
mov qword [rax - 0x38], r15
mov rcx, qword [r12 + 0x60]
test rcx, rcx
je 0x1800747e0
mov rax, qword [rbp + 0x20]
mov esi, edx
add rax, 0x18
cmp qword [rax], rcx
je 0x1800747e0
inc esi
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x1800747d5
mov rax, qword [rbp + 0x20]
mov r14, qword [r12]
add r14, 0x10
movsxd rcx, esi
shl rcx, 5
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0xa0], r14
mov r15, qword [rcx + rax]
movsx rax, word [r12 + 0x36]
mov qword [rsp + 0xa8], r15
lea rcx, [rax + rax*2]
mov rax, qword [r12 + 8]
lea rax, [rax + rcx*8]
add rax, 0xffffffffffffffe8
mov qword [rsp + 0x40], rax
movzx eax, word [rax + 0x10]
test ax, ax
jne 0x18007483b
mov rdi, rdx
jmp 0x180074868
cmp byte [r12 + 0x3f], dl
je 0x180074847
mov rdi, rdx
jmp 0x180074868
mov rdi, qword [r12 + 0x50]
test rdi, rdi
jne 0x180074856
mov rdi, rdx
jmp 0x180074868
cmp dword [rdi], eax
jge 0x18007485f
mov rdi, rdx
jmp 0x180074868
shl rax, 5
mov rdi, qword [rax + rdi - 0x18]
mov r8, r15
mov rdx, r14
mov rcx, rbp
call fcn.18007db70
mov r8, r15
mov qword [rsp + 0x20], 0
mov edx, 0x1a
mov rcx, rbx
mov r9, qword [rax]
call fcn.18007cfa0
test eax, eax
jne 0x180074d77
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x12]
test al, 1
je 0x1800748bb
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
mov rcx, rbx
call fcn.18002c6f0
jmp 0x180074d77
cmp qword [r12 + 0x10], 0
je 0x1800748d7
lea rdx, str.Cannot_add_a_UNIQUE_column
mov rcx, rbx
call fcn.18002c6f0
jmp 0x180074d77
test al, 0x60
jne 0x1800749b5
test rdi, rdi
je 0x1800748f4
mov rax, qword [rdi + 0x10]
cmp byte [rax], 0x79
mov eax, 0
cmove rdi, rax
mov eax, dword [rbp + 0x30]
bt rax, 0xe
jae 0x180074929
cmp qword [r12 + 0x48], 0
je 0x180074929
test rdi, rdi
je 0x180074929
mov r9, r15
mov qword [rsp + 0x20], r14
lea r8, str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
mov rcx, rbx
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
call fcn.18007d950
mov rax, qword [rsp + 0x40]
test byte [rax + 8], 0xf
je 0x180074942
test rdi, rdi
jne 0x18007494b
lea r8, str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x1800749c0
test rdi, rdi
je 0x1800749d7
xor eax, eax
mov r9b, 0x41
mov qword [rsp + 0x90], rax
mov r8b, 1
lea rax, [rsp + 0x90]
mov rdx, rdi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.18004f330
test eax, eax
jne 0x180074d77
mov rcx, qword [rsp + 0x90]
test rcx, rcx
jne 0x1800749ae
mov r9, r15
mov qword [rsp + 0x20], r14
lea r8, str.Cannot_add_a_column_with_non_constant_default
mov rcx, rbx
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
call fcn.18007d950
mov rcx, qword [rsp + 0x90]
call fcn.18004f850
jmp 0x1800749d7
test al, 0x40
je 0x1800749d7
lea r8, str.cannot_add_a_STORED_column
mov r9, r15
mov qword [rsp + 0x20], r14
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
mov rcx, rbx
call fcn.18007d950
mov r15, qword [r13]
mov r14d, dword [r13 + 8]
test r15, r15
je 0x180074ad8
lea rdx, [r14 + 1]
mov rcx, rbp
call fcn.180028ce0
mov rdi, rax
test rax, rax
je 0x180074ad8
mov r8d, r14d
mov rdx, r15
mov rcx, rax
call fcn.180133760
mov byte [rdi + r14], 0
mov edx, dword [r13 + 8]
dec edx
add rdx, rdi
cmp rdx, rdi
jbe 0x180074a40
lea rcx, [0x18015adf0]
movzx eax, byte [rdx]
cmp al, 0x3b
je 0x180074a35
test byte [rax + rcx], 1
je 0x180074a40
mov byte [rdx], 0
dec rdx
cmp rdx, rdi
ja 0x180074a28
mov r9d, dword [r12 + 0x40]
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 r14, qword [rsp + 0xa0]
mov rcx, rbx
mov r15, qword [rsp + 0xa8]
mov qword [rsp + 0x30], r14
mov r8, r15
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rdi
call fcn.18007d950
cmp rdi, qword [rbp + 0x1f0]
jae 0x180074ab7
cmp rdi, qword [rbp + 0x1e0]
jb 0x180074a9b
mov rax, qword [rbp + 0x1d8]
mov qword [rdi], rax
mov qword [rbp + 0x1d8], rdi
jmp 0x180074ae8
cmp rdi, qword [rbp + 0x1e8]
jb 0x180074ab7
mov rax, qword [rbp + 0x1c8]
mov qword [rdi], rax
mov qword [rbp + 0x1c8], rdi
jmp 0x180074ae8
cmp qword [rbp + 0x308], 0
je 0x180074ace
mov rdx, rdi
mov rcx, rbp
call fcn.1800288c0
jmp 0x180074ae8
mov rcx, rdi
call fcn.180028850
jmp 0x180074ae8
mov r15, qword [rsp + 0xa8]
mov r14, qword [rsp + 0xa0]
mov rdi, qword [rbx + 0x10]
test rdi, rdi
jne 0x180074b1b
cmp qword [rbx + 0xa8], rdi
jne 0x180074b07
mov rax, qword [rbx]
test byte [rax + 0x60], 8
jne 0x180074b07
mov byte [rbx + 0x23], 1
mov rcx, rbx
call fcn.18004f920
mov rdi, rax
test rax, rax
je 0x180074d77
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x180074b2b
inc dword [rbx + 0x38]
mov ebp, dword [rbx + 0x38]
jmp 0x180074b3a
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov ebp, dword [rbx + rax*4 + 0xe4]
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x180074b69
mov r9d, ebp
mov dword [rsp + 0x20], 2
mov r8d, esi
mov edx, 0x63
mov rcx, rdi
call fcn.18004fc80
xor r8d, r8d
jmp 0x180074b9c
lea eax, [rcx + 1]
xor r8d, r8d
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x63
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], 2
mov qword [rax + rcx*8 + 0x10], r8
mov eax, dword [rdi + 0xcc]
bts eax, esi
mov dword [rdi + 0xcc], eax
cmp esi, 1
je 0x180074bd6
mov rax, qword [rdi]
mov rcx, qword [rax + 0x20]
mov rax, qword [rsp + 0x48]
mov rax, qword [rcx + rax + 8]
cmp byte [rax + 0x11], 0
je 0x180074bd6
mov eax, dword [rdi + 0xd0]
bts eax, esi
mov dword [rdi + 0xd0], eax
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x180074c04
mov r9d, 0xfffffffe
mov dword [rsp + 0x20], r8d
mov r8d, ebp
mov rcx, rdi
lea edx, [r9 + 0x58]
call fcn.18004fc80
xor r8d, r8d
jmp 0x180074c35
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x56
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], 0xfffffffe
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
movsxd rcx, dword [rdi + 0x90]
lea edx, [rcx + 2]
cmp dword [rdi + 0x94], ecx
jg 0x180074c64
mov dword [rsp + 0x20], r8d
mov r9d, edx
mov r8d, ebp
mov edx, 0x3b
mov rcx, rdi
call fcn.18004fc80
xor r8d, r8d
jmp 0x180074c91
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x3b
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x180074cbf
mov r9d, 2
mov dword [rsp + 0x20], 3
mov r8d, esi
mov rcx, rdi
lea edx, [r9 + 0x62]
call fcn.18004fc80
jmp 0x180074cf3
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x64
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], 2
mov dword [rax + rcx*8 + 0xc], 3
mov qword [rax + rcx*8 + 0x10], r8
test ebp, ebp
je 0x180074d09
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x180074d09
mov dword [rbx + rax*4 + 0xe4], ebp
inc byte [rbx + 0x1f]
cmp qword [rbx + 0x10], 0
je 0x180074d49
mov edx, esi
mov rcx, rbx
call fcn.1800819e0
mov rcx, qword [rbx + 0x10]
mov r9d, 3
xor r8d, r8d
mov edx, esi
call fcn.1800504c0
cmp esi, 1
je 0x180074d49
mov rcx, qword [rbx + 0x10]
mov r9d, 3
xor r8d, r8d
lea edx, [r9 - 2]
call fcn.1800504c0
cmp qword [r12 + 0x20], 0
jne 0x180074d62
mov rax, qword [rsp + 0x40]
test byte [rax + 8], 0xf
je 0x180074d77
test byte [rax + 0x12], 0x60
je 0x180074d77
mov r9, r15
lea rdx, 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 r8, r14
mov rcx, rbx
call fcn.18007d950
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov r14, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x98]
mov r15, qword [rsp + 0x50]
add rsp, 0x70
pop r13
pop rbp
pop rbx
ret