Function at 0x1400a6770
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14028cab8]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, rdx
lea rbx, [rdx + rdx*2]
xor r12d, r12d
mov qword [rsp + 0x28], r12
xor eax, eax
mov qword [rbp - 1], rax
mov qword [rbp + 0x27], rax
lea r14, [rcx + 0x10]
test rcx, rcx
cmove r14, r12
lea r15, vtable.SqliteStatement.0
mov qword [rbp - 9], r15
mov dword [rbp - 1], r12d
mov qword [rbp + 7], r14
lea rdx, str.SELECT_SUM_CLUSTERS__FROM_SEGMENTS_WHERE_SEGMENT_ID__0
mov qword [rbp + 0xf], rdx
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x17], xmm0
mov byte [rbp + 0x27], al
lea r8d, [r12 + 6]
lea rcx, str.SELECT
call fcn.140197e90
movzx ecx, byte [rbp + 0x27]
mov edx, 1
test eax, eax
cmove ecx, edx
mov byte [rbp + 0x27], cl
lea r13, vtable.TransactionSafeStatement.0
mov qword [rbp - 9], r13
lea rcx, [rbp - 9]
call fcn.140023bb0
lea ecx, [rax - 0x64]
cmp ecx, 1
jbe 0x1400a683d
test eax, eax
jne 0x1400a69ad
lea r8, [rsp + 0x28]
xor edx, edx
lea rcx, [rbp - 9]
call fcn.140023aa0
test eax, eax
je 0x1400a685d
add eax, 0xffffff9c
cmp eax, 1
ja 0x1400a69ad
mov rdi, r12
mov rax, qword [rsp + 0x28]
cmp rsi, rax
jbe 0x1400a6870
mov rdi, rsi
sub rdi, rax
xor eax, eax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x11], rax
mov qword [rbp - 0x41], r15
mov dword [rbp - 0x39], r12d
mov qword [rbp - 0x31], r14
lea rdx, str.SELECT_SUM_CLUSTERS__FROM_SEGMENTS__FILES_WHERE____SEGMENTS.SEGMENT_ID__0_AND____SEGMENTS.FILE_ID__FILES.FILE_ID_AND_____1_____FILES.FILE_STATE__1__
mov qword [rbp - 0x29], rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
mov byte [rbp - 0x11], al
lea r8d, [rax + 6]
lea rcx, str.SELECT
call fcn.140197e90
movzx ecx, byte [rbp - 0x11]
test eax, eax
mov esi, 1
cmove ecx, esi
mov byte [rbp - 0x11], cl
mov qword [rbp - 0x41], r13
mov qword [rsp + 0x30], r12
lea rcx, [rbp - 0x41]
call fcn.140023bb0
lea ecx, [rax - 0x64]
cmp ecx, esi
jbe 0x1400a68de
test eax, eax
jne 0x1400a699f
lea r8, [rsp + 0x30]
xor edx, edx
lea rcx, [rbp - 0x41]
call fcn.140023aa0
test eax, eax
je 0x1400a68fe
add eax, 0xffffff9c
cmp eax, 1
ja 0x1400a699f
xor eax, eax
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x79], r15
mov dword [rbp - 0x71], r12d
mov qword [rbp - 0x69], r14
lea rdx, str.SELECT_SUM_CLUSTERS__FROM_SEGMENTS_WHERE____SEGMENTS.SEGMENT_ID__1_AND____SEGMENTS.FILE_ID_IN_________SELECT_FILES.FILE_ID_FROM_SEGMENTS__FILES_WHERE_____________SEGMENTS.FILE_ID__FILES.FILE_ID__AND_____________1_____FILES.FILE_STATE__1___AND_____________SEGMENTS.SEGMENT_ID__0__AND__SEGMENTS.CLUSTERS___0__
mov qword [rbp - 0x61], rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x59], xmm0
mov byte [rbp - 0x49], al
lea r8d, [rax + 6]
lea rcx, str.SELECT
call fcn.140197e90
movzx ecx, byte [rbp - 0x49]
test eax, eax
cmove ecx, esi
mov byte [rbp - 0x49], cl
mov qword [rbp - 0x79], r13
mov qword [rsp + 0x38], r12
lea rcx, [rbp - 0x79]
call fcn.140023bb0
lea ecx, [rax - 0x64]
cmp ecx, 1
jbe 0x1400a6964
test eax, eax
jne 0x1400a6991
lea r8, [rsp + 0x38]
xor edx, edx
lea rcx, [rbp - 0x79]
call fcn.140023aa0
test eax, eax
je 0x1400a6980
add eax, 0xffffff9c
cmp eax, 1
ja 0x1400a6991
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
lea rbx, [rax + rcx*2]
add rbx, rdi
mov qword [rbp - 0x79], r15
lea rcx, [rbp - 0x79]
call fcn.140023c60
nop
mov qword [rbp - 0x41], r15
lea rcx, [rbp - 0x41]
call fcn.140023c60
nop
mov qword [rbp - 9], r15
lea rcx, [rbp - 9]
call fcn.140023c60
nop
mov rax, rbx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140189c60
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret