Function at 0x14000be20
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rsp + 0x120], rbx
mov rax, qword [0x1400f7080]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rbx, rdx
mov rsi, rcx
lea rdi, [rcx + 0x70]
xor al, al
test rdi, rdi
je 0x14000be6b
mov rcx, rdi
call fcn.140011e70
xor r15d, r15d
test rdi, rdi
cmove rdi, r15
movzx r14d, byte [rsi + 0x10]
test rdi, rdi
je 0x14000be8c
test al, al
je 0x14000be8c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r14b, r14b
jne 0x14000be98
xor al, al
jmp 0x14000c1cd
movdqa xmm0, xmmword [0x1400e5d00]
movdqu xmmword [rbp - 1], xmm0
mov word [rbp - 0x11], r15w
xor r8d, r8d
lea rdx, [0x1400d8230]
lea rcx, [rbp - 0x11]
call fcn.140002160
nop
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x14000becb
mov r9, qword [rbx]
mov r8, rbx
jb 0x14000bed3
mov r8, qword [rbx]
lea rdx, str.SELECT_name_FROM_sqlite_master_WHERE_typetable_AND_name__s_UNION_ALL_SELECT_name_FROM_sqlite_temp_master_WHERE_typetable_AND_name_s_
lea rcx, [rbp - 0x11]
call fcn.140011eb0
mov qword [rbp - 0x71], r15
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], r15
mov qword [rbp - 0x51], r15
xor r8d, r8d
xor edx, edx
call fcn.1400056a0
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x41], r15
mov rdx, qword [rbp - 0x69]
mov rcx, qword [rbp - 0x71]
call fcn.1400056e0
mov rax, qword [rbp - 0x71]
mov qword [rbp - 0x69], rax
lea rcx, [rbp - 0x59]
call fcn.140005480
mov qword [rbp - 0x49], r15
mov rax, qword [rbp - 0x59]
mov rcx, qword [rax]
mov qword [rbp - 0x41], rcx
mov dword [rbp - 0x79], r15d
mov qword [rsp + 0x20], r15
lea r8, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae r8, qword [rbp - 0x11]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14000b400
mov rdi, qword [rsp + 0x20]
test eax, eax
je 0x14000bf78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsi]
test rcx, rcx
je 0x14000bf84
call fcn.14009ccb0
jmp 0x14000bf84
lea r8, [rbp - 0x79]
mov rdx, rdi
call fcn.14000b0d0
mov rdx, rdi
mov rcx, rsi
call fcn.14000b4b0
test eax, eax
je 0x14000bf9a
xor bl, bl
jmp 0x14000c184
movdqa xmm0, xmmword [0x1400e5d00]
movdqu xmmword [rbp - 0x21], xmm0
mov word [rbp - 0x31], r15w
movdqu xmmword [rbp + 0x1f], xmm0
mov word [rbp + 0xf], r15w
movsxd r10, dword [rbp - 0x49]
test r10d, r10d
js 0x14000c0fd
mov rax, qword [rbp - 0x69]
mov r9, qword [rbp - 0x71]
sub rax, r9
sar rax, 5
mov r8, r10
cmp r10, rax
jae 0x14000c0fd
shl r8, 5
add r8, r9
lea rax, [rbp + 0xf]
cmp rax, r8
je 0x14000c010
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x14000bffb
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp + 0xf]
call fcn.140002160
mov r10d, dword [rbp - 0x49]
mov r9, qword [rbp - 0x71]
mov rcx, qword [rbp - 0x41]
cmp rcx, qword [rbp - 0x59]
je 0x14000c0fd
test r10d, r10d
js 0x14000c0fd
mov r8, qword [rcx + 0x10]
mov rdx, qword [rcx + 0x18]
sub rdx, r8
movabs rax, 0x6666666666666667
imul rdx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movsxd rax, r10d
cmp rax, rdx
jae 0x14000c0fd
lea rax, [rax + rax*4]
lea r8, [r8 + rax*8]
lea rax, [rbp - 0x31]
cmp rax, r8
je 0x14000c08c
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x14000c077
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp - 0x31]
call fcn.140002160
mov rcx, qword [rbp - 0x41]
mov r9, qword [rbp - 0x71]
mov rdx, qword [rbp - 0x49]
inc rdx
mov qword [rbp - 0x49], rdx
mov rax, qword [rbp - 0x69]
sub rax, r9
sar rax, 5
cmp rdx, rax
jne 0x14000c0b2
mov rax, qword [rcx]
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x49], r15
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14000c0bf
mov rcx, qword [rbx]
lea r8, [rbp - 0x31]
mov rdi, qword [rbp - 0x31]
mov rsi, qword [rbp - 0x19]
cmp rsi, 8
cmovae r8, rdi
mov rdx, qword [rbp - 0x21]
cmp rdx, qword [rbx + 0x10]
jne 0x14000c105
test rdx, rdx
je 0x14000c0f9
sub r8, rcx
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x14000c105
add rcx, 2
sub rdx, 1
jne 0x14000c0e5
mov bl, 1
jmp 0x14000c107
mov rsi, qword [rbp - 0x19]
mov rdi, qword [rbp - 0x31]
xor bl, bl
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x14000c148
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c142
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c1f6
call fcn.1400a508c
nop
cmp rsi, 8
jb 0x14000c184
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000c17b
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c1fc
mov rcx, rdi
call fcn.1400a508c
nop
lea rcx, [rbp - 0x79]
call fcn.1400034f0
nop
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x14000c1ca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c1c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c1f0
call fcn.1400a508c
movzx eax, bl
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400a4a60
mov rbx, qword [rsp + 0x120]
add rsp, 0xe0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400a8f10
nop
call fcn.1400a8f10
nop
call fcn.1400a8f10
int3