Function at 0x1401a29e0
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rsi, qword [rdx]
lea r9, str.SELECT_CREATE_TEMP__substr_sql__7__FROM_sqlite_schema_WHERE_tbl_name___Q_AND_type_IN__table__trigger__ORDER_BY_type_
mov r15, rdx
mov r14, rcx
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x78]
mov r12, r8
xor edi, edi
mov rbp, qword [rsi + 8]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x78], 0
call fcn.1401a2980
mov dword [rsp + 0x70], eax
test eax, eax
jne 0x1401a2a6b
mov rcx, qword [rsp + 0x78]
call fcn.1401ad290
cmp eax, 0x64
jne 0x1401a2a6b
mov rcx, qword [rsp + 0x78]
xor edx, edx
call fcn.1401ad4e0
mov rcx, qword [r14 + 0x18]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rdx, rax
call fcn.1401b9870
mov dword [rsp + 0x70], eax
test eax, eax
je 0x1401a2a31
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.1401a14f0
mov ebx, dword [rsp + 0x70]
test ebx, ebx
jne 0x1401a2ad0
mov r8, qword [str.Xg._]
lea rcx, str.ALTER_TABLE_temp._Q_RENAME_TO__Q
mov rdx, rbp
call fcn.1401ba3f0
mov rbp, rax
test rax, rax
jne 0x1401a2aab
mov ebx, 7
mov dword [rsp + 0x70], ebx
jmp 0x1401a2ad0
mov rcx, qword [r14 + 0x18]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rdx, rbp
call fcn.1401b9870
mov rcx, rbp
mov dword [rsp + 0x70], eax
mov ebx, eax
call fcn.1401ba620
mov eax, dword [r15 + 8]
cmp eax, 0x12
je 0x1401a2b7f
cmp eax, 0x17
je 0x1401a2b11
test ebx, ebx
jne 0x1401a2c4f
mov rdx, qword [str.Xg._]
lea rcx, str.DELETE_FROM__Q
call fcn.1401ba3f0
mov rdi, rax
test rax, rax
jne 0x1401a2bf6
lea ebx, [rax + 7]
jmp 0x1401a2c4f
mov r9, qword [str.Xg._]
lea r8, str.UPDATE__Q_SET
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.1401a0cb0
xor ebx, ebx
mov rdi, rax
cmp dword [rsi], ebx
jle 0x1401a2bee
xor r15d, r15d
lea rbp, [0x1402b04e8]
mov rax, qword [rsi + 0x10]
lea r9, [0x1402b0b5c]
test ebx, ebx
lea r8, str._s_Q_
mov rdx, rdi
lea rcx, [rsp + 0x70]
cmove r9, rbp
mov rax, qword [r15 + rax]
mov qword [rsp + 0x20], rax
call fcn.1401a0cb0
inc ebx
lea r15, [r15 + 0x18]
mov rdi, rax
cmp ebx, dword [rsi]
jl 0x1401a2b42
jmp 0x1401a2bee
mov r9, qword [str.Xg._]
lea r8, str.INSERT_INTO__Q_VALUES_
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.1401a0cb0
xor ebx, ebx
cmp dword [rsi], ebx
jle 0x1401a2bd7
lea rbp, [0x1402b04e8]
nop word [rax + rax]
test ebx, ebx
lea r9, [0x1402b0b5c]
lea r8, [0x1402e9c70]
mov rdx, rax
cmove r9, rbp
lea rcx, [rsp + 0x70]
call fcn.1401a0cb0
inc ebx
cmp ebx, dword [rsi]
jl 0x1401a2bb0
lea r8, [0x1402b11b4]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1401a0cb0
mov rdi, rax
mov ebx, dword [rsp + 0x70]
test ebx, ebx
jne 0x1401a2c4f
mov rcx, qword [r14 + 0x18]
lea r9, [rsp + 0x88]
mov r8d, 0xffffffff
mov qword [rsp + 0x88], 0
mov rdx, rdi
mov qword [rsp + 0x20], 0
call fcn.1401bb160
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], eax
call fcn.1401a14f0
mov ebx, dword [rsp + 0x70]
test ebx, ebx
je 0x1401a2c4f
mov rcx, qword [r14 + 0x18]
mov rdx, r12
call fcn.1401a14c0
mov rcx, rdi
call fcn.1401ba620
test ebx, ebx
jne 0x1401a2c85
mov rdx, qword [str.DROP_TABLE_t592690916721053953805701627921227776]
xor r9d, r9d
mov rcx, qword [r14 + 0x18]
xor r8d, r8d
mov qword [rsp + 0x20], r12
call fcn.1401b9870
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, ebx
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret