Function at 0x1403274f0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa0
movaps xmmword [rsp + 0x90], xmm6
lea rbp, [0x1404a9b38]
xor edi, edi
mov qword [rcx + 0x18], rdx
movq xmm6, rcx
mov r15, r9
mov r12, r8
punpcklqdq xmm6, xmm6
mov r14, rdx
mov rsi, rcx
cmp dword [rsp + 0xf0], edi
je 0x140327726
call fcn.1403a2170
test eax, eax
jne 0x140327584
mov ecx, reloc.SinoSPE.dll_Ordinal_32
call fcn.14036b6d0
mov rbx, rax
test rax, rax
je 0x140327584
test r14, r14
je 0x140327569
mov eax, dword [r14 + 0x88]
jmp 0x14032756e
mov eax, 0x3b9aca00
mov qword [rbx + 8], rdi
mov qword [rbx], rdi
mov dword [rbx + 0x10], edi
mov dword [rbx + 0x14], eax
mov dword [rbx + 0x18], edi
mov word [rbx + 0x1c], di
jmp 0x140327587
mov rbx, rbp
mov r9, r15
lea rdx, str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
mov r8, r12
mov rcx, rbx
call fcn.14025bfc0
cmp byte [rsi + 0x29], dil
jbe 0x1403275be
mov r8d, edi
lea rdx, str._a_d
mov rcx, rbx
call fcn.14025bfc0
movzx eax, byte [rsi + 0x29]
inc edi
cmp edi, eax
jl 0x1403275a2
mov r9, r15
lea rdx, str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
mov r8, r12
mov rcx, rbx
call fcn.14025bfc0
mov r9, r15
lea rdx, str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
mov r8, r12
mov rcx, rbx
call fcn.14025bfc0
mov eax, dword [rsi + 0x20]
lea rdx, str.INSERT_INTO___w_.__w_node_VALUES_1_zeroblob__d__
mov r9, r15
mov dword [rsp + 0x20], eax
mov r8, r12
mov rcx, rbx
call fcn.14025bfc0
test rbx, rbx
je 0x1403277dd
cmp rbx, rbp
je 0x1403277dd
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14032763f
mov eax, dword [rbx + 0x18]
mov byte [rax + rcx], 0
cmp dword [rbx + 0x14], 0
jbe 0x14032763f
test byte [rbx + 0x1d], 4
jne 0x14032763f
mov rcx, rbx
call fcn.1403ab8c0
mov rdi, rax
jmp 0x140327643
mov rdi, qword [rbx + 8]
cmp dword [reloc.SinoSPE.dll_Ordinal_1], 0
je 0x140327695
mov rcx, qword [0x1404b8660]
test rcx, rcx
je 0x14032765e
call qword [0x1404a5bd0]
mov rcx, rbx
call qword [0x1404a5b88]
dec qword [0x1404b85e8]
mov rcx, rbx
movsxd rdx, eax
sub qword [0x1404b85a0], rdx
call qword [0x1404a5b78]
mov rcx, qword [0x1404b8660]
test rcx, rcx
je 0x14032769e
call qword [0x1404a5be0]
jmp 0x14032769e
mov rcx, rbx
call qword [0x1404a5b78]
test rdi, rdi
je 0x1403277dd
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, r14
mov rdx, rdi
call fcn.140281db0
cmp dword [reloc.SinoSPE.dll_Ordinal_1], 0
mov ebx, eax
je 0x140327713
mov rcx, qword [0x1404b8660]
test rcx, rcx
je 0x1403276dc
call qword [0x1404a5bd0]
mov rcx, rdi
call qword [0x1404a5b88]
dec qword [0x1404b85e8]
movsxd rcx, eax
sub qword [0x1404b85a0], rcx
mov rcx, rdi
call qword [0x1404a5b78]
mov rcx, qword [0x1404b8660]
test rcx, rcx
je 0x14032771c
call qword [0x1404a5be0]
jmp 0x14032771c
mov rcx, rdi
call qword [0x1404a5b78]
test ebx, ebx
jne 0x140327ca0
xor edi, edi
cmp dword [reloc.SinoSPE.dll_Ordinal_1], 2
lea rax, [rsi + 0x78]
mov qword [rsp + 0xd8], r13
jl 0x1403277e7
movdqa xmm3, xmmword [0x1403f5540]
movdqa xmm2, xmmword [0x1403f5520]
pmovsxdq xmm0, xmm3
psllq xmm0, 3
paddq xmm0, xmm6
paddq xmm0, xmm2
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm0, xmmword [0x1403f5530]
paddd xmm0, xmm3
pmovsxdq xmm1, xmm0
movdqa xmm0, xmmword [0x1403f5550]
psllq xmm1, 3
paddd xmm0, xmm3
paddq xmm1, xmm6
paddq xmm1, xmm2
movdqu xmmword [rsp + 0x60], xmm1
pmovsxdq xmm1, xmm0
movdqa xmm0, xmmword [0x1403f5560]
psllq xmm1, 3
paddd xmm0, xmm3
paddq xmm1, xmm6
paddq xmm1, xmm2
movdqu xmmword [rsp + 0x70], xmm1
pmovsxdq xmm1, xmm0
movq xmm0, rax
psllq xmm1, 3
punpcklqdq xmm0, xmm0
paddq xmm1, xmm0
movdqu xmmword [rsp + 0x80], xmm1
jmp 0x140327802
mov eax, 7
jmp 0x140327ca2
lea rcx, [rsp + 0x50]
mov edx, 8
mov qword [rcx], rax
lea rcx, [rcx + 8]
add rax, 8
sub rdx, 1
jne 0x1403277f1
mov rdx, qword [rsi + 0x30]
lea r8, str.sqlite_stat1
mov qword [rsp + 0x40], rdi
mov ebp, 0x64
mov qword [rsp + 0x38], rdi
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov rcx, r14
mov qword [rsp + 0x28], rdi
mov r13d, ebp
mov qword [rsp + 0x20], rdi
call fcn.1402589f0
mov ebx, eax
test eax, eax
je 0x140327856
cmp eax, 1
mov r13d, 0
mov ebp, 0x100000
cmove ebx, r13d
jmp 0x140327942
mov r8, qword [rsi + 0x38]
lea rcx, str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
mov rdx, qword [rsi + 0x30]
call fcn.140285a90
mov rdi, rax
test rax, rax
jne 0x14032787c
mov ebx, 7
jmp 0x140327938
xor ecx, ecx
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rcx
mov r9d, 0x80
mov qword [rsp + 0x28], rax
mov r8d, 0xffffffff
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, r14
call fcn.14036b1c0
mov ebx, eax
test eax, eax
jne 0x1403278dd
mov rbx, qword [rsp + 0xd0]
mov rcx, rbx
call fcn.14028a180
cmp eax, ebp
jne 0x1403278d3
xor edx, edx
mov rcx, rbx
call fcn.14028b260
mov r13, rax
mov rcx, rbx
call fcn.14028baa0
mov ebx, eax
cmp dword [reloc.SinoSPE.dll_Ordinal_1], 0
je 0x14032792f
mov rcx, qword [0x1404b8660]
test rcx, rcx
je 0x1403278f8
call qword [0x1404a5bd0]
mov rcx, rdi
call qword [0x1404a5b88]
dec qword [0x1404b85e8]
movsxd rcx, eax
sub qword [0x1404b85a0], rcx
mov rcx, rdi
call qword [0x1404a5b78]
mov rcx, qword [0x1404b8660]
test rcx, rcx
je 0x140327938
call qword [0x1404a5be0]
jmp 0x140327938
mov rcx, rdi
call qword [0x1404a5b78]
cmp r13, rbp
cmovg rbp, r13
xor r13d, r13d
mov qword [rsi + 0x50], rbp
lea rax, str.INSERT_OR_REPLACE_INTO__q._q_node_VALUES__1___2_
mov rdi, r13
test ebx, ebx
jne 0x140327a3a
cmp rdi, 3
jne 0x140327974
cmp byte [rsi + 0x29], bl
je 0x140327974
lea rcx, str.INSERT_INTO__w_.__w_rowid__rowid_nodeno_VALUES__1__2_ON_CONFLICT_rowid_DO_UPDATE_SET_nodenoexcluded.nodeno
lea rbx, [rdi*8]
jmp 0x140327980
lea rbx, [rdi*8]
mov rcx, qword [rbx + rax]
mov r8, r15
mov rdx, r12
call fcn.140285a90
mov rbp, rax
test rax, rax
je 0x140327a21
mov rcx, qword [rsp + rbx + 0x50]
mov r9d, 0x85
mov qword [rsp + 0x30], r13
mov r8d, 0xffffffff
mov qword [rsp + 0x28], rcx
mov rdx, rax
mov rcx, r14
mov qword [rsp + 0x20], r13
call fcn.14036b1c0
cmp dword [reloc.SinoSPE.dll_Ordinal_1], 0
mov ebx, eax
je 0x140327a16
mov rcx, qword [0x1404b8660]
test rcx, rcx
je 0x1403279df
call qword [0x1404a5bd0]
mov rcx, rbp
call qword [0x1404a5b88]
dec qword [0x1404b85e8]
movsxd rcx, eax
sub qword [0x1404b85a0], rcx
mov rcx, rbp
call qword [0x1404a5b78]
mov rcx, qword [0x1404b8660]
test rcx, rcx
je 0x140327a26
call qword [0x1404a5be0]
jmp 0x140327a26
mov rcx, rbp
call qword [0x1404a5b78]
jmp 0x140327a26
mov ebx, 7
inc rdi
lea rax, str.INSERT_OR_REPLACE_INTO__q._q_node_VALUES__1___2_
cmp rdi, 8
jl 0x140327950
cmp byte [rsi + 0x29], 0
je 0x140327c98
cmp ebx, 7
je 0x140327c98
mov r8, r15
lea rcx, str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
mov rdx, r12
call fcn.140285a90
mov qword [rsi + 0x60], rax
test rax, rax
je 0x140327c93
call fcn.1403a2170
test eax, eax
jne 0x140327abb
mov ecx, reloc.SinoSPE.dll_Ordinal_32
call fcn.14036b6d0
mov rbx, rax
test rax, rax
je 0x140327abb
test r14, r14
je 0x140327a95
mov eax, dword [r14 + 0x88]
jmp 0x140327a9a
mov eax, 0x3b9aca00
mov qword [rbx + 8], r13
lea rbp, [0x1404a9b38]
mov qword [rbx], r13
mov dword [rbx + 0x10], r13d
mov dword [rbx + 0x14], eax
mov dword [rbx + 0x18], r13d
mov word [rbx + 0x1c], 0
jmp 0x140327ac5
lea rbp, [0x1404a9b38]
mov rbx, rbp
mov r9, r15
lea rdx, str.UPDATE___w_.__w_rowid_SET
mov r8, r12
mov rcx, rbx
call fcn.14025bfc0
cmp byte [rsi + 0x29], 0
mov edi, r13d
jbe 0x140327b55
test edi, edi
je 0x140327b1b
mov eax, dword [rbx + 0x18]
lea ecx, [rax + 1]
cmp ecx, dword [rbx + 0x10]
jb 0x140327b0d
mov r8d, 1
lea rdx, [0x14041ebe4]
mov rcx, rbx
call fcn.1402b51e0
jmp 0x140327b1b
mov dword [rbx + 0x18], ecx
mov rcx, rax
mov rax, qword [rbx + 8]
mov byte [rcx + rax], reloc.SinoSPE.dll_Ordinal_44
movzx eax, byte [rsi + 0x2a]
lea r9d, [rdi + 2]
mov r8d, edi
mov rcx, rbx
cmp edi, eax
jge 0x140327b3f
lea rdx, str.a_dcoalesce___d_a_d_
mov dword [rsp + 0x20], edi
call fcn.14025bfc0
jmp 0x140327b4b
lea rdx, str.a_d__d
call fcn.14025bfc0
movzx eax, byte [rsi + 0x29]
inc edi
cmp edi, eax
jl 0x140327ae7
lea rdx, str._WHERE_rowid_1
mov rcx, rbx
call fcn.14025bfc0
test rbx, rbx
je 0x140327c93
cmp rbx, rbp
je 0x140327c93
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140327b9f
mov eax, dword [rbx + 0x18]
mov byte [rax + rcx], 0
cmp dword [rbx + 0x14], 0
jbe 0x140327b9f
test byte [rbx + 0x1d], 4
jne 0x140327b9f
mov rcx, rbx
call fcn.1403ab8c0
mov rdi, rax
jmp 0x140327ba3
mov rdi, qword [rbx + 8]
cmp dword [reloc.SinoSPE.dll_Ordinal_1], 0
je 0x140327bf5
mov rcx, qword [0x1404b8660]
test rcx, rcx
je 0x140327bbe
call qword [0x1404a5bd0]
mov rcx, rbx
call qword [0x1404a5b88]
dec qword [0x1404b85e8]
movsxd rcx, eax
sub qword [0x1404b85a0], rcx
mov rcx, rbx
call qword [0x1404a5b78]
mov rcx, qword [0x1404b8660]
test rcx, rcx
je 0x140327bfe
call qword [0x1404a5be0]
jmp 0x140327bfe
mov rcx, rbx
call qword [0x1404a5b78]
test rdi, rdi
je 0x140327c93
lea rax, [rsi + 0xb8]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rax
mov r9d, 0x85
mov r8d, 0xffffffff
mov qword [rsp + 0x20], r13
mov rdx, rdi
mov rcx, r14
call fcn.14036b1c0
cmp dword [reloc.SinoSPE.dll_Ordinal_1], 0
mov ebx, eax
je 0x140327c88
mov rcx, qword [0x1404b8660]
test rcx, rcx
je 0x140327c51
call qword [0x1404a5bd0]
mov rcx, rdi
call qword [0x1404a5b88]
dec qword [0x1404b85e8]
movsxd rcx, eax
sub qword [0x1404b85a0], rcx
mov rcx, rdi
call qword [0x1404a5b78]
mov rcx, qword [0x1404b8660]
test rcx, rcx
je 0x140327c98
call qword [0x1404a5be0]
jmp 0x140327c98
mov rcx, rdi
call qword [0x1404a5b78]
jmp 0x140327c98
mov ebx, 7
mov r13, qword [rsp + 0xd8]
mov eax, ebx
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret