Function at 0x7ef1e0
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, 0xd8
mov rax, qword [rcx]
mov qword [rsp + 0xa0], rax
mov rax, qword [rax]
mov r13, rcx
mov dword [rsp + 0xbc], edx
mov word [rsp + 0x66], dx
mov qword [rsp + 0xa8], rax
movzx eax, byte [rcx + 0x40]
cmp eax, 1
mov byte [rsp + 0xbb], al
mov dword [rsp + 0x8c], eax
jle 0x7ef9c0
cmp eax, 2
setne dl
movzx eax, dl
movzx ebx, dl
lea eax, [rax + rax*4 + 5]
lea rbx, [rbx + rbx*4 + 5]
mov dword [rsp + 0x4c], eax
cmp word [rsp + 0xbc], 0
mov rdx, qword [r13 + 0x10]
je 0x7ef26c
test rdx, rdx
je 0x7ef26c
movsxd rsi, dword [rdx]
mov dword [rsp + 0x60], esi
lea ecx, [rsi + rsi]
jmp 0x7ef278
xor ecx, ecx
xor esi, esi
mov dword [rsp + 0x60], 0
movzx edi, byte [rsp + 0xbb]
lea rdx, [rdi + 4]
imul edx, eax
shl edx, 4
add edx, ecx
mov rcx, qword [rsp + 0xa8]
movsxd rdx, edx
call sym.sqlite3DbMallocRawNN
test rax, rax
mov rdx, rax
mov qword [rsp + 0xb0], rax
je 0x7efb44
lea r10, [rdi*8]
mov rcx, rbx
shl rcx, 5
mov qword [rsp + 0x98], r10
lea rax, [rax + rcx]
add rcx, rax
mov qword [rsp + 0x90], rax
mov qword [rax], 0
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0
mov eax, dword [rsp + 0x4c]
lea r8d, [rax + rax - 1]
mov rax, rdx
mov r9, r8
add r8, 1
shl r8, 5
add r8, rdx
mov rdx, rcx
mov qword [rax + 0x18], rdx
add rax, 0x20
add rdx, r10
cmp r8, rax
jne 0x7ef312
movsxd rax, r9d
mov edi, dword [rsp + 0x60]
add rax, 1
imul rax, qword [rsp + 0x98]
add rax, rcx
test edi, edi
mov qword [rsp + 0x78], rax
jne 0x7ef9d7
mov rdi, qword [rsp + 0xa0]
mov eax, 0x30
mov qword [rsp + 0x78], 0
cmp dword [rdi + 0xc4], 0x30
cmovbe eax, dword [rdi + 0xc4]
mov rdi, qword [rsp + 0x90]
mov word [rdi + 0x10], ax
mov ebx, dword [rsp + 0x8c]
mov r15, qword [rsp + 0x90]
test ebx, ebx
je 0x7ef8a1
mov r15, qword [rsp + 0xb0]
xor r11d, r11d
xor ebp, ebp
mov qword [rsp + 0x80], 0
mov r12d, 1
mov word [rsp + 0x74], r11w
mov dword [rsp + 0x88], 0
mov qword [rsp + 0x120], r13
mov eax, dword [rsp + 0x80]
test r12d, r12d
mov dword [rsp + 0x70], eax
je 0x7ef69f
mov rax, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x90]
shl rax, 3
mov qword [rsp + 0x58], rax
lea eax, [r12 - 1]
xor r12d, r12d
add rax, 1
shl rax, 5
add rax, rdi
mov qword [rsp + 0x68], rax
movzx eax, word [rsp + 0x66]
sub eax, 0x32
mov word [rsp + 0xb8], ax
nop word [rax + rax]
mov rax, qword [rsp + 0x120]
mov rsi, qword [rax + 0x58]
test rsi, rsi
je 0x7ef690
movzx eax, word [rsp + 0x66]
sub eax, 0xa
mov word [rsp + 0x76], ax
jmp 0x7ef451
mov rsi, qword [rsi + 0x40]
test rsi, rsi
je 0x7ef690
movzx r11d, byte [rdi + 0x16]
mov qword [rsp + 0xc8], 0
mov rbx, qword [rdi]
mov rax, rbx
not rax
test qword [rsi], rax
jne 0x7ef444
mov r13, qword [rsi + 8]
test rbx, r13
jne 0x7ef444
test byte [rsi + 0x29], 0x40
movzx r10d, word [rdi + 0x10]
je 0x7ef48b
cmp r10w, 2
jle 0x7ef444
movzx edx, word [rsi + 0x14]
or rbx, r13
movsx ecx, word [rsi + 0x12]
add edx, r10d
movsx edx, dx
call sym.sqlite3LogEstAdd
movsx edx, word [rdi + 0x14]
movsx ecx, ax
call sym.sqlite3LogEstAdd
add r10w, word [rsi + 0x16]
test r11b, r11b
mov r14d, eax
js 0x7ef620
mov rax, qword [rdi + 8]
mov qword [rsp + 0xc8], rax
movsx eax, r11b
cmp eax, dword [rsp + 0x60]
jge 0x7ef673
mov rcx, qword [rsp + 0x78]
movsx rdx, r11b
lea r9, [rcx + rdx*2]
movsx edx, word [r9]
test dx, dx
je 0x7ef744
movsx ecx, r14w
mov dword [rsp + 0x50], r10d
call sym.sqlite3LogEstAdd
test r12d, r12d
mov edx, r14d
mov r10d, dword [rsp + 0x50]
lea r14d, [rax + 5]
je 0x7ef680
lea eax, [r12 - 1]
mov r9, r15
add rax, 1
shl rax, 5
add rax, r15
jmp 0x7ef53d
add r9, 0x20
cmp r9, rax
je 0x7ef6d5
cmp qword [r9], rbx
jne 0x7ef530
mov ecx, r11d
xor cl, byte [r9 + 0x16]
js 0x7ef530
cmp word [r9 + 0x12], r14w
jl 0x7ef444
je 0x7ef723
mov rax, qword [rdi]
mov qword [rsp + 0x50], r9
or rax, qword [rsi + 8]
mov rbx, qword [rsp + 0x58]
mov rcx, qword [r9 + 0x18]
mov qword [r9], rax
mov rax, qword [rsp + 0xc8]
mov word [r9 + 0x14], dx
mov r8, rbx
mov byte [r9 + 0x16], r11b
mov rdx, qword [rdi + 0x18]
mov word [r9 + 0x10], r10w
mov qword [r9 + 8], rax
mov word [r9 + 0x12], r14w
call sym.memcpy
mov r9, qword [rsp + 0x50]
cmp r12d, dword [rsp + 0x4c]
mov rax, qword [r9 + 0x18]
mov qword [rax + rbx], rsi
jl 0x7ef444
mov r8d, dword [rsp + 0x4c]
lea rax, [r15 + 0x20]
movzx r9d, word [r15 + 0x10]
movzx ebp, word [r15 + 0x12]
cmp r8d, 1
mov word [rsp + 0x74], r9w
je 0x7ef817
xor r10d, r10d
mov edx, 1
jmp 0x7ef5fe
movzx r9d, word [rax + 0x14]
mov ebp, ecx
mov r10d, edx
add edx, 1
add rax, 0x20
cmp r8d, edx
je 0x7ef710
movzx ecx, word [rax + 0x12]
cmp cx, bp
jg 0x7ef5e4
jne 0x7ef5ee
movzx r11d, word [rax + 0x14]
cmp r11w, r9w
jle 0x7ef5ee
mov r9d, r11d
jmp 0x7ef5e9
mov rax, qword [rsp + 0x120]
mov r8, rdi
mov dword [rsp + 0x50], r10d
mov rdx, qword [rax + 0x10]
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x120]
movzx r9d, word [rax + 0x3c]
mov rcx, rax
call dbg.wherePathSatisfiesOrderBy
mov r10d, dword [rsp + 0x50]
test al, al
mov r11d, eax
jns 0x7ef4ca
lea edx, [r14 - 2]
test r12d, r12d
jne 0x7ef515
movsxd r9, r12d
add r12d, 1
jmp 0x7ef6fb
add rdi, 0x20
cmp rdi, qword [rsp + 0x68]
jne 0x7ef420
add qword [rsp + 0x80], 1
mov rax, qword [rsp + 0x80]
cmp dword [rsp + 0x8c], eax
jle 0x7ef827
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x90], r15
mov r15, rax
jmp 0x7ef3c5
cmp dword [rsp + 0x4c], r12d
jg 0x7ef680
cmp r14w, bp
jg 0x7ef444
jne 0x7ef6f3
cmp dx, word [rsp + 0x74]
jge 0x7ef444
movsxd r9, dword [rsp + 0x88]
shl r9, 5
add r9, r15
jmp 0x7ef55c
mov dword [rsp + 0x88], r10d
mov word [rsp + 0x74], r9w
jmp 0x7ef444
cmp word [r9 + 0x10], r10w
jl 0x7ef444
jne 0x7ef55c
cmp word [r9 + 0x14], dx
jg 0x7ef55c
jmp 0x7ef444
mov ecx, dword [rsp + 0x60]
mov edx, ecx
sub edx, eax
imul eax, edx, 0x64
cdq
idiv ecx
cmp eax, 7
movsxd rdx, eax
jg 0x7ef7f2
xor eax, eax
cmp rdx, 1
jbe 0x7ef790
mov eax, 0x1e
jmp 0x7ef772
mov eax, ecx
lea ecx, [rax - 0xa]
add rdx, rdx
cmp rdx, 7
jbe 0x7ef770
lea rcx, [0x00c57fe0]
and edx, 7
movzx edx, word [rcx + rdx*2]
lea eax, [rax + rdx - 0xa]
movzx ecx, word [rsp + 0xb8]
lea r8d, [rcx + rax]
mov rax, qword [rsp + 0x120]
movzx ecx, word [rax + 0x3c]
test ch, 0x40
je 0x7ef7b8
movzx eax, word [rax + 0x3e]
cmp word [rsp + 0x66], ax
jg 0x7ef7ca
and ch, 1
je 0x7ef810
cmp word [rsp + 0x66], 0xa
jle 0x7ef7e5
movzx eax, word [rsp + 0x76]
cmp ax, 0xa
jle 0x7ef7e5
movsx ecx, ax
mov dword [rsp + 0x50], r10d
call sym.estLog.part.554
mov r10d, dword [rsp + 0x50]
add r8d, eax
movsx edx, r8w
mov word [r9], dx
jmp 0x7ef4f2
bsr rax, rdx
mov ecx, 0x3c
xor rax, 0x3f
sub ecx, eax
lea eax, [rcx + rcx*4]
shr rdx, cl
lea eax, [rax + rax + 0x28]
jmp 0x7ef77e
movzx eax, word [rsp + 0x66]
jmp 0x7ef7ca
mov dword [rsp + 0x88], 0
jmp 0x7ef444
test r12d, r12d
mov r13, qword [rsp + 0x120]
je 0x7efb11
cmp r12d, 1
je 0x7ef866
lea edx, [r12 - 2]
lea rax, [r15 + 0x20]
shl rdx, 5
lea rdx, [r15 + rdx + 0x40]
movzx edi, word [rax + 0x12]
cmp word [r15 + 0x12], di
cmovg r15, rax
add rax, 0x20
cmp rdx, rax
jne 0x7ef850
mov r8, qword [r15 + 0x18]
lea rdx, [r13 + 0x364]
xor ecx, ecx
mov rax, qword [r8 + rcx*8]
add rdx, 0x60
add rcx, 1
mov qword [rdx - 0x14], rax
movzx eax, byte [rax + 0x10]
mov byte [rdx - 0x30], al
imul rax, rax, 0x70
add rax, qword [r13 + 8]
mov eax, dword [rax + 0x4c]
mov dword [rdx - 0x60], eax
cmp dword [rsp + 0x8c], ecx
jg 0x7ef873
movzx eax, word [r13 + 0x3c]
and ax, 0x180
cmp ax, 0x100
je 0x7ef93a
movzx eax, byte [r13 + 0x44]
mov rdx, qword [r13 + 0x10]
and eax, 0xfffffffb
test rdx, rdx
mov byte [r13 + 0x44], al
je 0x7ef905
movzx r8d, word [r13 + 0x3c]
movsx ecx, byte [r15 + 0x16]
test r8b, 0x80
je 0x7efa27
cmp ecx, dword [rdx]
je 0x7efb4e
test r8w, 0x200
je 0x7ef905
movsx eax, byte [r13 + 0x41]
cmp eax, dword [rdx]
jne 0x7ef905
mov eax, dword [rsp + 0x8c]
test eax, eax
jne 0x7efb58
movzx eax, word [r15 + 0x10]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
mov word [r13 + 0x48], ax
call sym.sqlite3DbFreeNN
xor eax, eax
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [r13 + 0x43], 0
jne 0x7ef8b4
cmp word [rsp + 0xbc], 0
je 0x7ef8b4
mov rdx, qword [r13 + 0x18]
mov r9d, pe_nt_image_headers64
mov r8, r15
mov rcx, r13
lea rax, [rsp + 0xc8]
mov rdi, qword [rsp + 0x98]
mov qword [rsp + 0x30], rax
mov rax, qword [r15 + 0x18]
mov rax, qword [rax + rdi - 8]
mov qword [rsp + 0x28], rax
movzx eax, byte [rsp + 0xbb]
sub eax, 1
movzx eax, ax
mov dword [rsp + 0x20], eax
call dbg.wherePathSatisfiesOrderBy
mov rdx, qword [r13 + 0x18]
movsx eax, al
cmp dword [rdx], eax
jne 0x7ef8b4
mov byte [r13 + 0x43], 2
jmp 0x7ef8b4
mov eax, 1
mov ebx, 1
mov dword [rsp + 0x4c], 1
jmp 0x7ef24c
lea r8, [rsi + rsi]
xor edx, edx
mov rcx, rax
call sym.memset
mov rdi, qword [rsp + 0xa0]
mov eax, 0x30
mov esi, dword [rsp + 0x8c]
cmp dword [rdi + 0xc4], 0x30
cmovbe eax, dword [rdi + 0xc4]
test esi, esi
mov rdi, qword [rsp + 0x90]
mov word [rdi + 0x10], ax
mov eax, 0xffffffff
cmove eax, dword [rsp + 0x60]
mov byte [rdi + 0x16], al
jmp 0x7ef376
mov byte [r13 + 0x41], cl
mov r9, qword [r15 + 8]
test cl, cl
mov qword [r13 + 0x68], r9
jle 0x7efa67
mov r9d, dword [rsp + 0x8c]
test r9d, r9d
je 0x7ef8e5
cmp cl, 1
jne 0x7ef8e5
test r8b, 3
je 0x7ef8e5
or eax, 4
mov byte [r13 + 0x44], al
jmp 0x7ef8e5
mov r10d, dword [rsp + 0x8c]
mov byte [r13 + 0x41], 0
test r10d, r10d
je 0x7ef905
mov rax, qword [r15 + 0x18]
mov rdi, qword [rsp + 0x98]
mov rcx, qword [rax + rdi - 8]
mov eax, dword [rcx + 0x28]
test ah, 0x10
jne 0x7ef8e5
and eax, 0x104
cmp eax, 0x104
je 0x7ef8e5
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x28], rcx
mov r9d, 0x800
mov r8, r15
mov qword [rsp + 0x30], rax
mov rcx, r13
movzx eax, byte [rsp + 0xbb]
mov qword [rsp + 0xc8], 0
sub eax, 1
movzx eax, ax
mov dword [rsp + 0x20], eax
call dbg.wherePathSatisfiesOrderBy
mov rdx, qword [r13 + 0x10]
movsx eax, al
cmp dword [rdx], eax
jne 0x7efb07
mov rax, qword [rsp + 0xc8]
or byte [r13 + 0x44], 4
mov qword [r13 + 0x68], rax
movzx r8d, word [r13 + 0x3c]
jmp 0x7ef8e5
mov rcx, qword [rsp + 0xa0]
lea rdx, str.no_query_solution
call dbg.sqlite3ErrorMsg
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
call sym.sqlite3DbFreeNN
mov eax, 1
jmp 0x7ef926
mov eax, 7
jmp 0x7ef926
mov byte [r13 + 0x43], 2
jmp 0x7ef8e5
lea rax, [rsp + 0xc8]
mov rdi, qword [rsp + 0x98]
xor r9d, r9d
mov r8, r15
mov qword [rsp + 0x30], rax
mov rax, qword [r15 + 0x18]
mov rcx, r13
mov qword [rsp + 0xc8], 0
mov rax, qword [rax + rdi - 8]
mov qword [rsp + 0x28], rax
movzx eax, byte [rsp + 0xbb]
sub eax, 1
movzx eax, ax
mov dword [rsp + 0x20], eax
call dbg.wherePathSatisfiesOrderBy
mov rdx, qword [r13 + 0x10]
movsx eax, al
cmp dword [rdx], eax
jne 0x7ef905
mov rax, qword [rsp + 0xc8]
or byte [r13 + 0x44], 8
mov qword [r13 + 0x68], rax
jmp 0x7ef905