Function at 0x1401b8480
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xd8
lea rsi, [0x14021f7c0]
mov eax, r8d
mov r13, rcx
lea rdi, [rsp + 0x68]
mov ecx, 0xa
sub eax, 6
mov dword [rsp + 0x130], r8d
mov r15, rdx
mov rbx, r9
rep movsd dword [rdi], dword [rsi]
cmp eax, 0x61
jbe 0x1401b84f6
xor eax, eax
cmp r8d, 5
lea rcx, [0x14029c1a7]
mov ebp, 1
setg al
add eax, 2
cdqe
mov rdx, qword [rsp + rax*8 + 0x68]
call fcn.140207780
mov rbx, qword [rsp + 0x148]
mov qword [rbx], rax
jmp 0x1401b8ccf
mov r8d, 1
mov edx, 1
mov rcx, r13
mov ebp, 7
call fcn.14020c130
mov rcx, qword [rbx + 8]
call sub.msvcrt.dll_strlen
mov rcx, qword [rbx + 0x10]
mov rsi, rax
call sub.msvcrt.dll_strlen
movsxd rdx, esi
movsxd r14, eax
mov qword [rsp + 0x58], rdx
lea rcx, [rdx + r14 + 0x3ca]
mov qword [rsp + 0x50], rcx
call fcn.1402076e0
mov r12, rax
test rax, rax
je 0x1401b8ccf
test r15, r15
mov rcx, qword [rsp + 0x50]
mov rdi, r12
mov rdx, qword [rsp + 0x58]
setne r10b
setne r15b
xor eax, eax
rep stosb byte [rdi], al
lea rax, [0x1402232a0]
mov rcx, rdx
movzx r15d, r15b
mov qword [r12], rax
lea rax, [r12 + 0x3c8]
lea rbp, str._2_
lea r8, [rax + rdx + 1]
mov byte [r12 + 0x26], r10b
mov rdi, rax
mov qword [r12 + 0x38], r8
mov qword [r12 + 0x30], rax
mov rsi, qword [rbx + 8]
mov dword [r12 + 0x40], 1
rep movsb byte [rdi], byte [rsi]
mov rdi, r8
mov rcx, r14
mov rsi, qword [rbx + 0x10]
rep movsb byte [rdi], byte [rsi]
mov rcx, r13
lea rdi, [rsp + 0x90]
mov esi, 4
call fcn.140209c30
mov rcx, qword [rbx + 0x18]
mov rdx, rdi
mov dword [rsp + 0x90], 0
mov r14, rax
call fcn.1401d81d0
mov r9, rcx
lea rdx, str.CREATE_TABLE_x__.s_INT
mov rcx, r14
mov r8d, eax
call fcn.140209ba0
mov r9, qword [rbx + rsi*8]
mov al, byte [r12 + 0x29]
mov dword [rsp + 0x50], esi
mov r8d, esi
cmp byte [r9], 0x2b
jne 0x1401b864b
inc eax
inc r9
mov rdx, rdi
mov byte [r12 + 0x29], al
mov rcx, r9
mov qword [rsp + 0x58], r9
mov dword [rsp + 0x90], 0
call fcn.1401d81d0
mov r9, qword [rsp + 0x58]
lea rdx, str.__.s
mov r8d, eax
jmp 0x1401b867c
test al, al
jne 0x1401b869c
inc byte [r12 + 0x25]
mov rdx, rdi
mov rcx, r9
mov qword [rsp + 0x58], r9
mov dword [rsp + 0x90], 0
call fcn.1401d81d0
mov rdx, qword [rbp + r15*8]
mov r9, qword [rsp + 0x58]
mov r8d, eax
mov rcx, r14
inc rsi
call fcn.140209ba0
mov r8d, dword [rsp + 0x50]
inc r8d
cmp dword [rsp + 0x130], esi
jg 0x1401b85ff
lea rdx, [0x1402a2c3b]
mov rcx, r14
mov dword [rsp + 0x50], r8d
mov esi, 7
call fcn.140209ba0
mov rcx, r14
call fcn.140209be0
mov r15, rax
test rax, rax
je 0x1401b872c
mov r8d, dword [rsp + 0x50]
cmp dword [rsp + 0x130], r8d
jle 0x1401b86f9
lea rdx, str.Auxiliary_rtree_columns_must_be_last
lea rcx, [0x14029c1a7]
mov esi, 1
call fcn.140207780
mov rdi, qword [rsp + 0x148]
mov qword [rdi], rax
jmp 0x1401b872c
mov rdx, rax
mov rcx, r13
call fcn.140205ad0
mov esi, eax
test eax, eax
je 0x1401b872c
mov rcx, r13
call fcn.140205fd0
lea rcx, [0x14029c1a7]
mov rdx, rax
call fcn.140207780
mov rdi, qword [rsp + 0x148]
mov qword [rdi], rax
mov rcx, r15
call fcn.1402067c0
test esi, esi
jne 0x1401b8cc5
mov al, byte [r12 + 0x25]
mov edx, eax
shr dl, 1
mov byte [r12 + 0x24], dl
je 0x1401b8875
cmp al, 0xa
ja 0x1401b887c
mov edx, 1
test al, 1
jne 0x1401b8881
lea eax, [rax*4 + 8]
cmp dword [rsp + 0x150], 0
mov rdx, qword [r12 + 0x30]
mov byte [r12 + 0x27], al
je 0x1401b87dd
lea rcx, str.PRAGMA__Q.page_size
mov dword [rsp + 0x90], 0
call fcn.140207780
mov r14, rax
test rax, rax
je 0x1401b880e
lea r8, [rsp + 0x90]
mov rdx, rax
mov rcx, r13
call fcn.1401a1120
mov esi, eax
test eax, eax
jne 0x1401b8813
movzx edx, byte [r12 + 0x27]
mov eax, dword [rsp + 0x90]
imul edx, edx, 0x33
sub eax, 0x40
add edx, 4
cmp eax, edx
cmovg eax, edx
mov dword [r12 + 0x20], eax
jmp 0x1401b8863
mov r8, qword [r12 + 0x38]
lea rcx, str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.140207780
mov r14, rax
test rax, rax
je 0x1401b880e
lea r8, [r12 + 0x20]
mov rdx, rax
mov rcx, r13
call fcn.1401a1120
mov esi, eax
test eax, eax
je 0x1401b8837
jmp 0x1401b8813
mov esi, 7
mov rcx, r13
call fcn.140205fd0
lea rcx, [0x14029c1a7]
mov rdx, rax
call fcn.140207780
mov rdi, qword [rsp + 0x148]
mov qword [rdi], rax
jmp 0x1401b8863
cmp dword [r12 + 0x20], 0x1bf
jg 0x1401b8863
mov rdx, qword [r12 + 0x38]
lea rcx, str.undersize_RTree_blobs_in___q_node_
mov esi, 0x10b
call fcn.140207780
mov rdi, qword [rsp + 0x148]
mov qword [rdi], rax
mov rcx, r14
call fcn.1402067c0
test esi, esi
jne 0x1401b8cc5
jmp 0x1401b88a7
mov edx, 2
jmp 0x1401b8881
mov edx, 3
mov rdx, qword [rsp + rdx*8 + 0x68]
lea rcx, [0x14029c1a7]
mov esi, 1
call fcn.140207780
mov rbx, qword [rsp + 0x148]
mov qword [rbx], rax
jmp 0x1401b8cc5
cmp dword [rsp + 0x150], 0
mov rdi, qword [rbx + 0x10]
mov r14, qword [rbx + 8]
mov qword [r12 + 0x18], r13
jne 0x1401b8992
lea rax, [r12 + 0x78]
mov rdx, qword [r12 + 0x30]
xor r9d, r9d
mov rcx, r13
mov qword [rsp + 0x90], rax
lea r8, str.sqlite_stat1
lea rax, [r12 + 0x80]
mov qword [rsp + 0x98], rax
lea rax, [r12 + 0x88]
mov qword [rsp + 0xa0], rax
lea rax, [r12 + 0x90]
mov qword [rsp + 0xa8], rax
lea rax, [r12 + 0x98]
mov qword [rsp + 0xb0], rax
lea rax, [r12 + 0xa0]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0xb8], rax
lea rax, [r12 + 0xa8]
mov qword [rsp + 0xc0], rax
lea rax, [r12 + 0xb0]
mov qword [rsp + 0xc8], rax
call fcn.14020b020
mov ebp, eax
test eax, eax
jne 0x1401b8a6a
jmp 0x1401b8a83
mov rcx, r13
xor ebx, ebx
lea rbp, str._a_d
call fcn.140209c30
mov r9, rdi
mov r8, r14
lea rdx, str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
mov rcx, rax
mov r15, rax
call fcn.140209ba0
movzx eax, byte [r12 + 0x29]
cmp ebx, eax
jge 0x1401b89d7
mov r8d, ebx
mov rdx, rbp
mov rcx, r15
inc ebx
call fcn.140209ba0
jmp 0x1401b89bb
mov rcx, r15
mov r9, rdi
lea rdx, str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
mov r8, r14
call fcn.140209ba0
mov rcx, r15
mov r9, rdi
mov r8, r14
lea rdx, str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
call fcn.140209ba0
mov eax, dword [r12 + 0x20]
mov rcx, r15
mov r9, rdi
mov r8, r14
lea rdx, str.INSERT_INTO___w_.__w_node_VALUES_1_zeroblob__d__
mov dword [rsp + 0x20], eax
call fcn.140209ba0
mov rcx, r15
call fcn.140209be0
mov r15, rax
test rax, rax
jne 0x1401b8a39
mov ebp, 7
jmp 0x1401b8c92
xor r9d, r9d
xor r8d, r8d
mov rcx, r13
mov rdx, rax
mov qword [rsp + 0x20], 0
call fcn.140206150
mov rcx, r15
mov ebp, eax
call fcn.1402067c0
test ebp, ebp
je 0x1401b88c2
jmp 0x1401b8c92
mov qword [r12 + 0x48], 0x100000
cmp eax, 1
jne 0x1401b8b19
xor ebp, ebp
jmp 0x1401b8b19
mov rdx, qword [r12 + 0x30]
mov r8, qword [r12 + 0x38]
lea rcx, str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
call fcn.140207780
mov r15, rax
test rax, rax
je 0x1401b8afd
lea r9, [rsp + 0x60]
or r8d, 0xffffffff
mov rdx, rax
mov rcx, r13
mov qword [rsp + 0x20], 0
mov ebx, 0x64
call fcn.140207bb0
mov ebp, eax
test eax, eax
jne 0x1401b8af3
mov rcx, qword [rsp + 0x60]
call fcn.140208fb0
cmp eax, 0x64
jne 0x1401b8ae7
mov rcx, qword [rsp + 0x60]
xor edx, edx
call fcn.1402044e0
mov rbx, rax
mov rcx, qword [rsp + 0x60]
call fcn.140206720
mov ebp, eax
mov rcx, r15
call fcn.1402067c0
jmp 0x1401b8b07
mov ebx, 0x64
mov ebp, 7
cmp rbx, 0x64
mov eax, 0x64
cmovl rbx, rax
mov qword [r12 + 0x48], rbx
xor r15d, r15d
lea rbx, str.INSERT_OR_REPLACE_INTO__q._q_node_VALUES__1___2_
mov eax, r15d
cmp r15d, 7
jg 0x1401b8ba7
test ebp, ebp
jne 0x1401b8ba7
cmp eax, 3
jne 0x1401b8b44
cmp byte [r12 + 0x29], 0
lea rcx, str.INSERT_INTO__w_.__w_rowid__rowid_nodeno_VALUES__1__2_ON_CONFLICT_rowid_DO_UPDATE_SET_nodenoexcluded.nodeno
jne 0x1401b8b48
mov rcx, qword [rbx + r15*8]
mov r8, rdi
mov rdx, r14
mov ebp, 7
call fcn.140207780
mov r11, rax
test rax, rax
je 0x1401b8b97
mov rdx, r11
mov r9d, 5
or r8d, 0xffffffff
mov rcx, r13
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + r15*8 + 0x90]
mov qword [rsp + 0x50], r11
mov qword [rsp + 0x20], rax
call fcn.140207be0
mov r11, qword [rsp + 0x50]
mov ebp, eax
mov rcx, r11
inc r15
call fcn.1402067c0
jmp 0x1401b8b23
cmp byte [r12 + 0x29], 0
je 0x1401b8c8e
mov r8, rdi
mov rdx, r14
lea rcx, str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
call fcn.140207780
mov qword [r12 + 0x58], rax
test rax, rax
je 0x1401b8a2f
mov rcx, r13
lea rbx, [0x14029b94d]
call fcn.140209c30
mov r9, rdi
mov r8, r14
lea rdx, str.UPDATE___w_.__w_rowid_SET
mov rcx, rax
mov r15, rax
lea rdi, str.a_d__d
call fcn.140209ba0
movzx eax, byte [r12 + 0x29]
cmp esi, eax
jge 0x1401b8c36
test esi, esi
je 0x1401b8c20
mov r8d, 1
mov rdx, rbx
mov rcx, r15
call fcn.140209ae0
lea r9d, [rsi + 2]
mov r8d, esi
mov rdx, rdi
mov rcx, r15
call fcn.140209ba0
inc esi
jmp 0x1401b8c01
lea rdx, str._WHERE_rowid_1
mov rcx, r15
call fcn.140209ba0
mov rcx, r15
call fcn.140209be0
mov r14, rax
test rax, rax
je 0x1401b8a2f
mov rcx, r13
mov r9d, 5
or r8d, 0xffffffff
mov rdx, r14
lea rax, [r12 + 0xb8]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call fcn.140207be0
mov rcx, r14
mov ebp, eax
call fcn.1402067c0
test ebp, ebp
je 0x1401b8cb8
mov rcx, r13
mov esi, ebp
call fcn.140205fd0
lea rcx, [0x14029c1a7]
mov rdx, rax
call fcn.140207780
mov rbx, qword [rsp + 0x148]
mov qword [rbx], rax
jmp 0x1401b8cc5
mov rax, qword [rsp + 0x140]
mov qword [rax], r12
jmp 0x1401b8ccf
mov rcx, r12
mov ebp, esi
call fcn.1401b99f0
mov eax, ebp
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret