Function at 0x14028c520
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 r12d, dword [rcx + 0x30]
mov rdi, qword [rcx + 0x10]
test r12d, r12d
mov rbx, rcx
mov dword [rsp + 0xa8], edx
mov r13, r8
mov dword [rsp + 0xb8], r9d
jne 0x14028ca49
mov ebp, dword [r8 + 0x30]
xor ecx, ecx
mov byte [r8], 1
mov r14, qword [r8 + 0x28]
mov dword [rsp + 0x3c], 0
test ebp, ebp
jle 0x14028cac0
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x4c], r12d
mov qword [rsp + 0xb0], r8
jmp 0x14028c71a
mov r12d, dword [r13]
cmp r12d, 1
je 0x14028ca70
mov eax, dword [rbx + 0x28]
mov r10d, dword [rbx + 0x2c]
cmp r12d, eax
jg 0x14028c910
lea edx, [r12 + r10]
sub eax, r12d
mov dword [rbx + 0x2c], edx
mov dword [rbx + 0x28], eax
mov r8d, r10d
xor r9d, r9d
mov rdx, r13
mov dword [rsp + 0x44], r10d
mov dword [rsp + 0x20], 1
mov rcx, rbx
call sym.sqlite3ExprCodeExprList.isra.0
mov r8d, dword [r14 + 0x10]
mov r10d, dword [rsp + 0x44]
test r8d, r8d
js 0x14028c61e
test ebp, ebp
jne 0x14028c5f4
mov eax, dword [rbx + 0x44]
lea ebp, [rax - 1]
mov dword [rbx + 0x44], ebp
mov edx, dword [rsp + 0xb8]
mov dword [rsp + 0x28], r10d
mov r9d, ebp
mov rcx, rbx
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x44], r10d
call sym.codeDistinct
mov r10d, dword [rsp + 0x44]
mov dword [r14 + 0x10], eax
mov rax, qword [r14 + 8]
movzx r11d, r12b
test byte [rax + 4], 0x20
jne 0x14028c8a8
mov rsi, qword [rsp + 0xb0]
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x20]
add eax, dword [rsi + 0xc]
mov esi, dword [rsp + 0x3c]
lea edx, [rax + rsi]
movsxd rax, dword [rdi + 0x90]
cmp eax, dword [rdi + 0x94]
jge 0x14028c950
lea ecx, [rax + 1]
mov dword [rdi + 0x90], ecx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 8], r10d
mov dword [rax + 0xc], edx
mov qword [rax + 0x10], 0
mov qword [rax], 0xa2
mov rcx, qword [rdi]
mov r8, qword [r14 + 8]
cmp byte [rcx + 0x67], 0
jne 0x14028c860
movsxd rax, dword [rdi + 0x90]
lea rcx, [rax + rax*2]
mov rdx, rax
mov rax, qword [rdi + 0x88]
lea rax, [rax + rcx*8 - 0x18]
mov byte [rax + 1], 0xf9
mov qword [rax + 0x10], r8
test edx, edx
jle 0x14028c6dc
mov rcx, qword [rdi + 0x88]
movsxd rax, edx
lea rax, [rax + rax*2]
lea rax, [rcx + rax*8]
mov word [rax - 0x16], r11w
cmp r12d, 1
je 0x14028c928
cmp dword [rbx + 0x28], r12d
jge 0x14028c6f4
mov dword [rbx + 0x28], r12d
mov dword [rbx + 0x2c], r10d
test ebp, ebp
jne 0x14028c880
mov rsi, qword [rsp + 0xb0]
add r14, 0x18
add dword [rsp + 0x3c], 1
mov eax, dword [rsp + 0x3c]
cmp dword [rsi + 0x30], eax
jle 0x14028c980
mov rax, qword [r14]
xor ebp, ebp
test byte [rax + 7], 1
mov r13, qword [rax + 0x20]
je 0x14028c77d
mov rax, qword [rax + 0x40]
mov r12, qword [rax + 0x48]
mov rax, qword [rsp + 0xb0]
mov r11d, dword [rax + 0x24]
test r11d, r11d
je 0x14028c760
mov rax, qword [r14 + 8]
test byte [rax + 4], 0x20
je 0x14028c760
mov r10d, dword [rsp + 0xa8]
test r10d, r10d
jne 0x14028cb80
nop dword [rax]
mov eax, dword [rbx + 0x44]
mov r9d, 0x10
mov rdx, r12
mov rcx, rbx
lea ebp, [rax - 1]
mov dword [rbx + 0x44], ebp
mov r8d, ebp
call sym.sqlite3ExprIfFalse
test r13, r13
jne 0x14028c590
mov rax, qword [r14 + 8]
xor r10d, r10d
xor r12d, r12d
xor r11d, r11d
test byte [rax + 4], 0x20
je 0x14028c630
mov rax, qword [rbx]
mov rsi, qword [rax + 0x10]
nop dword [rax]
mov r8d, dword [rsp + 0x40]
test r8d, r8d
jne 0x14028c7c9
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x24]
test eax, eax
mov dword [rsp + 0x40], eax
jne 0x14028cb00
mov eax, dword [rdi + 0x90]
cmp eax, dword [rdi + 0x94]
jge 0x14028cb1f
lea edx, [rax + 1]
mov dword [rdi + 0x90], edx
movsxd rdx, eax
lea rcx, [rdx + rdx*2]
mov rdx, qword [rdi + 0x88]
lea rdx, [rdx + rcx*8]
mov ecx, dword [rsp + 0x40]
mov qword [rdx + 8], 0
mov qword [rdx + 0x10], 0
mov dword [rdx], 0x55
mov dword [rdx + 4], ecx
mov rdx, qword [rdi]
cmp byte [rdx + 0x67], 0
jne 0x14028c630
test eax, eax
jns 0x14028c82d
mov eax, dword [rdi + 0x90]
sub eax, 1
cdqe
lea rdx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
lea rdx, [rax + rdx*8]
cmp byte [rdx + 1], 0
jne 0x14028cbf0
test rsi, rsi
je 0x14028c630
mov qword [rdx + 0x10], rsi
mov byte [rdx + 1], 0xfe
jmp 0x14028c630
test byte [r8 + 4], 0x10
jne 0x14028ca98
mov edx, dword [rdi + 0x90]
jmp 0x14028c6c1
mov rcx, qword [rdi + 0x18]
not ebp
mov eax, dword [rcx + 0x44]
add eax, dword [rcx + 0x48]
js 0x14028cb70
mov rax, qword [rcx + 0x50]
movsxd rbp, ebp
mov dword [rax + rbp*4], edx
jmp 0x14028c6fc
add r13, 8
test r12d, r12d
jle 0x14028c79d
mov r15, r13
xor esi, esi
mov dword [rsp + 0x44], r10d
mov r13d, r11d
nop word [rax + rax]
mov rdx, qword [r15]
mov rcx, rbx
add esi, 1
add r15, 0x20
call sym.sqlite3ExprCollSeq
test rax, rax
jne 0x14028ca60
cmp r12d, esi
jg 0x14028c8c8
test rax, rax
mov r10d, dword [rsp + 0x44]
mov rsi, rax
mov r11d, r13d
jne 0x14028c7a8
mov rax, qword [rbx]
mov rsi, qword [rax + 0x10]
jmp 0x14028c7a8
mov eax, dword [rbx + 0x38]
lea r10d, [rax + 1]
add eax, r12d
mov dword [rbx + 0x38], eax
jmp 0x14028c5bb
test r10d, r10d
je 0x14028c6f4
movzx eax, byte [rbx + 0x1f]
cmp al, 7
ja 0x14028c6f4
lea ecx, [rax + 1]
mov byte [rbx + 0x1f], cl
mov dword [rbx + rax*4 + 0xe4], r10d
jmp 0x14028c6f4
mov dword [rsp + 0x20], edx
mov r9d, r10d
xor r8d, r8d
mov edx, 0xa2
mov rcx, rdi
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x44], r10d
call sym.growOp3
mov r10d, dword [rsp + 0x44]
mov r11d, dword [rsp + 0x48]
jmp 0x14028c68e
mov ecx, dword [rsp + 0x40]
mov r13, rsi
mov r12d, dword [rsp + 0x4c]
test ecx, ecx
je 0x14028cac0
movsxd rbp, dword [rdi + 0x90]
cmp ebp, dword [rdi + 0x94]
jge 0x14028cc55
lea eax, [rbp + 1]
mov dword [rdi + 0x90], eax
movsxd rax, ebp
lea rdx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
lea rax, [rax + rdx*8]
mov dword [rax + 4], ecx
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
mov dword [rax], 0x10
mov eax, dword [r13 + 0x24]
mov rsi, qword [r13 + 0x18]
test eax, eax
jg 0x14028ca11
jmp 0x14028ca18
mov r8d, dword [r13 + 0xc]
mov rcx, rbx
add rsi, 0x18
mov rdx, qword [rsi - 0x10]
add r8d, r12d
add r12d, 1
call sym.sqlite3ExprCode.part.0
cmp dword [r13 + 0x24], r12d
jle 0x14028ca18
cmp qword [rbx + 0x10], 0
jne 0x14028c9f0
test ebp, ebp
mov byte [r13], 0
je 0x14028ca49
mov eax, dword [rdi + 0x90]
lea edx, [rax - 1]
cmp ebp, edx
je 0x14028cc4a
mov rcx, qword [rdi]
lea rdx, [0x1402b1b40]
cmp byte [rcx + 0x67], 0
je 0x14028cc32
mov dword [rdx + 8], eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r10d, dword [rsp + 0x44]
mov rsi, rax
mov r11d, r13d
jmp 0x14028c7a8
movzx eax, byte [rbx + 0x1f]
test al, al
je 0x14028cb58
sub eax, 1
mov byte [rbx + 0x1f], al
movzx eax, al
mov r10d, dword [rbx + rax*4 + 0xe4]
jmp 0x14028c5bb
mov rdx, r8
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x44], r10d
call sym.sqlite3DbNNFreeNN
mov edx, dword [rdi + 0x90]
mov r10d, dword [rsp + 0x44]
mov r11d, dword [rsp + 0x48]
jmp 0x14028c6c1
mov esi, dword [rsp + 0xa8]
mov eax, dword [r13 + 0x24]
test esi, esi
je 0x14028cade
test eax, eax
mov ecx, dword [rsp + 0xa8]
jne 0x14028c994
xor ebp, ebp
test eax, eax
mov rsi, qword [r13 + 0x18]
jg 0x14028ca11
mov byte [r13], 0
jmp 0x14028ca49
mov eax, dword [rbx + 0x38]
add eax, 1
mov dword [rsp + 0x40], eax
mov dword [rbx + 0x38], eax
mov eax, dword [rdi + 0x90]
cmp eax, dword [rdi + 0x94]
jl 0x14028c7db
mov r8d, dword [rsp + 0x40]
xor r9d, r9d
mov edx, 0x55
mov rcx, rdi
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x44], r10d
call sym.growOp3
mov r10d, dword [rsp + 0x44]
mov r11d, dword [rsp + 0x48]
jmp 0x14028c813
mov eax, dword [rbx + 0x38]
lea r10d, [rax + 1]
mov dword [rbx + 0x38], r10d
jmp 0x14028c5bb
mov r8d, ebp
mov rdx, rdi
call sym.resizeResolveLabel
jmp 0x14028c6fc
mov r9d, dword [rsp + 0x40]
test r9d, r9d
je 0x14028cc20
movsxd rax, dword [rdi + 0x90]
cmp eax, dword [rdi + 0x94]
movd xmm0, dword [rsp + 0xa8]
movd xmm1, dword [rsp + 0x40]
punpckldq xmm0, xmm1
jge 0x14028cc78
lea edx, [rax + 1]
mov dword [rdi + 0x90], edx
lea rdx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
lea rax, [rax + rdx*8]
movq qword [rax + 4], xmm0
mov dword [rax + 0xc], 0
mov qword [rax + 0x10], 0
mov dword [rax], 0x50
jmp 0x14028c760
mov r9d, 0xfffffffe
mov r8, rsi
mov rcx, rdi
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x44], r10d
call sym.vdbeChangeP4Full
mov r10d, dword [rsp + 0x44]
mov r11d, dword [rsp + 0x48]
jmp 0x14028c630
mov eax, dword [rbx + 0x38]
add eax, 1
mov dword [rsp + 0x40], eax
mov dword [rbx + 0x38], eax
jmp 0x14028cb8e
mov rdx, qword [rdi + 0x88]
lea rcx, [rbp + rbp*2]
lea rdx, [rdx + rcx*8]
mov dword [rdx + 8], eax
jmp 0x14028ca49
mov dword [rdi + 0x90], ebp
jmp 0x14028ca49
mov r8d, ecx
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0x10
mov rcx, rdi
call sym.growOp3
movsxd rbp, eax
jmp 0x14028c9db
mov r8d, dword [rsp + 0xa8]
movd r9d, xmm1
mov edx, 0x50
mov rcx, rdi
mov dword [rsp + 0x20], 0
call sym.growOp3
jmp 0x14028c760