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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0xa8
mov rax, qword [0x14027ef78]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rbp, rcx
movsxd r12, edx
mov rax, r8
mov qword [rsp + 0x40], rbp
xor r8d, r8d
mov qword [rsp + 0x38], rax
lea rdx, str.sqlite_master
mov qword [rsp + 0x78], r8
mov r15d, r8d
mov dword [rsp + 0x54], r8d
cmp r12d, 1
mov dword [rsp + 0x50], r12d
lea rcx, str.sqlite_temp_master
mov qword [rsp + 0x48], rax
cmovne rcx, rdx
lea r8, [rsp + 0x60]
mov qword [rsp + 0x58], rcx
xor r9d, r9d
mov qword [rsp + 0x60], rcx
lea rcx, [0x14020645c]
mov qword [rsp + 0x68], rcx
lea rcx, str.CREATE_TABLE_x_type_text_name_text_tbl_name_text_rootpage_integer_sql_text_
mov qword [rsp + 0x70], rcx
lea rcx, [rsp + 0x40]
lea edx, [r9 + 3]
call fcn.140119e80
mov edi, dword [rsp + 0x54]
mov eax, 1
test edi, edi
jne 0x14011a597
mov rax, qword [rbp + 0x20]
mov rsi, r12
shl rsi, 5
mov rcx, qword [rax + rsi + 8]
lea r13, [rax + rsi]
mov qword [rsp + 0x30], rsi
test rcx, rcx
jne 0x14011a173
cmp r12d, 1
jne 0x14011a16c
mov rax, qword [rax + 0x38]
or word [rax + 0x72], r12w
xor eax, eax
jmp 0x14011a5cb
mov qword [rsp + 0xa0], r14
cmp byte [rcx + 0x11], r15b
je 0x14011a18f
inc dword [rcx + 0x14]
cmp byte [rcx + 0x12], r15b
jne 0x14011a18f
call fcn.1400db7a0
mov r14, qword [r13 + 8]
mov qword [rsp + 0xf8], rbx
cmp byte [r14 + 0x10], r15b
jne 0x14011a342
mov rbx, qword [r14 + 8]
xor edi, edi
cmp byte [r14 + 0x11], dil
je 0x14011a1c3
inc dword [r14 + 0x14]
cmp byte [r14 + 0x12], dil
jne 0x14011a1c3
mov rcx, r14
call fcn.1400db7a0
movzx eax, byte [r14 + 0x10]
dec al
cmp al, 1
jbe 0x14011a307
movzx ecx, word [rbx + 0x26]
test cl, 0x40
je 0x14011a1ee
mov rax, qword [rbx + 0x78]
cmp qword [rax], rdi
je 0x14011a1ee
mov edi, 0x106
jmp 0x14011a307
mov rax, qword [r14 + 8]
cmp byte [r14 + 0x11], dil
je 0x14011a231
cmp qword [rax + 0x78], r14
je 0x14011a20e
test byte [rax + 0x26], 0x20
je 0x14011a20e
mov edi, 0x106
jmp 0x14011a307
mov rax, qword [rax + 0x70]
test rax, rax
je 0x14011a231
cmp qword [rax], r14
je 0x14011a228
cmp dword [rax + 8], 1
jne 0x14011a228
cmp byte [rax + 0xc], 1
jne 0x14011a1e4
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14011a217
mov eax, 0xfff7
and cx, ax
mov word [rbx + 0x26], cx
cmp dword [rbx + 0x3c], r15d
jne 0x14011a250
or cx, 8
mov word [rbx + 0x26], cx
nop dword [rax + rax]
cmp qword [rbx + 0x18], r15
jne 0x14011a266
mov rcx, rbx
call fcn.1400f0a30
mov edi, eax
test eax, eax
je 0x14011a250
jmp 0x14011a26a
test edi, edi
je 0x14011a286
cmp byte [rbx + 0x24], r15b
jne 0x14011a286
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14011a286
mov qword [rbx + 0x18], r15
mov rcx, qword [rcx + 0x70]
call fcn.140120400
cmp dil, 5
jne 0x14011a2c4
cmp byte [rbx + 0x24], r15b
jne 0x14011a2c4
mov rsi, qword [rbx + 8]
add rsi, 0x218
je 0x14011a2c4
mov rax, qword [rsi]
test rax, rax
je 0x14011a2c4
mov edx, dword [rsi + 0x10]
test edx, edx
js 0x14011a2c4
mov rcx, qword [rsi + 8]
call rax
test eax, eax
je 0x14011a2bd
inc dword [rsi + 0x10]
jmp 0x14011a250
mov dword [rsi + 0x10], 0xffffffff
test edi, edi
jne 0x14011a302
cmp byte [r14 + 0x10], r15b
jne 0x14011a2ec
inc dword [rbx + 0x38]
cmp byte [r14 + 0x11], r15b
je 0x14011a2ec
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 rsi, qword [rsp + 0x30]
mov byte [r14 + 0x10], 1
cmp byte [rbx + 0x24], 1
jae 0x14011a307
mov byte [rbx + 0x24], 1
jmp 0x14011a307
mov rsi, qword [rsp + 0x30]
cmp byte [r14 + 0x11], r15b
je 0x14011a31c
sub dword [r14 + 0x14], 1
jne 0x14011a31c
mov rcx, r14
call fcn.1401468f0
test edi, edi
je 0x14011a33c
mov ecx, edi
call fcn.14010d9a0
mov rcx, qword [rsp + 0x38]
mov r8, rax
mov rdx, rbp
call fcn.14012b680
jmp 0x14011a56d
mov r15d, 1
xor r14d, r14d
lea rdi, [rsp + 0x80]
mov ebx, r14d
mov rcx, qword [r13 + 8]
inc ebx
mov edx, ebx
mov r8, rdi
call fcn.140104f10
add rdi, 4
cmp ebx, 5
jl 0x14011a350
mov rcx, qword [r13 + 0x18]
mov eax, dword [rsp + 0x80]
mov dword [rcx], eax
mov ecx, dword [rsp + 0x90]
test ecx, ecx
je 0x14011a3bf
test r12d, r12d
jne 0x14011a399
and cl, 3
mov ebx, 1
movzx eax, cl
cmove eax, ebx
mov byte [rbp + 0x52], al
jmp 0x14011a3d2
movzx eax, byte [rbp + 0x52]
cmp ecx, eax
je 0x14011a3cd
mov rcx, qword [rsp + 0x38]
lea r8, str.attached_databases_must_use_the_same_text_encoding_as_main_database
mov rdx, rbp
call fcn.14012b680
mov edi, 1
jmp 0x14011a55f
mov rax, qword [rbp + 0x20]
mov rcx, qword [rsi + rax + 0x18]
or word [rcx + 0x72], 4
mov ebx, 1
mov rcx, qword [r13 + 0x18]
movzx eax, byte [rbp + 0x52]
mov byte [rcx + 0x71], al
mov rcx, qword [r13 + 0x18]
cmp dword [rcx + 0x74], r14d
jne 0x14011a41f
mov eax, dword [rsp + 0x88]
test eax, eax
jns 0x14011a402
cmp eax, 0x80000000
jne 0x14011a400
mov eax, 0x7fffffff
jmp 0x14011a40c
neg eax
test eax, eax
mov edx, 0xfffff830
cmove eax, edx
mov dword [rcx + 0x74], eax
mov rax, qword [r13 + 0x18]
mov rcx, qword [r13 + 8]
mov edx, dword [rax + 0x74]
call fcn.140106cc0
mov rax, qword [r13 + 0x18]
mov ecx, dword [rsp + 0x84]
mov byte [rax + 0x70], cl
mov rax, qword [r13 + 0x18]
cmp byte [rax + 0x70], r14b
jne 0x14011a43b
mov byte [rax + 0x70], 1
mov rax, qword [r13 + 0x18]
cmp byte [rax + 0x70], 4
jbe 0x14011a460
mov rcx, qword [rsp + 0x38]
lea r8, str.unsupported_file_format
mov rdx, rbp
call fcn.14012b680
mov edi, ebx
jmp 0x14011a55f
test r12d, r12d
jne 0x14011a471
cmp ecx, 4
jl 0x14011a471
and dword [rbp + 0x2c], 0xffff7fff
mov r8, qword [rbp + 0x20]
lea rdx, str.SELECT_name__rootpage__sql_FROM___w_._s_ORDER_BY_rowid
mov r9, qword [rsp + 0x58]
mov rcx, rbp
mov r8, qword [rsi + r8]
call fcn.14011d820
mov rbx, qword [rbp + 0x190]
lea r9, [rsp + 0x40]
lea r8, [fcn.140119e80]
mov qword [rbp + 0x190], r14
mov rdx, rax
mov qword [rsp + 0x20], r14
mov rcx, rbp
mov rsi, rax
call fcn.1400cab80
test eax, eax
mov qword [rbp + 0x190], rbx
mov edi, eax
cmove edi, dword [rsp + 0x54]
test rsi, rsi
je 0x14011a518
cmp qword [rbp + 0x298], r14
je 0x14011a4e5
mov rdx, rsi
mov rcx, rbp
call fcn.1400f1940
jmp 0x14011a518
cmp rsi, qword [rbp + 0x180]
jb 0x14011a510
cmp rsi, qword [rbp + 0x188]
jae 0x14011a510
mov rax, qword [rbp + 0x178]
mov qword [rsi], rax
dec dword [rbp + 0x160]
mov qword [rbp + 0x178], rsi
jmp 0x14011a518
mov rcx, rsi
call fcn.1400d0700
test edi, edi
jne 0x14011a527
mov edx, r12d
mov rcx, rbp
call fcn.140101a60
cmp byte [rbp + 0x55], r14b
je 0x14011a53c
mov rcx, rbp
mov edi, 7
call fcn.140125bf0
jmp 0x14011a540
test edi, edi
je 0x14011a549
test dword [rbp + 0x2c], 0x10000
je 0x14011a55f
mov rax, qword [rbp + 0x20]
mov edi, r14d
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + rax + 0x18]
or word [rcx + 0x72], 1
test r15d, r15d
je 0x14011a56d
mov rcx, qword [r13 + 8]
call fcn.140104480
mov rcx, qword [r13 + 8]
mov r14, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xf8]
cmp byte [rcx + 0x11], 0
je 0x14011a592
sub dword [rcx + 0x14], 1
jne 0x14011a592
call fcn.1401468f0
mov eax, 1
cmp edi, 7
je 0x14011a5a4
cmp edi, 0xc0a
jne 0x14011a5c9
cmp byte [rbp + 0x55], 0
jne 0x14011a5c9
cmp byte [rbp + 0x56], 0
jne 0x14011a5c9
cmp dword [rbp + 0xb8], 0
mov byte [rbp + 0x55], 1
jle 0x14011a5c3
mov dword [rbp + 0x150], eax
inc dword [rbp + 0x158]
mov eax, edi
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14017e000
add rsp, 0xa8
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret