Function at 0x5ae260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea r12, [rsp - 0x38]
cmp r12, qword [r14 + 0x10]
jbe 0x5ae8f5
push rbp
mov rbp, rsp
sub rsp, 0xb0
movq qword [rsp + 0xa8], xmm15
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0xd0], rcx
mov byte [rsp + 0x2f], 0
mov dword [rsp + 0x30], 0
mov ebx, 0x20
call sym.modernc.org_libc._TLS_.Alloc
lea rcx, [sym.modernc.org_sqlite_lib._resolveCompoundOrderBy.deferwrap1]
mov qword [rsp + 0x88], rcx
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0x90], rcx
lea rdx, [rsp + 0x88]
mov qword [rsp + 0xa8], rdx
mov byte [rsp + 0x2f], 1
mov rdx, qword [rsp + 0xd0]
mov rsi, rdx
mov rdx, qword [rdx + 0x48]
test rdx, rdx
je 0x5ae36c
mov rbx, qword [rsp + 0xc8]
mov r8, rbx
mov r8, qword [r8]
mov r9, rdx
mov r10d, dword [rdx]
lea r11, [r8 + 0x90]
cmp dword [r11], r10d
jl 0x5ae325
xor edx, edx
nop dword [rax]
jmp 0x5ae3b3
mov rdx, qword [0x00a30e10]
add rdx, 0x223f
mov rax, rcx
mov rcx, rdx
xor edi, edi
nop dword [rax + rax]
call sym.modernc.org_sqlite_lib._sqlite3ErrorMsg
mov dword [rsp + 0x30], 1
mov byte [rsp + 0x2f], 0
mov rdx, qword [rsp + 0xa8]
mov rsi, qword [rdx]
call rsi
mov eax, dword [rsp + 0x30]
add rsp, 0xb0
pop rbp
ret
mov dword [rsp + 0x30], 0
mov byte [rsp + 0x2f], 0
mov rdx, qword [rsp + 0xa8]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x30]
add rsp, 0xb0
pop rbp
ret
movsxd r11, edx
shl r11, 5
lea r11, [r11 + r10]
lea r11, [r11 + 0x1c]
movzx r12d, word [r11]
and r12d, 0xfffffffb
mov word [r11], r12w
inc edx
mov r9, r10
mov r10, r9
cmp dword [r9], edx
jg 0x5ae393
mov r9, rsi
mov qword [rsi + 0x58], 0
jmp 0x5ae3d0
mov qword [r9 + 0x58], rsi
mov r9, qword [rsi + 0x50]
mov rsi, r9
mov r9, qword [r9 + 0x50]
test r9, r9
jne 0x5ae3c8
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x80], r10
mov qword [rsp + 0x50], r8
mov edx, 1
jmp 0x5ae400
mov rsi, qword [r9 + 0x58]
mov r10, r12
mov edx, edi
nop
test rsi, rsi
je 0x5ae427
test edx, edx
je 0x5ae427
mov qword [rsp + 0x78], rsi
mov r9, rsi
mov rsi, qword [rsi + 0x20]
mov qword [rsp + 0x40], rsi
lea r11, [r10 + 8]
xor edx, edx
xor edi, edi
jmp 0x5ae526
xor edx, edx
jmp 0x5ae430
inc edx
mov r10, rsi
mov rsi, r10
cmp dword [r10], edx
jle 0x5ae4f6
movsxd r8, edx
shl r8, 5
lea r8, [r8 + rsi]
lea r8, [r8 + 0x1c]
movzx r8d, word [r8]
and r8d, 4
shr r8w, 2
movzx r8d, r8w
nop dword [rax]
test r8d, r8d
jne 0x5ae42b
movups xmmword [rsp + 0x98], xmm15
add rax, 0x10
inc edx
mov dword [rsp + 0x3c], edx
lea rdx, [0x00728b40]
mov qword [rsp + 0x98], rdx
lea rdx, [rsp + 0x3c]
mov qword [rsp + 0xa0], rdx
lea rbx, [rsp + 0x98]
mov ecx, 1
mov rdi, rcx
call sym.modernc.org_libc.VaList
mov rcx, qword [0x00a30e10]
add rcx, 0x2267
mov rbx, qword [rsp + 0xc8]
mov rdi, rax
mov rax, qword [rsp + 0xc0]
call sym.modernc.org_sqlite_lib._sqlite3ErrorMsg
mov dword [rsp + 0x30], 1
mov byte [rsp + 0x2f], 0
mov rdx, qword [rsp + 0xa8]
mov rsi, qword [rdx]
call rsi
mov eax, dword [rsp + 0x30]
add rsp, 0xb0
pop rbp
ret
mov dword [rsp + 0x30], 0
mov byte [rsp + 0x2f], 0
mov rdx, qword [rsp + 0xa8]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x30]
add rsp, 0xb0
pop rbp
ret
inc edx
lea r11, [r10 + 0x20]
mov r10, r12
mov r12, r10
cmp dword [r10], edx
jle 0x5ae3f5
mov r10, rax
mov dword [r10], 0xffffffff
lea r10, [r11 + 0x14]
mov r13, r10
movzx r10d, word [r10]
and r10d, 4
shr r10w, 2
movzx r10d, r10w
test r10d, r10d
je 0x5ae55e
mov r10, r11
jmp 0x5ae51d
mov r10, r11
mov r11, qword [r11]
jmp 0x5ae76d
test r15, r15
jmp 0x5ae571
test r15, r15
jne 0x5ae57a
mov r8, qword [rsp + 0x50]
jmp 0x5ae51d
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x60], r10
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x34], edi
mov rbx, r15
mov rdx, rax
mov rax, rcx
mov rcx, rdx
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3ExprIsInteger
test eax, eax
je 0x5ae5d3
mov rax, qword [rsp + 0x58]
mov rcx, rax
mov r9d, dword [rax]
test r9d, r9d
jle 0x5ae7b8
mov r10, qword [rsp + 0x40]
mov r11, r10
cmp dword [r10], r9d
jge 0x5ae6d9
jmp 0x5ae7bd
mov rax, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x68]
call sym.modernc.org_sqlite_lib._resolveAsName
mov rcx, qword [rsp + 0x58]
mov rdx, rcx
mov dword [rdx], eax
mov rax, rcx
cmp dword [rcx], 0
jne 0x5ae6d1
mov rax, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
xor edi, edi
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3ExprDup
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
cmp byte [rdx + 0x67], 0
jne 0x5ae6b1
mov qword [rsp + 0x48], rax
mov rbx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x78]
mov rdi, rax
mov rax, qword [rsp + 0xc0]
call sym.modernc.org_sqlite_lib._resolveOrderByTermToExprList
mov rcx, qword [rsp + 0x58]
mov rdx, rcx
mov dword [rdx], eax
mov rbx, qword [rsp + 0xc8]
mov rdx, rbx
movzx edx, byte [rdx + 0x134]
cmp edx, 2
jl 0x5ae6a4
mov rax, rcx
cmp dword [rcx], 0
jle 0x5ae6a7
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x68]
call sym.modernc.org_sqlite_lib._resolveOrderByTermToExprList
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0xc8]
jmp 0x5ae6a7
mov rax, rcx
mov rax, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
nop
test rax, rax
je 0x5ae6cc
mov rcx, rax
mov rax, qword [rsp + 0xc0]
call sym.modernc.org_sqlite_lib._sqlite3ExprDeleteNN
mov rbx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x58]
mov rcx, rax
mov r11, qword [rsp + 0x40]
mov rax, rcx
cmp dword [rcx], 0
nop
jle 0x5ae75a
mov rsi, qword [rsp + 0xc8]
mov r8, rsi
movzx esi, byte [rsi + 0x134]
cmp esi, 2
jge 0x5ae8b0
mov rax, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0x50]
mov ecx, 0x9b
xor edi, edi
call sym.modernc.org_sqlite_lib._sqlite3Expr
test rax, rax
je 0x5ae816
lea rdx, [rax + 4]
or dword [rdx], 0x800
mov rdx, rax
mov rsi, qword [rsp + 0x58]
mov rdi, rsi
mov esi, dword [rsi]
mov dword [rax + 8], esi
mov rsi, qword [rsp + 0x60]
mov r8, rsi
mov r9, qword [rsi]
mov rcx, qword [rsp + 0x68]
cmp rcx, r9
jne 0x5ae8ce
mov qword [rsi], rdx
jmp 0x5ae872
mov ecx, 1
nop
jmp 0x5ae83d
mov r11, r8
mov r8, qword [rsp + 0x50]
test r11, r11
je 0x5ae51d
mov r15, r11
mov r8d, dword [r11 + 4]
nop dword [rax]
test r8d, 0x82000
je 0x5ae56e
bt r8d, 0x13
jae 0x5ae7a4
lea r8, [r15 + 0x20]
mov r8, qword [r8]
add r8, 8
mov r8, qword [r8]
jmp 0x5ae765
movzx r8d, byte [r11]
cmp r8d, 0x71
jne 0x5ae569
mov r8, qword [r11 + 0x10]
jmp 0x5ae765
mov r11, qword [rsp + 0x40]
mov rcx, qword [0x00a30e10]
add rcx, 0x2261
mov edi, dword [rsp + 0x38]
inc edi
mov esi, dword [r11]
mov rax, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xc8]
mov r8, qword [rsp + 0x68]
call sym.modernc.org_sqlite_lib._resolveOutOfRangeError
mov dword [rsp + 0x30], 1
mov byte [rsp + 0x2f], 0
mov rdx, qword [rsp + 0xa8]
mov r9, qword [rdx]
call r9
mov eax, dword [rsp + 0x30]
add rsp, 0xb0
pop rbp
ret
mov dword [rsp + 0x30], 1
mov byte [rsp + 0x2f], 0
mov rdx, qword [rsp + 0xa8]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x30]
add rsp, 0xb0
pop rbp
ret
mov edx, dword [rsp + 0x38]
mov rbx, qword [rsp + 0xc8]
mov rsi, r11
mov r8, qword [rsp + 0x50]
mov r9, qword [rsp + 0x78]
mov r10, qword [rsp + 0x60]
mov r12, qword [rsp + 0x80]
mov edi, ecx
mov rcx, qword [rsp + 0xc0]
jmp 0x5ae51d
lea rdx, [r8 + 0x18]
mov qword [rsp + 0x68], rdx
nop
mov rax, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0x50]
call sym.modernc.org_sqlite_lib._sqlite3ExprDeleteNN
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x58]
mov rcx, rax
mov esi, dword [rax]
mov word [rdx], si
mov rax, rcx
mov r8, qword [rsp + 0xc8]
mov r11, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x70]
movzx r9d, word [rsi]
or r9d, 4
nop
mov word [rsi], r9w
mov ecx, dword [rsp + 0x34]
jmp 0x5ae83d
mov r9, r10
mov rsi, qword [r9 + 0x10]
mov r10, rsi
movzx esi, byte [rsi]
cmp esi, 0x71
je 0x5ae8cb
mov qword [r9 + 0x10], rdx
jmp 0x5ae872
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp sym.modernc.org_sqlite_lib._resolveCompoundOrderBy