Function at 0x1400bc150
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rdx
lea rbx, [rdx + rdx*2]
xor r12d, r12d
mov qword [rsp + 0x20], r12
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x11], xmm0
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0x1f], rax
lea r15, vtable.SqliteStatement.0
mov qword [rbp - 0x11], r15
mov dword [rbp - 9], r12d
lea r14, [rcx + 0x10]
mov qword [rbp - 1], r14
lea rdx, str.SELECT_SUM_CLUSTERS__FROM_SEGMENTS_WHERE_SEGMENT_ID__0
mov qword [rbp + 7], rdx
movdqu xmmword [rbp + 0xf], xmm0
mov byte [rbp + 0x1f], al
lea r8d, [r12 + 6]
lea rcx, str.SELECT
call fcn.1400e0530
movzx ecx, byte [rbp + 0x1f]
mov edx, 1
test eax, eax
cmove ecx, edx
mov byte [rbp + 0x1f], cl
lea r13, vtable.TransactionSafeStatement.0
mov qword [rbp - 0x11], r13
lea rcx, [rbp - 0x11]
call fcn.14002afe0
lea ecx, [rax - 0x64]
cmp ecx, 1
jbe 0x1400bc212
test eax, eax
jne 0x1400bc391
lea r8, [rsp + 0x20]
xor edx, edx
lea rcx, [rbp - 0x11]
call fcn.14002aed0
test eax, eax
je 0x1400bc232
add eax, 0xffffff9c
cmp eax, 1
ja 0x1400bc391
mov rdi, r12
mov rax, qword [rsp + 0x20]
cmp rsi, rax
jbe 0x1400bc245
mov rdi, rsi
sub rdi, rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x49], xmm0
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x49], r15
mov dword [rbp - 0x41], r12d
mov qword [rbp - 0x39], 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 - 0x31], rdx
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x19], al
lea r8d, [rax + 6]
lea rcx, str.SELECT
call fcn.1400e0530
movzx ecx, byte [rbp - 0x19]
test eax, eax
mov esi, 1
cmove ecx, esi
mov byte [rbp - 0x19], cl
mov qword [rbp - 0x49], r13
mov qword [rsp + 0x28], r12
lea rcx, [rbp - 0x49]
call fcn.14002afe0
lea ecx, [rax - 0x64]
cmp ecx, esi
jbe 0x1400bc2b7
test eax, eax
jne 0x1400bc383
lea r8, [rsp + 0x28]
xor edx, edx
lea rcx, [rbp - 0x49]
call fcn.14002aed0
test eax, eax
je 0x1400bc2d7
add eax, 0xffffff9c
cmp eax, 1
ja 0x1400bc383
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rbp - 0x71], xmm0
mov qword [rbp - 0x51], rax
mov qword [rsp + 0x38], r15
mov dword [rbp - 0x79], r12d
mov qword [rbp - 0x71], 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 - 0x69], rdx
movdqu xmmword [rbp - 0x61], xmm0
mov byte [rbp - 0x51], al
lea r8d, [rax + 6]
lea rcx, str.SELECT
call fcn.1400e0530
movzx ecx, byte [rbp - 0x51]
test eax, eax
cmove ecx, esi
mov byte [rbp - 0x51], cl
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x38]
call fcn.14002afe0
lea ecx, [rax - 0x64]
cmp ecx, 1
jbe 0x1400bc345
test eax, eax
jne 0x1400bc373
lea r8, [rsp + 0x30]
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14002aed0
test eax, eax
je 0x1400bc362
add eax, 0xffffff9c
cmp eax, 1
ja 0x1400bc373
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
lea rbx, [rax + rcx*2]
add rbx, rdi
mov qword [rsp + 0x38], r15
lea rcx, [rsp + 0x38]
call fcn.14002b160
nop
mov qword [rbp - 0x49], r15
lea rcx, [rbp - 0x49]
call fcn.14002b160
nop
mov qword [rbp - 0x11], r15
lea rcx, [rbp - 0x11]
call fcn.14002b160
nop
mov rax, rbx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140140100
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