Function at 0x1401d5170
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, 0x48
cmp byte [rcx + 0x1e], 0
mov rdi, rcx
jne 0x1401d558f
mov r12d, dword [rcx + 0x30]
mov rsi, qword [rcx]
test r12d, r12d
jne 0x1401d55a0
mov rbp, qword [rcx + 0x10]
test rbp, rbp
je 0x1401d573f
cmp byte [rdi + 0xe3], 0
jne 0x1401d55de
movsxd rax, dword [rbp + 0x90]
cmp dword [rbp + 0x94], eax
jle 0x1401d5835
lea edx, [rax + 1]
lea rcx, [rax + rax*2]
mov rax, qword [rbp + 0x88]
mov dword [rbp + 0x90], edx
lea rax, [rax + rcx*8]
mov qword [rax], 0x46
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
mov rcx, qword [rbp]
lea rax, [0x140440540]
cmp byte [rcx + 0x67], 0
je 0x1401d55d2
mov dword [rax + 8], edx
xor ebx, ebx
mov r13d, 1
nop dword [rax]
mov eax, r13d
mov ecx, ebx
mov r8d, ebx
shl eax, cl
mov edx, eax
and edx, dword [rdi + 0x84]
je 0x1401d52c8
mov rdx, rbx
or dword [rbp + 0xcc], eax
shl rdx, 5
cmp rbx, 1
je 0x1401d5264
mov rcx, qword [rbp]
mov rcx, qword [rcx + 0x20]
mov rcx, qword [rcx + rdx + 8]
cmp byte [rcx + 0x11], 0
je 0x1401d5264
or dword [rbp + 0xd0], eax
mov rcx, qword [rsi + 0x20]
and eax, dword [rdi + 0x80]
setne r9b
mov rdx, qword [rcx + rdx + 0x18]
movzx r9d, r9b
mov rcx, rbp
mov eax, dword [rdx + 4]
mov dword [rsp + 0x28], eax
mov eax, dword [rdx]
mov edx, 2
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp4Int
cmp byte [rsi + 0xc5], 0
jne 0x1401d52c8
movsxd rax, dword [rbp + 0x90]
test eax, eax
jle 0x1401d52c8
mov r11, qword [rbp + 0x88]
lea rax, [rax + rax*2]
mov r14d, 1
lea rax, [r11 + rax*8]
mov word [rax - 0x16], r14w
nop dword [rax + rax]
add rbx, 1
cmp dword [rsi + 0x28], ebx
jg 0x1401d5220
mov r10d, dword [rdi + 0x138]
xor r13d, r13d
test r10d, r10d
jle 0x1401d5384
nop dword [rax + rax]
mov rax, qword [rdi + 0x190]
mov rax, qword [rax + r13*8]
mov rbx, qword [rax + 0x50]
test rbx, rbx
jne 0x1401d5319
jmp 0x1401d531e
mov rbx, qword [rbx + 0x28]
test rbx, rbx
je 0x1401d531e
cmp rsi, qword [rbx]
jne 0x1401d5310
mov edx, dword [rbp + 0x90]
cmp edx, dword [rbp + 0x94]
jge 0x1401d55b0
lea eax, [rdx + 1]
mov dword [rbp + 0x90], eax
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbp + 0x88]
lea rax, [rax + rcx*8]
mov qword [rax], 0xaa
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
mov r9d, 0xfffffff5
mov r8, rbx
mov rcx, rbp
add r13, 1
call sym.sqlite3VdbeChangeP4
cmp dword [rdi + 0x138], r13d
jg 0x1401d52f0
mov r9d, dword [rdi + 0x9c]
mov dword [rdi + 0x138], 0
test r9d, r9d
jne 0x1401d578d
mov r13, qword [rdi + 0xa8]
test r13, r13
je 0x1401d5520
mov r14, qword [rdi]
mov r15, qword [rdi + 0x10]
jmp 0x1401d54a7
lea edx, [rax + 1]
mov dword [r15 + 0x90], edx
movsxd rdx, eax
lea rcx, [rdx + rdx*2]
mov rdx, qword [r15 + 0x88]
lea rdx, [rdx + rcx*8]
mov dword [rdx + 8], esi
mov dword [rdx + 0xc], 0
mov qword [rdx + 0x10], 0
mov qword [rdx], 0x75
mov rdx, qword [r15]
cmp byte [rdx + 0x67], 0
jne 0x1401d542b
test eax, eax
jns 0x1401d540c
mov eax, dword [r15 + 0x90]
sub eax, 1
cdqe
xor r9d, r9d
mov r8, r11
mov rcx, r15
lea rdx, [rax + rax*2]
mov rax, qword [r15 + 0x88]
lea rdx, [rax + rdx*8]
call dbg.vdbeChangeP4Full
lea r8, [0x1403981a0]
mov edx, 0xc
mov rcx, r15
call sym.sqlite3VdbeAddOpList.constprop.0
test rax, rax
je 0x1401d5520
lea edx, [rbx + 2]
movd xmm0, ebx
mov ecx, 0x10
mov dword [rax + 0x3c], ebx
movd xmm1, edx
lea edx, [rbx + 1]
mov dword [rax + 0x4c], esi
punpckldq xmm0, xmm1
mov dword [rax + 0x54], ebx
movq qword [rax + 8], xmm0
movq qword [rax + 0xac], xmm0
mov r8d, dword [rdi + 0x34]
mov word [rax + 0x4a], cx
mov dword [rax + 0x68], edx
mov dword [rax + 0x84], ebx
mov dword [rax + 0x94], ebx
mov dword [rax + 0xf8], ebx
test r8d, r8d
jne 0x1401d549e
mov dword [rdi + 0x34], 1
mov r13, qword [r13]
test r13, r13
je 0x1401d5520
movsxd rax, dword [r13 + 0x10]
mov ebx, dword [r13 + 0x14]
xor edx, edx
mov rcx, rdi
mov r8, rax
shl rax, 5
add rax, qword [r14 + 0x20]
lea esi, [rbx - 1]
mov rax, qword [rax + 0x18]
mov r9, qword [rax + 0x68]
mov dword [rsp + 0x20], 0x70
call sym.sqlite3OpenTable
mov rax, qword [r13 + 8]
mov r11, qword [rax]
mov eax, dword [r15 + 0x90]
cmp eax, dword [r15 + 0x94]
jl 0x1401d53c0
mov r9d, esi
xor r8d, r8d
mov edx, 0x75
mov rcx, r15
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x38], r11
call dbg.growOp3
mov r11, qword [rsp + 0x38]
jmp 0x1401d53f5
mov rsi, qword [rdi + 0x58]
test rsi, rsi
je 0x1401d5563
mov byte [rdi + 0x23], 0
mov edx, dword [rsi]
test edx, edx
jle 0x1401d5563
lea rbx, [rsi + 8]
nop word [rax + rax]
cmp qword [rdi + 0x10], 0
je 0x1401d5556
mov rdx, qword [rbx]
mov r8d, dword [rbx + 0x18]
mov rcx, rdi
call sym.sqlite3ExprCode.part.0
add r12d, 1
add rbx, 0x20
cmp dword [rsi], r12d
jg 0x1401d5540
cmp byte [rdi + 0xe3], 0
jne 0x1401d5707
mov edx, 1
mov rcx, rbp
call sym.sqlite3VdbeGoto.isra.0
mov eax, dword [rdi + 0x30]
test eax, eax
je 0x1401d5776
mov dword [rdi + 0x18], 1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rsi + 0x67], 0
je 0x1401d558f
mov dword [rcx + 0x18], 7
jmp 0x1401d558f
mov edx, 0xaa
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x20], 0
call dbg.growOp3
mov edx, eax
jmp 0x1401d5362
mov rax, qword [rbp + 0x88]
jmp 0x1401d520e
mov r15, qword [rdi + 0xd0]
mov eax, dword [r15 + 0xbc]
test eax, eax
je 0x1401d51b7
mov edx, 0x53
mov rcx, rbp
call sym.sqlite3VdbeAddOp0.isra.0
mov r8d, dword [r15 + 0xb8]
movsxd r14, dword [rbp + 0x90]
cmp r14d, dword [rbp + 0x94]
jge 0x1401d586e
lea eax, [r14 + 1]
mov dword [rbp + 0x90], eax
mov dword [rsp + 0x38], eax
movsxd rax, r14d
lea rdx, [rax + rax*2]
mov rax, qword [rbp + 0x88]
lea rax, [rax + rdx*8]
mov dword [rax + 4], r8d
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
mov dword [rax], 0x24
mov eax, dword [r15 + 0xbc]
mov r13d, dword [r15 + 0xc0]
xor ebx, ebx
test eax, eax
jle 0x1401d569c
nop word [rax + rax]
lea eax, [r13 + rbx]
mov r9d, ebx
mov edx, 0x5e
mov rcx, rbp
mov r8d, dword [r15 + 0xb8]
mov dword [rsp + 0x20], eax
add ebx, 1
call sym.sqlite3VdbeAddOp3
cmp dword [r15 + 0xbc], ebx
jg 0x1401d5670
mov r9d, ebx
mov r8d, r13d
mov edx, 0x54
mov rcx, rbp
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
mov r8d, dword [r15 + 0xb8]
mov r9d, dword [rsp + 0x38]
mov rcx, rbp
mov dword [rsp + 0x20], 0
mov edx, 0x27
call sym.sqlite3VdbeAddOp3
mov rcx, qword [rbp]
movsxd rax, dword [rbp + 0x90]
lea rdx, [0x140440540]
cmp byte [rcx + 0x67], 0
jne 0x1401d56ff
mov rdx, qword [rbp + 0x88]
lea rcx, [r14 + r14*2]
lea rdx, [rdx + rcx*8]
mov dword [rdx + 8], eax
jmp 0x1401d51be
mov rax, qword [rdi + 0xd0]
mov r9d, dword [rax + 0xbc]
test r9d, r9d
je 0x1401d5570
mov r8d, dword [rax + 0xb8]
mov edx, 0x76
mov rcx, rbp
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
jmp 0x1401d5570
cmp byte [rsi + 0xc5], 0
jne 0x1401d5781
cmp qword [rcx + 0xb0], 0
je 0x1401d585b
mov rcx, rdi
call dbg.sqlite3VdbeCreate
mov rbp, rax
test rax, rax
jne 0x1401d51aa
mov dword [rdi + 0x18], 1
jmp 0x1401d557d
mov rdx, rdi
mov rcx, rbp
call dbg.sqlite3VdbeMakeReady
mov dword [rdi + 0x18], 0x65
jmp 0x1401d558f
mov rbx, qword [rdi + 0x10]
jle 0x1401d539e
xor r13d, r13d
xor esi, esi
jmp 0x1401d57f6
lea eax, [rdx + 1]
mov dword [rbx + 0x90], eax
movsxd rax, edx
lea r8, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + r8*8]
mov qword [rax + 4], r10
mov dword [rax + 0xc], ecx
mov qword [rax + 0x10], 0
mov dword [rax], 0xa9
mov r9d, 0xffffffff
mov r8, r14
mov rcx, rbx
add r13d, 1
call sym.sqlite3VdbeChangeP4
add rsi, 0x18
cmp r13d, dword [rdi + 0x9c]
jge 0x1401d539e
mov rax, qword [rdi + 0xa0]
mov edx, dword [rbx + 0x90]
add rax, rsi
mov r10, qword [rax]
mov r8d, dword [rax]
mov r14, qword [rax + 0x10]
movzx ecx, byte [rax + 8]
mov r9d, dword [rax + 4]
cmp edx, dword [rbx + 0x94]
jl 0x1401d57a0
mov dword [rsp + 0x20], ecx
mov edx, 0xa9
mov rcx, rbx
call dbg.growOp3
mov edx, eax
jmp 0x1401d57d0
mov edx, 0x46
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x20], 0
call dbg.growOp3
mov edx, dword [rbp + 0x90]
jmp 0x1401d51f9
test byte [rsi + 0x60], 8
jne 0x1401d5756
mov byte [rcx + 0x23], 1
jmp 0x1401d5756
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0x24
mov rcx, rbp
call dbg.growOp3
movsxd r14, eax
lea eax, [r14 + 1]
mov dword [rsp + 0x38], eax
jmp 0x1401d5656