Function at 0x1400a2e70
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x550
movaps xmmword [rsp + 0x540], xmm6
mov rax, qword [0x14033d010]
xor rax, rsp
mov qword [rsp + 0x530], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor r14d, r14d
mov dword [rsp + 0x34], r14d
test edx, edx
je 0x1400a3036
sub edx, 1
je 0x1400a2ee0
cmp edx, 1
jne 0x1400a36cf
lea edx, [r14 + 2]
call fcn.1401fe600
mov rcx, rbx
call fcn.140096140
jmp 0x1400a36cf
mov r14d, 0xffffffff
movsxd r8, dword [rcx + 0x2d4]
cmp r8d, r14d
jne 0x1400a2f09
mov eax, dword [rcx + 0x2d0]
cmp eax, r14d
je 0x1400a2fed
mov r14d, eax
jmp 0x1400a2fed
test r8d, r8d
js 0x1400a2fed
mov r9, qword [rcx + 0x2d8]
mov rcx, qword [rcx + 0x2e0]
sub rcx, r9
movabs rax, 0x2e8ba2e8ba2e8ba3
imul rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r8d, edx
jge 0x1400a2fed
mov r14d, r8d
imul rdi, r8, 0x2c0
add rdi, r9
mov rdx, rdi
lea rcx, [rsp + 0x270]
call fcn.140052260
nop
mov rax, qword [rdi + 0x290]
mov qword [rsp + 0x500], rax
lea rdx, [rdi + 0x298]
lea rcx, [rsp + 0x508]
call fcn.14004edc0
movzx eax, byte [rdi + 0x2b8]
mov byte [rsp + 0x528], al
movzx eax, byte [rdi + 0x2b9]
mov byte [rsp + 0x529], al
movzx eax, byte [rdi + 0x2ba]
mov byte [rsp + 0x52a], al
mov r9d, dword [rbx + 0x2d4]
lea r8, [rsp + 0x508]
lea rdx, [rsp + 0x270]
lea rcx, [rbx + 0x40]
call fcn.1400a5fa0
nop
lea rcx, [rsp + 0x508]
call fcn.14004f4d0
lea rcx, [rsp + 0x270]
call fcn.14004c0a0
mov dword [rbx + 0x2d4], 0xffffffff
cmp r14d, 0xffffffff
je 0x1400a300d
mov rax, qword [rbx]
mov edx, r14d
mov rcx, rbx
call qword [rax + 0x88]
nop
mov edx, 1
mov rcx, rbx
call fcn.1401fe600
jmp 0x1400a36cf
mov rcx, qword [rcx + 0x2788]
test rcx, rcx
je 0x1400a30df
cmp byte [rbx + 0x2790], 0
je 0x1400a305c
cmp byte [rcx + 0xb8], 0
jne 0x1400a30df
mov qword [rsp + 0x38], 1
cmp byte [rbx + 0x2790], 0
je 0x1400a308f
cmp byte [rcx + 0xb8], 0
je 0x1400a308f
mov edx, 4
lea rcx, [rsp + 0x40]
call fcn.14007b0c0
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_future_error_class_std::error_code_const____ptr64_]
lea rdx, [rsp + 0x38]
call fcn.1400d3c60
test eax, eax
jne 0x1400a30df
lea rcx, [rbx + 0x2788]
call fcn.14007b270
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x28]
mov r8b, 1
movzx edx, r8b
mov rcx, rbx
call fcn.140092360
xchg byte [rbx + 0x2798], r14b
xor edx, edx
mov r8d, 0x1388
mov rcx, rbx
call fcn.1401fe4b0
jmp 0x1400a36cf
movzx eax, byte [rbx + 0x2798]
test al, al
je 0x1400a3110
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x28]
xchg byte [rbx + 0x2798], r14b
mov r8b, 1
movzx edx, r8b
mov rcx, rbx
call fcn.140092360
jmp 0x1400a36cf
mov rax, qword [rbx + 0x2788]
test rax, rax
je 0x1400a3136
cmp byte [rbx + 0x2790], 0
je 0x1400a36cf
cmp byte [rax + 0xb8], 0
je 0x1400a36cf
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400a319b
mov dword [rsp + 0x20], r14d
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
mov rcx, qword [rcx + 0x40]
call sub.VCRUNTIME140.dll___RTDynamicCast
test rax, rax
je 0x1400a319b
mov rcx, qword [rbx + 0x38]
mov dword [rsp + 0x20], r14d
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
mov rcx, qword [rcx + 0x40]
call sub.VCRUNTIME140.dll___RTDynamicCast
cmp qword [rax + 0x27d8], 0
je 0x1400a319b
cmp byte [rax + 0x2f70], 0
jne 0x1400a36cf
mov qword [rsp + 0x200], r14
mov qword [rsp + 0x208], 0xf
mov byte [rsp + 0x1f0], 0
mov qword [rsp + 0x220], r14
mov qword [rsp + 0x228], 0xf
mov byte [rsp + 0x210], 0
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x1f0]
lea rdx, [0x1403441a0]
lea rcx, [rbx + 0x40]
call fcn.1400a6470
test eax, eax
jne 0x1400a323e
lea rdx, [rbx + 0x27a0]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1400a3209
mov rdx, qword [rdx]
lea rcx, [rsp + 0x1f0]
cmp qword [rsp + 0x208], 0x10
cmovae rcx, qword [rsp + 0x1f0]
mov r8, qword [rsp + 0x200]
cmp r8, rax
jne 0x1400a3239
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400a323e
mov sil, 1
jmp 0x1400a3241
xor sil, sil
cmp byte [rbx + 0x27c0], 0
je 0x1400a32a8
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x210]
lea rdx, [0x140344180]
lea rcx, [rbx + 0x40]
call fcn.1400a6470
test eax, eax
jne 0x1400a32a8
lea rax, [rsp + 0x210]
cmp qword [rsp + 0x228], 0x10
cmovae rax, qword [rsp + 0x210]
cmp qword [rsp + 0x220], 1
jne 0x1400a32a8
cmp byte [rax], 0x30
jne 0x1400a329a
mov eax, r14d
jmp 0x1400a329f
sbb eax, eax
or eax, 1
test eax, eax
mov byte [rsp + 0x30], 1
je 0x1400a32ad
mov byte [rsp + 0x30], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x240], r14
mov qword [rsp + 0x248], 0xf
mov byte [rsp + 0x230], 0
mov r8d, 0x3f
lea rdx, str.SELECT_DISTINCT_name_FROM_Instruments_WHERE_category_id_IS_NULL
lea rcx, [rsp + 0x230]
call fcn.14004f6a0
nop
lea rax, [rsp + 0x50]
mov qword [rsp + 0x70], rax
lea r9, [rsp + 0x70]
lea r8, [0x1400c97e0]
lea rdx, [rsp + 0x230]
lea rcx, [rbx + 0x328]
call fcn.140080c10
nop
lea rcx, [rsp + 0x230]
call fcn.14004f4d0
mov rax, qword [rsp + 0x58]
sub rax, qword [rsp + 0x50]
sar rax, 5
cmp rax, 1
jb 0x1400a3395
call fcn.140061350
lea r13, str.database
mov qword [rsp + 0xa0], r13
mov qword [rsp + 0xa8], 8
movaps xmm0, xmmword [rsp + 0xa0]
movdqa xmmword [rsp + 0xd0], xmm0
lea rdx, [rsp + 0xd0]
mov rcx, rax
call fcn.1400d2a50
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rbx + 0x40]
call fcn.1400a55a0
mov sil, 1
jmp 0x1400a339c
lea r13, str.database
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x260], r14
mov qword [rsp + 0x268], 0xf
mov byte [rsp + 0x250], 0
mov r8d, 0x106
lea rdx, str.SELECT_DISTINCT_pi.file_path_FROM_Preset_Id_pi_INNER_JOIN_Instruments_i_ON_i.key_id__pi.instrument_key_INNER_JOIN_Variations_v_ON_v.key_id__pi.instrument_variation_key_id_WHERE_v.name__Undefined_OR_v.name__Dual_OR_v.name__Split_OR_v.name__Multi
lea rcx, [rsp + 0x250]
call fcn.14004f6a0
nop
lea rax, [rsp + 0x80]
mov qword [rsp + 0x78], rax
lea r9, [rsp + 0x78]
lea r8, [0x1400c97e0]
lea rdx, [rsp + 0x250]
lea rcx, [rbx + 0x328]
call fcn.140080c10
nop
lea rcx, [rsp + 0x250]
call fcn.14004f4d0
mov r12, qword [rsp + 0x88]
mov rax, r12
mov rdi, qword [rsp + 0x80]
sub rax, rdi
sar rax, 5
cmp rax, 1
jb 0x1400a35f5
mov r15d, dword [rsp + 0x34]
nop dword [rax + rax]
cmp rdi, r12
je 0x1400a360a
call fcn.140061350
mov rsi, rax
mov qword [rsp + 0xb0], r13
mov qword [rsp + 0xb8], 8
movaps xmm6, xmmword [rsp + 0xb0]
movdqa xmmword [rsp + 0xe0], xmm6
mov r8d, 3
lea rdx, [rsp + 0xe0]
mov rcx, rax
call fcn.140112820
test al, al
je 0x1400a35e1
lea rax, [0x14026ef00]
mov qword [rsp + 0x100], rax
lea rcx, [rsp + 0x188]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or r15d, 1
mov dword [rsp + 0x34], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0x100]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x100]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x100], rax
mov rax, qword [rsp + 0x100]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0xfc], edx
mov edx, 2
lea rcx, [rsp + 0x108]
call fcn.140062e60
nop
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400a353c
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rsp + 0x100]
call fcn.1400503f0
lea rdx, str._with_variations_invalid_:_update_on_database.
mov rcx, rax
call fcn.14004fa30
movdqa xmmword [rsp + 0xf0], xmm6
lea r9, [rsp + 0x100]
mov r8d, 3
lea rdx, [rsp + 0xf0]
mov rcx, rsi
call fcn.140112d60
nop
mov rax, qword [rsp + 0x100]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x100], rax
mov rax, qword [rsp + 0x100]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0xfc], edx
lea rcx, [rsp + 0x108]
call fcn.140061100
lea rcx, [rsp + 0x110]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x188]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rdx, rdi
mov rcx, rbx
call fcn.14008e900
add rdi, 0x20
jmp 0x1400a3450
movzx edi, byte [rsp + 0x30]
test sil, sil
jne 0x1400a360f
test dil, dil
je 0x1400a369a
jmp 0x1400a360f
movzx edi, byte [rsp + 0x30]
lea rcx, [rbx + 0x27a0]
lea rax, [rsp + 0x1f0]
cmp rcx, rax
je 0x1400a364a
lea rdx, [rsp + 0x1f0]
cmp qword [rsp + 0x208], 0x10
cmovae rdx, qword [rsp + 0x1f0]
mov r8, qword [rsp + 0x200]
call fcn.14004f6a0
mov rcx, rbx
call fcn.14009be70
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x28]
test dil, dil
je 0x1400a369a
mov byte [rbx + 0x27c0], 0
xchg byte [rbx + 0x2780], r14b
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400a3682
mov rax, qword [rcx]
call qword [rax + 0xa8]
mov r8b, 1
movzx edx, r8b
mov rcx, rbx
call fcn.140092360
mov rcx, rbx
call fcn.140096140
nop
lea rcx, [rsp + 0x80]
call fcn.14004f120
nop
lea rcx, [rsp + 0x50]
call fcn.14004f120
nop
lea rcx, [rsp + 0x210]
call fcn.14004f4d0
nop
lea rcx, [rsp + 0x1f0]
call fcn.14004f4d0
nop
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14022d970
lea r11, [rsp + 0x550]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret