Function at 0x1400dd8f0
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
mov r13d, dword [rcx + 0x30]
mov r12, qword [rcx + 0x10]
mov rdi, rcx
mov r11d, edx
mov r15, r8
test r13d, r13d
jne 0x1400ddede
mov eax, dword [r8 + 0x30]
mov rbx, qword [r8 + 0x28]
mov byte [r8], 1
xor ecx, ecx
mov dword [rsp + 0x34], 0
test eax, eax
jle 0x1400ddf70
mov dword [rsp + 0x4c], r13d
mov r13, rbx
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0xa8], edx
mov qword [rsp + 0xb0], r8
mov dword [rsp + 0xb8], r9d
jmp 0x1400ddaae
mov rax, qword [r13]
cmp byte [r13 + 0x1d], 1
mov r14d, dword [rbp]
mov rax, qword [rax + 0x10]
mov r15, qword [rax + 0x20]
mov eax, dword [r15]
adc eax, 0
cmp byte [r13 + 0x1c], 0
je 0x1400dd985
add eax, r14d
cmp byte [r13 + 0x1e], 0
je 0x1400dd98f
add eax, r14d
add eax, 1
mov rcx, rdi
mov edx, eax
mov dword [rsp + 0x3c], eax
call sym.sqlite3GetTempRange
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov rdx, r15
mov r8d, eax
mov dword [rsp + 0x38], eax
call sym.sqlite3ExprCodeExprList.isra.0
cmp byte [r13 + 0x1d], 0
mov r15d, dword [r15]
je 0x1400ddd50
cmp byte [r13 + 0x1c], 0
jne 0x1400ddcb0
cmp byte [r13 + 0x1e], 0
jne 0x1400ddfe0
mov eax, dword [rsp + 0x38]
mov r8d, dword [r13 + 0x10]
test r8d, r8d
js 0x1400dda17
test esi, esi
jne 0x1400dd9f8
mov esi, dword [rdi + 0x44]
sub esi, 1
mov dword [rdi + 0x44], esi
mov dword [rsp + 0x28], eax
mov edx, dword [rsp + 0xb8]
mov r9d, esi
mov rcx, rdi
mov qword [rsp + 0x20], rbp
call sym.codeDistinct
mov dword [r13 + 0x10], eax
mov r9d, dword [r13 + 0x18]
test r9d, r9d
js 0x1400ddbc0
mov r14d, dword [rsp + 0x38]
mov r15d, dword [rsp + 0x3c]
mov edx, 0x61
mov rcx, r12
lea ebx, [r14 + r15 - 1]
lea ebp, [r15 - 1]
mov r8d, r14d
mov dword [rsp + 0x20], ebx
mov r9d, ebp
call sym.sqlite3VdbeAddOp3
mov r8d, dword [r13 + 0x18]
mov dword [rsp + 0x28], ebp
mov r9d, ebx
mov dword [rsp + 0x20], r14d
mov edx, 0x8a
mov rcx, r12
call sym.sqlite3VdbeAddOp4Int
cmp r15d, 1
je 0x1400ddfa0
mov eax, dword [rsp + 0x3c]
cmp dword [rdi + 0x28], eax
jge 0x1400dda88
mov dword [rdi + 0x28], eax
mov eax, dword [rsp + 0x38]
mov dword [rdi + 0x2c], eax
test esi, esi
jne 0x1400ddc82
mov rsi, qword [rsp + 0xb0]
add dword [rsp + 0x34], 1
add r13, 0x20
mov eax, dword [rsp + 0x34]
cmp dword [rsi + 0x30], eax
jle 0x1400dde30
mov rax, qword [r13]
xor esi, esi
mov rbp, qword [rax + 0x20]
test byte [rax + 7], 1
je 0x1400ddb0d
mov rax, qword [rax + 0x40]
mov rbx, qword [rax + 0x48]
mov rax, qword [rsp + 0xb0]
mov r14d, dword [rax + 0x24]
test r14d, r14d
je 0x1400ddaf0
mov rax, qword [r13 + 8]
test byte [rax + 4], 0x20
je 0x1400ddaf0
mov esi, dword [rsp + 0xa8]
test esi, esi
jne 0x1400de010
mov eax, dword [rdi + 0x44]
mov r9d, 0x10
mov rdx, rbx
mov rcx, rdi
lea esi, [rax - 1]
mov dword [rdi + 0x44], esi
mov r8d, esi
call sym.sqlite3ExprIfFalse
mov r10d, dword [r13 + 0x18]
test r10d, r10d
jns 0x1400dd960
test rbp, rbp
je 0x1400ddda0
mov r14d, dword [rbp]
mov rcx, rdi
mov edx, r14d
call sym.sqlite3GetTempRange
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov rdx, rbp
mov r8d, eax
mov dword [rsp + 0x38], eax
mov ebx, eax
call sym.sqlite3ExprCodeExprList.isra.0
mov r8d, dword [r13 + 0x10]
mov dword [rsp + 0x3c], 0
mov eax, ebx
test r8d, r8d
jns 0x1400dd9eb
mov edx, dword [r13 + 0x18]
test edx, edx
js 0x1400ddbc0
mov r14d, dword [rsp + 0x38]
mov rcx, r12
mov r9d, 0xffffffff
mov edx, 0x61
lea ebx, [r14 - 1]
mov r8d, r14d
mov dword [rsp + 0x20], ebx
call sym.sqlite3VdbeAddOp3
mov r8d, dword [r13 + 0x18]
mov r9d, ebx
mov rcx, r12
mov dword [rsp + 0x28], 0xffffffff
mov edx, 0x8a
mov dword [rsp + 0x20], r14d
call sym.sqlite3VdbeAddOp4Int
jmp 0x1400dda75
movzx eax, r14b
mov word [rsp + 0x3c], ax
mov rax, qword [r13 + 8]
test byte [rax + 4], 0x20
jne 0x1400ddef0
mov r9d, dword [rsp + 0x38]
xor r8d, r8d
mov rcx, r12
mov edx, 0xa2
mov rbx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x20]
add eax, dword [rbx + 0xc]
mov ebx, dword [rsp + 0x34]
add eax, ebx
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov rcx, qword [r12]
mov r8, qword [r13 + 8]
cmp byte [rcx + 0x67], 0
jne 0x1400ddd80
movsxd rdx, dword [r12 + 0x90]
mov rcx, qword [r12 + 0x88]
mov rax, rdx
shl rdx, 5
lea rdx, [rcx + rdx - 0x20]
mov byte [rdx + 1], 0xf9
mov qword [rdx + 0x10], r8
test eax, eax
jle 0x1400ddc5b
movzx ecx, word [rsp + 0x3c]
shl rax, 5
add rax, qword [r12 + 0x88]
mov word [rax - 0x1e], cx
cmp r14d, 1
je 0x1400ddf40
cmp dword [rdi + 0x28], r14d
jge 0x1400dda88
mov eax, dword [rsp + 0x38]
mov dword [rdi + 0x28], r14d
mov dword [rdi + 0x2c], eax
test esi, esi
je 0x1400dda90
mov rcx, qword [r12 + 0x18]
not esi
mov eax, dword [rcx + 0x44]
add eax, dword [rcx + 0x48]
js 0x1400ddfd0
mov edx, dword [r12 + 0x90]
mov rax, qword [rcx + 0x50]
movsxd rsi, esi
mov dword [rax + rsi*4], edx
jmp 0x1400dda90
mov eax, dword [rsp + 0x38]
xor r9d, r9d
mov rdx, rbp
mov rcx, rdi
mov dword [rsp + 0x20], 1
add eax, r15d
add r15d, r14d
mov r8d, eax
mov dword [rsp + 0x44], eax
call sym.sqlite3ExprCodeExprList.isra.0
cmp byte [r13 + 0x1e], 0
mov eax, dword [rsp + 0x44]
je 0x1400dd9e2
cmp byte [r13 + 0x1c], 0
je 0x1400de05b
mov r8d, eax
test r14d, r14d
jle 0x1400dd9e2
mov edx, dword [rsp + 0x38]
mov dword [rsp + 0x48], eax
lea ecx, [r14 + r8]
mov ebx, r8d
mov dword [rsp + 0x44], esi
mov esi, ecx
add r15d, edx
sub r15d, r8d
nop dword [rax + rax]
lea r9d, [r15 + rbx]
mov r8d, ebx
mov edx, 0xb5
mov rcx, r12
mov dword [rsp + 0x20], 0
add ebx, 1
call sym.sqlite3VdbeAddOp3
cmp esi, ebx
jne 0x1400ddd20
mov esi, dword [rsp + 0x44]
mov eax, dword [rsp + 0x48]
jmp 0x1400dd9e2
mov r8d, dword [r13 + 0x18]
mov eax, dword [rsp + 0x38]
mov edx, 0x7e
mov rcx, r12
mov dword [rsp + 0x20], 0
lea r9d, [rax + r15]
add r15d, 1
call sym.sqlite3VdbeAddOp3
jmp 0x1400dd9c8
test byte [r8 + 4], 0x10
jne 0x1400de000
movsxd rax, dword [r12 + 0x90]
jmp 0x1400ddc42
mov rax, qword [r13 + 8]
mov dword [rsp + 0x38], 0
mov r14d, 0
test byte [rax + 4], 0x20
mov eax, 0
mov word [rsp + 0x3c], ax
je 0x1400ddbd7
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
nop dword [rax]
mov r8d, dword [rsp + 0x40]
test r8d, r8d
jne 0x1400dddfa
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x24]
mov dword [rsp + 0x40], eax
test eax, eax
je 0x1400dddfa
mov eax, dword [rdi + 0x38]
add eax, 1
mov dword [rsp + 0x40], eax
mov dword [rdi + 0x38], eax
mov r8d, dword [rsp + 0x40]
xor r9d, r9d
mov rcx, r12
mov edx, 0x55
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
mov r9d, 0xfffffffe
mov r8, rbx
mov rcx, r12
mov edx, eax
call sym.sqlite3VdbeChangeP4
jmp 0x1400ddbd7
mov ecx, dword [rsp + 0x40]
mov r13d, dword [rsp + 0x4c]
mov r15, rsi
mov r11d, dword [rsp + 0xa8]
test ecx, ecx
je 0x1400ddf70
mov dword [rsp + 0x20], 0
mov r8d, ecx
xor r9d, r9d
mov rcx, r12
mov edx, 0x10
call sym.sqlite3VdbeAddOp3
mov ecx, dword [r15 + 0x24]
mov rbx, qword [r15 + 0x18]
mov esi, eax
test ecx, ecx
jle 0x1400ddea0
nop dword [rax]
cmp qword [rdi + 0x10], 0
je 0x1400dde92
mov r8d, dword [r15 + 0xc]
mov rdx, qword [rbx + 8]
mov rcx, rdi
add r8d, r13d
call sym.sqlite3ExprCode.part.0
add r13d, 1
add rbx, 0x18
cmp dword [r15 + 0x24], r13d
jg 0x1400dde78
mov byte [r15], 0
test esi, esi
je 0x1400ddede
mov edx, dword [r12 + 0x90]
lea eax, [rdx - 1]
cmp esi, eax
je 0x1400de04e
mov rcx, qword [r12]
lea rax, [0x14018a240]
cmp byte [rcx + 0x67], 0
jne 0x1400ddedb
movsxd rax, esi
shl rax, 5
add rax, qword [r12 + 0x88]
mov dword [rax + 8], edx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
add rbp, 8
test r14d, r14d
jle 0x1400dddc6
xor r15d, r15d
mov rdx, qword [rbp]
mov rcx, rdi
add r15d, 1
add rbp, 0x20
call sym.sqlite3ExprCollSeq
test rax, rax
jne 0x1400ddff0
cmp r15d, r14d
jl 0x1400ddf00
mov rbx, rax
test rax, rax
jne 0x1400dddd0
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
jmp 0x1400dddd0
mov ecx, dword [rsp + 0x38]
test ecx, ecx
je 0x1400dda88
movzx eax, byte [rdi + 0x1f]
cmp al, 7
ja 0x1400dda88
lea edx, [rax + 1]
mov byte [rdi + 0x1f], dl
mov dword [rdi + rax*4 + 0xe8], ecx
jmp 0x1400dda88
mov eax, dword [r15 + 0x24]
test eax, eax
je 0x1400ddf84
mov ecx, r11d
test r11d, r11d
jne 0x1400dde4c
mov rbx, qword [r15 + 0x18]
xor esi, esi
test eax, eax
jg 0x1400dde78
mov byte [r15], 0
jmp 0x1400ddede
mov ebx, dword [rsp + 0x38]
test ebx, ebx
je 0x1400dda88
movzx eax, byte [rdi + 0x1f]
cmp al, 7
ja 0x1400dda88
lea edx, [rax + 1]
mov byte [rdi + 0x1f], dl
mov dword [rdi + rax*4 + 0xe8], ebx
jmp 0x1400dda88
mov r8d, esi
mov rdx, r12
call sym.resizeResolveLabel
jmp 0x1400dda90
mov r8d, dword [rsp + 0x38]
mov eax, r8d
jmp 0x1400ddcf4
mov rbx, rax
jmp 0x1400dddd0
mov rdx, r8
call sym.sqlite3DbNNFreeNN
jmp 0x1400ddd8b
mov r11d, dword [rsp + 0x40]
test r11d, r11d
jne 0x1400de027
mov eax, dword [rdi + 0x38]
add eax, 1
mov dword [rsp + 0x40], eax
mov dword [rdi + 0x38], eax
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x40]
mov edx, 0x50
mov rcx, r12
mov r8d, dword [rsp + 0xa8]
call sym.sqlite3VdbeAddOp3
jmp 0x1400ddaf0
mov dword [r12 + 0x90], esi
jmp 0x1400ddede
mov r8d, dword [rsp + 0x38]
jmp 0x1400ddcf4