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

Disassembly:
lea r12, [rsp - 0x28]
cmp r12, qword [r14 + 0x10]
jbe 0x57b109
push rbp
mov rbp, rsp
sub rsp, 0xa0
movq qword [rsp + 0x98], xmm15
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0xc0], rcx
mov byte [rsp + 0xc8], dil
mov byte [rsp + 0xc9], sil
mov qword [rsp + 0xd0], r8
mov qword [rsp + 0xd8], r9
mov byte [rsp + 0x2b], 0
mov dword [rsp + 0x30], 0
mov ebx, 0x50
call sym.modernc.org_libc._TLS_.Alloc
mov qword [rsp + 0x50], rax
lea rcx, [sym.modernc.org_sqlite_lib._valueFromFunction.deferwrap1]
mov qword [rsp + 0x78], rcx
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x80], rcx
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x98], rdx
mov byte [rsp + 0x2b], 1
mov rdx, qword [rsp + 0xc0]
lea rsi, [rdx + 0x20]
mov rsi, qword [rsi]
mov qword [rsp + 0x48], rsi
test rsi, rsi
je 0x57acc4
mov r10d, dword [rsi]
jmp 0x57acc7
xor r10d, r10d
mov dword [rsp + 0x34], r10d
add rdx, 8
mov rdx, qword [rdx]
mov rax, rcx
mov rbx, qword [rsp + 0xb8]
mov rcx, rdx
mov edi, r10d
movzx esi, byte [rsp + 0xc8]
xor r8d, r8d
call sym.modernc.org_sqlite_lib._sqlite3FindFunction
mov rdx, rax
mov r9d, dword [rax + 4]
nop dword [rax + rax]
test r9d, 0x2800
je 0x57ad71
test r9d, 0x8020
jne 0x57ad71
mov qword [rsp + 0x68], rdx
mov rsi, qword [rsp + 0x48]
nop dword [rax]
test rsi, rsi
jne 0x57ad2c
xor eax, eax
jmp 0x57ae1d
mov edx, dword [rsp + 0x34]
movsxd rcx, edx
shl rcx, 3
mov rax, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0xb8]
call sym.modernc.org_sqlite_lib._sqlite3DbMallocZero
test rax, rax
jne 0x57ad68
mov r8, qword [rsp + 0xd8]
mov rcx, rax
xor edi, edi
mov eax, 7
jmp 0x57b04c
mov qword [rsp + 0x58], rax
xor ecx, ecx
jmp 0x57ada3
mov dword [rsp + 0x30], 0
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0x98]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x30]
add rsp, 0xa0
pop rbp
ret
mov ecx, dword [rsp + 0x38]
inc ecx
mov rax, qword [rsp + 0x58]
mov edx, dword [rsp + 0x34]
cmp ecx, edx
jge 0x57ae1d
mov dword [rsp + 0x38], ecx
movsxd rdx, ecx
mov r9, rdx
shl rdx, 5
mov r10, qword [rsp + 0x48]
lea rdx, [rdx + r10]
lea rdx, [rdx + 8]
mov rdx, qword [rdx]
lea r8, [rax + r9*8]
mov qword [rsp + 0x60], r8
mov rbx, qword [rsp + 0xb8]
movzx edi, byte [rsp + 0xc8]
movzx esi, byte [rsp + 0xc9]
mov rax, qword [rsp + 0xb0]
mov rcx, rdx
call sym.modernc.org_sqlite_lib._sqlite3ValueFromExpr
mov rdx, qword [rsp + 0x60]
cmp qword [rdx], 0
je 0x57ae09
test eax, eax
je 0x57ad98
mov r8, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x58]
xor edi, edi
jmp 0x57b04c
mov qword [rsp + 0x58], rax
mov rbx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xd8]
mov rax, qword [rsp + 0xb0]
call sym.modernc.org_sqlite_lib._valueNew
nop
test rax, rax
jne 0x57ae5f
mov r8, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x58]
mov rdi, rax
mov eax, 7
jmp 0x57b04c
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0x50]
xor ecx, ecx
mov edi, 0x38
call sym.modernc.org_libc.Xmemset
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
mov rsi, qword [rsp + 0x40]
mov qword [rdx], rsi
mov rdx, rbx
mov r8, qword [rsp + 0x68]
mov qword [rdx + 8], r8
mov rdx, rbx
mov r9, qword [rsp + 0xb8]
movzx r9d, byte [r9 + 0x64]
mov byte [rdx + 0x28], r9b
mov rdx, qword [r8 + 0x18]
mov r8, qword [rdx]
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x34]
mov rdi, qword [rsp + 0x58]
call r8
mov rdx, qword [rsp + 0x50]
mov rsi, rdx
mov edx, dword [rdx + 0x24]
test edx, edx
je 0x57af85
mov dword [rsp + 0x3c], edx
lea rdx, [rsi + 0x40]
mov qword [rsp + 0x68], rdx
mov rax, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0x40]
mov ecx, 1
call sym.modernc.org_sqlite_lib._sqlite3ValueText
movups xmmword [rsp + 0x88], xmm15
mov qword [rsp + 0x70], rax
lea rdx, [0x00728cc0]
mov qword [rsp + 0x88], rdx
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x90], rdx
mov rax, qword [rsp + 0x68]
lea rbx, [rsp + 0x88]
mov ecx, 1
mov rdi, rcx
nop
call sym.modernc.org_libc.VaList
mov rdx, qword [rsp + 0xd8]
mov rbx, qword [rdx]
mov rcx, qword [0x00a30e10]
add rcx, 0x1265
mov rdi, rax
mov rax, qword [rsp + 0xb0]
call sym.modernc.org_sqlite_lib._sqlite3ErrorMsg
mov rdi, qword [rsp + 0x40]
mov r8, qword [rsp + 0xd8]
mov eax, dword [rsp + 0x3c]
nop
jmp 0x57b047
movzx edx, byte [rsp + 0xc8]
movzx edx, dl
mov dword [rsp + 0x3c], edx
nop
mov rax, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0x40]
movzx ecx, byte [rsp + 0xc9]
mov edi, 1
call sym.modernc.org_sqlite_lib._applyAffinity
mov rax, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x3c]
call sym.modernc.org_sqlite_lib._sqlite3VdbeChangeEncoding
test eax, eax
jne 0x57b03a
mov rsi, qword [rsp + 0x40]
mov rdi, rsi
movzx r8d, word [rsi + 0x14]
nop dword [rax + rax]
test r8d, 0x12
je 0x57b012
mov r9d, dword [rsi + 0x10]
bt r8d, 0xa
jae 0x57affa
mov r8d, dword [rsi]
add r9d, r8d
mov rsi, qword [rsi + 0x18]
add rsi, 0x88
cmp dword [rsi], r9d
setl sil
movzx esi, sil
jmp 0x57b014
xor esi, esi
test esi, esi
je 0x57b030
mov rsi, qword [rsp + 0xd8]
mov r8, rsi
mov rsi, qword [rsi]
inc dword [rsi + 0x30]
mov eax, 0x12
jmp 0x57b047
mov r8, qword [rsp + 0xd8]
jmp 0x57b047
mov rdi, qword [rsp + 0x40]
mov r8, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x58]
test eax, eax
je 0x57b058
mov rsi, qword [r8]
mov dword [rsi + 0x18], eax
xor edi, edi
test rcx, rcx
je 0x57b06f
mov dword [rsp + 0x2c], eax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x58], rcx
xor edx, edx
jmp 0x57b0cc
mov rcx, qword [rsp + 0xd0]
mov qword [rcx], rdi
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0x98]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x30]
add rsp, 0xa0
pop rbp
ret
mov dword [rsp + 0x38], edx
movsxd rsi, edx
lea rsi, [rcx + rsi*8]
mov rbx, qword [rsi]
mov rax, qword [rsp + 0xb0]
call sym.modernc.org_sqlite_lib._sqlite3ValueFree
mov edx, dword [rsp + 0x38]
inc edx
mov eax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x40]
mov esi, dword [rsp + 0x34]
cmp edx, esi
jl 0x57b09d
mov rax, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0xb8]
call sym.modernc.org_sqlite_lib._sqlite3DbFreeNN
mov eax, dword [rsp + 0x2c]
mov rdi, qword [rsp + 0x40]
jmp 0x57b06f
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov byte [rsp + 0x20], dil
mov byte [rsp + 0x21], sil
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], r9
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
movzx edi, byte [rsp + 0x20]
movzx esi, byte [rsp + 0x21]
mov r8, qword [rsp + 0x28]
mov r9, qword [rsp + 0x30]
jmp sym.modernc.org_sqlite_lib._valueFromFunction