Function at 0x1401c7cc0
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, [0x14022f7e0]
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 0x1401c7d36
xor eax, eax
cmp r8d, 5
lea rcx, [0x1402ceaf7]
mov ebp, 1
setg al
add eax, 2
cdqe
mov rdx, qword [rsp + rax*8 + 0x68]
call fcn.140216fc0
mov rbx, qword [rsp + 0x148]
mov qword [rbx], rax
jmp 0x1401c850f
mov r8d, 1
mov edx, 1
mov rcx, r13
mov ebp, 7
call fcn.14021b970
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.140216f20
mov r12, rax
test rax, rax
je 0x1401c850f
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, [0x1402332c0]
mov rcx, rdx
movzx r15d, r15b
mov qword [r12], rax
lea rax, [r12 + 0x3c8]
lea rbp, str.y___
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.140219470
mov rcx, qword [rbx + 0x18]
mov rdx, rdi
mov dword [rsp + 0x90], 0
mov r14, rax
call fcn.1401e7a10
mov r9, rcx
lea rdx, str.CREATE_TABLE_x__.s_INT
mov rcx, r14
mov r8d, eax
call fcn.1402193e0
mov r9, qword [rbx + rsi*8]
mov al, byte [r12 + 0x29]
mov dword [rsp + 0x50], esi
mov r8d, esi
cmp byte [r9], 0x2b
jne 0x1401c7e8b
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.1401e7a10
mov r9, qword [rsp + 0x58]
lea rdx, str.__.s
mov r8d, eax
jmp 0x1401c7ebc
test al, al
jne 0x1401c7edc
inc byte [r12 + 0x25]
mov rdx, rdi
mov rcx, r9
mov qword [rsp + 0x58], r9
mov dword [rsp + 0x90], 0
call fcn.1401e7a10
mov rdx, qword [rbp + r15*8]
mov r9, qword [rsp + 0x58]
mov r8d, eax
mov rcx, r14
inc rsi
call fcn.1402193e0
mov r8d, dword [rsp + 0x50]
inc r8d
cmp dword [rsp + 0x130], esi
jg 0x1401c7e3f
lea rdx, [0x1402d558b]
mov rcx, r14
mov dword [rsp + 0x50], r8d
mov esi, 7
call fcn.1402193e0
mov rcx, r14
call fcn.140219420
mov r15, rax
test rax, rax
je 0x1401c7f6c
mov r8d, dword [rsp + 0x50]
cmp dword [rsp + 0x130], r8d
jle 0x1401c7f39
lea rdx, str.Auxiliary_rtree_columns_must_be_last
lea rcx, [0x1402ceaf7]
mov esi, 1
call fcn.140216fc0
mov rdi, qword [rsp + 0x148]
mov qword [rdi], rax
jmp 0x1401c7f6c
mov rdx, rax
mov rcx, r13
call fcn.140215310
mov esi, eax
test eax, eax
je 0x1401c7f6c
mov rcx, r13
call fcn.140215810
lea rcx, [0x1402ceaf7]
mov rdx, rax
call fcn.140216fc0
mov rdi, qword [rsp + 0x148]
mov qword [rdi], rax
mov rcx, r15
call fcn.140216000
test esi, esi
jne 0x1401c8505
mov al, byte [r12 + 0x25]
mov edx, eax
shr dl, 1
mov byte [r12 + 0x24], dl
je 0x1401c80b5
cmp al, 0xa
ja 0x1401c80bc
mov edx, 1
test al, 1
jne 0x1401c80c1
lea eax, [rax*4 + 8]
cmp dword [rsp + 0x150], 0
mov rdx, qword [r12 + 0x30]
mov byte [r12 + 0x27], al
je 0x1401c801d
lea rcx, str.PRAGMA__Q.page_size
mov dword [rsp + 0x90], 0
call fcn.140216fc0
mov r14, rax
test rax, rax
je 0x1401c804e
lea r8, [rsp + 0x90]
mov rdx, rax
mov rcx, r13
call fcn.1401b0960
mov esi, eax
test eax, eax
jne 0x1401c8053
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 0x1401c80a3
mov r8, qword [r12 + 0x38]
lea rcx, str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.140216fc0
mov r14, rax
test rax, rax
je 0x1401c804e
lea r8, [r12 + 0x20]
mov rdx, rax
mov rcx, r13
call fcn.1401b0960
mov esi, eax
test eax, eax
je 0x1401c8077
jmp 0x1401c8053
mov esi, 7
mov rcx, r13
call fcn.140215810
lea rcx, [0x1402ceaf7]
mov rdx, rax
call fcn.140216fc0
mov rdi, qword [rsp + 0x148]
mov qword [rdi], rax
jmp 0x1401c80a3
cmp dword [r12 + 0x20], 0x1bf
jg 0x1401c80a3
mov rdx, qword [r12 + 0x38]
lea rcx, str.undersize_RTree_blobs_in___q_node_
mov esi, 0x10b
call fcn.140216fc0
mov rdi, qword [rsp + 0x148]
mov qword [rdi], rax
mov rcx, r14
call fcn.140216000
test esi, esi
jne 0x1401c8505
jmp 0x1401c80e7
mov edx, 2
jmp 0x1401c80c1
mov edx, 3
mov rdx, qword [rsp + rdx*8 + 0x68]
lea rcx, [0x1402ceaf7]
mov esi, 1
call fcn.140216fc0
mov rbx, qword [rsp + 0x148]
mov qword [rbx], rax
jmp 0x1401c8505
cmp dword [rsp + 0x150], 0
mov rdi, qword [rbx + 0x10]
mov r14, qword [rbx + 8]
mov qword [r12 + 0x18], r13
jne 0x1401c81d2
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.14021a860
mov ebp, eax
test eax, eax
jne 0x1401c82aa
jmp 0x1401c82c3
mov rcx, r13
xor ebx, ebx
lea rbp, str._a_d
call fcn.140219470
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.1402193e0
movzx eax, byte [r12 + 0x29]
cmp ebx, eax
jge 0x1401c8217
mov r8d, ebx
mov rdx, rbp
mov rcx, r15
inc ebx
call fcn.1402193e0
jmp 0x1401c81fb
mov rcx, r15
mov r9, rdi
lea rdx, str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
mov r8, r14
call fcn.1402193e0
mov rcx, r15
mov r9, rdi
mov r8, r14
lea rdx, str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
call fcn.1402193e0
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.1402193e0
mov rcx, r15
call fcn.140219420
mov r15, rax
test rax, rax
jne 0x1401c8279
mov ebp, 7
jmp 0x1401c84d2
xor r9d, r9d
xor r8d, r8d
mov rcx, r13
mov rdx, rax
mov qword [rsp + 0x20], 0
call fcn.140215990
mov rcx, r15
mov ebp, eax
call fcn.140216000
test ebp, ebp
je 0x1401c8102
jmp 0x1401c84d2
mov qword [r12 + 0x48], 0x100000
cmp eax, 1
jne 0x1401c8359
xor ebp, ebp
jmp 0x1401c8359
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.140216fc0
mov r15, rax
test rax, rax
je 0x1401c833d
lea r9, [rsp + 0x60]
or r8d, 0xffffffff
mov rdx, rax
mov rcx, r13
mov qword [rsp + 0x20], 0
mov ebx, 0x64
call fcn.1402173f0
mov ebp, eax
test eax, eax
jne 0x1401c8333
mov rcx, qword [rsp + 0x60]
call fcn.1402187f0
cmp eax, 0x64
jne 0x1401c8327
mov rcx, qword [rsp + 0x60]
xor edx, edx
call fcn.140213d20
mov rbx, rax
mov rcx, qword [rsp + 0x60]
call fcn.140215f60
mov ebp, eax
mov rcx, r15
call fcn.140216000
jmp 0x1401c8347
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 0x1401c83e7
test ebp, ebp
jne 0x1401c83e7
cmp eax, 3
jne 0x1401c8384
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 0x1401c8388
mov rcx, qword [rbx + r15*8]
mov r8, rdi
mov rdx, r14
mov ebp, 7
call fcn.140216fc0
mov r11, rax
test rax, rax
je 0x1401c83d7
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.140217420
mov r11, qword [rsp + 0x50]
mov ebp, eax
mov rcx, r11
inc r15
call fcn.140216000
jmp 0x1401c8363
cmp byte [r12 + 0x29], 0
je 0x1401c84ce
mov r8, rdi
mov rdx, r14
lea rcx, str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
call fcn.140216fc0
mov qword [r12 + 0x58], rax
test rax, rax
je 0x1401c826f
mov rcx, r13
lea rbx, [0x1402ce29d]
call fcn.140219470
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.1402193e0
movzx eax, byte [r12 + 0x29]
cmp esi, eax
jge 0x1401c8476
test esi, esi
je 0x1401c8460
mov r8d, 1
mov rdx, rbx
mov rcx, r15
call fcn.140219320
lea r9d, [rsi + 2]
mov r8d, esi
mov rdx, rdi
mov rcx, r15
call fcn.1402193e0
inc esi
jmp 0x1401c8441
lea rdx, str._WHERE_rowid_1
mov rcx, r15
call fcn.1402193e0
mov rcx, r15
call fcn.140219420
mov r14, rax
test rax, rax
je 0x1401c826f
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.140217420
mov rcx, r14
mov ebp, eax
call fcn.140216000
test ebp, ebp
je 0x1401c84f8
mov rcx, r13
mov esi, ebp
call fcn.140215810
lea rcx, [0x1402ceaf7]
mov rdx, rax
call fcn.140216fc0
mov rbx, qword [rsp + 0x148]
mov qword [rbx], rax
jmp 0x1401c8505
mov rax, qword [rsp + 0x140]
mov qword [rax], r12
jmp 0x1401c850f
mov rcx, r12
mov ebp, esi
call fcn.1401c9230
mov eax, ebp
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret