Function at 0x14036edc0
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 0x14036f2e9
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 0x14036f360
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x4c], r12d
mov qword [rsp + 0xb0], r8
jmp 0x14036efba
mov r12d, dword [r13]
cmp r12d, 1
je 0x14036f310
mov eax, dword [rbx + 0x28]
mov r10d, dword [rbx + 0x2c]
cmp r12d, eax
jg 0x14036f1b0
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 0x14036eebe
test ebp, ebp
jne 0x14036ee94
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 0x14036f148
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 0x14036f1f0
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 0x14036f100
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 0x14036ef7c
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 0x14036f1c8
cmp dword [rbx + 0x28], r12d
jge 0x14036ef94
mov dword [rbx + 0x28], r12d
mov dword [rbx + 0x2c], r10d
test ebp, ebp
jne 0x14036f120
mov rsi, qword [rsp + 0xb0]
add r14, 0x18
add dword [rsp + 0x3c], 1
mov eax, dword [rsp + 0x3c]
cmp dword [rsi + 0x30], eax
jle 0x14036f220
mov rax, qword [r14]
xor ebp, ebp
test byte [rax + 7], 1
mov r13, qword [rax + 0x20]
je 0x14036f01d
mov rax, qword [rax + 0x40]
mov r12, qword [rax + 0x48]
mov rax, qword [rsp + 0xb0]
mov r11d, dword [rax + 0x24]
test r11d, r11d
je 0x14036f000
mov rax, qword [r14 + 8]
test byte [rax + 4], 0x20
je 0x14036f000
mov r10d, dword [rsp + 0xa8]
test r10d, r10d
jne 0x14036f420
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 0x14036ee30
mov rax, qword [r14 + 8]
xor r10d, r10d
xor r12d, r12d
xor r11d, r11d
test byte [rax + 4], 0x20
je 0x14036eed0
mov rax, qword [rbx]
mov rsi, qword [rax + 0x10]
nop dword [rax]
mov r8d, dword [rsp + 0x40]
test r8d, r8d
jne 0x14036f069
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x24]
test eax, eax
mov dword [rsp + 0x40], eax
jne 0x14036f3a0
mov eax, dword [rdi + 0x90]
cmp eax, dword [rdi + 0x94]
jge 0x14036f3bf
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 0x14036eed0
test eax, eax
jns 0x14036f0cd
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 0x14036f490
test rsi, rsi
je 0x14036eed0
mov qword [rdx + 0x10], rsi
mov byte [rdx + 1], 0xfe
jmp 0x14036eed0
test byte [r8 + 4], 0x10
jne 0x14036f338
mov edx, dword [rdi + 0x90]
jmp 0x14036ef61
mov rcx, qword [rdi + 0x18]
not ebp
mov eax, dword [rcx + 0x44]
add eax, dword [rcx + 0x48]
js 0x14036f410
mov rax, qword [rcx + 0x50]
movsxd rbp, ebp
mov dword [rax + rbp*4], edx
jmp 0x14036ef9c
add r13, 8
test r12d, r12d
jle 0x14036f03d
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 0x14036f300
cmp r12d, esi
jg 0x14036f168
test rax, rax
mov r10d, dword [rsp + 0x44]
mov rsi, rax
mov r11d, r13d
jne 0x14036f048
mov rax, qword [rbx]
mov rsi, qword [rax + 0x10]
jmp 0x14036f048
mov eax, dword [rbx + 0x38]
lea r10d, [rax + 1]
add eax, r12d
mov dword [rbx + 0x38], eax
jmp 0x14036ee5b
test r10d, r10d
je 0x14036ef94
movzx eax, byte [rbx + 0x1f]
cmp al, 7
ja 0x14036ef94
lea ecx, [rax + 1]
mov byte [rbx + 0x1f], cl
mov dword [rbx + rax*4 + 0xe4], r10d
jmp 0x14036ef94
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 0x14036ef2e
mov ecx, dword [rsp + 0x40]
mov r13, rsi
mov r12d, dword [rsp + 0x4c]
test ecx, ecx
je 0x14036f360
movsxd rbp, dword [rdi + 0x90]
cmp ebp, dword [rdi + 0x94]
jge 0x14036f4f5
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 0x14036f2b1
jmp 0x14036f2b8
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 0x14036f2b8
cmp qword [rbx + 0x10], 0
jne 0x14036f290
test ebp, ebp
mov byte [r13], 0
je 0x14036f2e9
mov eax, dword [rdi + 0x90]
lea edx, [rax - 1]
cmp ebp, edx
je 0x14036f4ea
mov rcx, qword [rdi]
lea rdx, [0x140394c00]
cmp byte [rcx + 0x67], 0
je 0x14036f4d2
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 0x14036f048
movzx eax, byte [rbx + 0x1f]
test al, al
je 0x14036f3f8
sub eax, 1
mov byte [rbx + 0x1f], al
movzx eax, al
mov r10d, dword [rbx + rax*4 + 0xe4]
jmp 0x14036ee5b
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 0x14036ef61
mov esi, dword [rsp + 0xa8]
mov eax, dword [r13 + 0x24]
test esi, esi
je 0x14036f37e
test eax, eax
mov ecx, dword [rsp + 0xa8]
jne 0x14036f234
xor ebp, ebp
test eax, eax
mov rsi, qword [r13 + 0x18]
jg 0x14036f2b1
mov byte [r13], 0
jmp 0x14036f2e9
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 0x14036f07b
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 0x14036f0b3
mov eax, dword [rbx + 0x38]
lea r10d, [rax + 1]
mov dword [rbx + 0x38], r10d
jmp 0x14036ee5b
mov r8d, ebp
mov rdx, rdi
call sym.resizeResolveLabel
jmp 0x14036ef9c
mov r9d, dword [rsp + 0x40]
test r9d, r9d
je 0x14036f4c0
movsxd rax, dword [rdi + 0x90]
cmp eax, dword [rdi + 0x94]
movd xmm0, dword [rsp + 0xa8]
movd xmm1, dword [rsp + 0x40]
punpckldq xmm0, xmm1
jge 0x14036f518
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 0x14036f000
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 0x14036eed0
mov eax, dword [rbx + 0x38]
add eax, 1
mov dword [rsp + 0x40], eax
mov dword [rbx + 0x38], eax
jmp 0x14036f42e
mov rdx, qword [rdi + 0x88]
lea rcx, [rbp + rbp*2]
lea rdx, [rdx + rcx*8]
mov dword [rdx + 8], eax
jmp 0x14036f2e9
mov dword [rdi + 0x90], ebp
jmp 0x14036f2e9
mov r8d, ecx
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0x10
mov rcx, rdi
call sym.growOp3
movsxd rbp, eax
jmp 0x14036f27b
mov r8d, dword [rsp + 0xa8]
movd r9d, xmm1
mov edx, 0x50
mov rcx, rdi
mov dword [rsp + 0x20], 0
call sym.growOp3
jmp 0x14036f000