Function at 0x14009c6c0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x14033d010]
xor rax, rsp
mov qword [rbp + 0x68], rax
movzx r12d, r9b
mov ebx, r8d
movsxd rsi, edx
mov r15, rcx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
mov edx, r8d
lea rcx, [rbp - 0x58]
call fcn.14005f1a0
nop
mov rdx, qword [0x14036f058]
mov rax, qword [rdx + 8]
mov rcx, rdx
cmp byte [rax + 0x19], r13b
jne 0x14009c737
cmp dword [rax + 0x20], ebx
jae 0x14009c72b
mov rax, qword [rax + 0x10]
jmp 0x14009c731
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14009c720
cmp byte [rcx + 0x19], 0
jne 0x14009c79e
cmp ebx, dword [rcx + 0x20]
jb 0x14009c79e
cmp rcx, rdx
je 0x14009c79e
test esi, esi
js 0x14009c793
mov r8, qword [rcx + 0x48]
mov rax, qword [rcx + 0x50]
sub rax, r8
sar rax, 5
cmp esi, eax
jge 0x14009c793
mov rdx, rsi
cmp rax, rsi
jbe 0x14009ce80
shl rdx, 5
add rdx, r8
lea rax, [rbp - 0x58]
cmp rax, rdx
je 0x14009c7a1
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x14009c788
mov rdx, qword [rdx]
lea rcx, [rbp - 0x58]
call fcn.14004f6a0
jmp 0x14009c7a1
mov r14d, 1
jmp 0x14009ce4d
mov esi, r13d
mov dword [rsp + 0x24], r13d
mov qword [rbp + 0x18], r13
mov qword [rbp + 0x20], 0xf
mov byte [rbp + 8], 0
add r15, 0x328
lea rax, [rsp + 0x24]
mov qword [rbp - 0x38], rax
lea rax, [rbp + 8]
mov qword [rbp - 0x30], rax
mov edx, ebx
lea rcx, [rbp + 0x28]
call fcn.14007a000
mov rdi, rax
mov edx, esi
lea rcx, [rbp + 0x48]
call fcn.14007a000
nop
mov r9d, 0x3a
lea r8, str.SELECT_key_id_name_FROM_Variations_WHERE_variation_idx__
xor edx, edx
mov rcx, rax
call fcn.140069240
xorps xmm0, xmm0
movdqu xmmword [rbp - 8], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x18], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 8], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r14d, 1
mov r8d, r14d
lea rdx, [0x14029d530]
lea rcx, [rbp - 0x18]
call fcn.14007a550
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea r8d, [r14 + 0x15]
lea rdx, str._AND_instrument_id__
lea rcx, [rsp + 0x48]
call fcn.14007a550
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x28], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x38], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8, qword [rdi + 0x10]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
mov r9, qword [rsp + 0x38]
sub rax, r9
cmp r8, rax
jbe 0x14009c8e5
mov rax, qword [rdi + 0x18]
sub rax, r8
cmp rax, r9
jb 0x14009c8e5
lea r8, [rsp + 0x28]
cmp rcx, 0x10
cmovae r8, qword [rsp + 0x28]
xor edx, edx
mov rcx, rdi
call fcn.140069240
jmp 0x14009c8fc
cmp qword [rdi + 0x18], 0x10
jb 0x14009c8ef
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.14007a550
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x68], xmm1
mov byte [rax], 0
mov qword [rax + 0x18], 0xf
mov qword [rax + 0x10], r13
mov r8, r14
lea rdx, [0x14029d530]
lea rcx, [rbp - 0x78]
call fcn.14007a550
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea r9, [rbp - 0x38]
lea r8, [0x1400ccb20]
lea rdx, [rsp + 0x68]
mov rcx, r15
call fcn.140080c10
nop
lea rcx, [rsp + 0x68]
call fcn.14004f4d0
nop
lea rcx, [rbp - 0x78]
call fcn.14004f4d0
nop
lea rcx, [rsp + 0x28]
call fcn.14004f4d0
nop
lea rcx, [rsp + 0x48]
call fcn.14004f4d0
nop
lea rcx, [rbp - 0x18]
call fcn.14004f4d0
nop
lea rcx, [rbp + 0x48]
call fcn.14004f4d0
nop
lea rcx, [rbp + 0x28]
call fcn.14004f4d0
test r12b, r12b
je 0x14009ce3e
cmp dword [rsp + 0x24], 0
jne 0x14009cc8b
mov edx, ebx
lea rcx, [rbp + 0x48]
call fcn.14007a000
mov rdi, rax
mov edx, esi
lea rcx, [rbp + 0x28]
call fcn.14007a000
mov rsi, rax
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], 0xf
mov byte [rsp + 0x68], 0
mov dword [rsp + 0x20], 0x3f
mov rbx, qword [rbp - 0x48]
lea rdx, [rbx + 0x4f]
lea rcx, [rsp + 0x68]
call fcn.140068500
mov r8d, 0x4f
lea rdx, str.INSERT_OR_IGNORE_INTO_Variations__name__variation_idx__instrument_id__VALUES__
lea rcx, [rsp + 0x68]
call fcn.14007a550
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
mov r8, rbx
lea rcx, [rsp + 0x68]
call fcn.14007a550
mov r8d, 4
lea rdx, [0x14029eeb8]
lea rcx, [rsp + 0x68]
call fcn.14007a550
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x28], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov dword [rsp + 0x20], 0x7f
mov r8, qword [rsi + 0x10]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
mov r9, qword [rbp - 0x28]
sub rax, r9
cmp r8, rax
jbe 0x14009cace
mov rax, qword [rsi + 0x18]
sub rax, r8
cmp rax, r9
jb 0x14009cace
lea r8, [rbp - 0x38]
cmp rcx, 0x10
cmovae r8, qword [rbp - 0x38]
xor edx, edx
mov rcx, rsi
call fcn.140069240
jmp 0x14009cae4
cmp qword [rsi + 0x18], 0x10
jb 0x14009cad8
mov rsi, qword [rsi]
mov rdx, rsi
lea rcx, [rbp - 0x38]
call fcn.14007a550
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov dword [rsp + 0x20], 0xff
mov byte [rax], 0
mov qword [rax + 0x18], 0xf
mov qword [rax + 0x10], r13
mov r8d, 4
lea rdx, [0x14029eeb8]
lea rcx, [rsp + 0x48]
call fcn.14007a550
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x28], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x38], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov dword [rsp + 0x20], 0x1ff
mov r8, qword [rdi + 0x10]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
mov r9, qword [rsp + 0x38]
sub rax, r9
cmp r8, rax
jbe 0x14009cb9d
mov rax, qword [rdi + 0x18]
sub rax, r8
cmp rax, r9
jb 0x14009cb9d
lea r8, [rsp + 0x28]
cmp rcx, 0x10
cmovae r8, qword [rsp + 0x28]
xor edx, edx
mov rcx, rdi
call fcn.140069240
jmp 0x14009cbb4
cmp qword [rdi + 0x18], 0x10
jb 0x14009cba7
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.14007a550
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x68], xmm1
mov dword [rsp + 0x20], 0x3ff
mov byte [rax], 0
mov qword [rax + 0x18], 0xf
mov qword [rax + 0x10], r13
mov r8d, 2
lea rdx, [0x14029fec0]
lea rcx, [rbp - 0x78]
call fcn.14007a550
xorps xmm0, xmm0
movdqu xmmword [rbp - 8], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x18], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 8], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov dword [rsp + 0x20], 0x7ff
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x18]
mov rcx, r15
call fcn.140080c10
nop
lea rcx, [rbp - 0x18]
call fcn.14004f4d0
nop
lea rcx, [rbp - 0x78]
call fcn.14004f4d0
nop
lea rcx, [rsp + 0x28]
call fcn.14004f4d0
nop
lea rcx, [rsp + 0x48]
call fcn.14004f4d0
nop
lea rcx, [rbp - 0x38]
call fcn.14004f4d0
nop
lea rcx, [rsp + 0x68]
call fcn.14004f4d0
nop
lea rcx, [rbp + 0x28]
call fcn.14004f4d0
nop
lea rcx, [rbp + 0x48]
jmp 0x14009ce39
lea rdx, [rbp - 0x58]
mov rsi, qword [rbp - 0x58]
mov r14, qword [rbp - 0x40]
cmp r14, 0x10
cmovae rdx, rsi
lea rcx, [rbp + 8]
cmp qword [rbp + 0x20], 0x10
cmovae rcx, qword [rbp + 8]
mov r8, qword [rbp + 0x18]
mov rdi, qword [rbp - 0x48]
cmp r8, rdi
jne 0x14009ccc7
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14009ce3e
mov edx, dword [rsp + 0x24]
lea rcx, [rbp + 0x28]
call fcn.14007a000
mov rbx, rax
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
mov dword [rsp + 0x20], 0x81f
lea rdx, [rdi + 0x1c]
lea rcx, [rsp + 0x48]
call fcn.140068500
mov r8d, 0x1c
lea rdx, str.UPDATE_Variations_SET_name
lea rcx, [rsp + 0x48]
call fcn.14007a550
lea rdx, [rbp - 0x58]
cmp r14, 0x10
cmovae rdx, rsi
mov r8, rdi
lea rcx, [rsp + 0x48]
call fcn.14007a550
mov r8d, 0xf
lea rdx, str._WHERE_key_id
lea rcx, [rsp + 0x48]
call fcn.14007a550
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x28], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x38], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov dword [rsp + 0x20], 0x181f
mov r8, qword [rbx + 0x10]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
mov r9, qword [rsp + 0x38]
sub rax, r9
cmp r8, rax
jbe 0x14009cdb8
mov rax, qword [rbx + 0x18]
sub rax, r8
cmp rax, r9
jb 0x14009cdb8
lea r8, [rsp + 0x28]
cmp rcx, 0x10
cmovae r8, qword [rsp + 0x28]
xor edx, edx
mov rcx, rbx
call fcn.140069240
jmp 0x14009cdcf
cmp qword [rbx + 0x18], 0x10
jb 0x14009cdc2
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.14007a550
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov dword [rsp + 0x20], 0x381f
mov byte [rax], 0
mov qword [rax + 0x18], 0xf
mov qword [rax + 0x10], r13
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, r15
call fcn.140080c10
nop
lea rcx, [rsp + 0x68]
call fcn.14004f4d0
nop
lea rcx, [rsp + 0x28]
call fcn.14004f4d0
nop
lea rcx, [rsp + 0x48]
call fcn.14004f4d0
nop
lea rcx, [rbp + 0x28]
call fcn.14004f4d0
mov r14d, dword [rsp + 0x24]
lea rcx, [rbp + 8]
call fcn.14004f4d0
nop
lea rcx, [rbp - 0x58]
call fcn.14004f4d0
mov eax, r14d
mov rcx, qword [rbp + 0x68]
xor rcx, rsp
call fcn.14022d970
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140062cf0
nop
int3