Function at 0x140023370
Capabilities:
Terminate process

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, qword [rcx]
mov rbx, rcx
mov edi, edx
mov rcx, rsi
test rsi, rsi
je 0x1400233c8
cmp byte [rbx + 0x12], 0
jne 0x1400233b0
movzx r8d, byte [rbx + 0xc]
xor r9d, r9d
mov edx, 0x3fa
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.sqlite3_db_config
mov r8, rbx
lea rdx, [sym.safeModeAuth]
call sym.sqlite3_set_authorizer
mov rcx, qword [rbx]
jmp 0x14002338e
mov rax, qword [rbx + 0x2c8]
mov rbp, qword [rax + 8]
movzx eax, byte [rbx + 0xd]
test al, al
jne 0x140023880
test rbp, rbp
je 0x1400233ee
cmp byte [rbp], 0
jne 0x1400238a0
mov byte [rbx + 0xd], 1
xor r9d, r9d
mov r8d, dword [rbx + 0x34]
mov rdx, rbx
mov rcx, rbp
or r8d, 6
call sym.sqlite3_open_v2
mov rcx, qword [rbx]
test rcx, rcx
je case.0x140023896.0
call sym.sqlite3_errcode
test eax, eax
je 0x14002347e
mov rsi, qword [rbx]
mov rcx, rsi
call sym.sqlite3_errmsg
mov rdx, rbp
lea rcx, str.Error:_unable_to_open_database___s_:__s_n
mov r8, rax
call sym.ePrintfUtf8
and edi, 1
je 0x140023acf
mov rcx, qword [rbx]
call sym.sqlite3_close
lea rcx, [0x140152a7c]
mov rdx, rbx
call sym.sqlite3_open
mov rcx, qword [rbx]
test rcx, rcx
je 0x140023ac3
call sym.sqlite3_errcode
test eax, eax
jne 0x140023ac3
mov rdx, rbp
lea rcx, str.Notice:_using_substitute_in_memory_database_instead_of___s__n
call sym.ePrintfUtf8
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x3fa
mov qword [0x14018a1d8], rcx
call sym.sqlite3_db_config
mov esi, dword [rbx + 0x7c]
mov rcx, qword [rbx]
mov edx, 0x3f9
mov r9d, 0
and esi, 0x400
setne r8b
movzx r8d, r8b
call sym.sqlite3_db_config
test esi, esi
mov rcx, qword [rbx]
mov r9d, 0
sete r8b
mov edx, 0x3f2
movzx r8d, r8b
call sym.sqlite3_db_config
mov rcx, qword [rbx]
mov edx, 1
call sym.sqlite3_enable_load_extension
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call sym.sqlite3_shathree_init
lea rax, [sym.uintCollFunc]
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 1
lea rdx, str.uint
call sym.sqlite3_create_collation
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call sym.sqlite3_decimal_init
lea rax, [sym.base64]
mov rcx, qword [rbx]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov r9d, 0x280801
mov r8d, 1
lea rdx, str.base64
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call sym.sqlite3_create_function
lea rax, [sym.base85]
mov rcx, qword [rbx]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov r9d, 0x280801
mov r8d, 1
lea rdx, str.base85
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call sym.sqlite3_create_function
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call sym.sqlite3_regexp_init
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call sym.sqlite3_ieee_init
mov rsi, qword [rbx]
call sym.sqlite3_libversion_number
xor r9d, r9d
lea r8, [0x14014a5e0]
lea rdx, str.generate_series
mov rcx, rsi
call sym.sqlite3_create_module
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call sym.sqlite3_fileio_init
mov rcx, qword [rbx]
xor r9d, r9d
lea r8, [0x14014a500]
lea rdx, str.completion
call sym.sqlite3_create_module
cmp byte [rbx + 0x12], 0
je 0x1400238d0
lea rax, [sym.shellStrtod]
mov rcx, qword [rbx]
mov qword [rsp + 0x38], 0
lea rdi, [sym.shellDtostr]
mov qword [rsp + 0x30], 0
mov r9d, 1
mov r8d, 1
lea rdx, str.strtod
mov qword [rsp + 0x28], rax
lea rsi, str.dtostr
mov qword [rsp + 0x20], 0
call sym.sqlite3_create_function
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x38], 0
mov r9d, 1
mov r8d, 1
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
call sym.sqlite3_create_function
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x38], 0
mov r9d, 1
mov r8d, 2
lea rdi, [sym.editFunc]
mov qword [rsp + 0x30], 0
lea rsi, str.edit
mov qword [rsp + 0x20], 0
call sym.sqlite3_create_function
lea rax, [sym.shellAddSchemaName]
mov rcx, qword [rbx]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov r9d, 1
mov r8d, 3
lea rdx, str.shell_add_schema
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call sym.sqlite3_create_function
lea rax, [sym.shellModuleSchema]
mov rcx, qword [rbx]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov r9d, 1
mov r8d, 1
lea rdx, str.shell_module_schema
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call sym.sqlite3_create_function
lea rax, [sym.shellPutsFunc]
mov rcx, qword [rbx]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov r9d, 1
mov r8d, 1
lea rdx, str.shell_putsnl
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call sym.sqlite3_create_function
lea rax, [sym.shellUSleepFunc]
mov rcx, qword [rbx]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov r9d, 1
mov r8d, 1
lea rdx, str.usleep
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call sym.sqlite3_create_function
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x38], 0
mov r9d, 1
mov r8d, 1
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
call sym.sqlite3_create_function
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x38], 0
mov r9d, 1
mov r8d, 2
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
call sym.sqlite3_create_function
movzx eax, byte [rbx + 0xd]
cmp al, 3
je 0x140023990
lea edx, [rax - 5]
cmp dl, 1
jbe 0x140023910
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140023388
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp al, 6
ja case.0x140023896.0
lea rdx, [0x140155a2c]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
shr edx, 1
mov rcx, rbp
and edx, 1
call sym.deduceDatabaseType
mov byte [rbx + 0xd], al
cmp al, 6
ja case.default.0x1400238c9
lea rdx, [0x140155a48]
movzx eax, al
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov rsi, qword [rbx]
lea rdi, str.zipfile
xor r9d, r9d
lea r8, [0x14014a1e0]
mov rdx, rdi
mov rcx, rsi
call sym.sqlite3_create_module
test eax, eax
je 0x140023a60
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call sym.sqlite3_sqlar_init
jmp 0x140023613
mov dword [rsp + 0x4c], 0
lea rdx, [rsp + 0x4c]
cmp al, 5
je 0x140023a50
mov rcx, rbx
call sym.readHexDb.constprop.0
mov r8, rax
test r8, r8
je 0x140023875
movsxd r9, dword [rsp + 0x4c]
mov rcx, qword [rbx]
mov dword [rsp + 0x28], 3
lea rsi, [0x140150af4]
mov rdx, rsi
mov qword [rsp + 0x20], r9
call sym.sqlite3_deserialize
test eax, eax
jne 0x1400239f0
cmp qword [rbx + 0x88], 0
jle 0x140023869
mov rcx, qword [rbx]
lea r9, [rbx + 0x88]
mov r8d, 0x24
mov rdx, rsi
call sym.sqlite3_file_control
jmp 0x140023869
mov rdx, rbp
lea rcx, str.CREATE_VIRTUAL_TABLE_zip_USING_zipfile__Q__
call sym.sqlite3_mprintf
mov rsi, rax
test rax, rax
je 0x140023ad9
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov qword [rsp + 0x20], 0
call sym.sqlite3_exec
mov rcx, rsi
call sym.sqlite3_free
jmp 0x140023869
mov rdx, rbx
xor ecx, ecx
call sym.sqlite3_open
jmp case.default.0x1400238c9
mov edx, eax
lea rcx, str.Error:_sqlite3_deserialize___returns__d_n
call sym.ePrintfUtf8
jmp 0x140023965
mov rdx, rbx
lea rcx, [0x140152a7c]
call sym.sqlite3_open
jmp case.default.0x1400238c9
lea r9, str.apndvfs
jmp 0x1400233f5
mov r8d, dword [rbx + 0x34]
xor r9d, r9d
mov rdx, rbx
mov rcx, rbp
or r8d, 1
call sym.sqlite3_open_v2
jmp case.default.0x1400238c9
mov rcx, rbp
call sym.readFile
mov r8, rax
jmp 0x140023930
mov r8d, 0xffffffff
lea rdx, str.zipfile_cds
mov rcx, rsi
call sym.sqlite3_overload_function
test eax, eax
jne 0x1400238f7
lea rax, [sym.zipfileFinal]
mov r9d, 1
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x38], rax
lea rax, [sym.zipfileStep]
mov r8d, 0xffffffff
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call sym.sqlite3_create_function
jmp 0x1400238f7
lea rcx, str.Also:_unable_to_open_substitute_in_memory_database._n
call sym.ePutsUtf8.isra.0
mov ecx, 1
call sym.exit
call sym.shell_out_of_memory
nop
nop