Function at 0x140148100
Capabilities:
Query environment variable
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x418
lea r13, [0x14014a7d0]
mov r12d, 1
mov rbp, rdx
mov esi, ecx
lea r15, [rsp + 0xa0]
call dbg.__main
mov r14, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x58], r14
call r14
xor r9d, r9d
mov r8d, 4
xor edx, edx
mov rcx, rax
call sym.setvbuf
mov ecx, 2
call r14
mov ecx, 1
mov rbx, rax
call r14
xor ecx, ecx
mov rdi, rax
call r14
mov qword [rsp + 0x48], r15
mov r14d, 2
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0xb0], rbx
xor ebx, ebx
mov rdi, qword [r15 + r14*8]
mov rdx, r13
mov rcx, rdi
call sym.streamOfConsole
mov r9d, r12d
mov ecx, r14d
mov edx, ebx
shl r9d, cl
movdqu xmm0, xmmword [r13]
or ebx, r9d
test ax, ax
mov rax, qword [r13 + 0x10]
cmove ebx, edx
movups xmmword [r13 + 0x48], xmm0
mov qword [r13 + 0x58], rax
test r14, r14
jne 0x140148630
mov dword [0x14014a830], ebx
call sym.consoleRenewSetup
mov eax, ebx
shr ebx, 1
lea rcx, [sym.consoleRestore]
and eax, 1
and ebx, 1
mov dword [0x14014a784], eax
mov dword [0x14014a780], ebx
call dbg.atexit
lea rcx, [sym.sayAbnormalExit]
call dbg.atexit
lea rcx, str.SQLITE_DEBUG_BREAK
call sym.getenv
test rax, rax
je 0x14014824f
xor ecx, ecx
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__isatty]
call rbx
test eax, eax
je 0x140148249
mov ecx, 2
call rbx
test eax, eax
jne 0x140148d3c
call qword [sym.imp.KERNEL32.dll_DebugBreak]
mov edx, 1
lea rcx, [sym.ConsoleCtrlHandler]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x140148b82
call sym.sqlite3_sourceid
mov rcx, rax
test rax, rax
je 0x14014945c
mov r8d, 0x3c
lea rdx, [0x140159008]
call sym.strncmp
test eax, eax
jne 0x14014945c
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov ecx, 0x6e
mov r8, qword [rsp + 0x48]
lea rdx, [sym.shellLog]
mov r12d, 0xa
rep stosq qword [rdi], rax
mov rax, qword [0x14015ede0]
mov ecx, 0x10
mov edi, 0x7c
mov dword [rsp + 0xf4], 2
mov qword [rsp + 0xfc], rax
lea rax, [rsp + 0x2f0]
mov byte [rsp + 0xa8], 1
mov qword [rsp + 0x368], rax
mov word [rsp + 0x15e], di
mov word [rsp + 0x172], r12w
mov dword [rsp + 0x11c], 2
call sym.sqlite3_config
call sym.verify_uninitialized
mov edx, 1
mov ecx, 0x11
call sym.sqlite3_config
mov ecx, 2
call sym.sqlite3_config
lea r8, [0x140159091]
mov ecx, 0x14
lea rdx, [0x14018a1b0]
call sym.sqlite3_snprintf
lea r8, str.___..._
mov ecx, 0x14
lea rdx, [0x14018a190]
call sym.sqlite3_snprintf
test esi, esi
jle 0x140148645
test rbp, rbp
je 0x140148645
cmp qword [rbp], 0
je 0x140148645
mov rax, qword [rbp]
mov qword [0x14018a1c8], rax
call sym.verify_uninitialized
cmp esi, 1
jle 0x1401490fd
mov dword [rsp + 0x38], 1
mov r12d, esi
xor edi, edi
xor r10d, r10d
mov qword [rsp + 0x60], 0
mov r15d, 1
mov qword [rsp + 0x50], 0
jmp 0x1401483f7
add edi, 1
mov rcx, r10
movsxd r13, edi
shl r13, 3
mov rdx, r13
call sym.realloc
mov r10, rax
test rax, rax
je 0x140149124
mov qword [rax + r13 - 8], rbx
mov dword [rsp + 0x38], 0
add r15d, 1
cmp esi, r15d
jle 0x140148431
movsxd rax, r15d
mov rbx, qword [rbp + rax*8]
lea r13, [rax*8]
cmp byte [rbx], 0x2d
jne 0x140148415
cmp r15d, r12d
jle 0x140148668
cmp qword [rsp + 0x2f8], 0
jne 0x1401483c0
add r15d, 1
mov qword [rsp + 0x2f8], rbx
cmp esi, r15d
jg 0x1401483f7
mov qword [rsp + 0x40], r10
call sym.verify_uninitialized
call sym.sqlite3_initialize
mov rcx, qword [rsp + 0x60]
mov r10, qword [rsp + 0x40]
test rcx, rcx
je 0x14014846f
call sym.sqlite3_vfs_find
mov rcx, rax
test rax, rax
je 0x1401492dd
mov edx, 1
call sym.sqlite3_vfs_register
mov r10, qword [rsp + 0x40]
mov rax, qword [rsp + 0x368]
mov dword [rsp + 0x60], 0
cmp qword [rax + 8], 0
je 0x140148c1c
mov qword [rsp + 0x40], r10
mov ecx, 1
mov rax, qword [rsp + 0x58]
call rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0xe0], rax
call sym.sqlite3_appendvfs_init
mov rax, qword [rsp + 0x368]
xor edx, edx
mov rcx, qword [rax + 8]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
mov r10, qword [rsp + 0x40]
test eax, eax
je 0x140148b93
cmp qword [rsp + 0x50], 0
mov qword [rsp + 0x40], r10
mov rbx, qword [rsp + 0xd8]
mov r14d, dword [rsp + 0xd0]
je 0x140148ba9
mov rcx, qword [rsp + 0x50]
lea rdx, [0x1401508f1]
call sym.fopen
mov r10, qword [rsp + 0x40]
test rax, rax
mov qword [rsp + 0xd8], rax
mov r8, rax
je 0x140148dda
mov r8, qword [rsp + 0x50]
xor r15d, r15d
cmp dword [0x14014a784], 0
jne 0x140148aed
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x40], r10
call sym.process_input
mov r10, qword [rsp + 0x40]
test eax, eax
je 0x140148555
cmp dword [0x14018a1e0], 0
jne 0x140148e0c
mov rcx, qword [rsp + 0xd8]
mov qword [rsp + 0x40], r10
call sym.fclose
mov r10, qword [rsp + 0x40]
mov r8, r15
mov rcx, r8
mov qword [rsp + 0x40], r10
mov qword [rsp + 0xd8], rbx
mov dword [rsp + 0xd0], r14d
call sym.sqlite3_free
mov r10, qword [rsp + 0x40]
xor r11d, r11d
cmp esi, 1
jle 0x1401487ec
mov dword [rsp + 0x40], edi
mov ebx, 1
mov r13d, r11d
mov qword [rsp + 0x50], r10
jmp 0x1401485e9
lea rdx, str._html
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x140148770
mov dword [rsp + 0xf4], 4
mov eax, 4
mov dword [rsp + 0xfc], eax
add ebx, 1
cmp esi, ebx
jle 0x1401487e0
movsxd r14, ebx
shl r14, 3
lea r15, [rbp + r14]
mov rdi, qword [r15]
cmp byte [rdi], 0x2d
jne 0x1401485de
cmp r12d, ebx
jle 0x1401485de
cmp byte [rdi + 1], 0x2d
jne 0x14014860c
add rdi, 1
lea rdx, str._init
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x1401485b0
mov eax, dword [rsp + 0xf4]
add ebx, 1
jmp 0x1401485d7
mov rcx, rdi
sub r14, 1
sub r13, 0x18
call sym.fflush
jmp 0x1401481a2
mov r8d, 0x714b
lea rdx, str.shell.c
lea rcx, str.argc_1__argv__argv_0_
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__assert]
jmp 0x14014837c
cmp byte [rbx + 1], 0x2d
mov r14, rbx
jne 0x140148675
lea r14, [rbx + 1]
cmp byte [r14], 0x2d
jne 0x140148690
cmp byte [r14 + 1], 0
jne 0x140148690
mov r12d, r15d
jmp 0x1401483ee
lea rdx, str._separator
mov rcx, r14
mov qword [rsp + 0x40], r10
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
je 0x140148740
lea rdx, str._nullvalue
mov rcx, r14
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
je 0x140148740
lea rdx, str._newline
mov rcx, r14
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
je 0x140148740
lea rdx, str._cmd
mov rcx, r14
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
je 0x140148740
lea rdx, str._init
mov rcx, r14
mov qword [rsp + 0x40], r10
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
jne 0x140148c38
add r15d, 1
cmp esi, r15d
je 0x1401491d1
mov rax, qword [rbp + r13 + 8]
mov qword [rsp + 0x50], rax
jmp 0x1401483ee
add r15d, 1
cmp esi, r15d
jne 0x1401483ee
mov rdx, qword [rbp]
lea rcx, str._s:_Error:_missing_argument_to__s_n
mov r8, rbx
call sym.ePrintfUtf8
mov ecx, 1
call sym.exit
nop word [rax + rax]
lea rdx, str._list
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x1401487a0
mov dword [rsp + 0xf4], 2
mov eax, 2
jmp 0x1401485d7
lea rdx, str._quote
mov rcx, rdi
call sym.strcmp
test eax, eax
je 0x1401488e0
lea rdx, str._line
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x1401488b0
mov dword [rsp + 0xf4], 0
jmp 0x1401485d7
mov edi, dword [rsp + 0x40]
mov r10, qword [rsp + 0x50]
mov r11d, r13d
mov r9d, dword [rsp + 0x38]
test r9d, r9d
jne 0x140148929
test edi, edi
je 0x1401489f0
movsxd rdi, edi
mov r13, qword [rsp + 0x48]
mov rbx, r10
lea rbp, [rsp + 0x78]
lea rdi, [r10 + rdi*8]
lea r12, [0x140151227]
mov r14, r10
jmp 0x140148871
xor edx, edx
mov rcx, r13
call sym.open_db
test byte [rsp + 0x11c], 0x40
jne 0x140148b10
mov rdx, rsi
mov r8, rbp
mov rcx, r13
call sym.shell_exec
mov rdx, qword [rsp + 0x78]
test rdx, rdx
jne 0x140148d70
test eax, eax
jne 0x140148ee7
add rbx, 8
cmp rdi, rbx
je 0x140148d65
mov rsi, qword [rbx]
cmp byte [rsi], 0x2e
jne 0x140148828
mov rdx, r13
mov rcx, rsi
call sym.do_meta_command
test eax, eax
je 0x140148864
mov rcx, r14
mov dword [rsp + 0x38], eax
call sym.free
mov r11d, dword [rsp + 0x38]
cmp r11d, 2
jne 0x140148b6b
xor r11d, r11d
jmp 0x140148b6b
lea rdx, str._column
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x140148aaa
mov dword [rsp + 0xf4], 1
mov eax, 1
jmp 0x1401485d7
lea rdx, [rsp + 0x15e]
lea r8, [0x140150eed]
mov dword [rsp + 0xf4], 6
mov ecx, 0x14
call sym.sqlite3_snprintf
lea rdx, [rsp + 0x172]
mov ecx, 0x14
lea r8, [0x1401518ff]
call sym.sqlite3_snprintf
mov eax, dword [rsp + 0xf4]
jmp 0x1401485d7
cmp dword [0x14014a784], 0
mov qword [rsp + 0x38], r10
je 0x140148db2
cmp dword [0x14014a780], 0
lea rax, str.__UTF_16_console_I_O_
lea rdi, [0x140150568]
cmovne rdi, rax
call sym.sqlite3_sourceid
mov rsi, rax
call sym.sqlite3_libversion
mov ecx, 1
mov rbx, rax
mov rax, qword [rsp + 0x58]
call rax
mov qword [rsp + 0x20], rdi
mov r9, rsi
mov r8, rbx
mov rcx, rax
lea rdx, str.SQLite_version__s__.19s_s_nEnter__.help__for_usage_hints._n
call sym.fPrintfUtf8
cmp dword [rsp + 0x60], 0
mov r10, qword [rsp + 0x38]
jne 0x140148e16
lea rcx, str.SQLITE_HISTORY
mov qword [rsp + 0x38], r10
call sym.getenv
mov r10, qword [rsp + 0x38]
test rax, rax
mov rcx, rax
je 0x140148c97
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rcx, qword [rsp + 0x48]
xor r8d, r8d
mov rsi, rax
mov qword [rsp + 0xd8], r8
call sym.process_input
test rsi, rsi
mov r10, qword [rsp + 0x38]
mov r11d, eax
jne 0x140148d1b
nop dword [rax + rax]
mov rcx, r10
mov dword [rsp + 0x38], r11d
call sym.free
mov rcx, qword [rsp + 0x130]
mov r11d, dword [rsp + 0x38]
test rcx, rcx
je 0x140148a23
call sym.free
xor eax, eax
mov r11d, dword [rsp + 0x38]
mov qword [rsp + 0x130], rax
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x140148a3f
mov dword [rsp + 0x38], r11d
call sym.close_db
mov r11d, dword [rsp + 0x38]
mov rbx, qword [rsp + 0x48]
lea rbp, [rsp + 0x118]
lea r12, str.Error:_sqlite3_close___returns__d:__s_n
mov r13d, r11d
jmp 0x140148a6d
add rbx, 0x18
cmp rbp, rbx
je 0x140148b20
mov rcx, qword [rbx + 0x260]
call sym.sqlite3_free
mov rsi, qword [rbx + 0x250]
test rsi, rsi
je 0x140148a60
mov rcx, rsi
call sym.sqlite3_close
mov edi, eax
test eax, eax
je 0x140148a60
mov rcx, rsi
call sym.sqlite3_errmsg
mov edx, edi
mov rcx, r12
mov r8, rax
call sym.ePrintfUtf8
jmp 0x140148a60
lea rdx, str._json
mov rcx, rdi
call sym.strcmp
test eax, eax
je 0x140148c82
lea rdx, str._markdown
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x140148ea4
mov dword [rsp + 0xf4], 0xe
mov eax, 0xe
jmp 0x1401485d7
mov rdx, r8
lea rcx, str.___Loading_resources_from__s_n
mov qword [rsp + 0x40], r10
call sym.ePrintfUtf8
mov r10, qword [rsp + 0x40]
jmp 0x140148530
mov rdx, rsi
mov rcx, r12
call sym.oPrintfUtf8
jmp 0x140148840
mov ecx, 1
mov dword [rsp + 0x38], r13d
call sym.find_home_dir
mov rsi, qword [rsp + 0x48]
mov rcx, rsi
call sym.output_reset
mov rcx, rsi
mov byte [rsp + 0xae], 0
call sym.clearTempFile
mov rcx, qword [rsp + 0x1b0]
call sym.free
mov rcx, qword [rsp + 0x380]
call sym.free
mov r11d, dword [rsp + 0x38]
mov eax, r11d
add rsp, 0x418
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.No_C_handler._n
call sym.ePutsUtf8.isra.0
jmp 0x140148269
mov rcx, qword [rsp + 0x48]
xor edx, edx
call sym.open_db
mov r10, qword [rsp + 0x40]
jmp 0x1401484d0
xor ecx, ecx
call sym.find_home_dir
mov r10, qword [rsp + 0x40]
test rax, rax
mov rdx, rax
je 0x14014906a
lea rcx, str._s_.sqliterc
mov qword [rsp + 0x40], r10
call sym.sqlite3_mprintf
mov r10, qword [rsp + 0x40]
test rax, rax
je 0x140149124
lea rdx, [0x1401508f1]
mov rcx, rax
mov qword [rsp + 0x50], r10
mov qword [rsp + 0x40], rax
call sym.fopen
mov r8, qword [rsp + 0x40]
mov r10, qword [rsp + 0x50]
test rax, rax
mov qword [rsp + 0xd8], rax
je 0x14014856f
mov r15, r8
jmp 0x140148523
lea rdx, [0x140152a7c]
mov qword [rax + 8], rdx
xor eax, eax
cmp esi, 1
sete al
mov dword [rsp + 0x60], eax
jmp 0x14014848a
lea rdx, str._interactive
mov rcx, r14
mov qword [rsp + 0x40], r10
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
je 0x1401483ee
lea rdx, str._batch
mov rcx, r14
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
jne 0x140148f1d
xor ebx, ebx
mov dword [0x14014a784], ebx
jmp 0x1401483ee
mov dword [rsp + 0xf4], 0xd
mov eax, 0xd
jmp 0x1401485d7
xor ecx, ecx
mov qword [rsp + 0x38], r10
call sym.find_home_dir
mov r10, qword [rsp + 0x38]
test rax, rax
mov rdi, rax
jne 0x140148cb9
jmp 0x14014909a
add rax, 1
cmp byte [rax], 0
jne 0x140148cb5
sub rax, rdi
mov qword [rsp + 0x38], r10
mov rbx, rax
and ebx, 0x3fffffff
add ebx, 0x14
movsxd rcx, ebx
call sym.malloc
mov r10, qword [rsp + 0x38]
test rax, rax
mov rsi, rax
je 0x140149095
mov r9, rdi
lea r8, str._s_.sqlite_history
mov rdx, rax
mov ecx, ebx
call sym.sqlite3_snprintf
xor ecx, ecx
mov qword [rsp + 0xd8], rcx
mov rcx, qword [rsp + 0x48]
call sym.process_input
mov r10, qword [rsp + 0x38]
mov r11d, eax
mov rcx, rsi
mov dword [rsp + 0x40], r11d
mov qword [rsp + 0x38], r10
call sym.free
mov r10, qword [rsp + 0x38]
mov r11d, dword [rsp + 0x40]
jmp 0x1401489f0
call sym.getpid
lea rcx, str.attach_debugger_to_process__d_and_press_any_key_to_continue._n
mov edx, eax
call sym.ePrintfUtf8
xor ecx, ecx
mov rax, qword [rsp + 0x58]
call rax
mov rcx, rax
call sym.fgetc
jmp 0x14014824f
mov r10, r14
xor r11d, r11d
jmp 0x1401489f0
lea rcx, str.Error:__s_n
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], eax
call sym.ePrintfUtf8
mov rcx, qword [rsp + 0x78]
call sym.sqlite3_free
mov rcx, qword [rsp + 0x40]
call sym.free
mov r11d, dword [rsp + 0x38]
test r11d, r11d
jne 0x140148b6b
mov r11d, 1
jmp 0x140148b6b
xor ecx, ecx
mov rax, qword [rsp + 0x58]
call rax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0xd8], rax
call sym.process_input
mov r10, qword [rsp + 0x38]
mov r11d, eax
jmp 0x1401489f0
mov rdx, qword [rsp + 0x50]
lea rcx, str.cannot_open:___s__n
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x40], r10
call sym.ePrintfUtf8
mov r10, qword [rsp + 0x40]
mov r8, qword [rsp + 0x68]
cmp dword [0x14018a1e0], 0
je 0x14014856f
mov ecx, 1
call sym.exit
mov rdi, qword [rsp + 0x58]
mov ecx, 1
call rdi
lea rcx, str.Connected_to_a
mov rdx, rax
call sym.fPutsUtf8.isra.0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [rsp + 0x80]
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov edx, 0xc
mov rsi, qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rcx, rbx
call rsi
mov ecx, 1
call rdi
lea rcx, str.transient_in_memory_database
mov rdx, rax
call sym.fPutsUtf8.isra.0
movzx edx, word [rsp + 0x88]
mov rcx, rbx
call rsi
mov ecx, 1
call rdi
lea rcx, str.._nUse__.open_FILENAME__to_reopen_on_a_persistent_database._n
mov rdx, rax
call sym.fPutsUtf8.isra.0
mov r10, qword [rsp + 0x38]
jmp 0x14014899a
lea rdx, str._table
mov rcx, rdi
call sym.strcmp
test eax, eax
je 0x140149080
lea rdx, str._box
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x1401490bb
mov dword [rsp + 0xf4], 0x10
mov eax, 0x10
jmp 0x1401485d7
mov rdx, rsi
lea rcx, str.Error:_unable_to_process_SQL:__s_n
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], eax
call sym.ePrintfUtf8
mov rcx, qword [rsp + 0x78]
call sym.sqlite3_free
mov rcx, qword [rsp + 0x40]
call sym.free
mov r11d, dword [rsp + 0x38]
jmp 0x140148b6b
lea rdx, str._utf8
mov rcx, r14
mov qword [rsp + 0x40], r10
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
je 0x1401483ee
lea rdx, str._no_utf8
mov rcx, r14
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
je 0x1401483ee
lea rdx, str._heap
mov rcx, r14
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
je 0x1401491c4
lea rdx, str._pagecache
mov rcx, r14
mov qword [rsp + 0x40], r10
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
jne 0x140149129
lea eax, [r15 + 1]
cmp esi, eax
je 0x1401491d1
mov rcx, qword [rbp + r13 + 8]
mov qword [rsp + 0x40], r10
xor ebx, ebx
call sym.integerValue
mov r10, qword [rsp + 0x40]
test rax, rax
mov rdx, rax
cmovns rbx, rax
mov eax, 0x11170
cmp rbx, rax
cmovg rbx, rax
add r15d, 2
cmp esi, r15d
je 0x1401491d1
mov rcx, qword [rbp + r13 + 0x10]
mov qword [rsp + 0x68], r10
mov qword [rsp + 0x40], rdx
call sym.integerValue
mov r10, qword [rsp + 0x68]
test rax, rax
mov r14, rax
jle 0x140149446
mov rdx, qword [rsp + 0x40]
test rdx, rdx
jle 0x140149446
movabs rax, 0xffffffffffff
mov qword [rsp + 0x40], r10
cqo
idiv rbx
cmp r14, rax
cmovg r14, rax
call sym.verify_uninitialized
mov rcx, r14
imul rcx, rbx
call sym.malloc
mov r10, qword [rsp + 0x40]
mov rdx, rax
mov r9, r14
mov r8, rbx
mov ecx, 7
mov qword [rsp + 0x40], r10
call sym.sqlite3_config
or dword [rsp + 0x11c], 1
mov r10, qword [rsp + 0x40]
jmp 0x1401483ee
lea rcx, str.___warning:_cannot_find_home_directory__cannot_read__.sqliterc_n
call sym.ePutsUtf8.isra.0
mov r10, qword [rsp + 0x40]
jmp 0x140148591
mov dword [rsp + 0xf4], 0xf
mov eax, 0xf
jmp 0x1401485d7
mov qword [rsp + 0x38], r10
mov rcx, qword [rsp + 0x48]
xor edx, edx
mov qword [rsp + 0xd8], rdx
call sym.process_input
mov r10, qword [rsp + 0x38]
mov r11d, eax
jmp 0x1401489f0
lea rdx, str._csv
mov rcx, rdi
call sym.strcmp
test eax, eax
je 0x140149202
lea rdx, str._zip
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x1401491db
mov byte [rsp + 0xad], 3
mov eax, dword [rsp + 0xf4]
jmp 0x1401485d7
call sym.verify_uninitialized
xor edi, edi
mov r12d, esi
call sym.sqlite3_initialize
xor r11d, r11d
mov dword [rsp + 0x38], 1
xor r10d, r10d
mov qword [rsp + 0x50], r11
jmp 0x14014846f
call sym.shell_out_of_memory
lea rdx, str._lookaside
mov rcx, r14
mov qword [rsp + 0x40], r10
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
jne 0x1401492f8
lea eax, [r15 + 1]
cmp esi, eax
je 0x1401491d1
mov rcx, qword [rbp + r13 + 8]
mov qword [rsp + 0x40], r10
call sym.integerValue
xor edx, edx
mov r10, qword [rsp + 0x40]
test eax, eax
cmovns edx, eax
add r15d, 2
cmp esi, r15d
mov r14d, edx
je 0x1401491d1
mov rcx, qword [rbp + r13 + 0x10]
mov qword [rsp + 0x40], r10
call sym.integerValue
xor edx, edx
test eax, eax
cmovns edx, eax
mov ebx, edx
call sym.verify_uninitialized
mov r8d, ebx
imul ebx, r14d
mov edx, r14d
mov ecx, 0xd
call sym.sqlite3_config
mov r10, qword [rsp + 0x40]
test ebx, ebx
jne 0x1401483ee
and dword [rsp + 0x11c], 0xfffffffd
jmp 0x1401483ee
add r15d, 1
cmp esi, r15d
jne 0x1401483ee
mov rdx, rbp
mov ecx, esi
call sym.cmdline_option_value.part.0
lea rdx, str._append
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x140149221
mov byte [rsp + 0xad], 2
mov eax, dword [rsp + 0xf4]
jmp 0x1401485d7
mov dword [rsp + 0xf4], 8
mov eax, 8
mov word [rsp + 0x15e], 0x2c
jmp 0x1401485d7
lea rdx, str._deserialize
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x140149248
mov byte [rsp + 0xad], 5
mov eax, dword [rsp + 0xf4]
jmp 0x1401485d7
lea rdx, str._maxsize
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x140149262
lea edx, [rbx + 1]
cmp edx, esi
jl 0x140149289
lea rdx, str._readonly
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x1401492af
mov byte [rsp + 0xad], 4
mov eax, dword [rsp + 0xf4]
jmp 0x1401485d7
mov rcx, qword [rbp + r14 + 8]
mov dword [rsp + 0x68], edx
call sym.integerValue
mov ebx, dword [rsp + 0x68]
mov qword [rsp + 0x128], rax
mov eax, dword [rsp + 0xf4]
jmp 0x1401485d7
lea rdx, str._nofollow
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x14014936c
or dword [rsp + 0xd4], 0x1000000
mov eax, dword [rsp + 0xf4]
jmp 0x1401485d7
mov rdx, qword [rsp + 0x60]
lea rcx, str.no_such_VFS:___s__n
call sym.ePrintfUtf8
mov ecx, 1
call sym.exit
lea rdx, str._threadsafe
mov rcx, r14
mov qword [rsp + 0x40], r10
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
jne 0x14014949a
add r15d, 1
cmp esi, r15d
je 0x1401491d1
mov rcx, qword [rbp + r13 + 8]
mov qword [rsp + 0x40], r10
call sym.integerValue
mov rbx, rax
call sym.verify_uninitialized
test ebx, ebx
mov r10, qword [rsp + 0x40]
je 0x140149481
cmp ebx, 2
je 0x1401493e2
mov ecx, 3
mov qword [rsp + 0x40], r10
call sym.sqlite3_config
mov r10, qword [rsp + 0x40]
jmp 0x1401483ee
lea rdx, str._ascii
mov rcx, rdi
call sym.strcmp
test eax, eax
je 0x1401494f9
lea rdx, str._tabs
mov rcx, rdi
call sym.strcmp
test eax, eax
je 0x140149427
lea rdx, str._separator
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x1401493fb
add ebx, 1
cmp esi, ebx
je 0x1401491d1
lea rdx, [rsp + 0x15e]
mov r9, qword [rbp + r14 + 8]
lea r8, [0x1401509b2]
mov ecx, 0x14
call sym.sqlite3_snprintf
mov eax, dword [rsp + 0xf4]
jmp 0x1401485d7
mov ecx, 2
mov qword [rsp + 0x40], r10
call sym.sqlite3_config
mov r10, qword [rsp + 0x40]
jmp 0x1401483ee
lea rdx, str._newline
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x140149542
add ebx, 1
cmp esi, ebx
je 0x1401491d1
lea rdx, [rsp + 0x172]
jmp 0x1401493c0
lea rdx, [rsp + 0x15e]
lea r8, [0x14015753c]
mov dword [rsp + 0xf4], 2
jmp 0x1401488fa
mov qword [rsp + 0x40], r10
call sym.verify_uninitialized
mov r10, qword [rsp + 0x40]
xor edx, edx
jmp 0x140149043
call sym.sqlite3_sourceid
lea rcx, str.SQLite_header_and_source_version_mismatch_n_s_n_s_n
lea r8, [0x140159008]
mov rdx, rax
call sym.ePrintfUtf8
mov ecx, 1
call sym.exit
mov ecx, 1
mov qword [rsp + 0x40], r10
call sym.sqlite3_config
mov r10, qword [rsp + 0x40]
jmp 0x1401483ee
lea rdx, str._mmap
mov rcx, r14
mov qword [rsp + 0x40], r10
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
jne 0x14014956d
add r15d, 1
cmp esi, r15d
je 0x1401491d1
mov rcx, qword [rbp + r13 + 8]
mov qword [rsp + 0x40], r10
call sym.integerValue
mov rbx, rax
call sym.verify_uninitialized
mov r8, rbx
mov rdx, rbx
mov ecx, 0x16
call sym.sqlite3_config
mov r10, qword [rsp + 0x40]
jmp 0x1401483ee
lea rdx, [rsp + 0x15e]
mov ecx, 0x14
lea r8, [0x140157544]
mov dword [rsp + 0xf4], 0xa
call sym.sqlite3_snprintf
lea rdx, [rsp + 0x172]
mov ecx, 0x14
lea r8, [0x140157546]
call sym.sqlite3_snprintf
mov eax, dword [rsp + 0xf4]
jmp 0x1401485d7
lea rdx, str._nullvalue
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x1401495a6
add ebx, 1
cmp esi, ebx
je 0x1401491d1
lea rdx, [rsp + 0x1c4]
jmp 0x1401493c0
lea rdx, str._vfs
mov rcx, r14
mov qword [rsp + 0x40], r10
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
jne 0x1401495db
add r15d, 1
cmp esi, r15d
je 0x1401491d1
mov rax, qword [rbp + r13 + 8]
mov qword [rsp + 0x60], rax
jmp 0x1401483ee
lea rdx, str._header
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x140149605
or dword [rsp + 0x11c], 0x80
mov eax, dword [rsp + 0xf4]
mov dword [rsp + 0x108], 1
jmp 0x1401485d7
lea rdx, str._zip
mov rcx, r14
mov qword [rsp + 0x40], r10
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
jne 0x14014963a
mov byte [rsp + 0xad], 3
jmp 0x1401483ee
lea rdx, str._noheader
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x140149664
xor r10d, r10d
mov eax, dword [rsp + 0xf4]
or dword [rsp + 0x11c], 0x80
mov dword [rsp + 0x108], r10d
jmp 0x1401485d7
lea rdx, str._append
mov rcx, r14
mov qword [rsp + 0x40], r10
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
jne 0x14014968b
mov byte [rsp + 0xad], 2
jmp 0x1401483ee
lea rdx, str._echo
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x1401496b5
or dword [rsp + 0x11c], 0x40
mov eax, dword [rsp + 0xf4]
jmp 0x1401485d7
lea rdx, str._deserialize
mov rcx, r14
mov qword [rsp + 0x40], r10
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
jne 0x1401496dc
mov byte [rsp + 0xad], 5
jmp 0x1401483ee
lea rdx, str._eqp
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x14014972b
mov byte [rsp + 0xa9], 1
mov eax, dword [rsp + 0xf4]
jmp 0x1401485d7
lea rdx, str._maxsize
mov rcx, r14
mov qword [rsp + 0x40], r10
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
jne 0x140149701
lea ebx, [r15 + 1]
cmp ebx, esi
jl 0x140149752
lea rdx, str._readonly
mov rcx, r14
mov qword [rsp + 0x40], r10
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
jne 0x140149771
mov byte [rsp + 0xad], 4
jmp 0x1401483ee
lea rdx, str._eqpfull
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x14014979e
mov byte [rsp + 0xa9], 3
mov eax, dword [rsp + 0xf4]
jmp 0x1401485d7
mov rcx, qword [rbp + r13 + 8]
mov r15d, ebx
call sym.integerValue
mov r10, qword [rsp + 0x40]
mov qword [rsp + 0x128], rax
jmp 0x1401483ee
lea rdx, str._nofollow
mov rcx, r14
mov qword [rsp + 0x40], r10
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
jne 0x1401497cc
mov dword [rsp + 0xd4], 0x1000000
jmp 0x1401483ee
lea rdx, str._stats
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x14014985c
mov dword [rsp + 0xbc], 1
mov eax, dword [rsp + 0xf4]
jmp 0x1401485d7
mov r8d, 2
lea rdx, [0x140159167]
mov rcx, r14
mov qword [rsp + 0x40], r10
call sym.strncmp
mov r10, qword [rsp + 0x40]
test eax, eax
je 0x140148431
lea rdx, str._memtrace
mov rcx, r14
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
je 0x1401499ae
lea rdx, str._pcachetrace
mov rcx, r14
mov qword [rsp + 0x40], r10
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
je 0x140149990
lea rdx, str._bail
mov rcx, r14
mov qword [rsp + 0x40], r10
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
jne 0x140149883
mov dword [0x14018a1e0], 1
jmp 0x1401483ee
lea rdx, str._scanstats
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x1401498d1
mov byte [rsp + 0xac], 1
mov eax, dword [rsp + 0xf4]
jmp 0x1401485d7
lea rdx, str._nonce
mov rcx, r14
mov qword [rsp + 0x40], r10
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
je 0x1401498f8
lea rdx, str._unsafe_testing
mov rcx, r14
mov qword [rsp + 0x40], r10
call sym.strcmp
mov r10, qword [rsp + 0x40]
test eax, eax
jne 0x1401483ee
or dword [rsp + 0x11c], 0x400
jmp 0x1401483ee
lea rdx, str._backslash
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x140149939
or dword [rsp + 0x11c], 4
mov eax, dword [rsp + 0xf4]
jmp 0x1401485d7
mov rcx, qword [rsp + 0x380]
add r15d, 1
call sym.free
cmp esi, r15d
mov r10, qword [rsp + 0x40]
je 0x1401491d1
mov qword [rsp + 0x40], r10
mov rcx, qword [rbp + r13 + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov r10, qword [rsp + 0x40]
mov qword [rsp + 0x380], rax
jmp 0x1401483ee
lea rdx, str._bail
mov rcx, rdi
call sym.strcmp
test eax, eax
je 0x140149b73
lea rdx, str._version
mov rcx, rdi
call sym.strcmp
test eax, eax
je 0x140149c5c
lea rdx, str._interactive
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x1401499cc
mov dword [0x14014a784], 1
mov eax, dword [rsp + 0xf4]
jmp 0x1401485d7
mov ecx, 2
mov rax, qword [rsp + 0x58]
call rax
mov rcx, rax
call sym.sqlite3PcacheTraceActivate
mov r10, qword [rsp + 0x40]
jmp 0x1401483ee
mov ecx, 2
mov rax, qword [rsp + 0x58]
call rax
mov rcx, rax
call sym.sqlite3MemTraceActivate
mov r10, qword [rsp + 0x40]
jmp 0x1401483ee
lea rdx, str._batch
mov rcx, rdi
call sym.strcmp
test eax, eax
je 0x140149b73
lea rdx, str._utf8
mov rcx, rdi
call sym.strcmp
test eax, eax
je 0x140149b73
lea rdx, str._no_utf8
mov rcx, rdi
call sym.strcmp
test eax, eax
je 0x140149b73
lea rdx, str._heap
mov rcx, rdi
call sym.strcmp
test eax, eax
je 0x14014861f
lea rdx, str._pagecache
mov rcx, rdi
call sym.strcmp
test eax, eax
je 0x140149a74
lea rdx, str._lookaside
mov rcx, rdi
call sym.strcmp
test eax, eax
je 0x140149a74
lea rdx, str._threadsafe
mov rcx, rdi
call sym.strcmp
test eax, eax
je 0x140149a74
lea rdx, str._nonce
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x140149a83
mov eax, dword [rsp + 0xf4]
add ebx, 2
jmp 0x1401485d7
lea rdx, str._mmap
mov rcx, rdi
call sym.strcmp
test eax, eax
je 0x14014861f
lea rdx, str._memtrace
mov rcx, rdi
call sym.strcmp
test eax, eax
je 0x14014861f
lea rdx, str._pcachetrace
mov rcx, rdi
call sym.strcmp
test eax, eax
je 0x14014861f
lea rdx, str._vfs
mov rcx, rdi
call sym.strcmp
test eax, eax
je 0x14014861f
lea rdx, str._help
mov rcx, rdi
call sym.strcmp
test eax, eax
je 0x140149c31
lea rdx, str._cmd
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x140149be2
lea eax, [rsi - 1]
cmp eax, ebx
je 0x1401487e0
add ebx, 1
cmp esi, ebx
je 0x1401491d1
mov r14, qword [rbp + r14 + 8]
cmp byte [r14], 0x2e
je 0x140149bb4
mov rdi, qword [rsp + 0x48]
xor edx, edx
mov rcx, rdi
call sym.open_db
mov rdx, r14
lea r8, [rsp + 0x78]
mov rcx, rdi
call sym.shell_exec
mov rdx, qword [rsp + 0x78]
mov r13d, eax
test rdx, rdx
je 0x140149b90
lea rcx, str.Error:__s_n
call sym.ePrintfUtf8
cmp dword [0x14018a1e0], 0
jne 0x140149b7f
mov eax, dword [rsp + 0xf4]
jmp 0x1401485d7
mov r11d, r13d
test r13d, r13d
jne 0x140148b6b
jmp 0x140148da7
test eax, eax
je 0x140149b73
mov rdx, r14
lea rcx, str.Error:_unable_to_process_SQL___s__n
call sym.ePrintfUtf8
cmp dword [0x14018a1e0], 0
je 0x140149b73
mov r11d, r13d
jmp 0x140148b6b
mov rdx, qword [rsp + 0x48]
mov rcx, r14
call sym.do_meta_command
mov r13d, eax
test eax, eax
je 0x140149b73
cmp dword [0x14018a1e0], 0
je 0x140149b73
mov r11d, eax
cmp eax, 2
jne 0x140148b6b
jmp 0x1401488a3
mov r8d, 2
lea rdx, [0x140159167]
mov rcx, rdi
call sym.strncmp
test eax, eax
je 0x140149cd8
lea rdx, str._safe
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x140149c9a
movzx eax, word [0x14015ede8]
mov word [rsp + 0xb1], ax
mov eax, dword [rsp + 0xf4]
jmp 0x1401485d7
mov rdx, qword [0x14018a1c8]
lea rcx, str.Usage:__s__OPTIONS___FILENAME__SQL___nFILENAME_is_the_name_of_an_SQLite_database._A_new_database_is_created_nif_the_file_does_not_previously_exist._Defaults_to_:memory:._n
call sym.ePrintfUtf8
lea rdx, str.________________________treat_no_subsequent_arguments_as_options_n____A_ARGS...___________run__.archive_ARGS__and_exit_n____append______________append_the_database_to_the_end_of_the_file_n____ascii_______________set_output_mode_to_ascii_n____bail________________stop_after_hitting_an_error_n____batch_______________force_batch_I_O_n____box_________________set_output_mode_to_box_n____column______________set_output_mode_to_column_n____cmd_COMMAND_________run__COMMAND__before_reading_stdin_n____csv_________________set_output_mode_to_csv_n____deserialize_________open_the_database_using_sqlite3_deserialize___n____echo________________print_inputs_before_execution_n____init_FILENAME_______read_process_named_file_n_____no_header__________turn_headers_on_or_off_n____help________________show_this_message_n____html________________set_output_mode_to_HTML_n____interactive_________force_interactive_I_O_n____json________________set_output_mode_to_json_n____line________________set_output_mode_to_line_n____list________________set_output_mode_to_list_n____lookaside_SIZE_N____use_N_entries_of_SZ_bytes_for_lookaside_memory_n____markdown____________set_output_mode_to_markdown_n____maxsize_N___________maximum_size_for_a___deserialize_database_n____memtrace____________trace_all_memory_allocations_and_deallocations_n____mmap_N______________default_mmap_size_set_to_N_n____newline_SEP_________set_output_row_separator._Default:__n_n____nofollow____________refuse_to_open_symbolic_links_to_database_files_n____nonce_STRING________set_the_safe_mode_escape_nonce_n____nullvalue_TEXT______set_text_string_for_NULL_values._Default__n____pagecache_SIZE_N____use_N_slots_of_SZ_bytes_each_for_page_cache_memory_n____pcachetrace_________trace_all_page_cache_operations_n____quote_______________set_output_mode_to_quote_n____readonly____________open_the_database_read_only_n____safe________________enable_safe_mode_n____separator_SEP_______set_output_column_separator._Default:__n____stats_______________print_memory_stats_before_each_finalize_n____table_______________set_output_mode_to_table_n____tabs________________set_output_mode_to_tabs_n____unsafe_testing______allow_unsafe_commands_and_modes_for_testing_n____version_____________show_SQLite_version_n____vfs_NAME____________use_NAME_as_the_default_VFS_n____zip_________________open_the_file_as_a_ZIP_Archive_n
lea rcx, str.OPTIONS_include:_n_s
call sym.ePrintfUtf8
jmp 0x140148e0c
call sym.sqlite3_sourceid
mov rsi, rax
call sym.sqlite3_libversion
mov ecx, 1
mov rbx, rax
mov rax, qword [rsp + 0x58]
call rax
mov dword [rsp + 0x20], 0x40
mov r9, rsi
mov r8, rbx
mov rcx, rax
lea rdx, str._s__s___d_bit__n
call sym.fPrintfUtf8
jmp 0x1401488a3
lea rdx, str._unsafe_testing
mov rcx, rdi
call sym.strcmp
test eax, eax
je 0x140149b73
mov rdx, qword [0x14018a1c8]
mov r8, rdi
lea rcx, str._s:_Error:_unknown_option:__s_n
call sym.ePrintfUtf8
lea rcx, str.Use__help_for_a_list_of_options._n
call sym.ePutsUtf8.isra.0
jmp 0x140148da7
mov r11d, r13d
mov r13, rdi
mov edi, dword [rsp + 0x40]
mov r10, qword [rsp + 0x50]
test edi, edi
jne 0x140149d48
mov rdi, qword [rsp + 0x48]
mov edx, 2
mov dword [rsp + 0x40], r11d
mov qword [rsp + 0x38], r10
mov rcx, rdi
call sym.open_db
cmp byte [r13 + 2], 0
mov r10, qword [rsp + 0x38]
mov r11d, dword [rsp + 0x40]
je 0x140149d5c
lea r9, [r13 + 2]
sub ebx, 1
lea r8, [rbp + r14 - 8]
mov rcx, rdi
mov qword [r15], r9
sub esi, ebx
mov edx, 1
mov r9d, esi
call sym.arDotCommand
mov r10, qword [rsp + 0x38]
mov r11d, dword [rsp + 0x40]
jmp 0x1401489f0
mov rdx, r13
lea rcx, str.Error:_cannot_mix_regular_SQL_or_dot_commands_with___s__n
call sym.ePrintfUtf8
jmp 0x140148da7
mov rcx, qword [rsp + 0x48]
sub esi, ebx
mov r8, r15
mov edx, 1
mov r9d, esi
mov dword [rsp + 0x40], r11d
mov qword [rsp + 0x38], r10
call sym.arDotCommand
mov r10, qword [rsp + 0x38]
mov r11d, dword [rsp + 0x40]
jmp 0x1401489f0