Function at 0x14038c5c0
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, 0x68
movzx edi, byte [rdx + 0x24]
mov r15d, dword [rsp + 0xe0]
mov r13, qword [rcx + 0x10]
and edi, 1
mov eax, edi
mov rbx, rdx
mov rdx, qword [rdx]
xor eax, 1
mov r14d, r9d
movzx eax, al
mov qword [rsp + 0xc0], r8
mov r12, rcx
mov r9d, dword [rsp + 0xd0]
mov esi, dword [rdx]
mov dword [rsp + 0x48], eax
add eax, esi
add eax, dword [rsp + 0xd8]
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x58], eax
mov eax, dword [rbx + 8]
mov dword [rsp + 0x3c], eax
test r15d, r15d
je 0x14038c960
mov ebp, r14d
sub ebp, r15d
mov rax, qword [rsp + 0xc0]
mov esi, dword [rax + 0xc]
test esi, esi
je 0x14038c950
add esi, 1
mov eax, dword [r12 + 0x44]
mov r8d, ebp
mov rcx, r12
sub eax, 1
cmp r9d, 1
mov dword [r12 + 0x44], eax
mov dword [rbx + 0x1c], eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 5
mov dword [rsp + 0x20], eax
call sym.sqlite3ExprCodeExprList.isra.0
test dil, dil
je 0x14038c978
test r15d, r15d
jne 0x14038c692
mov edx, dword [rsp + 0xd8]
test edx, edx
jg 0x14038c7b0
mov eax, dword [rsp + 0x3c]
test eax, eax
jg 0x14038c7e7
test esi, esi
je 0x14038c8d0
mov edi, dword [rsp + 0x3c]
mov eax, dword [r13 + 0x90]
xor r14d, r14d
add edi, ebp
mov r8d, esi
lea r9d, [rax + 4]
mov edx, 0x31
mov rcx, r13
mov dword [rsp + 0x20], 0
mov r15d, dword [rbx + 0xc]
call sym.sqlite3VdbeAddOp3
xor r9d, r9d
mov r8d, r15d
mov edx, 0x21
mov dword [rsp + 0x20], 0
mov rcx, r13
call sym.sqlite3VdbeAddOp3
mov eax, dword [rsp + 0x40]
sub eax, dword [rsp + 0x3c]
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov r8d, r15d
mov edx, 0x26
mov rcx, r13
mov dword [rsp + 0x20], edi
call sym.sqlite3VdbeAddOp4Int
xor r9d, r9d
mov r8d, r15d
mov edx, 0x7e
mov dword [rsp + 0x20], 0
mov rcx, r13
mov esi, eax
call sym.sqlite3VdbeAddOp3
test r14d, r14d
je 0x14038c8d8
movzx edx, byte [rbx + 0x24]
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], edi
mov r9d, r14d
sub eax, dword [rsp + 0x3c]
mov r8d, dword [rbx + 0xc]
mov rcx, r13
and edx, 1
mov dword [rsp + 0x28], eax
sub edx, 0x7a
movzx edx, dl
call sym.sqlite3VdbeAddOp4Int
test esi, esi
je 0x14038c79b
mov edx, dword [rbx + 0x20]
test edx, edx
je 0x14038cc00
test esi, esi
jns 0x14038c783
mov eax, dword [r13 + 0x90]
lea esi, [rax - 1]
mov rcx, qword [r13]
lea rax, [0x1407d6d60]
cmp byte [rcx + 0x63], 0
je 0x14038cbe8
mov dword [rax + 8], edx
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov edx, dword [rsp + 0xd8]
mov eax, dword [rsp + 0x40]
mov r8d, r14d
mov rcx, qword [r12 + 0x10]
mov dword [rsp + 0x20], edx
mov edx, dword [rsp + 0x48]
add eax, ebp
lea r9d, [rax + rdx]
mov edx, 0x4c
call sym.sqlite3VdbeAddOp3
mov eax, dword [rsp + 0x3c]
test eax, eax
jle 0x14038c69e
mov ecx, dword [r12 + 0x38]
mov rax, qword [rbx + 0x28]
mov r15d, dword [rbx + 8]
mov r11, qword [r12 + 0x10]
lea r14d, [rcx + 1]
mov dword [r12 + 0x38], r14d
test rax, rax
je 0x14038c833
mov rcx, qword [rsp + 0xc0]
xor r9d, r9d
mov qword [rsp + 0x50], r11
mov rdx, qword [rcx + 0x20]
movzx ecx, byte [rax + 4]
mov dword [rsp + 0x20], ecx
mov r8d, dword [rax]
mov rcx, r12
call sym.sqlite3ExprCodeExprList.isra.0
mov r11, qword [rsp + 0x50]
mov r9d, dword [rsp + 0x58]
mov dword [rsp + 0x20], r14d
mov rcx, r11
lea r8d, [rbp + r15]
mov edx, 0x5d
sub r9d, r15d
call sym.sqlite3VdbeAddOp3
mov eax, dword [r12 + 0x38]
mov r11d, dword [rbx + 8]
lea ecx, [rax + 1]
add eax, r11d
mov dword [rsp + 0x50], ecx
mov dword [r12 + 0x38], eax
test dil, dil
jne 0x14038c9a0
mov eax, dword [rsp + 0x40]
mov edi, dword [r13 + 0x90]
lea r8d, [rbp + rax]
cmp edi, dword [r13 + 0x94]
jge 0x14038cc68
lea eax, [rdi + 1]
mov dword [r13 + 0x90], eax
movsxd rax, edi
lea rdx, [rax + rax*2]
mov rax, qword [r13 + 0x88]
lea rax, [rax + rdx*8]
mov dword [rax + 4], r8d
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
mov dword [rax], 0x14
mov eax, r11d
jmp 0x14038c9f1
mov eax, dword [rsp + 0x3c]
lea edi, [rbp + rax]
mov ecx, dword [r12 + 0x38]
mov rax, qword [rbx + 0x28]
mov r15d, dword [rbx + 8]
mov r11, qword [r12 + 0x10]
lea r14d, [rcx + 1]
mov dword [r12 + 0x38], r14d
test rax, rax
je 0x14038c924
mov rcx, qword [rsp + 0xc0]
xor r9d, r9d
mov qword [rsp + 0x40], r11
mov rdx, qword [rcx + 0x20]
movzx ecx, byte [rax + 4]
mov dword [rsp + 0x20], ecx
mov r8d, dword [rax]
mov rcx, r12
call sym.sqlite3ExprCodeExprList.isra.0
mov r11, qword [rsp + 0x40]
mov r9d, dword [rsp + 0x58]
mov dword [rsp + 0x20], r14d
lea r8d, [rbp + r15]
mov rcx, r11
mov edx, 0x5d
sub r9d, r15d
call sym.sqlite3VdbeAddOp3
jmp 0x14038c73a
mov rax, qword [rsp + 0xc0]
mov esi, dword [rax + 8]
jmp 0x14038c64a
mov eax, dword [rcx + 0x38]
lea ebp, [rax + 1]
add eax, dword [rsp + 0x58]
mov dword [rcx + 0x38], eax
jmp 0x14038c634
mov eax, dword [rsp + 0x40]
mov r8d, dword [rbx + 0xc]
mov edx, 0x7a
mov rcx, r13
mov dword [rsp + 0x20], 0
lea r9d, [rbp + rax]
call sym.sqlite3VdbeAddOp3
jmp 0x14038c67e
mov r8d, dword [rbx + 0xc]
mov edi, dword [r13 + 0x90]
cmp edi, dword [r13 + 0x94]
jge 0x14038cc38
lea eax, [rdi + 1]
mov dword [r13 + 0x90], eax
movsxd rax, edi
lea rdx, [rax + rax*2]
mov rax, qword [r13 + 0x88]
lea rax, [rax + rdx*8]
mov dword [rax + 4], r8d
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
mov dword [rax], 0x73
mov eax, r11d
mov dword [rsp + 0x20], eax
mov r8d, dword [rsp + 0x50]
mov r9d, ebp
mov rcx, r13
mov edx, 0x57
mov dword [rsp + 0x5c], r11d
call sym.sqlite3VdbeAddOp3
mov eax, dword [rbx + 0x18]
mov r11d, dword [rsp + 0x5c]
test eax, eax
jns 0x14038ca25
mov eax, dword [r13 + 0x90]
sub eax, 1
mov rdx, qword [r13]
lea r15, [0x1407d6d60]
cmp byte [rdx + 0x63], 0
jne 0x14038ca47
cdqe
lea rdx, [rax + rax*2]
mov rax, qword [r13 + 0x88]
lea r15, [rax + rdx*8]
mov rax, qword [r12]
cmp byte [rax + 0x63], 0
jne 0x14038c79b
mov eax, dword [rsp + 0x40]
xor edx, edx
sub eax, r11d
mov r11, qword [r15 + 0x10]
add eax, dword [rsp + 0x48]
add eax, dword [rsp + 0xd8]
mov rcx, qword [r11 + 0x18]
movzx r8d, word [r11 + 6]
mov dword [r15 + 8], eax
mov qword [rsp + 0x48], r11
call sym.memset
mov r11, qword [rsp + 0x48]
mov edx, 0xffffffff
mov rcx, r13
mov r9d, 0xfffffff7
mov r8, r11
call sym.sqlite3VdbeChangeP4
mov r11, qword [rsp + 0x48]
mov rdx, qword [rbx]
mov rcx, r12
mov r8d, dword [rsp + 0x3c]
movzx r9d, word [r11 + 8]
movzx eax, word [r11 + 6]
sub r9d, eax
sub r9d, 1
call dbg.sqlite3KeyInfoFromExprList
xor r9d, r9d
mov edx, 0x10
mov rcx, r13
mov qword [r15 + 0x10], rax
mov r15d, dword [r13 + 0x90]
lea r8d, [r15 + 1]
mov dword [rsp + 0x20], r8d
call sym.sqlite3VdbeAddOp3
mov eax, dword [r12 + 0x44]
mov edx, 0xc
mov rcx, r13
mov dword [rsp + 0x20], 0
lea r9d, [rax - 1]
mov eax, dword [r12 + 0x38]
mov dword [r12 + 0x44], r9d
lea r8d, [rax + 1]
mov dword [rbx + 0x14], r9d
mov dword [r12 + 0x38], r8d
mov dword [rbx + 0x10], r8d
call sym.sqlite3VdbeAddOp3
mov r8d, dword [rbx + 0xc]
xor r9d, r9d
mov rcx, r13
mov dword [rsp + 0x20], 0
mov edx, 0x8e
call sym.sqlite3VdbeAddOp3
test esi, esi
jne 0x14038cc10
mov eax, dword [r13 + 0x90]
mov rcx, qword [r13]
test edi, edi
lea edx, [rax - 1]
cmovs edi, edx
cmp byte [rcx + 0x63], 0
lea rdx, [0x1407d6d60]
jne 0x14038cb78
mov rdx, qword [r13 + 0x88]
movsxd rdi, edi
lea rcx, [rdi + rdi*2]
lea rdx, [rdx + rcx*8]
mov rcx, qword [r12 + 0x10]
mov r9d, dword [rsp + 0x50]
mov dword [rdx + 8], eax
mov r8d, ebp
mov eax, dword [rbx + 8]
mov edx, 0x4c
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov eax, dword [r13 + 0x90]
mov rcx, qword [r13]
test r15d, r15d
lea edx, [rax - 1]
cmovs r15d, edx
cmp byte [rcx + 0x63], 0
lea rdx, [0x1407d6d60]
jne 0x14038cbcd
mov rdx, qword [r13 + 0x88]
movsxd r15, r15d
lea rcx, [r15 + r15*2]
lea rdx, [rdx + rcx*8]
mov edi, dword [rsp + 0x3c]
mov dword [rdx + 8], eax
add edi, ebp
test esi, esi
je 0x14038c731
jmp 0x14038c6b6
mov rax, qword [r13 + 0x88]
movsxd rsi, esi
lea rcx, [rsi + rsi*2]
lea rax, [rax + rcx*8]
jmp 0x14038c798
mov edx, dword [r13 + 0x90]
jmp 0x14038c775
mov r9d, dword [rbx + 0x1c]
mov r8d, esi
mov edx, 0x14
mov rcx, r13
mov dword [rsp + 0x20], 0
call sym.sqlite3VdbeAddOp3
jmp 0x14038cb46
mov dword [rsp + 0x5c], r11d
xor r9d, r9d
mov edx, 0x73
mov dword [rsp + 0x20], 0
mov rcx, r13
call dbg.growOp3
mov r11d, dword [rsp + 0x5c]
mov edi, eax
mov eax, dword [rbx + 8]
jmp 0x14038c9f1
mov dword [rsp + 0x5c], r11d
xor r9d, r9d
mov edx, 0x14
mov dword [rsp + 0x20], 0
jmp 0x14038cc4d