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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
cmp qword [rcx + 0x90], 0
mov rsi, rcx
jne 0x140200cd6
call fcn.1401f81f0
cmp dword [rsi + 0x3c], 0
mov qword [rsi + 0x88], rax
je 0x14020074d
xor eax, eax
jmp 0x140200ce9
mov edx, 0xa
mov rcx, rsi
mov r12, qword [rsi]
call fcn.1401f4670
mov r14d, dword [rsi + 0x3c]
mov qword [rsp + 0x38], rax
test r14d, r14d
je 0x140200772
xor edi, edi
jmp 0x140200ccf
mov rax, qword [rsp + 0x38]
mov ecx, 5
xor r11d, r11d
mov r8d, 4
mov dword [rsp + 0x8c], r11d
movsxd rdx, dword [rax + 8]
add rdx, qword [rax]
mov eax, r14d
mov dword [rsp + 0x90], r11d
mov rdi, rdx
lea rdx, [0x140371fd4]
mov dword [rsp + 0x94], r11d
rep stosd dword [rdi], eax
mov rax, qword [rsp + 0x38]
xor edi, edi
mov eax, dword [rax + 8]
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x38]
mov rbp, qword [rax]
mov eax, dword [rbp]
lea rcx, [rbp + 4]
mov dword [rsp + 0x6c], eax
call sub.msvcrt.dll_memcmp
lea rdx, [rsp + 0x90]
cmp eax, 1
setb dil
sbb ebx, ebx
and ebx, 4
mov dword [rsp + 0x54], edi
add ebx, 4
movsxd rcx, ebx
add rcx, rbp
call fcn.14023a4b0
lea rdx, [rsp + 0x94]
add ebx, eax
movsxd rcx, ebx
add rcx, rbp
call fcn.14023a4b0
mov r13d, eax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x40], eax
cmp eax, 0x7d0
jbe 0x140200837
mov dword [rsi + 0x3c], 0x10b
xor edi, edi
jmp 0x140200cb2
mov r15d, dword [rsp + 0x94]
cmp r15d, 0x7d0
ja 0x140200829
mov eax, dword [rsp + 0x40]
lea edx, [rax + 2]
lea rax, [rsp + 0x8c]
movsxd rdx, edx
mov rcx, rax
mov qword [rsp + 0x60], rax
shl rdx, 4
call fcn.14023b880
mov rdi, rax
test rax, rax
je 0x140200ac3
mov eax, dword [rsp + 0x40]
add r13d, ebx
mov dword [rdi + 0x18], r15d
lea rdx, [rdi + 8]
mov dword [rdi], 1
movsxd rcx, r13d
lea r15, [rdi + 0x20]
dec eax
add rcx, rbp
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x40]
mov dword [rdi + 0x1c], eax
call fcn.14023a310
xor r10d, r10d
movzx ebx, al
lea rax, [rsp + 0x98]
mov qword [rsp + 0x48], r10
mov qword [rsp + 0x70], rax
add ebx, r13d
cmp dword [rsp + 0x8c], 0
jne 0x140200ac7
cmp dword [rsp + 0x40], r14d
je 0x140200a9f
xor r9d, r9d
mov dword [rsp + 0x98], r9d
cmp dword [rsp + 0x68], ebx
jle 0x140200a88
movsxd rcx, ebx
mov rdx, r15
add rcx, rbp
call fcn.14023a4b0
mov rdx, qword [rsp + 0x70]
add ebx, eax
movsxd rcx, ebx
add rcx, rbp
call fcn.14023a4b0
mov r9d, dword [rsp + 0x98]
add ebx, eax
cmp dword [r15], r9d
jle 0x14020092b
mov dword [rsp + 0x8c], 0x10b
movsxd rdx, r9d
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x58], r9d
imul rdx, rdx, 0x38
call fcn.14023b880
mov r9d, dword [rsp + 0x58]
sub dword [rsp + 0x94], r9d
cmp dword [rsp + 0x8c], 0
mov qword [r15 + 8], rax
jne 0x140200a93
xor r8d, r8d
mov dword [r15 + 4], r9d
mov qword [rsp + 0x58], r8
mov eax, dword [rsp + 0x58]
cmp r9d, eax
jle 0x140200a5f
imul r13, qword [rsp + 0x58], 0x38
add r13, qword [r15 + 8]
cmp dword [rsp + 0x68], ebx
jle 0x140200a70
movsxd rcx, ebx
mov rdx, r13
mov dword [rsp + 0x7c], r9d
add rcx, rbp
call fcn.14023a4b0
lea rdx, [r13 + 4]
add ebx, eax
movsxd rcx, ebx
add rcx, rbp
call fcn.14023a4b0
lea rdx, [r13 + 8]
add ebx, eax
movsxd rcx, ebx
add rcx, rbp
call fcn.14023a4b0
mov r9d, dword [rsp + 0x7c]
add ebx, eax
cmp dword [rsp + 0x54], 0
je 0x140200a4a
movsxd rcx, ebx
lea rdx, [r13 + 0x10]
add rcx, rbp
call fcn.14023a310
lea rdx, [r13 + 0x18]
movzx eax, al
add ebx, eax
movsxd rcx, ebx
add rcx, rbp
call fcn.14023a310
lea rdx, [r13 + 0x20]
movzx eax, al
add ebx, eax
movsxd rcx, ebx
add rcx, rbp
call fcn.14023a4b0
lea rdx, [r13 + 0x28]
add ebx, eax
movsxd rcx, ebx
add rcx, rbp
call fcn.14023a310
lea rdx, [r13 + 0x30]
movzx eax, al
add ebx, eax
movsxd rcx, ebx
add rcx, rbp
call fcn.14023a310
mov r9d, dword [rsp + 0x7c]
movzx eax, al
add ebx, eax
mov rax, qword [r13 + 0x18]
cmp qword [rsp + 0x48], rax
cmovae rax, qword [rsp + 0x48]
mov qword [rsp + 0x48], rax
inc qword [rsp + 0x58]
mov eax, dword [r13 + 4]
cmp dword [r13 + 8], eax
jge 0x14020096c
jmp 0x140200a70
test r14d, r14d
je 0x140200a7b
cmp dword [r15 - 0x10], 0
je 0x140200a7b
test r9d, r9d
jne 0x140200a7b
mov dword [rsp + 0x8c], 0x10b
cmp dword [rsp + 0x78], r14d
jne 0x140200a93
cmp dword [r15], 0
je 0x140200a93
mov dword [rsp + 0x8c], 0x10b
inc r14d
add r15, 0x10
jmp 0x1402008c3
cmp dword [rsp + 0x94], 0
je 0x140200ac7
mov dword [rsp + 0x8c], 0x10b
cmp dword [rsp + 0x54], 0
jne 0x140200ace
mov rcx, rdi
call fcn.140200d00
xor edi, edi
jmp 0x140200ae4
cmp dword [rsp + 0x54], 0
je 0x140200ada
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rdi + 0x10], rax
cmp dword [rsp + 0x8c], 0
jne 0x140200abb
mov eax, dword [rsp + 0x8c]
mov dword [rsi + 0x3c], eax
test eax, eax
jne 0x140200cb2
cmp dword [r12 + 0x88], 0
mov ebp, dword [rsp + 0x6c]
bswap ebp
je 0x140200b15
cmp dword [r12 + 0x84], ebp
je 0x140200cb2
xor edx, edx
xor ecx, ecx
mov r9, qword [r12 + 0x10]
mov r8, qword [r12 + 8]
movabs rax, 0x400000fd2
mov qword [rsp + 0x98], rdx
lea rdx, str.SELECT_k__v_FROM__Q._q_config
mov qword [r12 + 0x88], rax
sub rax, 0xfc2
mov qword [r12 + 0x90], rax
mov dword [r12 + 0x98], 0x100000
mov dword [r12 + 0xb4], 0xa
mov dword [rsp + 0x90], ecx
lea rcx, [rsp + 0x90]
call fcn.14023b8d0
mov rbx, rax
test rax, rax
je 0x140200bb4
xor eax, eax
lea r9, [rsp + 0x98]
or r8d, 0xffffffff
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, qword [r12]
call fcn.14026cfb0
mov rcx, rbx
mov dword [rsp + 0x90], eax
call fcn.14026bb70
mov ebx, dword [rsp + 0x90]
lea r14, str.version
lea r15, [rsp + 0x94]
test ebx, ebx
je 0x140200c16
xor ebx, ebx
jmp 0x140200c94
xor edx, edx
mov qword [rsp + 0x40], rcx
call fcn.140269960
mov rcx, qword [rsp + 0x40]
mov edx, 1
mov r13, rax
call fcn.1402699f0
mov rdx, r14
mov rcx, r13
mov qword [rsp + 0x40], rax
call fcn.140270940
mov r8, qword [rsp + 0x40]
test eax, eax
jne 0x140200c34
mov rcx, r8
call fcn.14025f810
mov ebx, eax
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x40], rcx
call fcn.14026e550
mov rcx, qword [rsp + 0x40]
cmp eax, 0x64
je 0x140200bd5
jmp 0x140200c44
mov r9, r15
mov rdx, r13
mov rcx, r12
call fcn.1402393b0
jmp 0x140200c16
call fcn.14026bad0
mov dword [rsp + 0x90], eax
test eax, eax
jne 0x140200c94
lea eax, [rbx - 4]
cmp eax, 1
jbe 0x140200c94
mov r13, qword [r12 + 0xb8]
mov dword [rsp + 0x90], 1
test r13, r13
je 0x140200c9c
mov r9d, 5
mov r8d, 4
mov edx, ebx
lea rcx, str.invalid_fts5_file_format__found__d__expected__d_or__d____run_rebuild
call fcn.14026cbb0
mov qword [r13], rax
jmp 0x140200c9c
mov dword [r12 + 0x80], ebx
mov eax, dword [rsp + 0x90]
test eax, eax
jne 0x140200caf
mov dword [r12 + 0x84], ebp
mov dword [rsi + 0x3c], eax
mov rcx, qword [rsp + 0x38]
call fcn.14026bb70
cmp dword [rsi + 0x3c], 0
je 0x140200ccf
mov rcx, rdi
call fcn.140200d00
jmp 0x14020076b
mov qword [rsi + 0x90], rdi
cmp dword [rsi + 0x3c], 0
jne 0x140200746
mov rax, qword [rsi + 0x90]
inc dword [rax]
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret