Function at 0x180103fb0
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 r12d, edx
mov r13, rcx
cmp ebx, 1
jne 0x180103ff0
lea rbp, 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], rbp
jmp 0x180104006
lea rbp, str.sqlite_master
lea rax, [0x18018bfc0]
mov qword [rsp + 0xb0], rbp
lea rcx, [0x18018ab68]
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], rbp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x58], ebx
call fcn.1800f7610
mov esi, dword [rsp + 0x68]
test esi, esi
jne 0x180104503
mov r8, qword [r13 + 0x10]
mov r14, rbx
mov rdx, rbp
shl r14, 5
mov rcx, r13
mov r8, qword [r14 + r8]
call fcn.1800acab0
test rax, rax
je 0x180104085
or byte [rax + 0x32], 1
mov r15, qword [r13 + 0x10]
mov rcx, qword [r15 + r14 + 8]
test rcx, rcx
jne 0x1801040a7
cmp ebx, 1
jne 0x1801040a0
mov rax, qword [r15 + 0x38]
or word [rax + 0x72], bx
xor eax, eax
jmp 0x180104517
call fcn.1800a95a0
mov rbp, qword [r15 + r14 + 8]
cmp byte [rbp + 0x10], r12b
jne 0x1801042a8
mov rbx, qword [rbp + 8]
mov rcx, rbp
mov esi, r12d
call fcn.1800a95a0
movzx eax, byte [rbp + 0x10]
cmp al, 2
je 0x180104244
cmp al, 1
je 0x180104244
cmp byte [rbx + 0x89], sil
je 0x1801040fd
mov rax, qword [rbx + 0x80]
cmp qword [rax], rsi
je 0x1801040fd
mov esi, 0x106
jmp 0x180104244
mov rax, qword [rbp + 8]
cmp byte [rbp + 0x11], sil
je 0x18010414a
cmp qword [rax + 0x80], rbp
je 0x180104123
cmp byte [rax + 0x88], sil
je 0x180104123
mov esi, 0x106
jmp 0x180104244
mov rax, qword [rax + 0x78]
test rax, rax
je 0x18010414a
nop dword [rax]
cmp qword [rax], rbp
je 0x180104141
cmp dword [rax + 8], 1
jne 0x180104141
cmp byte [rax + 0xc], 1
jne 0x18010416a
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x180104130
cmp dword [rbx + 0x40], r12d
sete al
mov byte [rbx + 0x23], al
cmp qword [rbx + 0x18], r12
jne 0x180104174
mov rcx, rbx
call fcn.1800d4a90
mov esi, eax
test eax, eax
je 0x180104154
jmp 0x180104178
mov esi, 0x106
jmp 0x180104244
test esi, esi
je 0x1801041b2
cmp byte [rbx + 0x30], r12b
jne 0x1801041b2
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1801041b2
mov rcx, qword [rcx + 0x78]
test rcx, rcx
je 0x1801041ae
mov rdi, qword [rcx + 0x20]
call fcn.1800a7100
mov r11, qword [rdi + 0xe0]
cmp dword [r11 + 0x18], r12d
jne 0x1801041ae
mov rcx, rdi
call fcn.1800d31c0
mov qword [rbx + 0x18], r12
cmp sil, 5
jne 0x1801041f3
cmp byte [rbx + 0x30], r12b
jne 0x1801041f3
mov rdi, qword [rbx + 8]
add rdi, 0x2a8
je 0x1801041f3
mov rax, qword [rdi]
test rax, rax
je 0x1801041f3
mov edx, dword [rdi + 0x10]
test edx, edx
js 0x1801041f3
mov rcx, qword [rdi + 8]
call rax
test eax, eax
je 0x1801041ec
inc dword [rdi + 0x10]
jmp 0x180104154
mov dword [rdi + 0x10], 0xffffffff
test esi, esi
jne 0x18010423c
cmp byte [rbp + 0x10], r12b
jne 0x18010421a
inc dword [rbx + 0x3c]
cmp byte [rbp + 0x11], r12b
je 0x18010421a
mov byte [rbp + 0x3c], 1
mov rax, qword [rbx + 0x78]
mov qword [rbp + 0x40], rax
lea rax, [rbp + 0x30]
mov qword [rbx + 0x78], rax
mov byte [rbp + 0x10], 1
cmp byte [rbx + 0x30], 1
jae 0x180104232
mov rdi, qword [rsp + 0xc0]
mov byte [rbx + 0x30], 1
jmp 0x180104244
mov rdi, qword [rsp + 0xc0]
jmp 0x180104244
mov rdi, qword [rsp + 0xc0]
cmp byte [rbp + 0x11], r12b
je 0x180104267
add dword [rbp + 0x14], 0xffffffff
jne 0x180104267
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x180104263
call qword [0x1801fc8d8]
mov byte [rbp + 0x12], r12b
test esi, esi
je 0x1801042a2
movzx eax, sil
cmp eax, 0x1a
ja 0x180104284
lea r9, str.not_an_error
mov r9, qword [r9 + rax*8]
test r9, r9
jne 0x18010428b
lea r9, str.unknown_error
lea r8, [0x18018995c]
mov rdx, r13
mov rcx, rdi
call fcn.1800c45b0
jmp 0x1801044db
mov r12d, 1
xor esi, esi
lea rdi, [rsp + 0x30]
mov ebx, esi
mov rcx, qword [r15 + r14 + 8]
inc ebx
mov r8, rdi
mov edx, ebx
call fcn.1800aa590
add rdi, 4
cmp ebx, 5
jl 0x1801042b1
mov rcx, qword [r15 + r14 + 0x18]
mov edx, dword [rsp + 0x40]
mov eax, dword [rsp + 0x30]
mov dword [rcx], eax
test edx, edx
je 0x180104365
mov ebp, dword [rsp + 0xb8]
test ebp, ebp
jne 0x180104334
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 0x180104310
sub eax, edx
lea rcx, [r13 + 0x290]
and eax, 0x3fffffff
mov r8d, eax
call fcn.1800a5c40
mov qword [r13 + 0x38], rax
jmp 0x180104386
mov rax, qword [r13 + 0x10]
mov rcx, qword [rax + 0x18]
movzx eax, byte [rcx + 0x71]
cmp edx, eax
je 0x180104381
mov rcx, qword [rsp + 0xc0]
lea r8, str.attached_databases_must_use_the_same_text_encoding_as_main_database
mov rdx, r13
call fcn.1800c45b0
mov esi, 1
jmp 0x1801044cc
mov rax, qword [r13 + 0x10]
mov ebp, dword [rsp + 0xb8]
mov ebx, 1
mov rcx, qword [r14 + rax + 0x18]
or word [rcx + 0x72], 4
jmp 0x180104386
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 0x1801043ce
mov ecx, dword [rsp + 0x38]
test ecx, ecx
jne 0x1801043b3
mov ecx, 0x7d0
jmp 0x1801043b9
test ecx, ecx
jns 0x1801043b9
neg ecx
mov dword [rax + 0x74], ecx
mov rax, qword [r15 + r14 + 0x18]
mov rcx, qword [r15 + r14 + 8]
mov edx, dword [rax + 0x74]
call fcn.1800aa080
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 0x1801043e9
mov byte [rax + 0x70], 1
mov rax, qword [r15 + r14 + 0x18]
cmp byte [rax + 0x70], 4
jbe 0x180104412
mov rcx, qword [rsp + 0xc0]
lea r8, str.unsupported_file_format
mov rdx, r13
call fcn.1800c45b0
mov esi, ebx
jmp 0x1801044cc
test ebp, ebp
jne 0x180104423
cmp ecx, 4
jl 0x180104423
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.1800bb690
mov rbx, qword [r13 + 0x178]
lea r9, [rsp + 0x50]
lea r8, [fcn.1800f7610]
mov rdx, rax
mov rcx, r13
mov rdi, rax
mov qword [r13 + 0x178], rsi
mov qword [rsp + 0x20], rsi
call fcn.180103a40
mov rdx, rdi
mov rcx, r13
mov esi, eax
test eax, eax
mov qword [r13 + 0x178], rbx
cmove esi, dword [rsp + 0x68]
call fcn.1800a4d80
test esi, esi
jne 0x180104498
mov edx, ebp
mov rcx, r13
call fcn.1800be8d0
cmp byte [r13 + 0x2a], 0
je 0x1801044b0
xor edx, edx
mov rcx, r13
mov esi, 7
call fcn.1800c8da0
jmp 0x1801044b4
test esi, esi
je 0x1801044bc
bt dword [r13 + 0x18], 0x17
jae 0x1801044cc
mov rax, qword [r13 + 0x10]
mov rcx, qword [r14 + rax + 0x18]
or word [rcx + 0x72], 1
xor esi, esi
test r12d, r12d
je 0x1801044db
mov rcx, qword [r15 + r14 + 8]
call fcn.1800dc130
mov rbx, qword [r15 + r14 + 8]
cmp byte [rbx + 0x11], 0
je 0x180104503
add dword [rbx + 0x14], 0xffffffff
jne 0x180104503
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x1801044ff
call qword [0x1801fc8d8]
mov byte [rbx + 0x12], 0
cmp esi, 7
je 0x180104510
cmp esi, 0xc0a
jne 0x180104515
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