Function at 0x1401aacf0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r14
mov rbp, rsp
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
xor r14d, r14d
lea rcx, str.SELECT_name__sql_FROM_sqlite_schema_WHERE__s
mov rdx, r8
mov qword [rbp + 0x30], r14
mov qword [rbp - 0x10], r14
mov rbx, r9
mov r13, r8
call fcn.1401ba3f0
mov rcx, qword [rsi]
lea r9, [rbp + 0x30]
lea r8d, [r14 - 1]
mov qword [rsp + 0x20], r14
mov rdx, rax
mov r12, rax
call fcn.1401bb160
test eax, eax
je 0x1401aad8c
mov rcx, qword [rsi]
call fcn.1401baf90
mov rcx, qword [rsi]
mov rdi, rax
call fcn.1401baf50
lea ecx, [r14 + 2]
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rdi
mov qword [rsp + 0x20], r12
mov rcx, rax
lea rdx, str.Error:___d___s_on___s__n
mov r8d, ebx
call fcn.1401ab380
jmp 0x1401aafcc
mov rcx, qword [rbp + 0x30]
mov qword [rsp + 0x78], r15
call fcn.1401ad290
cmp eax, 0x64
jne 0x1401aae69
mov rcx, qword [rbp + 0x30]
xor edx, edx
call fcn.1401ad4e0
mov rcx, qword [rbp + 0x30]
mov edx, 1
mov r14, rax
call fcn.1401ad4e0
mov rdx, r14
lea rcx, str._s...
mov r15, rax
call fcn.14010cff0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
lea rax, [rbp - 0x10]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r15
mov rcx, rdi
call fcn.1401b9870
cmp qword [rbp - 0x10], 0
je 0x1401aae38
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rbp - 0x10]
lea rdx, str.Error:__s_nSQL:___s__n
mov rcx, rax
mov r9, r15
call fcn.1401ab380
mov rcx, qword [rbp - 0x10]
call fcn.1401ba620
mov qword [rbp - 0x10], 0
test rbx, rbx
je 0x1401aae48
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call rbx
lea rcx, str.done_n
call fcn.14010cff0
mov rcx, qword [rbp + 0x30]
call fcn.1401ad290
cmp eax, 0x64
je 0x1401aada3
xor r14d, r14d
cmp eax, 0x65
je 0x1401aafc7
mov rcx, qword [rbp + 0x30]
call fcn.1401ad670
mov rcx, r12
call fcn.1401ba620
mov rdx, r13
lea rcx, str.SELECT_name__sql_FROM_sqlite_schema_WHERE__s_ORDER_BY_rowid_DESC
call fcn.1401ba3f0
mov rcx, qword [rsi]
lea r9, [rbp + 0x30]
mov r8d, 0xffffffff
mov qword [rsp + 0x20], r14
mov rdx, rax
mov r12, rax
call fcn.1401bb160
test eax, eax
je 0x1401aaef2
mov rcx, qword [rsi]
call fcn.1401baf90
mov rcx, qword [rsi]
mov rdi, rax
call fcn.1401baf50
mov ecx, 2
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rdi
mov qword [rsp + 0x20], r12
mov rcx, rax
lea rdx, str.Error:___d___s_on___s__n
mov r8d, ebx
call fcn.1401ab380
jmp 0x1401aafc7
mov rcx, qword [rbp + 0x30]
call fcn.1401ad290
cmp eax, 0x64
jne 0x1401aafc7
mov rcx, qword [rbp + 0x30]
xor edx, edx
call fcn.1401ad4e0
mov rcx, qword [rbp + 0x30]
mov edx, 1
mov r14, rax
call fcn.1401ad4e0
mov rdx, r14
lea rcx, str._s...
mov r15, rax
call fcn.14010cff0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
lea rax, [rbp - 0x10]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r15
mov rcx, rdi
call fcn.1401b9870
cmp qword [rbp - 0x10], 0
je 0x1401aaf99
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rbp - 0x10]
lea rdx, str.Error:__s_nSQL:___s__n
mov rcx, rax
mov r9, r15
call fcn.1401ab380
mov rcx, qword [rbp - 0x10]
call fcn.1401ba620
mov qword [rbp - 0x10], 0
test rbx, rbx
je 0x1401aafa9
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call rbx
lea rcx, str.done_n
call fcn.14010cff0
mov rcx, qword [rbp + 0x30]
call fcn.1401ad290
cmp eax, 0x64
je 0x1401aaf04
mov r15, qword [rsp + 0x78]
mov rcx, qword [rbp + 0x30]
call fcn.1401ad670
mov rcx, r12
call fcn.1401ba620
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret