Function at 0x8245c0
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 r14d, dword [r8 + 0x38]
mov r13, qword [rcx + 0x10]
mov rdi, qword [r8 + 0x30]
test r14d, r14d
mov rsi, rcx
mov byte [r8], 1
mov dword [rsp + 0xa8], edx
mov qword [rsp + 0xb0], r8
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x3c], 0
jg 0x824708
jmp 0x824960
mov r12d, dword [rbx]
mov rcx, rsi
mov edx, r12d
call sym.sqlite3GetTempRange
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov rdx, rbx
mov r8d, eax
mov r14d, eax
call dbg.sqlite3ExprCodeExprList
movzx eax, r12b
mov word [rsp + 0x42], ax
mov edx, dword [rdi + 0x14]
test edx, edx
js 0x82466d
test ebp, ebp
jne 0x824657
mov eax, dword [rsi + 0x44]
lea ebp, [rax - 1]
mov dword [rsi + 0x44], ebp
mov edx, dword [rdi + 0x14]
mov dword [rsp + 0x20], r14d
mov r9d, 1
mov r8d, ebp
mov rcx, rsi
call dbg.codeDistinct
mov rax, qword [rdi + 8]
test byte [rax + 4], 0x20
jne 0x8247a0
mov eax, dword [rdi + 0x10]
xor r8d, r8d
mov r9d, r14d
mov edx, 0x9b
mov rcx, r13
mov dword [rsp + 0x20], eax
call dbg.sqlite3VdbeAddOp3
mov rdx, qword [rdi + 8]
mov r8d, 0xfffffff8
mov rcx, r13
call sym.sqlite3VdbeAppendP4
movsxd rax, dword [r13 + 0x90]
test eax, eax
jle 0x8246ca
mov rcx, qword [r13 + 0x88]
lea rax, [rax + rax*2]
lea rax, [rcx + rax*8]
movzx ecx, word [rsp + 0x42]
mov word [rax - 0x16], cx
cmp r12d, 1
je 0x824842
cmp r12d, dword [rsi + 0x28]
jle 0x8246e2
mov dword [rsi + 0x28], r12d
mov dword [rsi + 0x2c], r14d
test ebp, ebp
jne 0x824790
mov rcx, qword [rsp + 0xb0]
add rdi, 0x18
add dword [rsp + 0x3c], 1
mov eax, dword [rsp + 0x3c]
cmp dword [rcx + 0x38], eax
jle 0x824852
mov rax, qword [rdi]
xor ebp, ebp
test byte [rax + 7], 1
mov rbx, qword [rax + 0x20]
je 0x82476d
mov rax, qword [rax + 0x40]
mov r12, qword [rax + 0x48]
mov rax, qword [rsp + 0xb0]
mov ebp, dword [rax + 0x2c]
test ebp, ebp
je 0x824750
mov rax, qword [rdi + 8]
test byte [rax + 4], 0x20
je 0x824750
mov r11d, dword [rsp + 0xa8]
test r11d, r11d
jne 0x824920
nop dword [rax]
mov eax, dword [rsi + 0x44]
mov r9d, 0x10
mov rdx, r12
mov rcx, rsi
lea ebp, [rax - 1]
mov dword [rsi + 0x44], ebp
mov r8d, ebp
call sym.sqlite3ExprIfFalse
test rbx, rbx
jne 0x824610
xor r9d, r9d
xor r14d, r14d
xor r12d, r12d
mov word [rsp + 0x42], r9w
jmp 0x824640
mov edx, ebp
mov rcx, r13
call dbg.sqlite3VdbeResolveLabel
jmp 0x8246ea
add rbx, 8
xor r15d, r15d
test r12d, r12d
jle 0x824914
mov rdx, qword [rbx]
mov rcx, rsi
add r15d, 1
add rbx, 0x20
call dbg.sqlite3ExprCollSeq
test rax, rax
jne 0x8247cd
cmp r12d, r15d
jg 0x8247b0
test rax, rax
mov r10, rax
je 0x824914
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x824803
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x2c]
test eax, eax
mov dword [rsp + 0x44], eax
je 0x824803
mov eax, dword [rsi + 0x38]
add eax, 1
mov dword [rsp + 0x44], eax
mov dword [rsi + 0x38], eax
mov r8d, dword [rsp + 0x44]
xor r9d, r9d
mov rcx, r13
mov edx, 0x51
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x48], r10
call dbg.sqlite3VdbeAddOp3
mov r10, qword [rsp + 0x48]
mov r9d, 0xfffffffe
mov rcx, r13
mov edx, eax
mov r8, r10
call sym.sqlite3VdbeChangeP4
jmp 0x82467b
mov edx, r14d
mov rcx, rsi
call sym.sqlite3ReleaseTempRange.part.182
jmp 0x8246e2
mov edx, dword [rsp + 0x44]
test edx, edx
je 0x824960
mov r8d, dword [rsp + 0x44]
xor r9d, r9d
mov edx, 0x12
mov rcx, r13
mov dword [rsp + 0x20], 0
call dbg.sqlite3VdbeAddOp3
mov ebp, eax
mov rax, qword [rsp + 0xb0]
mov rbx, qword [rax + 0x20]
mov eax, dword [rax + 0x2c]
test eax, eax
jle 0x8248c5
mov r12, qword [rsp + 0xb0]
xor edi, edi
nop word [rax + rax]
cmp qword [rsi + 0x10], 0
je 0x8248b7
mov rdx, qword [rbx + 8]
mov rcx, rsi
mov r8d, dword [rbx + 0x14]
call sym.sqlite3ExprCode.part.660
add edi, 1
add rbx, 0x20
cmp dword [r12 + 0x2c], edi
jg 0x8248a0
mov rax, qword [rsp + 0xb0]
test ebp, ebp
mov byte [rax], 0
je 0x824903
mov eax, dword [r13 + 0x90]
lea edx, [rax - 1]
cmp ebp, edx
je 0x82499a
mov rcx, qword [r13]
test ebp, ebp
cmovs ebp, edx
lea rdx, [0x00ccbc80]
cmp byte [rcx + 0x61], 0
je 0x8249a6
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 rax, qword [rsi]
mov r10, qword [rax + 0x10]
jmp 0x8247d9
mov r10d, dword [rsp + 0x44]
test r10d, r10d
jne 0x824937
mov eax, dword [rsi + 0x38]
add eax, 1
mov dword [rsp + 0x44], eax
mov dword [rsi + 0x38], eax
mov r9d, dword [rsp + 0x44]
mov dword [rsp + 0x20], 0
mov edx, 0x4d
mov rcx, r13
mov r8d, dword [rsp + 0xa8]
call dbg.sqlite3VdbeAddOp3
jmp 0x824750
mov r12d, dword [rsp + 0xa8]
mov rax, qword [rsp + 0xb0]
test r12d, r12d
mov eax, dword [rax + 0x2c]
je 0x82497c
test eax, eax
jne 0x8249c1
mov rdi, qword [rsp + 0xb0]
xor ebp, ebp
test eax, eax
mov rbx, qword [rdi + 0x20]
jg 0x824890
mov byte [rdi], 0
jmp 0x824903
mov dword [r13 + 0x90], ebp
jmp 0x824903
mov rdx, qword [r13 + 0x88]
movsxd rbp, ebp
lea rcx, [rbp + rbp*2]
lea rdx, [rdx + rcx*8]
mov dword [rdx + 8], eax
jmp 0x824903
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x44], eax
jmp 0x82485e