Function at 0x140171b00
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, 0xa8
xor ebp, ebp
xor edi, edi
mov rax, qword [rcx + 0x10]
mov r13, qword [rsp + 0x110]
mov qword [rsp + 0x58], rdx
mov rbx, rcx
mov edx, 0xf
mov rcx, rax
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x78], r9
mov qword [rsp + 0x40], rax
call sym.sqlite3VdbeAddOp0
mov r15, qword [r13 + 0x60]
mov byte [rsp + 0x80], 0
mov dword [rsp + 0x84], eax
mov rax, qword [rsp + 0x50]
mov r14, qword [rax + 0x20]
mov rax, qword [rsp + 0x58]
mov rsi, qword [rax + 0x20]
movsxd rax, dword [rax + 0x14]
imul rax, rax, 0x38
add rax, rsi
mov qword [rsp + 0x68], rax
xor eax, eax
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x68]
cmp rsi, rax
jae 0x140171c72
test byte [rsi + 0x12], 2
jne 0x140171bce
mov r12, qword [rsi]
mov rdx, qword [rsp + 0x50]
mov rcx, r12
call sym.sqlite3ExprIsTableConstraint
test eax, eax
je 0x140171bce
mov rcx, qword [rbx]
xor r8d, r8d
mov rdx, r12
call sym.sqlite3ExprDup
mov rdx, qword [rsp + 0x48]
mov rcx, rbx
mov r8, rax
call sym.sqlite3ExprAnd
mov qword [rsp + 0x48], rax
mov r8, qword [rsp + 0x78]
mov rcx, rsi
mov rdx, qword [rsp + 0x50]
call sym.termCanDriveIndex
test eax, eax
je 0x140171c69
movabs r12, 0x8000000000000000
movsxd rcx, dword [rsi + 0x20]
cmp ecx, 0x3f
jg 0x140171c04
mov r12d, 1
shl r12, cl
cmp byte [rsp + 0x80], 0
jne 0x140171c2d
imul rcx, rcx, 0x18
mov r8, qword [r14]
add rcx, qword [r14 + 8]
lea rdx, str.automatic_index_on__s__s_
mov r9, qword [rcx]
mov ecx, 0x11c
call sym.sqlite3_log
test rbp, r12
mov byte [rsp + 0x80], 1
jne 0x140171c69
mov rcx, qword [rbx]
lea r8d, [rdi + 1]
mov rdx, r15
mov dword [rsp + 0x60], r8d
call sym.whereLoopResize
test eax, eax
jne 0x1401720c4
mov rax, qword [r15 + 0x48]
or rbp, r12
mov r8d, dword [rsp + 0x60]
mov qword [rax + rdi*8], rsi
movsxd rdi, r8d
add rsi, 0x38
jmp 0x140171b83
mov rax, qword [rsp + 0x50]
not rbp
mov edx, 0x3f
mov word [r15 + 0x3c], di
bts rbp, 0x3f
mov word [r15 + 0x18], di
mov dword [r15 + 0x38], 0x4241
mov r8, qword [rax + 0x50]
movsx eax, word [r14 + 0x36]
and rbp, r8
cmp ax, dx
mov qword [rsp + 0x70], rbp
cmovle edx, eax
xor ecx, ecx
movsx r12d, dx
cmp ecx, r12d
jge 0x140171cc9
mov rdx, qword [rsp + 0x70]
shr rdx, cl
inc ecx
and edx, 1
add edi, edx
jmp 0x140171cb3
test r8, r8
jns 0x140171cd2
lea edi, [rdi + rax - 0x3f]
mov rcx, qword [rbx]
lea edx, [rdi + 1]
xor r8d, r8d
lea r9, [rsp + 0x98]
movsx edx, dx
call sym.sqlite3AllocateIndexObject
test rax, rax
mov rsi, rax
je 0x1401720c4
mov qword [r15 + 0x20], rax
lea rax, str.auto_index
xor r11d, r11d
mov qword [rsi], rax
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x18], r14
mov qword [rsp + 0x60], r11
mov rbp, qword [rax + 0x20]
xor eax, eax
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0x68]
cmp rbp, rax
jae 0x140171dc0
mov r8, qword [rsp + 0x78]
mov rcx, rbp
mov rdx, qword [rsp + 0x50]
call sym.termCanDriveIndex
test eax, eax
je 0x140171db7
mov ecx, dword [rbp + 0x20]
mov eax, 1
shl rax, 0x3f
cmp ecx, 0x3f
jg 0x140171d60
mov eax, 1
shl rax, cl
test qword [rsp + 0x60], rax
jne 0x140171db7
movsxd r8, dword [rsp + 0x80]
or qword [rsp + 0x60], rax
mov rax, qword [rsi + 8]
mov rdx, qword [rbp]
mov qword [rsp + 0x88], r8
mov word [rax + r8*2], cx
mov rcx, rbx
call sym.sqlite3ExprCompareCollSeq
mov r8, qword [rsp + 0x88]
lea rdx, str.BINARY
test rax, rax
je 0x140171da8
mov rdx, qword [rax]
mov rax, qword [rsi + 0x40]
inc dword [rsp + 0x80]
mov qword [rax + r8*8], rdx
add rbp, 0x38
jmp 0x140171d23
mov r8, qword [rsi + 8]
lea r9, str.BINARY
xor eax, eax
mov rcx, qword [rsi + 0x40]
cmp eax, r12d
jge 0x140171dfd
mov rdx, qword [rsp + 0x70]
bt rdx, rax
jae 0x140171df9
movsxd rdx, dword [rsp + 0x80]
inc dword [rsp + 0x80]
mov word [r8 + rdx*2], ax
mov qword [rcx + rdx*8], r9
inc eax
jmp 0x140171dd1
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x50], 0
jns 0x140171e3e
movsxd rax, dword [rsp + 0x80]
mov edx, 0x3f
lea r10, str.BINARY
movsx r9d, word [r14 + 0x36]
cmp r9d, edx
jle 0x140171e37
mov word [r8 + rax*2], dx
inc edx
mov qword [rcx + rax*8], r10
inc rax
jmp 0x140171e1d
mov dword [rsp + 0x80], eax
movsxd rax, dword [rsp + 0x80]
lea rdx, str.BINARY
lea r9d, [rdi + 1]
mov word [r8 + rax*2], 0xffff
mov r8d, dword [rbx + 0x34]
mov qword [rcx + rax*8], rdx
mov rcx, qword [rsp + 0x40]
mov edx, 0x74
lea eax, [r8 + 1]
mov dword [rbx + 0x34], eax
mov dword [r13 + 8], r8d
call sym.sqlite3VdbeAddOp2
mov rdx, rsi
mov rcx, rbx
call sym.sqlite3VdbeSetP4KeyInfo
mov rax, qword [rbx]
test byte [rax + 0x62], 8
jne 0x140171eb2
mov eax, dword [rbx + 0x38]
mov r8d, 0x2710
mov edx, 0x4d
mov rcx, qword [rsp + 0x40]
lea r9d, [rax + 1]
mov dword [rbx + 0x38], r9d
mov dword [r13 + 0x34], r9d
call sym.sqlite3VdbeAddOp2
mov rax, qword [rsp + 0x58]
movzx r12d, byte [r13 + 0x40]
mov rax, qword [rax]
mov rdi, r12
imul r12, r12, 0x68
mov r14, qword [rax + 8]
add r12, r14
test byte [r12 + 0x48], 0x20
je 0x140171f27
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x47
mov ebp, dword [r12 + 0x3c]
call sym.sqlite3VdbeAddOp2
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov edx, 0xb
mov dword [rsp + 0x58], eax
mov eax, dword [r12 + 0x38]
mov r8d, ebp
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov rcx, qword [rsp + 0x40]
mov r8d, ebp
mov edx, 0xc
call sym.sqlite3VdbeAddOp1
mov ebp, eax
jmp 0x140171f44
mov r8d, dword [r13 + 4]
mov edx, 0x24
mov rcx, qword [rsp + 0x40]
call sym.sqlite3VdbeAddOp1
xor r10d, r10d
mov ebp, eax
mov dword [rsp + 0x58], r10d
xor r12d, r12d
cmp qword [rsp + 0x48], 0
je 0x140171f78
mov eax, dword [rbx + 0x44]
mov r9d, 0x10
mov rcx, rbx
mov rdx, qword [rsp + 0x48]
lea r12d, [rax - 1]
mov dword [rbx + 0x44], r12d
mov r8d, r12d
call sym.sqlite3ExprIfFalse
or dword [r15 + 0x38], 0x20000
xor r8d, r8d
xor edx, edx
xor r9d, r9d
mov rcx, rbx
call sym.sqlite3GetTempReg
mov dword [rsp + 0x38], edx
mov rdx, rsi
mov dword [rsp + 0x20], r9d
mov r9d, eax
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], r8
mov r8d, dword [r13 + 4]
mov dword [rsp + 0x50], eax
call sym.sqlite3GenerateIndexKey
mov r8d, dword [r13 + 0x34]
mov esi, eax
test r8d, r8d
je 0x140171fd8
movzx eax, word [r15 + 0x18]
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov edx, 0xb4
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x28], eax
call sym.sqlite3VdbeAddOp4Int
mov rcx, qword [rsp + 0x40]
mov edx, 0x8a
mov r9d, dword [rsp + 0x50]
mov r8d, dword [r13 + 8]
call sym.sqlite3VdbeAddOp2
mov rcx, qword [rsp + 0x40]
mov edx, 0x10
call sym.sqlite3VdbeChangeP5
cmp qword [rsp + 0x48], 0
je 0x140172014
mov rcx, qword [rsp + 0x40]
mov edx, r12d
call sym.sqlite3VdbeResolveLabel
imul rdi, rdi, 0x68
mov r8d, dword [r13 + 4]
add rdi, r14
test byte [rdi + 0x48], 0x20
lea r12, [rdi + 0x30]
je 0x140172079
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x60], r8d
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
add eax, esi
mov esi, eax
call sym.sqlite3VdbeGetOp
mov r8d, dword [rsp + 0x60]
mov edx, ebp
mov rcx, rbx
mov dword [rax + 8], esi
mov eax, dword [r13 + 8]
mov dword [rsp + 0x20], eax
mov r9d, dword [rdi + 0x40]
call sym.translateColumnToCopy
mov rcx, qword [rsp + 0x40]
mov edx, ebp
call sym.sqlite3VdbeGoto
and byte [r12 + 0x18], 0xdf
jmp 0x14017209b
mov rcx, qword [rsp + 0x40]
lea r9d, [rbp + 1]
mov edx, 0x27
call sym.sqlite3VdbeAddOp2
mov rcx, qword [rsp + 0x40]
mov edx, 3
call sym.sqlite3VdbeChangeP5
mov rcx, qword [rsp + 0x40]
mov edx, ebp
call sym.sqlite3VdbeJumpHere
mov edx, dword [rsp + 0x50]
mov rcx, rbx
call sym.sqlite3ReleaseTempReg
mov edx, dword [rsp + 0x84]
mov rcx, qword [rsp + 0x40]
call sym.sqlite3VdbeJumpHere
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rbx]
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.sqlite3ExprDelete