Function at 0x140125070
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, [0x14020e910]
xor esi, esi
mov qword [rcx + 0x18], rdx
movq xmm6, rcx
mov r15, r9
mov r12, r8
punpcklqdq xmm6, xmm6
mov rbx, rdx
mov r14, rcx
cmp dword [rsp + 0xf0], esi
je 0x1401252a6
call fcn.140195a20
test eax, eax
jne 0x140125101
lea ecx, [rsi + 0x20]
call fcn.140160ac0
mov rdi, rax
test rax, rax
je 0x140125101
test rbx, rbx
je 0x1401250e6
mov eax, dword [rbx + 0x88]
jmp 0x1401250eb
mov eax, 0x3b9aca00
mov qword [rdi + 8], rsi
mov qword [rdi], rsi
mov dword [rdi + 0x10], esi
mov dword [rdi + 0x14], eax
mov dword [rdi + 0x18], esi
mov word [rdi + 0x1c], si
jmp 0x140125104
mov rdi, rbp
mov r9, r15
lea rdx, str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
mov r8, r12
mov rcx, rdi
call fcn.140084d90
cmp byte [r14 + 0x29], sil
jbe 0x14012513d
nop
mov r8d, esi
lea rdx, str._a_d
mov rcx, rdi
call fcn.140084d90
movzx eax, byte [r14 + 0x29]
inc esi
cmp esi, eax
jl 0x140125120
mov r9, r15
lea rdx, str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
mov r8, r12
mov rcx, rdi
call fcn.140084d90
mov r9, r15
lea rdx, str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
mov r8, r12
mov rcx, rdi
call fcn.140084d90
mov eax, dword [r14 + 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, rdi
call fcn.140084d90
test rdi, rdi
je 0x14012535d
cmp rdi, rbp
je 0x14012535d
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1401251bf
mov eax, dword [rdi + 0x18]
mov byte [rax + rcx], 0
cmp dword [rdi + 0x14], 0
jbe 0x1401251bf
test byte [rdi + 0x1d], 4
jne 0x1401251bf
mov rcx, rdi
call fcn.140197250
mov rsi, rax
jmp 0x1401251c3
mov rsi, qword [rdi + 8]
cmp dword [0x14020e0b0], 0
je 0x140125215
mov rcx, qword [0x1402136d0]
test rcx, rcx
je 0x1401251de
call qword [0x14020e130]
mov rcx, rdi
call qword [0x14020e0e8]
dec qword [0x140213658]
movsxd rcx, eax
sub qword [0x140213610], rcx
mov rcx, rdi
call qword [0x14020e0d8]
mov rcx, qword [0x1402136d0]
test rcx, rcx
je 0x14012521e
call qword [0x14020e140]
jmp 0x14012521e
mov rcx, rdi
call qword [0x14020e0d8]
test rsi, rsi
je 0x14012535d
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rbx
mov rdx, rsi
call fcn.1400a45a0
cmp dword [0x14020e0b0], 0
mov edi, eax
je 0x140125293
mov rcx, qword [0x1402136d0]
test rcx, rcx
je 0x14012525c
call qword [0x14020e130]
mov rcx, rsi
call qword [0x14020e0e8]
dec qword [0x140213658]
movsxd rcx, eax
sub qword [0x140213610], rcx
mov rcx, rsi
call qword [0x14020e0d8]
mov rcx, qword [0x1402136d0]
test rcx, rcx
je 0x14012529c
call qword [0x14020e140]
jmp 0x14012529c
mov rcx, rsi
call qword [0x14020e0d8]
test edi, edi
jne 0x14012597a
xor esi, esi
cmp dword [0x140213430], 2
lea rax, [r14 + 0x78]
mov qword [rsp + 0xd8], r13
jl 0x140125367
movdqa xmm3, xmmword [0x1401dc6f0]
movdqa xmm2, xmmword [0x1401dc6c0]
pmovsxdq xmm0, xmm3
psllq xmm0, 3
paddq xmm0, xmm6
paddq xmm0, xmm2
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm0, xmmword [0x1401dc6e0]
paddd xmm0, xmm3
pmovsxdq xmm1, xmm0
movdqa xmm0, xmmword [0x1401dc700]
psllq xmm1, 3
paddd xmm0, xmm3
paddq xmm1, xmm6
paddq xmm1, xmm2
movdqu xmmword [rsp + 0x60], xmm1
pmovsxdq xmm1, xmm0
movdqa xmm0, xmmword [0x1401dc710]
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 0x140125382
mov eax, 7
jmp 0x14012597c
lea rcx, [rsp + 0x50]
mov edx, 8
mov qword [rcx], rax
lea rcx, [rcx + 8]
add rax, 8
sub rdx, 1
jne 0x140125371
mov rdx, qword [r14 + 0x30]
lea r8, str.sqlite_stat1
mov qword [rsp + 0x40], rsi
mov ebp, 0x64
mov qword [rsp + 0x38], rsi
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x28], rsi
mov r13d, ebp
mov qword [rsp + 0x20], rsi
call fcn.140081f50
mov edi, eax
test eax, eax
je 0x1401253d6
cmp eax, 1
mov r13d, 0
mov ebp, 0x100000
cmove edi, r13d
jmp 0x1401254be
mov r8, qword [r14 + 0x38]
lea rcx, str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
mov rdx, qword [r14 + 0x30]
call fcn.1400a6650
mov rsi, rax
test rax, rax
jne 0x1401253fa
lea edi, [rax + 7]
jmp 0x1401254b4
xor ecx, ecx
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rcx
mov r9d, 0x80
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov qword [rsp + 0x20], rcx
lea r8d, [rcx - 1]
mov rcx, rbx
call fcn.1401605a0
mov edi, eax
test eax, eax
jne 0x140125459
mov rdi, qword [rsp + 0xd0]
mov rcx, rdi
call fcn.1400aa1c0
cmp eax, ebp
jne 0x14012544f
xor edx, edx
mov rcx, rdi
call fcn.1400aa8f0
mov r13, rax
mov rcx, rdi
call fcn.14007ede0
mov edi, eax
cmp dword [0x14020e0b0], 0
je 0x1401254ab
mov rcx, qword [0x1402136d0]
test rcx, rcx
je 0x140125474
call qword [0x14020e130]
mov rcx, rsi
call qword [0x14020e0e8]
dec qword [0x140213658]
movsxd rcx, eax
sub qword [0x140213610], rcx
mov rcx, rsi
call qword [0x14020e0d8]
mov rcx, qword [0x1402136d0]
test rcx, rcx
je 0x1401254b4
call qword [0x14020e140]
jmp 0x1401254b4
mov rcx, rsi
call qword [0x14020e0d8]
cmp r13, rbp
cmovg rbp, r13
xor r13d, r13d
mov qword [r14 + 0x48], rbp
lea rax, str.INSERT_OR_REPLACE_INTO__q._q_node_VALUES__1___2_
mov rsi, r13
nop dword [rax]
test edi, edi
jne 0x1401255bb
cmp rsi, 3
jne 0x1401254f5
cmp byte [r14 + 0x29], dil
je 0x1401254f5
lea rcx, str.INSERT_INTO__w_.__w_rowid__rowid_nodeno_VALUES__1__2_ON_CONFLICT_rowid_DO_UPDATE_SET_nodenoexcluded.nodeno
lea rdi, [rsi*8]
jmp 0x140125501
lea rdi, [rsi*8]
mov rcx, qword [rdi + rax]
mov r8, r15
mov rdx, r12
call fcn.1400a6650
mov rbp, rax
test rax, rax
je 0x1401255a2
mov rcx, qword [rsp + rdi + 0x50]
mov r9d, 0x85
mov qword [rsp + 0x30], r13
mov r8d, 0xffffffff
mov qword [rsp + 0x28], rcx
mov rdx, rax
mov rcx, rbx
mov qword [rsp + 0x20], r13
call fcn.1401605a0
cmp dword [0x14020e0b0], 0
mov edi, eax
je 0x140125597
mov rcx, qword [0x1402136d0]
test rcx, rcx
je 0x140125560
call qword [0x14020e130]
mov rcx, rbp
call qword [0x14020e0e8]
dec qword [0x140213658]
movsxd rcx, eax
sub qword [0x140213610], rcx
mov rcx, rbp
call qword [0x14020e0d8]
mov rcx, qword [0x1402136d0]
test rcx, rcx
je 0x1401255a7
call qword [0x14020e140]
jmp 0x1401255a7
mov rcx, rbp
call qword [0x14020e0d8]
jmp 0x1401255a7
mov edi, 7
inc rsi
lea rax, str.INSERT_OR_REPLACE_INTO__q._q_node_VALUES__1___2_
cmp rsi, 8
jl 0x1401254d0
cmp byte [r14 + 0x29], 0
je 0x140125972
mov r8, r15
lea rcx, str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
mov rdx, r12
call fcn.1400a6650
mov qword [r14 + 0x58], rax
test rax, rax
je 0x14012596d
call fcn.140195a20
test eax, eax
jne 0x140125631
lea ecx, [rax + 0x20]
call fcn.140160ac0
mov rdi, rax
test rax, rax
je 0x140125631
test rbx, rbx
je 0x14012560b
mov eax, dword [rbx + 0x88]
jmp 0x140125610
mov eax, 0x3b9aca00
mov qword [rdi + 8], r13
lea rbp, [0x14020e910]
mov qword [rdi], r13
mov dword [rdi + 0x10], r13d
mov dword [rdi + 0x14], eax
mov dword [rdi + 0x18], r13d
mov word [rdi + 0x1c], 0
jmp 0x14012563b
lea rbp, [0x14020e910]
mov rdi, rbp
mov r9, r15
lea rdx, str.UPDATE___w_.__w_rowid_SET
mov r8, r12
mov rcx, rdi
call fcn.140084d90
cmp byte [r14 + 0x29], 0
mov esi, r13d
jbe 0x1401256b5
nop word [rax + rax]
test esi, esi
je 0x140125694
mov eax, dword [rdi + 0x18]
lea ecx, [rax + 1]
cmp ecx, dword [rdi + 0x10]
jb 0x140125686
mov r8d, 1
lea rdx, [0x1401d6ed0]
mov rcx, rdi
call fcn.1400be6f0
jmp 0x140125694
mov dword [rdi + 0x18], ecx
mov rcx, rax
mov rax, qword [rdi + 8]
mov byte [rcx + rax], 0x2c
lea r9d, [rsi + 2]
mov r8d, esi
lea rdx, str.a_d__d
mov rcx, rdi
call fcn.140084d90
movzx eax, byte [r14 + 0x29]
inc esi
cmp esi, eax
jl 0x140125660
lea rdx, str._WHERE_rowid_1
mov rcx, rdi
call fcn.140084d90
test rdi, rdi
je 0x14012596d
cmp rdi, rbp
je 0x14012596d
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1401256ff
mov eax, dword [rdi + 0x18]
mov byte [rax + rcx], 0
cmp dword [rdi + 0x14], 0
jbe 0x1401256ff
test byte [rdi + 0x1d], 4
jne 0x1401256ff
mov rcx, rdi
call fcn.140197250
mov r15, rax
jmp 0x140125703
mov r15, qword [rdi + 8]
cmp dword [0x14020e0b0], 0
je 0x140125755
mov rcx, qword [0x1402136d0]
test rcx, rcx
je 0x14012571e
call qword [0x14020e130]
mov rcx, rdi
call qword [0x14020e0e8]
dec qword [0x140213658]
movsxd rcx, eax
sub qword [0x140213610], rcx
mov rcx, rdi
call qword [0x14020e0d8]
mov rcx, qword [0x1402136d0]
test rcx, rcx
je 0x14012575e
call qword [0x14020e140]
jmp 0x14012575e
mov rcx, rdi
call qword [0x14020e0d8]
test r15, r15
je 0x14012596d
xor esi, esi
lea r13, [r14 + 0xb8]
mov ebp, esi
test r13, r13
jne 0x1401257a8
lea rax, [0x1401dc4f4]
mov edi, 0x15
mov ecx, edi
mov qword [rsp + 0x20], rax
mov r9d, 0x21b3c
lea r8, str.misuse
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140088f10
jmp 0x140125910
mov qword [r13], rsi
test rbx, rbx
jne 0x1401257ba
lea r8, str.NULL
jmp 0x1401257d8
movzx eax, byte [rbx + 0x71]
cmp al, 0x76
je 0x140125817
cmp al, 0xba
je 0x1401257d1
lea r8, str.invalid
cmp al, 0x6d
jne 0x1401257d8
lea r8, str.unopened
mov edi, 0x15
lea rdx, str.API_call_with__s_database_connection_pointer
mov ecx, edi
call fcn.140088f10
lea rax, [0x1401dc4f4]
mov r9d, 0x21b40
lea r8, str.misuse
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
mov ecx, edi
call fcn.140088f10
jmp 0x140125910
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140125826
call qword [0x14020e130]
cmp byte [rbx + 0x6f], sil
jne 0x140125834
mov rcx, rbx
call fcn.1400b3eb0
lea r14, [rbx + 0x67]
nop dword [rax + rax]
mov qword [rsp + 0x30], rsi
mov r9d, 0x85
mov qword [rsp + 0x28], r13
mov r8d, 0xffffffff
mov rdx, r15
mov qword [rsp + 0x20], rsi
mov rcx, rbx
call fcn.140169f70
mov r12d, eax
test eax, eax
je 0x1401258cd
cmp byte [rbx + 0x67], 0
lea r14, [rbx + 0x67]
jne 0x1401258cd
cmp eax, 0x201
jne 0x140125889
mov ecx, ebp
inc ebp
cmp ecx, 0x19
jl 0x140125840
jmp 0x1401258cd
cmp r12d, 0x11
jne 0x1401258cd
cmp dword [rbx + 0x48], 0
jne 0x1401258c1
cmp dword [rbx + 0x28], 0
mov edi, esi
jle 0x1401258c1
nop dword [rax]
mov rax, qword [rbx + 0x20]
mov rcx, qword [rsi + rax + 0x18]
test byte [rcx + 0x72], 8
je 0x1401258b4
call fcn.14016e650
inc edi
add rsi, 0x20
cmp edi, dword [rbx + 0x28]
jl 0x1401258a0
xor esi, esi
mov eax, ebp
inc ebp
test eax, eax
je 0x140125840
cmp byte [rbx + 0x6f], 0
jne 0x1401258df
mov rcx, rbx
call fcn.1400b4260
lea r14, [rbx + 0x67]
cmp byte [r14], 0
jne 0x1401258ee
test r12d, r12d
jne 0x1401258ee
mov edi, esi
jmp 0x1401258fb
mov edx, r12d
mov rcx, rbx
call fcn.1400b0200
mov edi, eax
mov rcx, qword [rbx + 0x18]
mov dword [rbx + 0x298], esi
test rcx, rcx
je 0x140125910
call qword [0x14020e140]
cmp dword [0x14020e0b0], 0
je 0x140125962
mov rcx, qword [0x1402136d0]
test rcx, rcx
je 0x14012592b
call qword [0x14020e130]
mov rcx, r15
call qword [0x14020e0e8]
dec qword [0x140213658]
mov rcx, r15
movsxd rdx, eax
sub qword [0x140213610], rdx
call qword [0x14020e0d8]
mov rcx, qword [0x1402136d0]
test rcx, rcx
je 0x140125972
call qword [0x14020e140]
jmp 0x140125972
mov rcx, r15
call qword [0x14020e0d8]
jmp 0x140125972
mov edi, 7
mov r13, qword [rsp + 0xd8]
mov eax, edi
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