Function at 0x548290
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, 0x78
mov esi, dword [r8 + 0x1c]
mov rax, qword [rsp + 0xe0]
mov r12, qword [rcx + 0x10]
mov dword [rsp + 0x44], esi
mov esi, dword [rcx + 0x44]
mov rbx, r8
mov rbp, rdx
mov qword [rsp + 0x58], rax
mov r13, rcx
lea edi, [rsi - 1]
mov dword [rsp + 0x3c], r9d
lea r9, str.RIGHT_PART_OF
mov rsi, qword [r8]
mov dword [rcx + 0x44], edi
mov dword [rsp + 0x60], edi
movzx edi, byte [rax]
mov eax, dword [rax + 4]
mov byte [rsp + 0x43], dil
mov dword [rsp + 0x6c], eax
mov eax, dword [r8 + 8]
lea r8, str.USE_TEMP_B_TREE_FOR__sORDER_BY
mov dword [rsp + 0x4c], edi
mov rdi, qword [rdx + 0x20]
test eax, eax
lea rax, [0x00734c2e]
cmovle r9, rax
xor edx, edx
call dbg.sqlite3VdbeExplain
mov r9d, dword [rbx + 0x14]
test r9d, r9d
jne 0x548870
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x48], eax
movzx eax, byte [rsp + 0x43]
sub eax, 9
cmp al, 1
jbe 0x54833f
cmp dword [rsp + 0x4c], 0xd
jne 0x548488
mov rax, qword [rsp + 0x58]
cmp dword [rsp + 0x4c], 0xa
mov r14d, dword [rax + 0xc]
je 0x5484f0
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x50], 0
sub eax, 1
mov dword [rsp + 0x68], eax
mov eax, dword [rsi]
sub eax, dword [rbx + 8]
mov dword [rsp + 0x54], eax
lea r15d, [rax + 1]
test byte [rbx + 0x24], 1
je 0x5488c0
mov eax, dword [r13 + 0x38]
mov esi, dword [r13 + 0x34]
mov r11d, dword [rbx + 0x14]
lea ebp, [rax + 1]
lea eax, [rsi + 1]
mov dword [r13 + 0x34], eax
mov eax, dword [rsp + 0x3c]
mov dword [r13 + 0x38], ebp
lea r10d, [rax + r15]
test r11d, r11d
jne 0x548530
mov dword [rsp + 0x20], r10d
mov r9d, ebp
mov r8d, esi
mov edx, 0x79
mov rcx, r12
call dbg.sqlite3VdbeAddOp3
mov r15d, dword [rsp + 0x48]
mov dword [rsp + 0x20], 0
mov edx, 0x22
mov rcx, r12
mov r9d, dword [rsp + 0x44]
mov r8d, r15d
call dbg.sqlite3VdbeAddOp3
mov dword [rsp + 0x20], esi
mov r9d, ebp
mov r8d, r15d
add eax, 1
mov edx, 0x85
mov rcx, r12
mov dword [rsp + 0x64], eax
call dbg.sqlite3VdbeAddOp3
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x3c]
lea r15d, [rax - 1]
test ecx, ecx
jle 0x5485a0
lea edx, [rcx - 1]
lea rax, [rdi + 0x20]
shl rdx, 5
lea rdx, [rdi + rdx + 0x40]
nop dword [rax]
cmp word [rax], 1
adc r15d, 0
add rax, 0x20
cmp rdx, rax
jne 0x548428
movsxd rbp, dword [rsp + 0x68]
jmp 0x548468
sub r9d, 1
lea eax, [r14 + rbp]
mov r8d, esi
mov edx, 0x5e
mov rcx, r12
mov dword [rsp + 0x20], eax
sub rbp, 1
call dbg.sqlite3VdbeAddOp3
test ebp, ebp
js 0x5485b0
mov rax, rbp
shl rax, 5
movzx r9d, word [rdi + rax + 0x20]
test r9w, r9w
jne 0x548440
mov r9d, r15d
sub r15d, 1
jmp 0x548444
movzx ecx, byte [rsp + 0x43]
movzx eax, byte [r13 + 0x1f]
and ecx, 0xfffffffd
test al, al
je 0x5489c0
lea edx, [rax - 1]
movzx r8d, dl
mov byte [r13 + 0x1f], dl
mov r11d, dword [r13 + r8*4 + 0xe8]
mov dword [rsp + 0x50], r11d
cmp cl, 0xc
jne 0x548970
test dl, dl
je 0x5489d4
sub eax, 2
mov dword [rsp + 0x68], 0xffffffff
mov byte [r13 + 0x1f], al
movzx eax, al
mov dword [rsp + 0x3c], 0
mov r14d, dword [r13 + rax*4 + 0xe8]
jmp 0x548366
mov r15d, dword [rbp + 0xc]
test r15d, r15d
je 0x548353
mov r9d, r14d
xor r8d, r8d
mov edx, 0x4b
mov rcx, r12
mov dword [rsp + 0x20], 0
call dbg.sqlite3VdbeAddOp3
mov rax, qword [rsp + 0x58]
mov r14d, dword [rax + 0xc]
jmp 0x548353
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf
mov rcx, r12
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x64], r10d
call dbg.sqlite3VdbeAddOp3
mov r10d, dword [rsp + 0x64]
mov r9d, ebp
mov r8d, esi
mov r15d, eax
mov edx, 0x79
mov rcx, r12
mov dword [rsp + 0x20], r10d
call dbg.sqlite3VdbeAddOp3
test r15d, r15d
je 0x5483c0
mov rcx, qword [r12]
mov edx, dword [r12 + 0x90]
lea rax, [0x007e7180]
cmp byte [rcx + 0x67], 0
je 0x548940
mov dword [rax + 8], edx
jmp 0x5483c0
mov r9d, dword [rsp + 0x68]
test r9d, r9d
jns 0x548439
nop
movzx eax, byte [rsp + 0x43]
sub eax, 0xa
cmp al, 5
ja case.0x5485d1.3
lea rdx, [0x007367d0]
movzx eax, al
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov dword [rsp + 0x20], r14d
mov r9d, dword [rsp + 0x54]
mov r8d, esi
mov rcx, r12
mov edx, 0x5e
call dbg.sqlite3VdbeAddOp3
mov esi, dword [rsp + 0x50]
mov edi, dword [rsp + 0x6c]
mov rcx, r12
mov dword [rsp + 0x20], 0
mov edx, 0x7f
mov r9d, esi
mov r8d, edi
call dbg.sqlite3VdbeAddOp3
mov dword [rsp + 0x20], esi
mov r9d, r14d
mov r8d, edi
mov edx, pe_nt_image_headers64
mov rcx, r12
call dbg.sqlite3VdbeAddOp3
movsxd rax, dword [r12 + 0x90]
test eax, eax
jle case.0x5485d1.0
mov rcx, qword [r12 + 0x88]
lea rax, [rax + rax*2]
mov r8d, 8
lea rax, [rcx + rax*8]
mov word [rax - 0x16], r8w
mov edx, dword [rsp + 0x50]
test edx, edx
je 0x54867c
cmp dword [rsp + 0x4c], 0xb
je 0x548740
test r14d, r14d
jne 0x548960
nop
mov edx, dword [rsp + 0x50]
mov rcx, r13
call sym.sqlite3ReleaseTempReg.part.0
mov edx, dword [rsp + 0x60]
mov rcx, r12
call dbg.sqlite3VdbeResolveLabel
test byte [rbx + 0x24], 1
mov r9d, dword [rsp + 0x64]
mov dword [rsp + 0x20], 0
mov r8d, dword [rsp + 0x48]
je 0x548838
mov edx, 0x25
mov rcx, r12
call dbg.sqlite3VdbeAddOp3
mov r8d, dword [rbx + 0x10]
test r8d, r8d
jne 0x548852
mov edx, dword [rsp + 0x44]
mov rcx, r12
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp dbg.sqlite3VdbeResolveLabel
mov edi, dword [rsp + 0x50]
mov rax, qword [rsp + 0x58]
mov r8d, r14d
mov rcx, r12
mov r15d, dword [rsp + 0x3c]
mov edx, 0x61
mov rsi, qword [rax + 0x18]
mov dword [rsp + 0x20], edi
mov r9d, r15d
call dbg.sqlite3VdbeAddOp3
mov r9d, r15d
mov r8, rsi
mov rcx, r12
mov edx, eax
call sym.sqlite3VdbeChangeP4
mov dword [rsp + 0x28], r15d
mov r9d, edi
mov rcx, r12
mov dword [rsp + 0x20], r14d
mov r8d, dword [rsp + 0x6c]
mov edx, 0x8a
call dbg.sqlite3VdbeAddOp4Int
test edi, edi
je 0x54867c
cmp dword [rsp + 0x3c], 1
je 0x548a14
mov eax, dword [rsp + 0x3c]
cmp eax, dword [r13 + 0x28]
jle 0x548670
mov dword [r13 + 0x28], eax
mov dword [r13 + 0x2c], r14d
jmp 0x548670
mov rax, qword [rsp + 0x58]
mov esi, dword [rax + 8]
movzx eax, byte [r13 + 0x1f]
test al, al
je 0x548990
sub eax, 1
mov byte [r13 + 0x1f], al
movzx eax, al
mov edi, dword [r13 + rax*4 + 0xe8]
mov r9d, dword [rsp + 0x3c]
mov eax, esi
mov dword [rsp + 0x20], edi
mov edx, 0x61
shr eax, 0x1f
mov rcx, r12
sub r9d, eax
lea r8d, [rax + r14]
call dbg.sqlite3VdbeAddOp3
test esi, esi
js 0x5489f5
mov dword [rsp + 0x28], esi
mov r8d, dword [rsp + 0x6c]
mov r9d, edi
mov rcx, r12
mov dword [rsp + 0x20], r14d
mov edx, 0x8a
call dbg.sqlite3VdbeAddOp4Int
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x54867c
test r14d, r14d
je 0x548670
jmp 0x548960
cmp dword [rsp + 0x4c], 9
mov dword [rsp + 0x20], 0
je 0x5489a0
mov rax, qword [rsp + 0x58]
xor r9d, r9d
mov edx, 0xc
mov rcx, r12
mov r8d, dword [rax + 4]
call dbg.sqlite3VdbeAddOp3
jmp case.0x5485d1.0
mov edx, 0x27
mov rcx, r12
call dbg.sqlite3VdbeAddOp3
mov r8d, dword [rbx + 0x10]
test r8d, r8d
je 0x5486be
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0x43
mov rcx, r12
call dbg.sqlite3VdbeAddOp3
jmp 0x5486be
mov dword [rsp + 0x20], 0
mov r8d, dword [rbx + 0x10]
mov rcx, r12
mov edx, 0xa
call dbg.sqlite3VdbeAddOp3
mov r9d, dword [rsp + 0x44]
mov rcx, r12
xor r8d, r8d
mov dword [rsp + 0x20], 0
mov edx, 9
call dbg.sqlite3VdbeAddOp3
mov edx, dword [rbx + 0x14]
mov rcx, r12
call dbg.sqlite3VdbeResolveLabel
jmp 0x548321
mov esi, dword [rsp + 0x48]
mov dword [rsp + 0x20], 0
mov edx, 0x23
mov rcx, r12
mov r9d, dword [rsp + 0x44]
mov r8d, esi
call dbg.sqlite3VdbeAddOp3
mov edx, dword [rbp + 0xc]
mov dword [rsp + 0x54], r15d
add eax, 1
mov dword [rsp + 0x64], eax
test edx, edx
jle 0x548400
mov r8d, dword [rsp + 0x60]
mov rcx, r12
call sym.codeOffset.part.0
mov r10d, dword [rbp + 0xc]
test r10d, r10d
jle 0x548a24
mov dword [rsp + 0x20], 0
mov r8d, dword [rbp + 8]
mov r9d, 0xffffffff
mov rcx, r12
mov edx, 0x56
call dbg.sqlite3VdbeAddOp3
jmp 0x548400
mov rax, qword [r12 + 0x88]
movsxd r11, r15d
lea rcx, [r11 + r11*2]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
jmp 0x5483c0
mov edx, r14d
mov rcx, r13
call sym.sqlite3ReleaseTempReg.part.0
jmp 0x548670
mov r11d, dword [rsp + 0x3c]
mov rcx, r13
mov edx, r11d
call sym.sqlite3GetTempRange
mov r14d, eax
lea eax, [r11 - 1]
mov dword [rsp + 0x68], eax
jmp 0x548366
mov eax, dword [r13 + 0x38]
lea edi, [rax + 1]
mov dword [r13 + 0x38], edi
jmp 0x548797
mov rax, qword [rsp + 0x58]
mov r9d, dword [rsp + 0x3c]
mov edx, 0x54
mov rcx, r12
mov r8d, dword [rax + 0xc]
call dbg.sqlite3VdbeAddOp3
jmp 0x5487df
mov eax, dword [r13 + 0x38]
add eax, 1
mov dword [rsp + 0x50], eax
mov dword [r13 + 0x38], eax
cmp cl, 0xc
jne 0x548970
mov eax, dword [r13 + 0x38]
mov dword [rsp + 0x68], 0xffffffff
mov dword [rsp + 0x3c], 0
lea r14d, [rax + 1]
mov dword [r13 + 0x38], r14d
jmp 0x548366
mov dword [rsp + 0x20], r14d
mov r8d, dword [rsp + 0x6c]
mov r9d, edi
mov rcx, r12
mov edx, pe_nt_image_headers64
call dbg.sqlite3VdbeAddOp3
jmp 0x5487df
mov edx, r14d
mov rcx, r13
call sym.sqlite3ReleaseTempRange.part.0
jmp 0x548670
mov esi, dword [rsp + 0x48]
jmp 0x548400