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

Disassembly:
lea r12, [rsp - 0x50]
cmp r12, qword [r14 + 0x10]
jbe 0x5f143a
push rbp
mov rbp, rsp
sub rsp, 0xc8
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0xf0], rdi
mov rsi, qword [rdi]
mov r8, qword [rbx]
nop
mov r8, qword [r8 + 0x18]
mov qword [rsp + 0x90], r8
mov rbx, rsi
mov ecx, 1
call sym.modernc.org_sqlite_lib._sqlite3ValueText
test rax, rax
je 0x5f10ac
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0xf0]
mov rsi, rdx
mov rbx, qword [rdx]
lea rdx, [rsi + 8]
mov qword [rsp + 0xa8], rdx
mov rax, qword [rsp + 0xd8]
mov ecx, 1
call sym.modernc.org_sqlite_lib._sqlite3ValueBytes
mov dword [rsp + 0x34], eax
mov rdx, qword [rsp + 0xa8]
mov rbx, qword [rdx]
mov ecx, 1
mov rax, qword [rsp + 0xd8]
call sym.modernc.org_sqlite_lib._sqlite3ValueText
test rax, rax
je 0x5f10a3
mov rdx, rax
movzx r9d, byte [rax]
nop dword [rax]
test r9d, r9d
je 0x5f106f
mov qword [rsp + 0xa0], rdx
mov rdx, qword [rsp + 0xa8]
mov rbx, qword [rdx]
mov rdx, qword [rsp + 0xf0]
add rdx, 0x10
mov qword [rsp + 0xa8], rdx
mov rax, qword [rsp + 0xd8]
mov ecx, 1
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3ValueBytes
mov dword [rsp + 0x3c], eax
mov rdx, qword [rsp + 0xa8]
mov rbx, qword [rdx]
mov ecx, 1
mov rax, qword [rsp + 0xd8]
call sym.modernc.org_sqlite_lib._sqlite3ValueText
test rax, rax
je 0x5f1066
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0xa8]
mov rbx, qword [rdx]
mov edx, dword [rsp + 0x34]
lea esi, [rdx + 1]
movsxd rsi, esi
mov qword [rsp + 0x88], rsi
mov rax, qword [rsp + 0xd8]
mov ecx, 1
nop
call sym.modernc.org_sqlite_lib._sqlite3ValueBytes
mov dword [rsp + 0x38], eax
mov rbx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x88]
mov rax, qword [rsp + 0xd8]
call sym.modernc.org_sqlite_lib._contextMalloc
test rax, rax
je 0x5f105d
mov r9d, dword [rsp + 0x34]
mov r10d, dword [rsp + 0x3c]
mov r11d, r9d
sub r9d, r10d
mov dword [rsp + 0x40], r9d
mov r12, qword [rsp + 0x58]
mov r13, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x88]
xor ecx, ecx
xor edx, edx
xor ebx, ebx
jmp 0x5f10bd
add rsp, 0xc8
pop rbp
ret
add rsp, 0xc8
pop rbp
ret
nop
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x58]
mov edi, dword [rsp + 0x34]
mov esi, 1
mov r8, 0xffffffffffffffff
call sym.modernc.org_sqlite_lib._setResultStrOrError
add rsp, 0xc8
pop rbp
ret
add rsp, 0xc8
pop rbp
ret
add rsp, 0xc8
pop rbp
ret
inc ecx
mov ebx, r13d
mov r13, r8
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x44], ebx
cmp ecx, r9d
jg 0x5f129f
movsxd r15, ecx
add r15, r12
mov rdi, r15
movzx r15d, byte [r15]
mov r8, r13
movzx r13d, byte [r13]
cmp r13d, r15d
jne 0x5f110d
movsxd r13, r10d
jmp 0x5f136c
mov edi, 1
jmp 0x5f1101
mov edi, 0xffffffff
jmp 0x5f1101
xor edi, edi
test edi, edi
je 0x5f111d
mov r8, qword [rsp + 0xa0]
movsxd r13, ebx
add r13, rax
mov byte [r13], r15b
lea r13d, [rbx + 1]
jmp 0x5f10b5
mov dword [rsp + 0x48], ecx
mov r13d, dword [rsp + 0x38]
cmp r13d, r10d
jle 0x5f11de
mov r15d, r13d
sub r13d, r10d
movsxd r13, r13d
lea rdi, [rsi + r13]
lea rdi, [rdi - 1]
mov r8d, r11d
mov r11, qword [rsp + 0x90]
add r11, 0x88
movsxd r11, dword [r11]
add r13, rsi
nop dword [rax + rax]
cmp r11, rdi
jl 0x5f13ce
lea r11d, [rdx + 1]
test r11d, edx
jne 0x5f11ea
mov qword [rsp + 0x98], r13
mov dword [rsp + 0x4c], r11d
movsxd rdx, r13d
movsxd rsi, r8d
sub r13, rsi
lea rcx, [r13 + rdx]
lea rcx, [rcx - 1]
mov rbx, rax
mov rax, qword [rsp + 0xd8]
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3Realloc
test rax, rax
je 0x5f1399
mov ecx, dword [rsp + 0x48]
mov ebx, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x34]
mov r9d, dword [rsp + 0x40]
mov r10d, dword [rsp + 0x3c]
mov r11d, dword [rsp + 0x4c]
mov r12, qword [rsp + 0x58]
mov r13, qword [rsp + 0x98]
mov r15d, dword [rsp + 0x38]
jmp 0x5f11ea
mov r8d, r11d
mov r15d, r13d
mov r13, rsi
mov r11d, edx
movsxd rdx, ebx
movsxd rsi, r15d
add rdx, rax
test rsi, rsi
je 0x5f1273
mov rdi, r12
movabs r12, 0x3ffffffffffff
cmp r12, rsi
jb 0x5f142e
test byte [rdx], al
mov r12, qword [rsp + 0x60]
test byte [r12], al
cmp r12, rdx
je 0x5f1276
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x54], r11d
mov qword [rsp + 0xb0], r13
mov rax, rdx
mov rbx, r12
mov rcx, rsi
call sym.runtime.memmove
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x48]
mov ebx, dword [rsp + 0x44]
mov rdi, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x34]
mov r9d, dword [rsp + 0x40]
mov r10d, dword [rsp + 0x3c]
mov r11d, dword [rsp + 0x54]
mov r13, qword [rsp + 0xb0]
mov r15d, dword [rsp + 0x38]
jmp 0x5f1276
mov rdi, r12
lea r12d, [r15 + rbx]
lea ecx, [r10 + rcx]
lea ecx, [rcx - 1]
mov r8, qword [rsp + 0xa0]
mov rsi, r13
mov edx, r11d
mov r13d, r12d
mov r11d, dword [rsp + 0x34]
mov r12, rdi
jmp 0x5f10b5
movsxd r9, ebx
movsxd r10, ecx
sub r11d, ecx
movsxd rdx, r11d
add r9, rax
add r10, r12
test rdx, rdx
je 0x5f12f5
movabs r12, 0x3ffffffffffff
cmp r12, rdx
jb 0x5f134e
test byte [r9], al
test byte [r10], al
cmp r10, r9
je 0x5f12f5
mov dword [rsp + 0x50], r11d
mov rax, r9
mov rbx, r10
mov rcx, rdx
call sym.runtime.memmove
mov rax, qword [rsp + 0x70]
mov ebx, dword [rsp + 0x44]
mov r11d, dword [rsp + 0x50]
lea edi, [r11 + rbx]
movsxd rdx, edi
add rdx, rax
mov byte [rdx], 0
lea rdx, [0x0072ce00]
mov qword [rsp + 0xb8], rdx
lea rdx, sym.modernc.org_sqlite_lib.Xsqlite3_free
mov qword [rsp + 0xc0], rdx
mov r8, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xe0]
mov rcx, rax
mov esi, 1
mov rax, qword [rsp + 0xd8]
call sym.modernc.org_sqlite_lib._setResultStrOrError
add rsp, 0xc8
pop rbp
ret
mov rbx, r12
call sym.runtime.panicSlice3AlenU
dec r13
mov rdi, qword [rsp + 0x80]
inc rdi
mov r8, qword [rsp + 0x78]
inc r8
test r13, r13
je 0x5f10ff
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x80], rdi
movzx edi, byte [rdi]
movzx r8d, byte [r8]
cmp r8b, dil
ja 0x5f10f8
jae 0x5f1356
jmp 0x5f10f1
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xe0]
call sym.modernc.org_sqlite_lib.Xsqlite3_result_error_nomem
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x70]
nop dword [rax + rax]
call sym.modernc.org_sqlite_lib.Xsqlite3_free
add rsp, 0xc8
pop rbp
ret
mov rdx, qword [rsp + 0xe0]
mov r9, rdx
nop
mov dword [rdx + 0x24], 0x12
mov rbx, qword [r9]
mov rcx, qword [0x00a30e10]
add rcx, 0x1a8c
mov rax, qword [rsp + 0xd8]
mov rdi, 0xffffffffffffffff
mov esi, 1
xor r8d, r8d
call sym.modernc.org_sqlite_lib._sqlite3VdbeMemSetStr
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x70]
nop dword [rax + rax]
call sym.modernc.org_sqlite_lib.Xsqlite3_free
add rsp, 0xc8
pop rbp
ret
mov rdx, rsi
mov rbx, r12
call sym.runtime.panicSlice3AlenU
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], ecx
mov qword [rsp + 0x20], rdi
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov ecx, dword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp sym.modernc.org_sqlite_lib._replaceFunc