Function at 0x1401d7840
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, 0x88
mov rbx, qword [rdx]
mov r14, qword [rcx + 0x10]
movzx eax, byte [rbx]
mov qword [rsp + 0xd8], rdx
lea edx, [rax - 0x2d]
mov rdi, r8
mov r11d, r9d
and edx, 0xf7
mov qword [rsp + 0xd0], rcx
je 0x1401d79b8
cmp al, 0x32
je 0x1401d7d60
mov rsi, qword [r8 + 0x60]
test byte [rsi + 0x39], 4
je 0x1401d7a18
test r11d, r11d
je 0x1401d78ca
mov rax, qword [rsi + 0x48]
movsxd rdx, r11d
lea rcx, [rax + rdx*8]
nop dword [rax + rax]
mov rdx, qword [rax]
test rdx, rdx
je 0x1401d78c1
cmp qword [rdx], rbx
je 0x1401d79e8
add rax, 8
cmp rcx, rax
jne 0x1401d78b0
movzx edx, word [rsi + 0x3c]
cmp r11d, edx
jge 0x1401d81a8
sub edx, r11d
mov rcx, qword [rsi + 0x48]
movsxd r8, r11d
xor ebp, ebp
sub edx, 1
add rdx, r8
lea rax, [rcx + r8*8]
lea rcx, [rcx + rdx*8 + 8]
nop word [rax + rax]
mov rdx, qword [rax]
cmp rbx, qword [rdx]
sete dl
add rax, 8
movzx edx, dl
add ebp, edx
cmp rax, rcx
jne 0x1401d78f8
mov eax, dword [rbx + 4]
mov dword [rsp + 0x7c], 0
test ah, 0x10
je 0x1401d7a48
mov rdx, qword [rbx + 0x20]
mov rdx, qword [rdx + 0x20]
cmp dword [rdx], 1
je 0x1401d7a48
mov rcx, qword [rsp + 0xd0]
mov r10d, dword [rbx + 0x2c]
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rcx
test r10d, r10d
je 0x1401d7958
test eax, 0x2000000
jne 0x1401d81cf
mov r15, qword [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0xe8], r11d
mov rcx, r15
call dbg.exprDup
cmp byte [r15 + 0x67], 0
mov r11d, dword [rsp + 0xe8]
mov r12, rax
je 0x1401d7e1d
test rax, rax
jne 0x1401d8030
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x40], 5
jmp 0x1401d7ab7
mov rdx, qword [rbx + 0x18]
mov r8d, dword [rsp + 0xf8]
call sym.sqlite3ExprCodeTarget
mov dword [rsp + 0xf8], eax
mov rax, qword [rdi + 0x60]
test byte [rax + 0x3a], 0x20
je 0x1401d79e8
mov rax, qword [rsp + 0xd8]
test byte [rax + 0x15], 8
jne 0x1401d79f8
mov rdx, qword [rsp + 0xd8]
mov rcx, rdi
call dbg.disableTerm
mov eax, dword [rsp + 0xf8]
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi + 0x20]
test rax, rax
je 0x1401d7898
mov rax, qword [rax + 0x38]
movsxd rdx, r9d
cmp byte [rax + rdx], 0
je 0x1401d7898
xor dword [rsp + 0xf0], 1
jmp 0x1401d7898
lea rax, [rsp + 0x7c]
xor r9d, r9d
mov r8d, 4
mov rdx, rbx
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0x20], 0
mov dword [rsp + 0xe8], r11d
call sym.sqlite3FindInIndex.constprop.0
mov r11d, dword [rsp + 0xe8]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xf0]
xor eax, 1
cmp dword [rsp + 0x40], 4
cmovne eax, dword [rsp + 0xf0]
mov dword [rsp + 0xf0], eax
cmp dword [rsp + 0xf0], 1
mov dword [rsp + 0x20], 0
mov rcx, r14
sbb edx, edx
mov r8d, dword [rsp + 0x30]
xor r9d, r9d
mov dword [rsp + 0xe8], r11d
and edx, 4
add edx, 0x20
call sym.sqlite3VdbeAddOp3
mov eax, dword [rsi + 0x38]
movsxd r13, dword [rdi + 0x50]
mov r11d, dword [rsp + 0xe8]
mov edx, eax
or dh, 8
test r13d, r13d
mov dword [rsi + 0x38], edx
jne 0x1401d7b23
mov rcx, qword [rsp + 0xd0]
mov ecx, dword [rcx + 0x44]
lea edx, [rcx - 1]
mov dword [rsp + 0x48], ecx
mov rcx, qword [rsp + 0xd0]
mov dword [rcx + 0x44], edx
mov dword [rdi + 0x10], edx
test r11d, r11d
je 0x1401d7b37
test eax, 0x100000
jne 0x1401d7b37
or eax, 0x40800
mov dword [rsi + 0x38], eax
mov rax, qword [rsp + 0xd8]
add ebp, r13d
mov dword [rsp + 0xe8], r11d
mov dword [rdi + 0x50], ebp
movsxd rbp, ebp
mov r15, qword [rdi + 0x58]
mov rax, qword [rax + 8]
lea rbp, [rbp + rbp*4]
shl rbp, 2
mov r8, qword [rax]
lea rdx, [rbp + 0x10]
mov rax, qword [r8]
mov qword [rsp + 0x48], r8
mov rcx, qword [rax]
call sym.sqlite3DbMallocRawNN
test rax, rax
je 0x1401d7dd0
mov r8, qword [rsp + 0x48]
test r15, r15
mov r11d, dword [rsp + 0xe8]
lea rcx, [rax + 0x10]
mov rdx, qword [r8 + 0x60]
mov qword [rax + 8], rbp
mov qword [rax], rdx
mov qword [r8 + 0x60], rax
je 0x1401d7bc5
mov r8, qword [r15 - 8]
mov rdx, r15
mov dword [rsp + 0xe8], r11d
call sym.memcpy
mov r11d, dword [rsp + 0xe8]
mov rcx, rax
movzx edx, word [rsi + 0x3c]
lea rax, [r13 + r13*4]
mov qword [rdi + 0x58], rcx
lea r15, [rcx + rax*4]
cmp r11d, edx
jge 0x1401d7cf0
mov eax, dword [rsp + 0xf8]
movsxd r13, r11d
mov ebp, r11d
xor r12d, r12d
mov qword [rsp + 0xe0], rdi
shl r13, 3
mov edi, r11d
sub eax, r11d
mov dword [rsp + 0x48], eax
mov rax, r14
mov r14, rbx
mov rbx, rax
jmp 0x1401d7c1f
add ebp, 1
add r13, 8
cmp edx, ebp
jle 0x1401d7ce2
mov rax, qword [rsi + 0x48]
mov rax, qword [rax + r13]
cmp qword [rax], r14
jne 0x1401d7c10
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x40], 1
mov edx, dword [rbx + 0x94]
lea r11d, [rax + rbp]
mov eax, dword [rbx + 0x90]
je 0x1401d7d88
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
test rcx, rcx
je 0x1401d7c63
movsxd r8, r12d
add r12d, 1
mov r9d, dword [rcx + r8*4]
cmp eax, edx
jge 0x1401d7de8
lea edx, [rax + 1]
mov ecx, dword [rsp + 0x30]
mov dword [rbx + 0x90], edx
movsxd rdx, eax
lea r8, [rdx + rdx*2]
mov rdx, qword [rbx + 0x88]
lea rdx, [rdx + r8*8]
mov dword [rdx + 4], ecx
mov dword [rdx + 8], r9d
mov dword [rdx + 0xc], r11d
mov qword [rdx + 0x10], 0
mov dword [rdx], 0x5e
mov dword [r15 + 4], eax
xor r9d, r9d
mov r8d, r11d
mov edx, 0x32
mov dword [rsp + 0x20], 0
mov rcx, rbx
call sym.sqlite3VdbeAddOp3
cmp ebp, edi
je 0x1401d7d28
mov byte [r15 + 0x10], 0xbb
movzx edx, word [rsi + 0x3c]
add ebp, 1
add r15, 0x14
add r13, 8
cmp edx, ebp
jg 0x1401d7c1f
mov r11d, edi
mov rdi, qword [rsp + 0xe0]
mov r14, rbx
test r11d, r11d
je 0x1401d7d02
test dword [rsi + 0x38], 0x100400
je 0x1401d818a
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x1401d79d0
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax]
call sym.sqlite3DbFreeNN
jmp 0x1401d79d0
mov eax, dword [rsp + 0x30]
mov dword [r15], eax
mov eax, 0x27
sub eax, dword [rsp + 0xf0]
mov byte [r15 + 0x10], al
test ebp, ebp
je 0x1401d7e10
mov eax, dword [rsp + 0xf8]
mov dword [r15 + 0xc], ebp
sub eax, ebp
mov dword [r15 + 8], eax
jmp 0x1401d7ccb
mov dword [rsp + 0x20], 0
xor r8d, r8d
mov edx, 0x4b
mov rcx, r14
mov r9d, dword [rsp + 0xf8]
call sym.sqlite3VdbeAddOp3
jmp 0x1401d79d0
cmp eax, edx
jge 0x1401d82a5
lea edx, [rax + 1]
mov ecx, dword [rsp + 0x30]
mov dword [rbx + 0x90], edx
movsxd rdx, eax
lea r8, [rdx + rdx*2]
mov rdx, qword [rbx + 0x88]
lea rdx, [rdx + r8*8]
mov dword [rdx + 4], ecx
mov dword [rdx + 8], r11d
mov dword [rdx + 0xc], 0
mov qword [rdx + 0x10], 0
mov dword [rdx], 0x87
jmp 0x1401d7ca3
mov qword [rdi + 0x58], 0
mov dword [rdi + 0x50], 0
jmp 0x1401d7d02
mov dword [rsp + 0x20], r11d
mov r8d, dword [rsp + 0x30]
mov edx, 0x5e
mov rcx, rbx
mov dword [rsp + 0x50], r11d
call dbg.growOp3
mov r11d, dword [rsp + 0x50]
jmp 0x1401d7ca3
mov dword [r15 + 0xc], 0
jmp 0x1401d7ccb
mov r15, qword [rax + 0x20]
test r15, r15
je 0x1401d8052
movsxd rax, r11d
mov r13, r15
mov rcx, r15
mov qword [rsp + 0x60], r14
shl rax, 3
mov dword [rsp + 0x6c], ebp
mov rdx, qword [r13 + 0x20]
mov qword [rsp + 0x58], rax
movzx eax, word [rsi + 0x3c]
mov qword [rsp + 0xe0], rdi
mov dword [rsp + 0xe8], r11d
cmp r13, rcx
je 0x1401d7fe2
nop word cs:[rax + rax]
xor r15d, r15d
cmp eax, dword [rsp + 0xe8]
jle 0x1401d81af
xor r14d, r14d
mov qword [rsp + 0x50], r13
mov rbp, qword [rsp + 0x58]
mov r13, rbx
mov qword [rsp + 0x40], r12
mov edi, dword [rsp + 0xe8]
xor r9d, r9d
mov rbx, rdx
mov qword [rsp + 0x30], r14
jmp 0x1401d7ec3
movzx eax, word [rsi + 0x3c]
add edi, 1
add rbp, 8
cmp edi, eax
jge 0x1401d7f50
mov rax, qword [rsi + 0x48]
mov rax, qword [rax + rbp]
cmp r13, qword [rax]
jne 0x1401d7eb0
movsxd r12, dword [rax + 0x24]
shl r12, 5
lea r14, [rbx + r12]
mov r8, qword [r14 - 0x18]
test r8, r8
je 0x1401d7eb0
mov rcx, qword [rsp + 0xd0]
mov rdx, r9
call sym.sqlite3ExprListAppend
mov qword [r14 - 0x18], 0
mov r9, rax
test r15, r15
je 0x1401d7eb0
add r12, r15
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
add edi, 1
mov r8, qword [r12 - 0x18]
mov rcx, qword [rsp + 0xd0]
add rbp, 8
call sym.sqlite3ExprListAppend
mov r9, qword [rsp + 0x38]
mov qword [r12 - 0x18], 0
mov qword [rsp + 0x30], rax
movzx eax, word [rsi + 0x3c]
cmp edi, eax
jl 0x1401d7ec3
nop word [rax + rax]
mov rdx, rbx
mov r12, qword [rsp + 0x40]
mov rbx, r13
mov r14, qword [rsp + 0x30]
mov r13, qword [rsp + 0x50]
test rdx, rdx
je 0x1401d7f7e
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], r9
call dbg.exprListDeleteNN
mov r9, qword [rsp + 0x30]
test r15, r15
je 0x1401d7fa3
mov rcx, qword [rsp + 0x48]
mov rdx, r15
mov qword [rsp + 0x30], r9
call dbg.exprListDeleteNN
mov rax, qword [r12 + 0x10]
mov r9, qword [rsp + 0x30]
mov qword [rax + 0x20], r14
mov qword [r13 + 0x20], r9
test r14, r14
je 0x1401d7fb6
cmp dword [r14], 1
je 0x1401d8160
mov rcx, qword [r13 + 0x48]
test rcx, rcx
jne 0x1401d8110
mov r13, qword [r13 + 0x50]
test r13, r13
je 0x1401d800c
mov rcx, qword [r12 + 0x20]
mov rdx, qword [r13 + 0x20]
movzx eax, word [rsi + 0x3c]
cmp r13, rcx
jne 0x1401d7e70
mov rcx, qword [r12 + 0x10]
mov r15, qword [rcx + 0x20]
cmp dword [rsp + 0xe8], eax
jl 0x1401d7e80
test rdx, rdx
je 0x1401d8305
xor r9d, r9d
xor r14d, r14d
jmp 0x1401d7f6a
mov rax, qword [rsp + 0x48]
mov r14, qword [rsp + 0x60]
mov ebp, dword [rsp + 0x6c]
mov rdi, qword [rsp + 0xe0]
cmp byte [rax + 0x67], 0
mov r11d, dword [rsp + 0xe8]
je 0x1401d8052
mov rcx, qword [rsp + 0x48]
mov rdx, r12
mov dword [rsp + 0xe8], r11d
call dbg.sqlite3ExprDeleteNN
mov r11d, dword [rsp + 0xe8]
jmp 0x1401d7995
mov rax, qword [rsp + 0xd0]
movsxd r13, ebp
mov dword [rsp + 0xe8], r11d
shl r13, 2
mov rcx, qword [rax]
test rcx, rcx
je 0x1401d82d1
mov rdx, r13
call sym.sqlite3DbMallocRawNN
mov r11d, dword [rsp + 0xe8]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1401d80ae
mov r8, r13
xor edx, edx
mov dword [rsp + 0xe8], r11d
call sym.memset
mov r11d, dword [rsp + 0xe8]
lea rax, [rsp + 0x7c]
xor r9d, r9d
mov r8d, 4
mov rdx, r12
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xd0]
mov dword [rsp + 0xe8], r11d
mov qword [rsp + 0x20], rax
call sym.sqlite3FindInIndex.constprop.0
mov rcx, qword [rsp + 0x48]
mov rdx, r12
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x7c]
mov dword [rbx + 0x2c], eax
mov dword [rsp + 0x30], eax
call dbg.sqlite3ExprDeleteNN
mov r11d, dword [rsp + 0xe8]
jmp 0x1401d7a99
movsxd rdx, dword [rcx]
test edx, edx
jle 0x1401d7fc3
shl rdx, 5
mov rax, rcx
lea r8, [rcx + rdx]
and edx, 0x20
je 0x1401d8140
xor edx, edx
add rax, 0x20
mov word [rcx + 0x20], dx
cmp rax, r8
je 0x1401d7fc3
nop
xor ecx, ecx
xor r9d, r9d
add rax, 0x40
mov word [rax - 0x20], cx
mov word [rax], r9w
cmp rax, r8
jne 0x1401d8140
jmp 0x1401d7fc3
mov rdx, qword [r12 + 0x10]
mov rdi, qword [r14 + 8]
mov qword [r14 + 8], 0
test rdx, rdx
je 0x1401d8180
mov rcx, qword [rsp + 0x48]
call dbg.sqlite3ExprDeleteNN
mov qword [r12 + 0x10], rdi
jmp 0x1401d7fb6
mov dword [rsp + 0x20], r11d
mov r8d, dword [rdi + 8]
xor r9d, r9d
mov rcx, r14
mov edx, 0x7d
call sym.sqlite3VdbeAddOp3
jmp 0x1401d7d02
xor ebp, ebp
jmp 0x1401d790f
test rdx, rdx
je 0x1401d7fb6
mov rcx, qword [rsp + 0x48]
call dbg.exprListDeleteNN
mov qword [r13 + 0x20], 0
jmp 0x1401d7fb6
mov rcx, qword [rbx + 0x10]
movzx edx, byte [rcx]
cmp dl, 0xb0
jne 0x1401d81df
movzx edx, byte [rcx + 2]
cmp dl, 0xb1
je 0x1401d8335
mov eax, 1
cmp dl, 0x8a
jne 0x1401d81fc
mov rax, qword [rcx + 0x20]
mov rax, qword [rax + 0x20]
mov eax, dword [rax]
cmp ebp, eax
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0xe8], r11d
cmovge eax, ebp
movsxd r13, eax
shl r13, 2
test rcx, rcx
je 0x1401d82eb
mov rdx, r13
call sym.sqlite3DbMallocRawNN
mov r11d, dword [rsp + 0xe8]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1401d8257
mov r8, r13
xor edx, edx
mov dword [rsp + 0xe8], r11d
call sym.memset
mov r11d, dword [rsp + 0xe8]
lea rax, [rsp + 0x7c]
xor r9d, r9d
mov r8d, 4
mov rdx, rbx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xd0]
mov dword [rsp + 0xe8], r11d
mov qword [rsp + 0x20], rax
call sym.sqlite3FindInIndex.constprop.0
mov r11d, dword [rsp + 0xe8]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x30], eax
jmp 0x1401d7a99
mov r8d, dword [rsp + 0x30]
mov r9d, r11d
mov edx, 0x87
mov rcx, rbx
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x50], r11d
call dbg.growOp3
mov r11d, dword [rsp + 0x50]
jmp 0x1401d7ca3
mov rcx, r13
call sym.sqlite3Malloc
mov r11d, dword [rsp + 0xe8]
mov qword [rsp + 0x38], rax
jmp 0x1401d808a
mov rcx, r13
call sym.sqlite3Malloc
mov r11d, dword [rsp + 0xe8]
mov qword [rsp + 0x38], rax
jmp 0x1401d8233
test r15, r15
je 0x1401d7fb6
mov rcx, qword [rsp + 0x48]
mov rdx, r15
call dbg.exprListDeleteNN
mov rax, qword [r12 + 0x10]
mov qword [rax + 0x20], 0
mov qword [r13 + 0x20], 0
jmp 0x1401d7fb6
mov rax, qword [rcx + 0x20]
mov eax, dword [rax]
jmp 0x1401d81fc