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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x98
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x88], rax
movsxd rbx, edx
xor edx, edx
mov rdi, r8
mov qword [rsp + 0x38], r8
mov r13, rcx
mov ebp, edx
mov dword [rsp + 0x30], ebx
cmp ebx, 1
jne 0x1401b04ed
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 r12, str.sqlite_temp_master
jmp 0x1401b04fb
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 r12, str.sqlite_master
lea rcx, [0x14020c2dc]
xor r9d, r9d
mov qword [rsp + 0x80], rdx
mov dword [rsp + 0x60], edx
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x70], rcx
lea rcx, [rsp + 0x48]
lea r8, [rsp + 0x68]
lea edx, [r9 + 3]
mov qword [rsp + 0xe8], r14
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x90], r15
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x50], ebx
call fcn.1401a8920
mov esi, dword [rsp + 0x60]
test esi, esi
jne 0x1401b09e6
mov r8, qword [r13 + 0x10]
mov r14, rbx
mov rdx, r12
shl r14, 5
mov rcx, r13
mov r8, qword [r14 + r8]
call fcn.14014dc00
test rax, rax
je 0x1401b0585
or byte [rax + 0x32], 1
mov r15, qword [r13 + 0x10]
mov rcx, qword [r15 + r14 + 8]
test rcx, rcx
jne 0x1401b05a7
cmp ebx, 1
jne 0x1401b05a0
mov rax, qword [r15 + 0x38]
or word [rax + 0x72], bx
xor eax, eax
jmp 0x1401b09fa
call fcn.1401497d0
mov r12, qword [r15 + r14 + 8]
cmp byte [r12 + 0x10], bpl
jne 0x1401b0799
mov rbx, qword [r12 + 8]
mov rcx, r12
mov esi, ebp
call fcn.1401497d0
movzx eax, byte [r12 + 0x10]
cmp al, 2
je 0x1401b0732
cmp al, 1
je 0x1401b0732
cmp byte [rbx + 0x89], sil
je 0x1401b0600
mov rax, qword [rbx + 0x80]
cmp qword [rax], rsi
je 0x1401b0600
mov esi, 0x106
jmp 0x1401b0732
mov rax, qword [r12 + 8]
cmp byte [r12 + 0x11], sil
je 0x1401b064b
cmp qword [rax + 0x80], r12
je 0x1401b0628
cmp byte [rax + 0x88], sil
je 0x1401b0628
mov esi, 0x106
jmp 0x1401b0732
mov rax, qword [rax + 0x78]
test rax, rax
je 0x1401b064b
cmp qword [rax], r12
je 0x1401b0642
cmp dword [rax + 8], 1
jne 0x1401b0642
cmp byte [rax + 0xc], 1
jne 0x1401b05f6
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1401b0631
cmp dword [rbx + 0x40], ebp
sete al
mov byte [rbx + 0x23], al
cmp qword [rbx + 0x18], rbp
jne 0x1401b066a
mov rcx, rbx
call fcn.140189cf0
mov esi, eax
test eax, eax
je 0x1401b0654
jmp 0x1401b066e
test esi, esi
je 0x1401b06a8
cmp byte [rbx + 0x27], bpl
jne 0x1401b06a8
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401b06a8
mov rcx, qword [rcx + 0x78]
test rcx, rcx
je 0x1401b06a4
mov rdi, qword [rcx + 0x20]
call fcn.140145ea0
mov r11, qword [rdi + 0xe0]
cmp dword [r11 + 0x18], ebp
jne 0x1401b06a4
mov rcx, rdi
call fcn.140188850
mov qword [rbx + 0x18], rbp
cmp sil, 5
jne 0x1401b06e9
cmp byte [rbx + 0x27], bpl
jne 0x1401b06e9
mov rdi, qword [rbx + 8]
add rdi, 0x2b8
je 0x1401b06e9
mov rax, qword [rdi]
test rax, rax
je 0x1401b06e9
mov edx, dword [rdi + 0x10]
test edx, edx
js 0x1401b06e9
mov rcx, qword [rdi + 8]
call rax
test eax, eax
je 0x1401b06e2
inc dword [rdi + 0x10]
jmp 0x1401b0654
mov dword [rdi + 0x10], 0xffffffff
test esi, esi
jne 0x1401b072d
cmp byte [r12 + 0x10], bpl
jne 0x1401b0716
inc dword [rbx + 0x3c]
cmp byte [r12 + 0x11], bpl
je 0x1401b0716
mov byte [r12 + 0x3c], 1
mov rax, qword [rbx + 0x78]
mov qword [r12 + 0x40], rax
lea rax, [r12 + 0x30]
mov qword [rbx + 0x78], rax
mov rdi, qword [rsp + 0x38]
mov byte [r12 + 0x10], 1
cmp byte [rbx + 0x27], 1
jae 0x1401b0732
mov byte [rbx + 0x27], 1
jmp 0x1401b0732
mov rdi, qword [rsp + 0x38]
cmp byte [r12 + 0x11], bpl
je 0x1401b0759
dec dword [r12 + 0x14]
jne 0x1401b0759
mov rax, qword [r12 + 8]
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x1401b0754
call qword [0x1402bc390]
mov byte [r12 + 0x12], bpl
test esi, esi
je 0x1401b0794
movzx eax, sil
cmp eax, 0x1a
ja 0x1401b0776
lea r9, str.hI__
mov r9, qword [r9 + rax*8]
test r9, r9
jne 0x1401b077d
lea r9, str.unknown_error
lea r8, [0x14021ec64]
mov rdx, r13
mov rcx, rdi
call fcn.14016b870
jmp 0x1401b09bf
mov ebp, 1
xor esi, esi
lea rdi, [rsp + 0x68]
mov ebx, esi
mov rcx, qword [r15 + r14 + 8]
inc ebx
mov r8, rdi
mov edx, ebx
call fcn.14014b170
add rdi, 4
cmp ebx, 5
jl 0x1401b07a2
mov eax, dword [rsp + 0x68]
mov rcx, qword [r15 + r14 + 0x18]
mov edx, dword [rsp + 0x78]
mov r12d, dword [rsp + 0x30]
mov dword [rcx], eax
mov rax, qword [r13 + 0x10]
test edx, edx
je 0x1401b084a
mov rcx, qword [rax + 0x18]
test r12d, r12d
jne 0x1401b0824
and dl, 3
mov ebx, 1
movzx edx, dl
cmove edx, ebx
mov byte [rcx + 0x71], dl
lea rdx, str.BINARY
mov rax, rdx
nop dword [rax]
inc rax
cmp byte [rax], sil
jne 0x1401b0800
sub eax, edx
lea rcx, [r13 + 0x2a0]
and eax, 0x3fffffff
mov r8d, eax
call fcn.140144b20
mov qword [r13 + 0x38], rax
jmp 0x1401b0859
movzx eax, byte [rcx + 0x71]
cmp edx, eax
je 0x1401b0854
mov rcx, qword [rsp + 0x38]
lea r8, str.attached_databases_must_use_the_same_text_encoding_as_main_database
mov rdx, r13
call fcn.14016b870
mov esi, 1
jmp 0x1401b09b1
mov rcx, qword [r14 + rax + 0x18]
or word [rcx + 0x72], 4
mov ebx, 1
mov rax, qword [r13 + 0x10]
mov rdx, qword [r15 + r14 + 0x18]
mov rcx, qword [rax + 0x18]
movzx eax, byte [rcx + 0x71]
mov byte [rdx + 0x71], al
mov rax, qword [r15 + r14 + 0x18]
cmp dword [rax + 0x74], esi
jne 0x1401b08b4
mov ecx, dword [rsp + 0x70]
test ecx, ecx
jns 0x1401b0890
cmp ecx, 0x80000000
jne 0x1401b088e
mov ecx, 0x7fffffff
jmp 0x1401b089a
neg ecx
mov eax, 0x7d0
test ecx, ecx
cmove ecx, eax
mov rax, qword [r15 + r14 + 0x18]
mov dword [rax + 0x74], ecx
mov rax, qword [r15 + r14 + 0x18]
mov rcx, qword [r15 + r14 + 8]
mov edx, dword [rax + 0x74]
call fcn.14014a500
mov rax, qword [r15 + r14 + 0x18]
mov ecx, dword [rsp + 0x6c]
mov byte [rax + 0x70], cl
mov rax, qword [r15 + r14 + 0x18]
cmp byte [rax + 0x70], sil
jne 0x1401b08cf
mov byte [rax + 0x70], 1
mov rax, qword [r15 + r14 + 0x18]
cmp byte [rax + 0x70], 4
jbe 0x1401b08f5
mov rcx, qword [rsp + 0x38]
lea r8, str.unsupported_file_format
mov rdx, r13
call fcn.14016b870
mov esi, ebx
jmp 0x1401b09b1
test r12d, r12d
jne 0x1401b0907
cmp ecx, 4
jl 0x1401b0907
and dword [r13 + 0x18], 0xffefffff
mov r8, qword [r13 + 0x10]
mov r9, qword [rsp + 0x40]
lea rdx, str.SELECT_name__rootpage__sql_FROM__q._s_ORDER_BY_rowid
mov r8, qword [r14 + r8]
mov rcx, r13
call fcn.1401603a0
mov rbx, qword [r13 + 0x188]
lea r9, [rsp + 0x48]
lea r8, [fcn.1401a8920]
mov rdx, rax
mov rcx, r13
mov rdi, rax
mov qword [r13 + 0x188], rsi
mov qword [rsp + 0x20], rsi
call fcn.1401aff70
mov rdx, rdi
mov rcx, r13
mov esi, eax
test eax, eax
mov qword [r13 + 0x188], rbx
cmove esi, dword [rsp + 0x60]
call fcn.1401434c0
test esi, esi
jne 0x1401b097a
mov edx, r12d
mov rcx, r13
call fcn.140164b30
cmp byte [r13 + 0x2a], 0
je 0x1401b0993
or edx, 0xffffffff
mov rcx, r13
mov esi, 7
call fcn.140171220
jmp 0x1401b0997
test esi, esi
je 0x1401b09a1
test dword [r13 + 0x18], 0x800000
je 0x1401b09b1
mov rax, qword [r13 + 0x10]
mov rcx, qword [r14 + rax + 0x18]
or word [rcx + 0x72], 1
xor esi, esi
test ebp, ebp
je 0x1401b09bf
mov rcx, qword [r15 + r14 + 8]
call fcn.140197700
mov rbx, qword [r15 + r14 + 8]
cmp byte [rbx + 0x11], 0
je 0x1401b09e6
dec dword [rbx + 0x14]
jne 0x1401b09e6
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x1401b09e2
call qword [0x1402bc390]
mov byte [rbx + 0x12], 0
cmp esi, 7
je 0x1401b09f3
cmp esi, 0xc0a
jne 0x1401b09f8
mov byte [r13 + 0x2a], 1
mov eax, esi
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14010d170
add rsp, 0x98
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret