Function at 0x140010cd0
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x138]
sub rsp, 0x238
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x140030010]
xor rax, rsp
mov qword [rbp + 0x128], rax
mov edi, r9d
mov dword [rsp + 0x60], r9d
mov r14, r8
mov r12, rdx
mov r15, rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x78], rdx
mov qword [rbp - 0x60], r8
mov ebx, dword [rbp + 0x1a0]
mov dword [rsp + 0x5c], ebx
xor esi, esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x58], esi
lea ecx, [rsi + 0x20]
call fcn.14001d684
mov rcx, rax
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_struct_HeadphoneDatabaseUtility::HeadphoneTuningBlob_.0
mov qword [rcx], rax
lea rax, [rcx + 0x10]
movups xmmword [rax], xmm0
mov qword [rax], rsi
mov dword [rax + 8], esi
mov qword [r12], rax
mov qword [r12 + 8], rcx
mov dword [rsp + 0x40], 3
mov edx, ebx
lea rcx, [rbp + 0xe8]
call fcn.140002150
mov rbx, rax
mov edx, edi
lea rcx, [rbp + 0xc8]
call fcn.140002150
mov rdi, rax
mov rcx, qword [r14 + 0x10]
movabs r13, 0x7ffffffffffffffe
mov rax, r13
sub rax, rcx
cmp rax, 0x53
jb 0x1400117e6
mov rax, r14
cmp qword [r14 + 0x18], 8
jb 0x140010dd2
mov rax, qword [r14]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x53
lea r9, str.SELECT_Asset.Data__length_Asset.Data___Asset.FileSize_FROM_Asset_WHERE_Asset.Uuid
lea rcx, [rbp + 0xa8]
call fcn.140010650
mov dword [rsp + 0x40], 7
mov r8d, 0x1b
lea rdx, str._AND_Asset.AudioRouteEnum
lea rcx, [rbp + 0xa8]
call fcn.14000f6a0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x18], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov dword [rsp + 0x40], 0xf
mov r9, rdi
lea r8, [rbp + 8]
lea rcx, [rbp + 0x88]
call fcn.1400119e0
mov dword [rsp + 0x40], 0x1f
mov r8d, 0x1a
lea rdx, str._AND_Asset.SampleRateEnum
lea rcx, [rbp + 0x88]
call fcn.14000f6a0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x28], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x38], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov dword [rsp + 0x40], 0x3f
mov r9, rbx
lea r8, [rbp + 0x28]
lea rcx, [rbp + 0x68]
call fcn.1400119e0
mov dword [rsp + 0x40], 0x7f
mov rdx, qword [rbp + 0x40]
cmp rdx, 8
jb 0x140010ef5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010eef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010eef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
nop
mov rdx, qword [rbp + 0xa0]
cmp rdx, 8
jb 0x140010f3e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010f39
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010f39
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
xor ebx, ebx
mov qword [rbp + 0x98], rbx
mov qword [rbp + 0xa0], 7
mov word [rbp + 0x88], bx
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x140010f9d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010f97
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010f97
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
nop
mov rdx, qword [rbp + 0xc0]
cmp rdx, 8
jb 0x140010fe6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010fe1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010fe1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
mov qword [rbp + 0xb8], rbx
mov qword [rbp + 0xc0], 7
mov word [rbp + 0xa8], bx
mov rdx, qword [rbp + 0xe0]
cmp rdx, 8
jb 0x140011048
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xc8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011043
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011043
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
mov qword [rbp + 0xd8], rbx
mov qword [rbp + 0xe0], 7
mov word [rbp + 0xc8], bx
mov rdx, qword [rbp + 0x100]
cmp rdx, 8
jb 0x1400110aa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xe8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400110a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400110a5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
mov qword [rbp + 0xf8], rbx
mov qword [rbp + 0x100], 7
mov word [rbp + 0xe8], bx
lea rdx, [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae rdx, qword [rbp + 0x68]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x48]
mov rsi, 0xffffffffffffffff
mov r8d, esi
mov rcx, qword [r15 + 8]
call qword [sym.imp.winsqlite3.dll_sqlite3_prepare16_v2]
test eax, eax
jne 0x1400117ec
mov edi, ebx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.winsqlite3.dll_sqlite3_step]
cmp eax, 0x64
jne 0x1400111cf
inc edi
cmp edi, 1
jg 0x1400111b6
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.winsqlite3.dll_sqlite3_column_blob]
mov r15, rax
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.winsqlite3.dll_sqlite3_column_int]
mov ebx, eax
mov edx, 2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.winsqlite3.dll_sqlite3_column_int]
mov dword [rsp + 0x58], eax
test ebx, ebx
jne 0x140011188
xor ebx, ebx
mov qword [rbp - 8], rbx
mov qword [rbp], 7
mov word [rbp - 0x18], bx
lea r8d, [rbx + 0x24]
lea rdx, str.Blob_read_from_database_has_size__0
lea rcx, [rbp - 0x18]
call fcn.14000f500
xor edx, edx
lea rcx, [rbp - 0x18]
call fcn.140005660
jmp 0x1400111b6
mov rax, qword [r12]
mov dword [rax + 8], ebx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
mov rax, qword [r12]
mov qword [rax], rcx
mov rcx, qword [r12]
mov r8, rbx
mov rdx, r15
mov rcx, qword [rcx]
call sub.VCRUNTIME140.dll_memcpy
xor ebx, ebx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.winsqlite3.dll_sqlite3_step]
cmp eax, 0x64
je 0x140011110
mov r15, qword [rsp + 0x68]
cmp eax, 0x65
je 0x140011288
mov rcx, qword [r15 + 8]
call qword [sym.imp.winsqlite3.dll_sqlite3_errcode]
movsxd rcx, eax
lea rax, [0x140000000]
lea rdx, [rax + 0x257a0]
lea rdx, [rdx + rcx*2]
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], bx
nop word [rax + rax]
inc rsi
cmp word [rdx + rsi*2], 0
jne 0x140011210
mov r8, rsi
lea rcx, [rbp - 0x58]
call fcn.14000f500
nop
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x38]
call fcn.14000f130
xor edx, edx
mov rcx, rax
call fcn.140005660
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x1400116ae
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001127e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001164f
call fcn.14001d9e0
jmp 0x1400116ae
cmp edi, 1
jle 0x140011656
mov edx, edi
lea rcx, [rbp - 0x38]
call fcn.140002150
nop
mov r8, rax
lea rdx, str.Found_multiple_entries_for_same_Uuid__sample_rate__and_audio_route:
lea rcx, [rbp + 0x48]
call fcn.14000f8a0
xor edx, edx
mov rcx, rax
call fcn.140005660
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x1400112fe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400112f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400112f9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
mov edx, dword [rsp + 0x5c]
lea rcx, [rbp + 0x28]
call fcn.140002150
mov rbx, rax
mov edx, dword [rsp + 0x60]
lea rcx, [rbp + 8]
call fcn.140002150
mov rdi, rax
mov rcx, qword [r14 + 0x10]
sub r13, rcx
cmp r13, 6
jb 0x14001186a
mov rax, r14
cmp qword [r14 + 0x18], 8
jb 0x14001133c
mov rax, qword [r14]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 6
lea r9, str._tUuid:
lea rcx, [rbp - 0x18]
call fcn.140010650
mov dword [rsp + 0x40], 0xff
mov r8d, 0xd
lea rdx, str.__AudioRoute:
lea rcx, [rbp - 0x18]
call fcn.14000f6a0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x58], xmm1
xor esi, esi
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov dword [rsp + 0x40], 0x1ff
mov r9, rdi
lea r8, [rbp + 0x48]
lea rcx, [rbp - 0x58]
call fcn.1400119e0
mov dword [rsp + 0x40], 0x3ff
lea r8d, [rsi + 0xd]
lea rdx, str.__SampleRate:
lea rcx, [rbp - 0x58]
call fcn.14000f6a0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x108], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x118], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov dword [rsp + 0x40], 0x7ff
mov r9, rbx
lea r8, [rbp + 0x108]
lea rcx, [rbp - 0x38]
call fcn.1400119e0
mov dword [rsp + 0x40], 0xfff
mov rdx, qword [rbp + 0x120]
cmp rdx, 8
jb 0x140011462
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x108]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001145c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001145c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x1400114a5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400114a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400114a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
xor ebx, ebx
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], bx
mov rdx, qword [rbp + 0x60]
cmp rdx, 8
jb 0x1400114fb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400114f5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400114f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
nop
mov rdx, qword [rbp]
cmp rdx, 8
jb 0x14001153e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011539
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011539
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
mov qword [rbp - 8], rbx
mov qword [rbp], 7
mov word [rbp - 0x18], bx
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x140011591
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001158c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001158c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
mov qword [rbp + 0x18], rbx
mov qword [rbp + 0x20], 7
mov word [rbp + 8], bx
mov rdx, qword [rbp + 0x40]
cmp rdx, 8
jb 0x1400115e4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400115df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400115df
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
mov qword [rbp + 0x38], rbx
mov qword [rbp + 0x40], 7
mov word [rbp + 0x28], bx
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x48]
call fcn.14000f130
xor edx, edx
mov rcx, rax
call fcn.140005660
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x1400116ae
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001127e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001127e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test edi, edi
jne 0x1400116ae
mov rcx, qword [r14 + 0x10]
sub r13, rcx
cmp r13, 0x1b
jb 0x140011870
mov rax, r14
cmp qword [r14 + 0x18], 8
jb 0x140011678
mov rax, qword [r14]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x1b
lea r9, str.No_tunings_found_for_Uuid:
lea rcx, [rbp - 0x38]
call fcn.140010650
mov dword [rsp + 0x40], 0x107f
xor edx, edx
lea rcx, [rbp - 0x38]
call fcn.140005660
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.winsqlite3.dll_sqlite3_finalize]
lea rcx, [rbp - 0x80]
call fcn.140011da0
nop
mov rdx, qword [r12]
mov r8d, dword [rdx + 8]
mov rdx, qword [rdx]
lea rcx, [rbp - 0x80]
call fcn.140012260
test al, al
je 0x1400117c5
mov rax, qword [r12]
mov ecx, dword [rsp + 0x58]
mov dword [rax + 8], ecx
lea rcx, [rbp - 0x80]
call fcn.140012570
nop
mov rdx, qword [rbp + 0x80]
cmp rdx, 8
jb 0x14001173a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011735
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011735
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
mov qword [rbp + 0x78], rbx
mov qword [rbp + 0x80], 7
mov word [rbp + 0x68], bx
mov rdx, qword [r14 + 0x18]
cmp rdx, 8
jb 0x140011788
lea rdx, [rdx*2 + 2]
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x140011783
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400117be
mov rcx, r8
call fcn.14001d9e0
mov qword [r14 + 0x10], rbx
mov qword [r14 + 0x18], 7
mov word [r14], bx
mov rax, r12
mov rcx, qword [rbp + 0x128]
xor rcx, rsp
call fcn.14001d660
add rsp, 0x238
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rdx, str.Decryption_of_headphone_tuning_failed
lea rcx, [rbp - 0x58]
call fcn.140010c20
lea rdx, [0x14002ea30]
lea rcx, [rbp - 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140002130
nop
mov rcx, qword [r15 + 8]
call qword [sym.imp.winsqlite3.dll_sqlite3_errcode]
movsxd rcx, eax
lea rax, [0x140000000]
lea rdx, [rax + 0x256d0]
lea rdx, [rdx + rcx*2]
lea rcx, [rbp - 0x38]
call fcn.14000f0f0
xor edx, edx
mov rcx, rax
call fcn.140005660
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.winsqlite3.dll_sqlite3_finalize]
mov rcx, qword [r15 + 8]
call qword [sym.imp.winsqlite3.dll_sqlite3_errmsg]
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.14000f290
nop
mov r8, rax
lea rcx, [rbp + 0x48]
call fcn.140011880
nop
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.140010bc0
lea rdx, [0x14002ea30]
lea rcx, [rbp - 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140002130
nop
call fcn.140002130
int3