Function at 0x140196be0
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 [0x14045cbf0]
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 0x140196c2d
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 0x140196c3b
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, [0x1403558ec]
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.14018d8b0
mov esi, dword [rsp + 0x60]
test esi, esi
jne 0x140197126
mov r8, qword [r13 + 0x10]
mov r14, rbx
mov rdx, r12
shl r14, 5
mov rcx, r13
mov r8, qword [r14 + r8]
call fcn.140141da0
test rax, rax
je 0x140196cc5
or byte [rax + 0x32], 1
mov r15, qword [r13 + 0x10]
mov rcx, qword [r15 + r14 + 8]
test rcx, rcx
jne 0x140196ce7
cmp ebx, 1
jne 0x140196ce0
mov rax, qword [r15 + 0x38]
or word [rax + 0x72], bx
xor eax, eax
jmp 0x14019713a
call fcn.14013f800
mov r12, qword [r15 + r14 + 8]
cmp byte [r12 + 0x10], bpl
jne 0x140196ed9
mov rbx, qword [r12 + 8]
mov rcx, r12
mov esi, ebp
call fcn.14013f800
movzx eax, byte [r12 + 0x10]
cmp al, 2
je 0x140196e72
cmp al, 1
je 0x140196e72
cmp byte [rbx + 0x89], sil
je 0x140196d40
mov rax, qword [rbx + 0x80]
cmp qword [rax], rsi
je 0x140196d40
mov esi, 0x106
jmp 0x140196e72
mov rax, qword [r12 + 8]
cmp byte [r12 + 0x11], sil
je 0x140196d8b
cmp qword [rax + 0x80], r12
je 0x140196d68
cmp byte [rax + 0x88], sil
je 0x140196d68
mov esi, 0x106
jmp 0x140196e72
mov rax, qword [rax + 0x78]
test rax, rax
je 0x140196d8b
cmp qword [rax], r12
je 0x140196d82
cmp dword [rax + 8], 1
jne 0x140196d82
cmp byte [rax + 0xc], 1
jne 0x140196d36
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140196d71
cmp dword [rbx + 0x40], ebp
sete al
mov byte [rbx + 0x23], al
cmp qword [rbx + 0x18], rbp
jne 0x140196daa
mov rcx, rbx
call fcn.140180490
mov esi, eax
test eax, eax
je 0x140196d94
jmp 0x140196dae
test esi, esi
je 0x140196de8
cmp byte [rbx + 0x27], bpl
jne 0x140196de8
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140196de8
mov rcx, qword [rcx + 0x78]
test rcx, rcx
je 0x140196de4
mov rdi, qword [rcx + 0x20]
call fcn.14013c530
mov r11, qword [rdi + 0xe0]
cmp dword [r11 + 0x18], ebp
jne 0x140196de4
mov rcx, rdi
call fcn.140173450
mov qword [rbx + 0x18], rbp
cmp sil, 5
jne 0x140196e29
cmp byte [rbx + 0x27], bpl
jne 0x140196e29
mov rdi, qword [rbx + 8]
add rdi, 0x2b8
je 0x140196e29
mov rax, qword [rdi]
test rax, rax
je 0x140196e29
mov edx, dword [rdi + 0x10]
test edx, edx
js 0x140196e29
mov rcx, qword [rdi + 8]
call rax
test eax, eax
je 0x140196e22
inc dword [rdi + 0x10]
jmp 0x140196d94
mov dword [rdi + 0x10], 0xffffffff
test esi, esi
jne 0x140196e6d
cmp byte [r12 + 0x10], bpl
jne 0x140196e56
inc dword [rbx + 0x3c]
cmp byte [r12 + 0x11], bpl
je 0x140196e56
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 0x140196e72
mov byte [rbx + 0x27], 1
jmp 0x140196e72
mov rdi, qword [rsp + 0x38]
cmp byte [r12 + 0x11], bpl
je 0x140196e99
dec dword [r12 + 0x14]
jne 0x140196e99
mov rax, qword [r12 + 8]
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x140196e94
call qword [0x140470f00]
mov byte [r12 + 0x12], bpl
test esi, esi
je 0x140196ed4
movzx eax, sil
cmp eax, 0x1a
ja 0x140196eb6
lea r9, str.not_an_error
mov r9, qword [r9 + rax*8]
test r9, r9
jne 0x140196ebd
lea r9, str.unknown_error
lea r8, [0x14037e984]
mov rdx, r13
mov rcx, rdi
call fcn.1401515b0
jmp 0x1401970ff
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.1401428e0
add rdi, 4
cmp ebx, 5
jl 0x140196ee2
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 0x140196f8a
mov rcx, qword [rax + 0x18]
test r12d, r12d
jne 0x140196f64
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 0x140196f40
sub eax, edx
lea rcx, [r13 + 0x2a0]
and eax, 0x3fffffff
mov r8d, eax
call fcn.140140d90
mov qword [r13 + 0x38], rax
jmp 0x140196f99
movzx eax, byte [rcx + 0x71]
cmp edx, eax
je 0x140196f94
mov rcx, qword [rsp + 0x38]
lea r8, str.attached_databases_must_use_the_same_text_encoding_as_main_database
mov rdx, r13
call fcn.1401515b0
mov esi, 1
jmp 0x1401970f1
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 0x140196ff4
mov ecx, dword [rsp + 0x70]
test ecx, ecx
jns 0x140196fd0
cmp ecx, 0x80000000
jne 0x140196fce
mov ecx, 0x7fffffff
jmp 0x140196fda
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.140142db0
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 0x14019700f
mov byte [rax + 0x70], 1
mov rax, qword [r15 + r14 + 0x18]
cmp byte [rax + 0x70], 4
jbe 0x140197035
mov rcx, qword [rsp + 0x38]
lea r8, str.unsupported_file_format
mov rdx, r13
call fcn.1401515b0
mov esi, ebx
jmp 0x1401970f1
test r12d, r12d
jne 0x140197047
cmp ecx, 4
jl 0x140197047
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.140154290
mov rbx, qword [r13 + 0x188]
lea r9, [rsp + 0x48]
lea r8, [fcn.14018d8b0]
mov rdx, rax
mov rcx, r13
mov rdi, rax
mov qword [r13 + 0x188], rsi
mov qword [rsp + 0x20], rsi
call fcn.140196400
mov rdx, rdi
mov rcx, r13
mov esi, eax
test eax, eax
mov qword [r13 + 0x188], rbx
cmove esi, dword [rsp + 0x60]
call fcn.140140fa0
test esi, esi
jne 0x1401970ba
mov edx, r12d
mov rcx, r13
call fcn.140158af0
cmp byte [r13 + 0x2a], 0
je 0x1401970d3
or edx, 0xffffffff
mov rcx, r13
mov esi, 7
call fcn.14014fad0
jmp 0x1401970d7
test esi, esi
je 0x1401970e1
test dword [r13 + 0x18], 0x800000
je 0x1401970f1
mov rax, qword [r13 + 0x10]
mov rcx, qword [r14 + rax + 0x18]
or word [rcx + 0x72], 1
xor esi, esi
test ebp, ebp
je 0x1401970ff
mov rcx, qword [r15 + r14 + 8]
call fcn.140186e40
mov rbx, qword [r15 + r14 + 8]
cmp byte [rbx + 0x11], 0
je 0x140197126
dec dword [rbx + 0x14]
jne 0x140197126
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x140197122
call qword [0x140470f00]
mov byte [rbx + 0x12], 0
cmp esi, 7
je 0x140197133
cmp esi, 0xc0a
jne 0x140197138
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.1400be110
add rsp, 0x98
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret