Function at 0x1401a8370
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 rsi, rcx
jne 0x1401a8700
mov r12d, dword [rcx + 0x30]
mov rbp, qword [rcx]
test r12d, r12d
jne 0x1401a8711
mov rdi, qword [rcx + 0x10]
test rdi, rdi
je 0x1401a8a79
cmp byte [rsi + 0xe1], 0
movsxd rax, dword [rdi + 0x90]
jne 0x1401a892a
cmp eax, dword [rdi + 0x94]
jge 0x1401a8ac3
lea edx, [rax + 1]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov dword [rdi + 0x90], edx
lea rax, [rax + rcx*8]
mov qword [rax], 0x46
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
mov rcx, qword [rdi]
lea rax, [0x1403b4900]
cmp byte [rcx + 0x67], 0
je 0x1401a891e
mov dword [rax + 8], edx
xor ebx, ebx
mov r13d, 1
nop dword [rax + rax]
mov eax, r13d
mov ecx, ebx
mov r8d, ebx
shl eax, cl
mov edx, eax
and edx, dword [rsi + 0x7c]
je 0x1401a8520
or dword [rdi + 0xcc], eax
mov rdx, rbx
shl rdx, 5
cmp rbx, 1
je 0x1401a8460
mov rcx, qword [rdi]
mov rcx, qword [rcx + 0x20]
mov rcx, qword [rcx + rdx + 8]
cmp byte [rcx + 0x11], 0
je 0x1401a8460
or dword [rdi + 0xd0], eax
mov rcx, qword [rbp + 0x20]
xor r9d, r9d
movd xmm0, r8d
and eax, dword [rsi + 0x78]
mov eax, dword [rdi + 0x90]
mov rdx, qword [rcx + rdx + 0x18]
setne r9b
cmp eax, dword [rdi + 0x94]
movd xmm2, r9d
punpckldq xmm0, xmm2
mov r14d, dword [rdx + 4]
mov ecx, dword [rdx]
jge 0x1401a88d0
lea edx, [rax + 1]
mov dword [rdi + 0x90], edx
movsxd rdx, eax
lea r8, [rdx + rdx*2]
mov rdx, qword [rdi + 0x88]
lea rdx, [rdx + r8*8]
movq qword [rdx + 4], xmm0
mov dword [rdx + 0xc], ecx
mov qword [rdx + 0x10], 0
mov dword [rdx], 2
mov rdx, qword [rdi]
cmp byte [rdx + 0x67], 0
jne 0x1401a84ec
cdqe
lea rdx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
lea rax, [rax + rdx*8]
mov byte [rax + 1], 0xfd
mov dword [rax + 0x10], r14d
cmp byte [rbp + 0xc5], 0
jne 0x1401a8520
movsxd rax, dword [rdi + 0x90]
test eax, eax
jle 0x1401a8520
mov r11, qword [rdi + 0x88]
lea rax, [rax + rax*2]
mov r14d, 1
lea rax, [r11 + rax*8]
mov word [rax - 0x16], r14w
nop word [rax + rax]
add rbx, 1
cmp dword [rbp + 0x28], ebx
jg 0x1401a8420
mov r10d, dword [rsi + 0x138]
xor r13d, r13d
test r10d, r10d
jle 0x1401a85d4
mov rax, qword [rsi + 0x190]
mov rax, qword [rax + r13*8]
mov rbx, qword [rax + 0x50]
test rbx, rbx
jne 0x1401a8569
jmp 0x1401a856e
mov rbx, qword [rbx + 0x28]
test rbx, rbx
je 0x1401a856e
cmp rbp, qword [rbx]
jne 0x1401a8560
mov edx, dword [rdi + 0x90]
cmp edx, dword [rdi + 0x94]
jge 0x1401a8720
lea eax, [rdx + 1]
mov dword [rdi + 0x90], eax
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 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, rdi
call sym.sqlite3VdbeChangeP4
add r13, 1
cmp dword [rsi + 0x138], r13d
jg 0x1401a8540
mov r9d, dword [rsi + 0x90]
xor r13d, r13d
xor ebp, ebp
mov dword [rsi + 0x138], 0
mov rbx, qword [rsi + 0x10]
test r9d, r9d
jg 0x1401a8656
jmp 0x1401a874c
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
call sym.sqlite3VdbeChangeP4
add r13d, 1
add rbp, 0x18
cmp r13d, dword [rsi + 0x90]
jge 0x1401a8748
mov rax, qword [rsi + 0x98]
mov edx, dword [rbx + 0x90]
add rax, rbp
cmp edx, dword [rbx + 0x94]
mov r10, qword [rax]
mov r8d, dword [rax]
mov r14, qword [rax + 0x10]
movzx ecx, byte [rax + 8]
mov r9d, dword [rax + 4]
jl 0x1401a8600
mov dword [rsp + 0x20], ecx
mov edx, 0xa9
mov rcx, rbx
call dbg.growOp3
mov edx, eax
jmp 0x1401a8630
mov rbp, qword [rsi + 0x58]
test rbp, rbp
je 0x1401a86d4
mov byte [rsi + 0x23], 0
mov edx, dword [rbp]
test edx, edx
jle 0x1401a86d4
lea rbx, [rbp + 8]
cmp qword [rsi + 0x10], 0
je 0x1401a86c6
mov rdx, qword [rbx]
mov rcx, rsi
mov r8d, dword [rbx + 0x18]
call sym.sqlite3ExprCode.part.0
add r12d, 1
add rbx, 0x20
cmp dword [rbp], r12d
jg 0x1401a86b0
cmp byte [rsi + 0xe1], 0
jne 0x1401a88e6
mov edx, 1
mov rcx, rdi
call sym.sqlite3VdbeGoto.isra.0
mov eax, dword [rsi + 0x30]
test eax, eax
je 0x1401a8aac
mov dword [rsi + 0x18], 1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rbp + 0x67], 0
je 0x1401a8700
mov dword [rcx + 0x18], 7
jmp 0x1401a8700
mov edx, 0xaa
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call dbg.growOp3
mov edx, eax
jmp 0x1401a85b2
mov rbx, qword [rsi + 0x10]
mov r13, qword [rsi + 0xa0]
mov r14, qword [rsi]
test r13, r13
jne 0x1401a8859
jmp 0x1401a8698
lea edx, [rax + 1]
mov dword [rbx + 0x90], edx
movsxd rdx, eax
lea rcx, [rdx + rdx*2]
mov rdx, qword [rbx + 0x88]
lea rdx, [rdx + rcx*8]
mov dword [rdx + 8], ebp
mov dword [rdx + 0xc], 0
mov qword [rdx + 0x10], 0
mov qword [rdx], 0x75
mov rdx, qword [rbx]
cmp byte [rdx + 0x67], 0
jne 0x1401a87d1
test eax, eax
jns 0x1401a87b2
mov eax, dword [rbx + 0x90]
sub eax, 1
cdqe
xor r9d, r9d
mov r8, r11
lea rdx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov rcx, rbx
lea rdx, [rax + rdx*8]
call dbg.vdbeChangeP4Full
lea r8, [0x140342ac0]
mov edx, 0xc
mov rcx, rbx
call sym.sqlite3VdbeAddOpList.constprop.0
test rax, rax
je 0x1401a8698
lea edx, [r15 + 2]
movd xmm0, r15d
mov ecx, 0x10
mov dword [rax + 0x3c], r15d
movd xmm1, edx
mov dword [rax + 0x4c], ebp
punpckldq xmm0, xmm1
movq qword [rax + 8], xmm0
lea edx, [r15 + 1]
movq qword [rax + 0xac], xmm0
mov r8d, dword [rsi + 0x34]
mov dword [rax + 0x54], r15d
mov word [rax + 0x4a], cx
mov dword [rax + 0x68], edx
test r8d, r8d
mov dword [rax + 0x84], r15d
mov dword [rax + 0x94], r15d
mov dword [rax + 0xf8], r15d
jne 0x1401a884c
mov dword [rsi + 0x34], 1
mov r13, qword [r13]
test r13, r13
je 0x1401a8698
movsxd rax, dword [r13 + 0x10]
xor edx, edx
mov rcx, rsi
mov r15d, dword [r13 + 0x14]
mov r8, rax
shl rax, 5
add rax, qword [r14 + 0x20]
lea ebp, [r15 - 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 [rbx + 0x90]
cmp eax, dword [rbx + 0x94]
jl 0x1401a8768
mov r9d, ebp
xor r8d, r8d
mov edx, 0x75
mov qword [rsp + 0x38], r11
mov dword [rsp + 0x20], 0
mov rcx, rbx
call dbg.growOp3
mov r11, qword [rsp + 0x38]
jmp 0x1401a879c
mov dword [rsp + 0x20], ecx
mov edx, 2
mov rcx, rdi
call dbg.growOp3
jmp 0x1401a84ca
mov rax, qword [rsi + 0xc8]
mov r9d, dword [rax + 0xbc]
test r9d, r9d
je 0x1401a86e1
mov r8d, dword [rax + 0xb8]
mov edx, 0x76
mov dword [rsp + 0x20], 0
mov rcx, rdi
call sym.sqlite3VdbeAddOp3
jmp 0x1401a86e1
mov rax, qword [rdi + 0x88]
jmp 0x1401a840d
mov r15, qword [rsi + 0xc8]
mov edx, dword [r15 + 0xbc]
test edx, edx
je 0x1401a83be
mov edx, dword [rdi + 0x94]
cmp eax, edx
jge 0x1401a8af5
lea r14d, [rax + 1]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov dword [rdi + 0x90], r14d
lea rax, [rax + rcx*8]
mov qword [rax], 0x53
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
cmp r14d, edx
mov r8d, dword [r15 + 0xb8]
jge 0x1401a8b22
lea eax, [r14 + 1]
mov dword [rdi + 0x90], eax
mov dword [rsp + 0x38], eax
movsxd rax, r14d
lea rdx, [rax + rax*2]
mov rax, qword [rdi + 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]
xor ebx, ebx
mov r13d, dword [r15 + 0xc0]
test eax, eax
jle 0x1401a8a0c
nop dword [rax]
mov r8d, dword [r15 + 0xb8]
lea eax, [r13 + rbx]
mov r9d, ebx
mov rcx, rdi
mov dword [rsp + 0x20], eax
mov edx, 0x5e
add ebx, 1
call sym.sqlite3VdbeAddOp3
cmp dword [r15 + 0xbc], ebx
jg 0x1401a89e0
mov r9d, ebx
mov r8d, r13d
mov edx, 0x54
mov dword [rsp + 0x20], 0
mov rcx, rdi
call sym.sqlite3VdbeAddOp3
mov r8d, dword [r15 + 0xb8]
mov edx, 0x27
mov rcx, rdi
mov r9d, dword [rsp + 0x38]
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
mov rcx, qword [rdi]
lea rdx, [0x1403b4900]
movsxd rax, dword [rdi + 0x90]
cmp byte [rcx + 0x67], 0
jne 0x1401a8a71
mov rdx, qword [rdi + 0x88]
movsxd r14, r14d
lea rcx, [r14 + r14*2]
lea rdx, [rdx + rcx*8]
mov dword [rdx + 8], eax
jmp 0x1401a83be
cmp byte [rbp + 0xc5], 0
jne 0x1401a8ab7
cmp qword [rcx + 0xa8], 0
je 0x1401a8ae9
mov rcx, rsi
call dbg.sqlite3VdbeCreate
test rax, rax
mov rdi, rax
jne 0x1401a83aa
mov dword [rsi + 0x18], 1
jmp 0x1401a86ee
mov rdx, rsi
mov rcx, rdi
call dbg.sqlite3VdbeMakeReady
mov dword [rsi + 0x18], 0x65
jmp 0x1401a8700
mov edx, 0x46
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call dbg.growOp3
mov edx, dword [rdi + 0x90]
jmp 0x1401a83f9
test byte [rbp + 0x60], 8
jne 0x1401a8a8c
mov byte [rcx + 0x23], 1
jmp 0x1401a8a8c
mov edx, 0x53
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call dbg.growOp3
mov r14d, dword [rdi + 0x90]
mov edx, dword [rdi + 0x94]
jmp 0x1401a897f
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0x24
mov rcx, rdi
call dbg.growOp3
mov r14d, eax
lea eax, [rax + 1]
mov dword [rsp + 0x38], eax
jmp 0x1401a89c9