Function at 0x14002a7b0
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14029fbf8]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rdx
mov r14, rcx
xor eax, eax
mov qword [rbp - 9], rax
mov qword [rbp + 0x1f], rax
lea rax, vtable.SqliteStatement.0
mov qword [rbp - 0x11], rax
xor r13d, r13d
mov dword [rbp - 9], r13d
mov qword [rbp - 1], rcx
lea rdx, str.SELECT_ID__VALUE_FROM_STATISTICS_ORDER_BY_ID
mov qword [rbp + 7], rdx
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xf], xmm0
mov byte [rbp + 0x1f], r13b
lea r8d, [r13 + 6]
lea rcx, [0x1402441c0]
call fcn.1401a7c50
movzx ecx, byte [rbp + 0x1f]
mov r15d, 1
test eax, eax
cmove ecx, r15d
mov byte [rbp + 0x1f], cl
lea rax, vtable.DatabaseCreationStatement.0
mov qword [rbp - 0x11], rax
mov edi, r13d
lea r12, str.P_a_
mov eax, dword [rbp - 9]
test eax, eax
je 0x14002a8ab
add eax, 0xfffffffd
cmp eax, r15d
ja 0x14002a8b8
mov rcx, qword [str.P_a_]
cmp rcx, r12
je 0x14002a89c
test dword [rcx + 0x44], 0x100
je 0x14002a89c
cmp byte [rcx + 0x41], 3
jb 0x14002a89c
lea edx, [r13 + 0x10]
lea r8, [0x1402441b0]
mov rcx, qword [rcx + 0x38]
call fcn.140022ad0
mov rcx, qword [rbp + 0xf]
call fcn.1400d8160
mov dword [rbp - 9], r15d
jmp 0x14002a8b8
lea rcx, [rbp - 0x11]
call fcn.140029520
test eax, eax
jne 0x14002a8c1
lea rcx, [rbp - 0x11]
call fcn.140029d70
cmp eax, 0x64
jne 0x14002a970
mov ebx, dword [rbp - 0x59]
nop dword [rax]
mov eax, dword [rbp - 9]
cmp eax, 2
jne 0x14002a8ff
xor edx, edx
mov rcx, qword [rbp + 0xf]
call fcn.1400d7b70
mov ebx, eax
mov eax, dword [rbp - 9]
cmp eax, 2
jne 0x14002a8ff
mov edx, r15d
mov rcx, qword [rbp + 0xf]
call fcn.1400d7c10
mov rdi, rax
mov eax, dword [rbp - 9]
movsxd rcx, ebx
mov qword [rsi + rcx*8], rdi
test eax, eax
je 0x14002a951
lea ecx, [rax - 3]
cmp ecx, 1
ja 0x14002a95e
mov rcx, qword [str.P_a_]
cmp rcx, r12
je 0x14002a942
test dword [rcx + 0x44], 0x100
je 0x14002a942
cmp byte [rcx + 0x41], 3
jb 0x14002a942
mov edx, 0x10
lea r8, [0x1402441b0]
mov rcx, qword [rcx + 0x38]
call fcn.140022ad0
mov rcx, qword [rbp + 0xf]
call fcn.1400d8160
mov dword [rbp - 9], r15d
jmp 0x14002a95e
lea rcx, [rbp - 0x11]
call fcn.140029520
test eax, eax
jne 0x14002a967
lea rcx, [rbp - 0x11]
call fcn.140029d70
cmp eax, 0x64
je 0x14002a8d0
xor eax, eax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x19], rax
lea rax, vtable.SqliteStatement.0
mov qword [rbp - 0x49], rax
mov dword [rbp - 0x41], r13d
mov qword [rbp - 0x39], r14
lea rdx, str.SELECT_SUM_CLUSTERS__FROM_SEGMENTS_WHERE_________FILE_ID__0xFFFFFF___32__OR__________FILE_ID_IN__SELECT_FILE_ID_FROM_SYSTEM_FILES____AND______SEGMENT_ID__0__
mov qword [rbp - 0x31], rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x19], 0
mov r8d, 6
lea rcx, [0x1402441c0]
call fcn.1401a7c50
movzx ecx, byte [rbp - 0x19]
test eax, eax
cmove ecx, r15d
mov byte [rbp - 0x19], cl
lea rax, vtable.DatabaseCreationStatement.0
mov qword [rbp - 0x49], rax
mov eax, dword [rbp - 0x41]
test eax, eax
je 0x14002aa1c
add eax, 0xfffffffd
cmp eax, 1
ja 0x14002aa2b
mov rcx, qword [str.P_a_]
cmp rcx, r12
je 0x14002aa0d
test dword [rcx + 0x44], 0x100
je 0x14002aa0d
cmp byte [rcx + 0x41], 3
jb 0x14002aa0d
mov edx, 0x10
lea r8, [0x1402441b0]
mov rcx, qword [rcx + 0x38]
call fcn.140022ad0
mov rcx, qword [rbp - 0x29]
call fcn.1400d8160
mov dword [rbp - 0x41], r15d
jmp 0x14002aa2b
lea rcx, [rbp - 0x49]
call fcn.140029520
mov ebx, eax
test eax, eax
jne 0x14002aa36
lea rcx, [rbp - 0x49]
call fcn.140029d70
mov ebx, eax
cmp ebx, 0x64
jne 0x14002aac1
mov eax, dword [rbp - 0x41]
cmp eax, 2
jne 0x14002aa58
xor edx, edx
mov rcx, qword [rbp - 0x29]
call fcn.1400d7c10
mov rdi, rax
mov eax, dword [rbp - 0x41]
mov qword [rsi + 0x78], rdi
test eax, eax
je 0x14002aaa7
add eax, 0xfffffffd
cmp eax, 1
ja 0x14002aab6
mov rcx, qword [str.P_a_]
cmp rcx, r12
je 0x14002aa98
test dword [rcx + 0x44], 0x100
je 0x14002aa98
cmp byte [rcx + 0x41], 3
jb 0x14002aa98
mov edx, 0x10
lea r8, [0x1402441b0]
mov rcx, qword [rcx + 0x38]
call fcn.140022ad0
mov rcx, qword [rbp - 0x29]
call fcn.1400d8160
mov dword [rbp - 0x41], r15d
jmp 0x14002aab6
lea rcx, [rbp - 0x49]
call fcn.140029520
mov ebx, eax
test eax, eax
jne 0x14002aac1
lea rcx, [rbp - 0x49]
call fcn.140029d70
mov ebx, eax
cmp ebx, 0x65
jne 0x14002aace
mov ebx, r13d
jmp 0x14002aba0
test ebx, ebx
je 0x14002ab9b
cmp ebx, 0x64
je 0x14002ab9b
mov qword [rbp - 0x69], r13
mov qword [rbp - 0x61], 0xf
mov byte [rbp - 0x79], 0
mov r8d, 0x12
lea rdx, str.DatabaseSchema.cpp
lea rcx, [rbp - 0x79]
call fcn.140006db0
mov rcx, qword [str.P_a_]
cmp rcx, r12
je 0x14002ab43
test dword [rcx + 0x44], 0x100
je 0x14002ab43
cmp byte [rcx + 0x41], 1
jb 0x14002ab43
lea r9, [rbp - 0x79]
cmp qword [rbp - 0x61], 0x10
cmovae r9, qword [rbp - 0x79]
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x89
mov rcx, qword [rcx + 0x38]
call fcn.14002a430
mov rax, qword [rbp - 0x61]
cmp rax, 0x10
jb 0x14002aba0
inc rax
mov rcx, qword [rbp - 0x79]
cmp rax, 0x1000
jb 0x14002ab94
test cl, 0x1f
je 0x14002ab67
call fcn.1401a7998
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14002ab76
call fcn.1401a7998
int3
sub rcx, rax
cmp rcx, 8
jae 0x14002ab85
call fcn.1401a7998
int3
cmp rcx, 0x27
jbe 0x14002ab91
call fcn.1401a7998
int3
mov rcx, rax
call fcn.1401998b8
jmp 0x14002aba0
mov ebx, 0x10d9
lea rdi, vtable.SqliteStatement.0
mov qword [rbp - 0x49], rdi
mov rcx, qword [rbp - 0x29]
call fcn.1400d8050
mov qword [rbp - 0x29], r13
mov dword [rbp - 0x41], r13d
mov qword [rbp - 0x11], rdi
mov rcx, qword [rbp + 0xf]
call fcn.1400d8050
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140199a10
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret