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

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x78
movsxd rbx, edx
xor edx, edx
mov rdi, r8
mov ebp, edx
mov r13, rcx
cmp ebx, 1
jne 0x14007af1f
lea r12, str.sqlite_temp_master
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_
mov qword [rsp + 0xb0], r12
jmp 0x14007af35
lea r12, str.sqlite_master
lea rax, [0x140114600]
mov qword [rsp + 0xb0], r12
lea rcx, [0x1401130e0]
xor r9d, r9d
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x68], edx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x50]
lea r8, [rsp + 0x30]
lea edx, [r9 + 3]
mov qword [rsp + 0xc8], r14
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x58], ebx
call fcn.14007ac80
mov esi, dword [rsp + 0x68]
test esi, esi
jne 0x14007b498
mov r8, qword [r13 + 0x10]
mov r14, rbx
mov rdx, r12
shl r14, 5
mov rcx, r13
mov r8, qword [r14 + r8]
call fcn.140062070
test rax, rax
je 0x14007afb4
or byte [rax + 0x32], 1
mov r15, qword [r13 + 0x10]
mov rcx, qword [r15 + r14 + 8]
test rcx, rcx
jne 0x14007afd6
cmp ebx, 1
jne 0x14007afcf
mov rax, qword [r15 + 0x38]
or word [rax + 0x72], bx
xor eax, eax
jmp 0x14007b4ac
call fcn.1400357d0
mov r12, qword [r15 + r14 + 8]
cmp byte [r12 + 0x10], bpl
jne 0x14007b1e3
mov rbx, qword [r12 + 8]
mov rcx, r12
mov esi, ebp
call fcn.1400357d0
movzx eax, byte [r12 + 0x10]
cmp al, 2
je 0x14007b17b
cmp al, 1
je 0x14007b17b
cmp byte [rbx + 0x89], sil
je 0x14007b02f
mov rax, qword [rbx + 0x80]
cmp qword [rax], rsi
je 0x14007b02f
mov esi, 0x106
jmp 0x14007b17b
mov rax, qword [r12 + 8]
cmp byte [r12 + 0x11], sil
je 0x14007b07a
cmp qword [rax + 0x80], r12
je 0x14007b057
cmp byte [rax + 0x88], sil
je 0x14007b057
mov esi, 0x106
jmp 0x14007b17b
mov rax, qword [rax + 0x78]
test rax, rax
je 0x14007b07a
cmp qword [rax], r12
je 0x14007b071
cmp dword [rax + 8], 1
jne 0x14007b071
cmp byte [rax + 0xc], 1
jne 0x14007b099
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14007b060
cmp dword [rbx + 0x40], ebp
sete al
mov byte [rbx + 0x23], al
cmp qword [rbx + 0x18], rbp
jne 0x14007b0a3
mov rcx, rbx
call fcn.140038300
mov esi, eax
test eax, eax
je 0x14007b083
jmp 0x14007b0a7
mov esi, 0x106
jmp 0x14007b17b
test esi, esi
je 0x14007b0e1
cmp byte [rbx + 0x27], bpl
jne 0x14007b0e1
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14007b0e1
mov rcx, qword [rcx + 0x78]
test rcx, rcx
je 0x14007b0dd
mov rdi, qword [rcx + 0x20]
call fcn.14002be20
mov r11, qword [rdi + 0xe0]
cmp dword [r11 + 0x18], ebp
jne 0x14007b0dd
mov rcx, rdi
call fcn.14002e6b0
mov qword [rbx + 0x18], rbp
cmp sil, 5
jne 0x14007b122
cmp byte [rbx + 0x27], bpl
jne 0x14007b122
mov rdi, qword [rbx + 8]
add rdi, 0x2b8
je 0x14007b122
mov rax, qword [rdi]
test rax, rax
je 0x14007b122
mov edx, dword [rdi + 0x10]
test edx, edx
js 0x14007b122
mov rcx, qword [rdi + 8]
call rax
test eax, eax
je 0x14007b11b
inc dword [rdi + 0x10]
jmp 0x14007b083
mov dword [rdi + 0x10], 0xffffffff
test esi, esi
jne 0x14007b173
cmp byte [r12 + 0x10], bpl
jne 0x14007b14f
inc dword [rbx + 0x3c]
cmp byte [r12 + 0x11], bpl
je 0x14007b14f
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 byte [r12 + 0x10], 1
cmp byte [rbx + 0x27], 1
jae 0x14007b169
mov rdi, qword [rsp + 0xc0]
mov byte [rbx + 0x27], 1
jmp 0x14007b17b
mov rdi, qword [rsp + 0xc0]
jmp 0x14007b17b
mov rdi, qword [rsp + 0xc0]
cmp byte [r12 + 0x11], bpl
je 0x14007b1a3
add dword [r12 + 0x14], 0xffffffff
jne 0x14007b1a3
mov rax, qword [r12 + 8]
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x14007b19e
call qword [0x140144100]
mov byte [r12 + 0x12], bpl
test esi, esi
je 0x14007b1de
movzx eax, sil
cmp eax, 0x1a
ja 0x14007b1c0
lea r9, str.not_an_error
mov r9, qword [r9 + rax*8]
test r9, r9
jne 0x14007b1c7
lea r9, str.unknown_error
lea r8, [0x140111e08]
mov rdx, r13
mov rcx, rdi
call fcn.140024ee0
jmp 0x14007b470
mov ebp, 1
xor esi, esi
lea rdi, [rsp + 0x30]
mov ebx, esi
nop dword [rax]
mov rcx, qword [r15 + r14 + 8]
inc ebx
mov r8, rdi
mov edx, ebx
call fcn.140040c20
add rdi, 4
cmp ebx, 5
jl 0x14007b1f0
mov rcx, qword [r15 + r14 + 0x18]
mov edx, dword [rsp + 0x40]
mov eax, dword [rsp + 0x30]
mov dword [rcx], eax
test edx, edx
je 0x14007b2a6
mov r12d, dword [rsp + 0xb8]
test r12d, r12d
jne 0x14007b275
mov rax, qword [r13 + 0x10]
and dl, 3
mov ebx, 1
mov rcx, qword [rax + 0x18]
movzx edx, dl
cmove edx, ebx
mov byte [rcx + 0x71], dl
lea rdx, str.BINARY
mov rax, rdx
inc rax
cmp byte [rax], sil
jne 0x14007b251
sub eax, edx
lea rcx, [r13 + 0x2a0]
and eax, 0x3fffffff
mov r8d, eax
call fcn.1400284e0
mov qword [r13 + 0x38], rax
jmp 0x14007b2c8
mov rax, qword [r13 + 0x10]
mov rcx, qword [rax + 0x18]
movzx eax, byte [rcx + 0x71]
cmp edx, eax
je 0x14007b2c3
mov rcx, qword [rsp + 0xc0]
lea r8, str.attached_databases_must_use_the_same_text_encoding_as_main_database
mov rdx, r13
call fcn.140024ee0
mov esi, 1
jmp 0x14007b424
mov rax, qword [r13 + 0x10]
mov r12d, dword [rsp + 0xb8]
mov ebx, 1
mov rcx, qword [r14 + rax + 0x18]
or word [rcx + 0x72], 4
jmp 0x14007b2c8
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 0x14007b323
mov ecx, dword [rsp + 0x38]
test ecx, ecx
jns 0x14007b2ff
cmp ecx, 0x80000000
jne 0x14007b2fd
mov ecx, 0x7fffffff
jmp 0x14007b309
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.140037ef0
mov rax, qword [r15 + r14 + 0x18]
mov ecx, dword [rsp + 0x34]
mov byte [rax + 0x70], cl
mov rax, qword [r15 + r14 + 0x18]
cmp byte [rax + 0x70], sil
jne 0x14007b33e
mov byte [rax + 0x70], 1
mov rax, qword [r15 + r14 + 0x18]
cmp byte [rax + 0x70], 4
jbe 0x14007b367
mov rcx, qword [rsp + 0xc0]
lea r8, str.unsupported_file_format
mov rdx, r13
call fcn.140024ee0
mov esi, ebx
jmp 0x14007b424
test r12d, r12d
jne 0x14007b379
cmp ecx, 4
jl 0x14007b379
and dword [r13 + 0x18], 0xffefffff
mov r8, qword [r13 + 0x10]
mov r9, qword [rsp + 0xb0]
lea rdx, str.SELECT_name__rootpage__sql_FROM__q._s_ORDER_BY_rowid
mov r8, qword [r14 + r8]
mov rcx, r13
call fcn.1400263a0
mov rbx, qword [r13 + 0x188]
lea r9, [rsp + 0x50]
lea r8, [fcn.14007ac80]
mov rdx, rax
mov rcx, r13
mov rdi, rax
mov qword [r13 + 0x188], rsi
mov qword [rsp + 0x20], rsi
call fcn.1400763a0
mov rdx, rdi
mov rcx, r13
mov esi, eax
test eax, eax
mov qword [r13 + 0x188], rbx
cmove esi, dword [rsp + 0x68]
call fcn.1400249c0
test esi, esi
jne 0x14007b3ef
mov edx, r12d
mov rcx, r13
call fcn.140060820
cmp byte [r13 + 0x2a], 0
je 0x14007b408
or edx, 0xffffffff
mov rcx, r13
mov esi, 7
call fcn.140062500
jmp 0x14007b40c
test esi, esi
je 0x14007b414
bt dword [r13 + 0x18], 0x17
jae 0x14007b424
mov rax, qword [r13 + 0x10]
mov rcx, qword [r14 + rax + 0x18]
or word [rcx + 0x72], 1
xor esi, esi
test ebp, ebp
je 0x14007b470
mov rbx, qword [r15 + r14 + 8]
mov rcx, rbx
call fcn.1400357d0
xor edx, edx
mov rcx, rbx
call fcn.140039bc0
test eax, eax
jne 0x14007b44d
xor edx, edx
mov rcx, rbx
call fcn.140039d50
cmp byte [rbx + 0x11], 0
je 0x14007b470
add dword [rbx + 0x14], 0xffffffff
jne 0x14007b470
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x14007b46c
call qword [0x140144100]
mov byte [rbx + 0x12], 0
mov rbx, qword [r15 + r14 + 8]
cmp byte [rbx + 0x11], 0
je 0x14007b498
add dword [rbx + 0x14], 0xffffffff
jne 0x14007b498
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x14007b494
call qword [0x140144100]
mov byte [rbx + 0x12], 0
cmp esi, 7
je 0x14007b4a5
cmp esi, 0xc0a
jne 0x14007b4aa
mov byte [r13 + 0x2a], 1
mov eax, esi
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0xc8]
add rsp, 0x78
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret