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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x98
mov rax, qword [0x1402d9850]
xor rax, rsp
mov qword [rsp + 0x88], rax
movsxd r12, edx
mov rdi, r8
xor edx, edx
mov qword [rsp + 0x30], r8
mov rbp, rcx
mov r15d, edx
cmp r12d, 1
jne 0x1401adeab
lea rax, str.CREATE_TEMP_TABLE_sqlite_temp_master__n__type_text__n__name_text__n__tbl_name_text__n__rootpage_integer__n__sql_text_n_
lea rbx, str.sqlite_temp_master
jmp 0x1401adeb9
lea rax, str.CREATE_TABLE_sqlite_master__n__type_text__n__name_text__n__tbl_name_text__n__rootpage_integer__n__sql_text_n_
lea rbx, str.sqlite_master
xor r9d, r9d
mov qword [rsp + 0x80], rdx
lea rcx, [0x140234d2c]
mov dword [rsp + 0x60], edx
mov qword [rsp + 0x70], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x58], r8
lea r8, [rsp + 0x68]
lea edx, [r9 + 3]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0xe8], r13
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], r12d
call fcn.1401adc20
mov esi, dword [rsp + 0x60]
test esi, esi
jne 0x1401ae398
mov r8, qword [rbp + 0x10]
mov rsi, r12
shl rsi, 5
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x40], rsi
mov r8, qword [rsi + r8]
call fcn.1401a8af0
test rax, rax
je 0x1401adf41
or byte [rax + 0x32], 1
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + rsi + 8]
lea r13, [rax + rsi]
test rcx, rcx
jne 0x1401adf69
cmp r12d, 1
jne 0x1401adf62
mov rax, qword [rax + 0x38]
or word [rax + 0x72], r12w
xor eax, eax
jmp 0x1401ae3ab
mov qword [rsp + 0x90], r14
call fcn.14019d020
mov r14, qword [r13 + 8]
cmp byte [r14 + 0x10], r15b
jne 0x1401ae156
mov rbx, qword [r14 + 8]
mov rcx, r14
mov esi, r15d
call fcn.14019d020
movzx eax, byte [r14 + 0x10]
dec al
cmp al, 1
jbe 0x1401ae0ec
cmp byte [rbx + 0x81], sil
je 0x1401adfbe
mov rax, qword [rbx + 0x78]
cmp qword [rax], rsi
je 0x1401adfbe
mov esi, 0x106
jmp 0x1401ae0ec
mov rax, qword [r14 + 8]
cmp byte [r14 + 0x11], sil
je 0x1401ae00a
cmp qword [rax + 0x78], r14
je 0x1401adfe1
cmp byte [rax + 0x80], sil
je 0x1401adfe1
mov esi, 0x106
jmp 0x1401ae0ec
mov rax, qword [rax + 0x70]
test rax, rax
je 0x1401ae00a
nop word [rax + rax]
cmp qword [rax], r14
je 0x1401ae001
cmp dword [rax + 8], 1
jne 0x1401ae001
cmp byte [rax + 0xc], 1
jne 0x1401adfb4
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1401adff0
cmp dword [rbx + 0x3c], r15d
sete al
mov byte [rbx + 0x23], al
cmp qword [rbx + 0x18], r15
jne 0x1401ae02a
mov rcx, rbx
call fcn.14018b300
mov esi, eax
test eax, eax
je 0x1401ae014
jmp 0x1401ae02e
test esi, esi
je 0x1401ae068
cmp byte [rbx + 0x2e], r15b
jne 0x1401ae068
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401ae068
mov rcx, qword [rcx + 0x78]
test rcx, rcx
je 0x1401ae064
mov rdi, qword [rcx + 0x20]
call fcn.1401b3ba0
mov rax, qword [rdi + 0xe0]
cmp dword [rax + 0x18], r15d
jne 0x1401ae064
mov rcx, rdi
call fcn.14018f890
mov qword [rbx + 0x18], r15
cmp sil, 5
jne 0x1401ae0a9
cmp byte [rbx + 0x2e], r15b
jne 0x1401ae0a9
mov rdi, qword [rbx + 8]
add rdi, 0x2a8
je 0x1401ae0a9
mov rax, qword [rdi]
test rax, rax
je 0x1401ae0a9
mov edx, dword [rdi + 0x10]
test edx, edx
js 0x1401ae0a9
mov rcx, qword [rdi + 8]
call rax
test eax, eax
je 0x1401ae0a2
inc dword [rdi + 0x10]
jmp 0x1401ae014
mov dword [rdi + 0x10], 0xffffffff
test esi, esi
jne 0x1401ae0e7
cmp byte [r14 + 0x10], r15b
jne 0x1401ae0d1
inc dword [rbx + 0x38]
cmp byte [r14 + 0x11], r15b
je 0x1401ae0d1
mov byte [r14 + 0x3c], 1
mov rax, qword [rbx + 0x70]
mov qword [r14 + 0x40], rax
lea rax, [r14 + 0x30]
mov qword [rbx + 0x70], rax
mov rdi, qword [rsp + 0x30]
mov byte [r14 + 0x10], 1
cmp byte [rbx + 0x2e], 1
jae 0x1401ae0ec
mov byte [rbx + 0x2e], 1
jmp 0x1401ae0ec
mov rdi, qword [rsp + 0x30]
cmp byte [r14 + 0x11], r15b
je 0x1401ae110
sub dword [r14 + 0x14], 1
jne 0x1401ae110
mov rax, qword [r14 + 8]
mov rcx, qword [rax + 0x50]
test rcx, rcx
je 0x1401ae10c
call qword [0x1402da578]
mov byte [r14 + 0x12], r15b
test esi, esi
je 0x1401ae14b
movzx eax, sil
cmp eax, 0x1a
ja 0x1401ae12d
lea r9, str.not_an_error
mov r9, qword [r9 + rax*8]
test r9, r9
jne 0x1401ae134
lea r9, str.unknown_error
lea r8, [0x140239fd0]
mov rdx, rbp
mov rcx, rdi
call fcn.1401bb710
jmp 0x1401ae369
mov rsi, qword [rsp + 0x40]
mov r15d, 1
xor r14d, r14d
lea rdi, [rsp + 0x68]
mov ebx, r14d
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [r13 + 8]
inc ebx
mov edx, ebx
mov r8, rdi
call fcn.14019d390
add rdi, 4
cmp ebx, 5
jl 0x1401ae170
mov eax, dword [rsp + 0x68]
mov rcx, qword [r13 + 0x18]
mov edx, dword [rsp + 0x78]
mov dword [rcx], eax
mov rax, qword [rbp + 0x10]
test edx, edx
je 0x1401ae20d
mov rcx, qword [rax + 0x18]
test r12d, r12d
jne 0x1401ae1e7
and dl, 3
mov ebx, 1
movzx edx, dl
cmove edx, ebx
mov byte [rcx + 0x71], dl
lea rdx, str.BINARY
mov rax, rdx
inc rax
cmp byte [rax], r14b
jne 0x1401ae1c3
sub eax, edx
lea rcx, [rbp + 0x290]
and eax, 0x3fffffff
mov r8d, eax
call fcn.1401ad000
mov qword [rbp + 0x38], rax
jmp 0x1401ae21c
movzx eax, byte [rcx + 0x71]
cmp edx, eax
je 0x1401ae217
mov rcx, qword [rsp + 0x30]
lea r8, str.attached_databases_must_use_the_same_text_encoding_as_main_database
mov rdx, rbp
call fcn.1401bb710
mov esi, 1
jmp 0x1401ae35b
mov rcx, qword [rsi + rax + 0x18]
or word [rcx + 0x72], 4
mov ebx, 1
mov rax, qword [rbp + 0x10]
mov rdx, qword [r13 + 0x18]
mov rcx, qword [rax + 0x18]
movzx eax, byte [rcx + 0x71]
mov byte [rdx + 0x71], al
mov rcx, qword [r13 + 0x18]
cmp dword [rcx + 0x74], r14d
jne 0x1401ae25f
mov eax, dword [rsp + 0x70]
test eax, eax
jne 0x1401ae248
mov eax, 0x7d0
jmp 0x1401ae24c
jns 0x1401ae24c
neg eax
mov dword [rcx + 0x74], eax
mov rax, qword [r13 + 0x18]
mov rcx, qword [r13 + 8]
mov edx, dword [rax + 0x74]
call fcn.14019f3a0
mov rax, qword [r13 + 0x18]
mov ecx, dword [rsp + 0x6c]
mov byte [rax + 0x70], cl
mov rax, qword [r13 + 0x18]
cmp byte [rax + 0x70], r14b
jne 0x1401ae278
mov byte [rax + 0x70], 1
mov rax, qword [r13 + 0x18]
cmp byte [rax + 0x70], 4
jbe 0x1401ae29d
mov rcx, qword [rsp + 0x30]
lea r8, str.unsupported_file_format
mov rdx, rbp
call fcn.1401bb710
mov esi, ebx
jmp 0x1401ae35b
test r12d, r12d
jne 0x1401ae2ae
cmp ecx, 4
jl 0x1401ae2ae
and dword [rbp + 0x18], 0xffefffff
mov r8, qword [rbp + 0x10]
lea rdx, str.SELECT_name__rootpage__sql_FROM__q._s_ORDER_BY_rowid
mov r9, qword [rsp + 0x38]
mov rcx, rbp
mov r8, qword [rsi + r8]
call fcn.1401b0530
mov rbx, qword [rbp + 0x178]
lea r9, [rsp + 0x48]
lea r8, [fcn.1401adc20]
mov qword [rbp + 0x178], r14
mov rdx, rax
mov qword [rsp + 0x20], r14
mov rcx, rbp
mov rdi, rax
call fcn.14016f310
test eax, eax
mov qword [rbp + 0x178], rbx
mov esi, eax
mov rdx, rdi
cmove esi, dword [rsp + 0x60]
mov rcx, rbp
call fcn.1401a2260
test esi, esi
jne 0x1401ae321
mov edx, r12d
mov rcx, rbp
call fcn.1401999b0
cmp byte [rbp + 0x2a], r14b
je 0x1401ae338
xor edx, edx
mov rcx, rbp
mov esi, 7
call fcn.1401b8230
jmp 0x1401ae33c
test esi, esi
je 0x1401ae345
test dword [rbp + 0x18], 0x800000
je 0x1401ae35b
mov rax, qword [rbp + 0x10]
mov esi, r14d
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + rax + 0x18]
or word [rcx + 0x72], 1
test r15d, r15d
je 0x1401ae369
mov rcx, qword [r13 + 8]
call fcn.14019c640
mov rbx, qword [r13 + 8]
mov r14, qword [rsp + 0x90]
cmp byte [rbx + 0x11], 0
je 0x1401ae398
sub dword [rbx + 0x14], 1
jne 0x1401ae398
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x50]
test rcx, rcx
je 0x1401ae394
call qword [0x1402da578]
mov byte [rbx + 0x12], 0
cmp esi, 7
je 0x1401ae3a5
cmp esi, 0xc0a
jne 0x1401ae3a9
mov byte [rbp + 0x2a], 1
mov eax, esi
mov r13, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14012a1e0
add rsp, 0x98
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret