Function at 0x1401705b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r14d, r14d
mov rbx, qword [rcx + 0x10]
mov rsi, qword [rdx + 0x28]
mov rax, rcx
mov ecx, dword [rdx + 0x30]
mov rdi, rdx
test ecx, ecx
jle 0x14017067b
mov qword [rsp + 0xa0], rax
jmp 0x14017061d
movsxd rax, dword [rbx + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8 - 0x18]
mov byte [rax + 1], 0xf9
mov qword [rax + 0x10], rdx
add r14d, 1
add rsi, 0x20
cmp dword [rdi + 0x30], r14d
jle 0x14017067b
mov r13, qword [rsi]
mov ebp, dword [rsi + 0x18]
mov r15, qword [r13 + 0x20]
test ebp, ebp
jns 0x140170690
xor r9d, r9d
test r15, r15
je 0x140170636
mov r9d, dword [r15]
mov eax, dword [rdi + 0x20]
add eax, dword [rdi + 0xc]
mov edx, 0xa5
mov rcx, rbx
mov dword [rsp + 0x20], 0
lea r8d, [rax + r14]
call sym.sqlite3VdbeAddOp3
mov rcx, qword [rbx]
mov rdx, qword [rsi + 8]
cmp byte [rcx + 0x67], 0
je 0x1401705f0
test byte [rdx + 4], 0x10
je 0x14017060f
call sym.sqlite3DbNNFreeNN
add r14d, 1
add rsi, 0x20
cmp dword [rdi + 0x30], r14d
jg 0x14017061d
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [r15]
mov rcx, qword [rsp + 0xa0]
xor r12d, r12d
mov edx, eax
mov dword [rsp + 0x3c], eax
call sym.sqlite3GetTempRange
cmp byte [rsi + 0x1c], 0
mov dword [rsp + 0x40], eax
je 0x1401706c6
mov rax, qword [r13 + 0x10]
cmp byte [rsi + 0x1d], 1
mov rax, qword [rax + 0x20]
mov r12d, dword [rax]
adc r12d, 0
mov eax, dword [rbx + 0x90]
mov dword [rsp + 0x44], eax
cmp eax, dword [rbx + 0x94]
jge 0x1401709b0
mov edx, dword [rsp + 0x44]
lea eax, [rdx + 1]
mov dword [rbx + 0x90], eax
mov dword [rsp + 0x48], eax
movsxd rax, edx
lea rdx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rdx*8]
mov dword [rax + 4], ebp
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
mov dword [rax], 0x24
mov eax, dword [rsp + 0x3c]
mov ebp, dword [rsp + 0x40]
lea edx, [rax - 1]
sub ebp, r12d
lea r13d, [r12 + rdx]
test edx, edx
js 0x140170771
mov qword [rsp + 0xa8], rdi
mov edi, r13d
mov r13d, edx
nop dword [rax]
lea eax, [rbp + rdi]
mov r8d, dword [rsi + 0x18]
mov r9d, edi
mov edx, 0x5e
mov dword [rsp + 0x20], eax
mov rcx, rbx
call sym.sqlite3VdbeAddOp3
mov eax, edi
sub edi, 1
cmp r12d, eax
jne 0x140170740
mov rdi, qword [rsp + 0xa8]
mov edx, r13d
cmp byte [rsi + 0x1e], 0
jne 0x140170890
mov eax, dword [rdi + 0x20]
add eax, dword [rdi + 0xc]
xor r8d, r8d
mov edx, 0xa2
add eax, r14d
mov r9d, dword [rsp + 0x40]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov rcx, qword [rbx]
mov rdx, qword [rsi + 8]
cmp byte [rcx + 0x67], 0
jne 0x140170870
movsxd rcx, dword [rbx + 0x90]
lea r8, [rcx + rcx*2]
mov rax, rcx
mov rcx, qword [rbx + 0x88]
lea rcx, [rcx + r8*8 - 0x18]
mov byte [rcx + 1], 0xf9
mov qword [rcx + 0x10], rdx
test eax, eax
jle 0x1401707ec
mov rdx, qword [rbx + 0x88]
lea rax, [rax + rax*2]
lea rax, [rdx + rax*8]
movzx edx, byte [rsp + 0x3c]
mov word [rax - 0x16], dx
mov r8d, dword [rsi + 0x18]
mov r9d, dword [rsp + 0x48]
mov edx, 0x27
mov rcx, rbx
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
mov rcx, qword [rbx]
mov edx, dword [rbx + 0x90]
lea rax, [0x140440540]
cmp byte [rcx + 0x67], 0
jne 0x140170835
movsxd r13, dword [rsp + 0x44]
mov rax, qword [rbx + 0x88]
lea rcx, [r13 + r13*2]
lea rax, [rax + rcx*8]
cmp dword [rsp + 0x3c], 1
mov dword [rax + 8], edx
je 0x140170970
mov rcx, qword [rsp + 0xa0]
mov eax, dword [rsp + 0x3c]
cmp eax, dword [rcx + 0x28]
jle 0x140170633
movd xmm1, dword [rsp + 0x40]
movd xmm0, eax
punpckldq xmm0, xmm1
movq qword [rcx + 0x28], xmm0
jmp 0x140170633
test byte [rdx + 4], 0x10
jne 0x1401709e0
movsxd rax, dword [rbx + 0x90]
jmp 0x1401707d0
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x1f]
test al, al
je 0x1401709f8
mov rcx, qword [rsp + 0xa0]
sub eax, 1
mov byte [rcx + 0x1f], al
movzx eax, al
mov ebp, dword [rcx + rax*4 + 0xe8]
mov eax, dword [rsp + 0x3c]
cmp word [rsi + 0x1c], 1
adc eax, r12d
mov r12d, dword [rsp + 0x40]
lea r13d, [rdx + rax]
sub r12d, eax
test edx, edx
js 0x140170937
mov qword [rsp + 0xa8], rdi
mov edi, r13d
mov r13d, r12d
mov r12d, eax
nop dword [rax]
mov r8d, dword [rsi + 0x18]
mov dword [rsp + 0x20], ebp
mov r9d, edi
mov edx, 0x5e
mov rcx, rbx
call sym.sqlite3VdbeAddOp3
lea r9d, [r13 + rdi]
mov r8d, ebp
mov rcx, rbx
mov dword [rsp + 0x20], 0
mov edx, 0xb6
call sym.sqlite3VdbeAddOp3
mov eax, edi
sub edi, 1
cmp eax, r12d
jne 0x1401708f0
mov rdi, qword [rsp + 0xa8]
test ebp, ebp
je 0x14017077b
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x1f]
cmp al, 7
ja 0x14017077b
mov rcx, qword [rsp + 0xa0]
lea edx, [rax + 1]
mov byte [rcx + 0x1f], dl
mov dword [rcx + rax*4 + 0xe8], ebp
jmp 0x14017077b
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x140170633
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x1f]
cmp al, 7
ja 0x140170633
mov r10, qword [rsp + 0xa0]
lea edx, [rax + 1]
mov byte [r10 + 0x1f], dl
mov dword [r10 + rax*4 + 0xe8], ecx
jmp 0x140170633
xor r9d, r9d
mov r8d, ebp
mov edx, 0x24
mov rcx, rbx
mov dword [rsp + 0x20], 0
call dbg.growOp3
mov dword [rsp + 0x44], eax
add eax, 1
mov dword [rsp + 0x48], eax
jmp 0x140170718
call sym.sqlite3DbNNFreeNN
movsxd rax, dword [rbx + 0x90]
jmp 0x1401707d0
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0x38]
lea ebp, [rax + 1]
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0xa0]
mov dword [rax + 0x38], ebp
jmp 0x1401708bc