Function at 0x1401dbaf0
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov rax, qword [0x1403b8c08]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rsi, rcx
mov qword [rcx + 0x18], rdx
xor ebp, ebp
lea rdi, [0x1403bb058]
mov r12, r9
mov r15, r8
mov r14, rdx
mov r13d, 0x3b9aca00
movq xmm6, rsi
punpcklqdq xmm6, xmm6
cmp dword [rsp + 0x130], ebp
je 0x1401dbc90
call fcn.14022da30
test eax, eax
jne 0x1401dbb90
lea ecx, [rbp + 0x20]
call fcn.140203f00
mov rbx, rax
test rax, rax
je 0x1401dbb90
test r14, r14
je 0x1401dbb77
mov eax, dword [r14 + 0x7c]
jmp 0x1401dbb7a
mov eax, r13d
mov qword [rbx + 8], rbp
mov qword [rbx], rbp
mov dword [rbx + 0x10], ebp
mov dword [rbx + 0x14], eax
mov dword [rbx + 0x18], ebp
mov word [rbx + 0x1c], bp
jmp 0x1401dbb93
mov rbx, rdi
mov r9, r12
lea rdx, str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
mov r8, r15
mov rcx, rbx
call fcn.140191150
mov edi, ebp
cmp byte [rsi + 0x29], bpl
jbe 0x1401dbbcc
mov r8d, edi
lea rdx, str._a_d
mov rcx, rbx
call fcn.140191150
movzx eax, byte [rsi + 0x29]
inc edi
cmp edi, eax
jl 0x1401dbbb0
mov r9, r12
lea rdx, str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
mov r8, r15
mov rcx, rbx
call fcn.140191150
mov r9, r12
lea rdx, str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
mov r8, r15
mov rcx, rbx
call fcn.140191150
mov eax, dword [rsi + 0x20]
lea rdx, str.INSERT_INTO___w_.__w_node_VALUES_1_zeroblob__d__
mov r9, r12
mov dword [rsp + 0x20], eax
mov r8, r15
mov rcx, rbx
call fcn.140191150
test rbx, rbx
je 0x1401dbd42
lea rax, [0x1403bb058]
cmp rbx, rax
je 0x1401dbd42
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1401dbc53
mov eax, dword [rbx + 0x18]
mov byte [rax + rcx], bpl
cmp dword [rbx + 0x14], ebp
jbe 0x1401dbc53
test byte [rbx + 0x1d], 4
jne 0x1401dbc53
mov rcx, rbx
call fcn.14022eb50
mov rdi, rax
jmp 0x1401dbc57
mov rdi, qword [rbx + 8]
mov rcx, rbx
call fcn.1401890d0
test rdi, rdi
je 0x1401dbd42
xor r9d, r9d
mov qword [rsp + 0x20], rbp
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call fcn.140186380
mov rcx, rdi
mov ebx, eax
call fcn.1401890d0
test ebx, ebx
jne 0x1401dc1a6
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x1401dbd4c
movdqa xmm5, xmmword [0x14033c9d0]
mov eax, 3
movdqa xmm3, xmmword [0x14033c9f0]
movdqa xmm1, xmmword [0x140327f40]
movq xmm0, xmm3
paddd xmm1, xmm0
movd xmm4, eax
pmovsxdq xmm2, xmm0
psllq xmm2, xmm4
paddq xmm2, xmm5
paddq xmm2, xmm6
movdqu xmmword [rsp + 0x60], xmm2
pmovsxdq xmm2, xmm1
movdqa xmm1, xmmword [0x14033ca00]
psllq xmm2, xmm4
paddd xmm1, xmm0
paddq xmm2, xmm5
paddq xmm2, xmm6
movdqu xmmword [rsp + 0x70], xmm2
pmovsxdq xmm2, xmm1
movdqa xmm1, xmmword [0x14033ca10]
psllq xmm2, xmm4
paddd xmm1, xmm0
paddq xmm2, xmm5
paddq xmm2, xmm6
movdqu xmmword [rsp + 0x80], xmm2
pmovsxdq xmm2, xmm1
psllq xmm2, xmm4
paddq xmm2, xmm5
paddq xmm2, xmm6
movdqu xmmword [rsp + 0x90], xmm2
jmp 0x1401dbd78
mov eax, 7
jmp 0x1401dc1a8
lea rcx, [rsp + 0x60]
mov rdx, rbp
mov r8d, 8
nop word [rax + rax]
lea rax, [rsi + 0x78]
add rax, rdx
add rdx, 8
mov qword [rcx], rax
lea rcx, [rcx + 8]
sub r8, 1
jne 0x1401dbd60
mov rdx, qword [rsi + 0x30]
lea r8, str.sqlite_stat1
mov qword [rsp + 0x40], rbp
xor r9d, r9d
mov qword [rsp + 0x38], rbp
mov rcx, r14
mov qword [rsp + 0x30], rbp
mov rdi, rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call fcn.14018ef50
mov ebx, eax
test eax, eax
je 0x1401dbdc3
cmp eax, 1
mov qword [rsi + 0x48], 0x100000
cmove ebx, ebp
jmp 0x1401dbe77
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.140188b80
mov rbp, rax
test rax, rax
jne 0x1401dbde7
lea ebx, [rax + 7]
jmp 0x1401dbe75
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rcx
mov r9d, 0x80
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov qword [rsp + 0x20], rcx
lea r8d, [rcx - 1]
mov rcx, r14
call fcn.140203b80
mov ebx, eax
test eax, eax
jne 0x1401dbe54
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.14018b7c0
cmp eax, 0x64
jne 0x1401dbe37
xor edx, edx
mov rcx, rbx
call fcn.14018bf50
mov rdi, rax
mov rcx, rbx
call fcn.14018c4d0
mov ebx, eax
test ebx, ebx
jne 0x1401dbe6d
test rdi, rdi
jne 0x1401dbe5d
mov qword [rsi + 0x48], 0x100000
jmp 0x1401dbe6d
cmp eax, 7
je 0x1401dbe41
xor ebx, ebx
jmp 0x1401dbe45
mov eax, 0x64
cmp rdi, rax
cmovg rax, rdi
mov qword [rsi + 0x48], rax
mov rcx, rbp
call fcn.1401890d0
xor ebp, ebp
mov rdi, rbp
lea r13, str.8T3_
test ebx, ebx
jne 0x1401dbf53
cmp rdi, 3
jne 0x1401dbe9b
lea rcx, str.INSERT_INTO__w_.__w_rowid__rowid_nodeno_VALUES__1__2_ON_CONFLICT_rowid_DO_UPDATE_SET_nodenoexcluded.nodeno
cmp byte [rsi + 0x29], bl
jne 0x1401dbea0
mov rcx, qword [r13 + rdi*8]
mov r8, r12
mov rdx, r15
call fcn.140188b80
mov rbp, rax
test rax, rax
je 0x1401dbf41
mov rcx, qword [rsp + rdi*8 + 0x60]
xor eax, eax
mov qword [rsp + 0x30], rax
mov r9d, 0x85
mov qword [rsp + 0x28], rcx
mov rdx, rbp
mov rcx, r14
mov qword [rsp + 0x20], rax
lea r8d, [rax - 1]
call fcn.140203b80
cmp dword [reloc.WS2_32.dll_accept], 0
mov ebx, eax
je 0x1401dbf36
mov rcx, qword [0x1403db8a0]
test rcx, rcx
je 0x1401dbeff
call qword [0x1403ba330]
mov rcx, rbp
call qword [0x1403ba2e8]
dec qword [0x1403db798]
movsxd rcx, eax
sub qword [0x1403db750], rcx
mov rcx, rbp
call qword [0x1403ba2d8]
mov rcx, qword [0x1403db8a0]
test rcx, rcx
je 0x1401dbf46
call qword [0x1403ba340]
jmp 0x1401dbf46
mov rcx, rbp
call qword [0x1403ba2d8]
jmp 0x1401dbf46
mov ebx, 7
inc rdi
cmp rdi, 8
jl 0x1401dbe81
cmp byte [rsi + 0x29], 0
mov r13d, 0x3b9aca00
je 0x1401dc1a6
mov r8, r12
lea rcx, str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
mov rdx, r15
call fcn.140188b80
mov qword [rsi + 0x58], rax
test rax, rax
je 0x1401dc1a1
call fcn.14022da30
test eax, eax
jne 0x1401dbfc4
lea ecx, [rax + 0x20]
call fcn.140203f00
mov rbx, rax
test rax, rax
je 0x1401dbfc4
test r14, r14
je 0x1401dbfa4
mov r13d, dword [r14 + 0x7c]
xor ebp, ebp
mov dword [rax + 0x14], r13d
mov qword [rax + 8], rbp
lea r13, [0x1403bb058]
mov qword [rax], rbp
mov dword [rax + 0x10], ebp
mov dword [rax + 0x18], ebp
mov word [rax + 0x1c], bp
jmp 0x1401dbfd0
lea r13, [0x1403bb058]
xor ebp, ebp
mov rbx, r13
mov r9, r12
lea rdx, str.UPDATE___w_.__w_rowid_SET
mov r8, r15
mov rcx, rbx
call fcn.140191150
cmp byte [rsi + 0x29], 0
mov edi, ebp
jbe 0x1401dc063
nop dword [rax]
test edi, edi
je 0x1401dc029
mov eax, dword [rbx + 0x18]
lea ecx, [rax + 1]
cmp ecx, dword [rbx + 0x10]
jb 0x1401dc016
mov r8d, 1
lea rdx, [0x1402f45c4]
mov rcx, rbx
call fcn.1401aba70
jmp 0x1401dc029
mov dword [rbx + 0x18], ecx
mov rcx, rax
add rcx, qword [rbx + 8]
movzx eax, byte [0x1402f45c4]
mov byte [rcx], al
movzx eax, byte [rsi + 0x2a]
lea r9d, [rdi + 2]
mov r8d, edi
mov rcx, rbx
cmp edi, eax
jge 0x1401dc04d
lea rdx, str.a_dcoalesce___d_a_d_
mov dword [rsp + 0x20], edi
call fcn.140191150
jmp 0x1401dc059
lea rdx, str.a_d__d
call fcn.140191150
movzx eax, byte [rsi + 0x29]
inc edi
cmp edi, eax
jl 0x1401dbff0
lea rdx, str._WHERE_rowid_1
mov rcx, rbx
call fcn.140191150
test rbx, rbx
je 0x1401dc1a1
cmp rbx, r13
je 0x1401dc1a1
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1401dc0ad
mov eax, dword [rbx + 0x18]
mov byte [rax + rcx], 0
cmp dword [rbx + 0x14], 0
jbe 0x1401dc0ad
test byte [rbx + 0x1d], 4
jne 0x1401dc0ad
mov rcx, rbx
call fcn.14022eb50
mov rdi, rax
jmp 0x1401dc0b1
mov rdi, qword [rbx + 8]
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x1401dc103
mov rcx, qword [0x1403db8a0]
test rcx, rcx
je 0x1401dc0cc
call qword [0x1403ba330]
mov rcx, rbx
call qword [0x1403ba2e8]
dec qword [0x1403db798]
movsxd rcx, eax
sub qword [0x1403db750], rcx
mov rcx, rbx
call qword [0x1403ba2d8]
mov rcx, qword [0x1403db8a0]
test rcx, rcx
je 0x1401dc10c
call qword [0x1403ba340]
jmp 0x1401dc10c
mov rcx, rbx
call qword [0x1403ba2d8]
test rdi, rdi
je 0x1401dc1a1
lea rax, [rsi + 0xb8]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rax
mov r9d, 0x85
mov r8d, 0xffffffff
mov qword [rsp + 0x20], rbp
mov rdx, rdi
mov rcx, r14
call fcn.140203b80
cmp dword [reloc.WS2_32.dll_accept], 0
mov ebx, eax
je 0x1401dc196
mov rcx, qword [0x1403db8a0]
test rcx, rcx
je 0x1401dc15f
call qword [0x1403ba330]
mov rcx, rdi
call qword [0x1403ba2e8]
dec qword [0x1403db798]
movsxd rcx, eax
sub qword [0x1403db750], rcx
mov rcx, rdi
call qword [0x1403ba2d8]
mov rcx, qword [0x1403db8a0]
test rcx, rcx
je 0x1401dc1a6
call qword [0x1403ba340]
jmp 0x1401dc1a6
mov rcx, rdi
call qword [0x1403ba2d8]
jmp 0x1401dc1a6
mov ebx, 7
mov eax, ebx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140172190
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret