Function at 0x14008ce50
Capabilities:
Reference sql statements

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x110
mov rax, qword [0x14033d010]
xor rax, rsp
mov qword [rsp + 0x108], rax
mov r15, rcx
mov qword [rsp + 0x28], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov qword [r11 - 0x40], r14
mov qword [r11 - 0x38], 0xf
mov byte [r11 - 0x50], r14b
lea rdi, [rcx + 0x328]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rdi
mov rax, qword [rcx]
lea r8, [rcx + 0x2f0]
mov r9b, 1
lea rdx, [r11 - 0x90]
call qword [rax + 0x198]
nop
lea r9d, [r14 + 0x51]
lea r8, str.SELECT_COUNT___FROM_Preset_Id_pi_INNER_JOIN_Packs_p_ON_p.key_id__pi.pack_WHERE
xor edx, edx
mov rcx, rax
call fcn.140069240
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xd8], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0xc8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0xd8], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], r14b
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x20]
lea r8, [0x1400c9590]
lea rdx, [rsp + 0xc8]
mov rcx, rdi
call fcn.140080c10
nop
lea rcx, [rsp + 0xc8]
call fcn.14004f4d0
nop
lea rcx, [rsp + 0xa8]
call fcn.14004f4d0
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rsi, rax
lea rbx, [rsp + 0xe8]
cmp qword [rsp + 0x100], 0x10
cmovae rbx, qword [rsp + 0xe8]
mov dword [rax], r14d
lea r8d, [r14 + 0xa]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
cmp rbx, qword [rsp + 0x20]
jne 0x14008cfb0
lea rcx, str.invalid_stoul_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
cmp dword [rsi], 0x22
jne 0x14008cfc2
lea rcx, str.stoul_argument_out_of_range
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
mov edx, eax
mov rax, qword [rsp + 0x40]
sub rax, qword [rsp + 0x30]
sar rax, 6
cmp rdx, rax
jbe 0x14008cfe2
lea rcx, [rsp + 0x30]
call fcn.1400c7db0
nop
jmp 0x14008cff1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov rax, qword [r15]
lea r8, [r15 + 0x2f0]
mov r9b, 1
lea rdx, [rsp + 0xa8]
mov rcx, r15
call qword [rax + 0x198]
nop
mov r9d, 0x60
lea r8, str.SELECT_pi.key_id__pi.file_path_FROM_Preset_Id_pi_INNER_JOIN_Packs_p_ON_p.key_id__pi.pack_WHERE
xor edx, edx
mov rcx, rax
call fcn.140069240
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], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8d, 0x16
lea rdx, str._ORDER_BY_pi.file_path
lea rcx, [rsp + 0x68]
call fcn.14007a550
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xd8], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0xc8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0xd8], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov esi, 7
lea r9, [rsp + 0x50]
lea r8, [0x1400cbc80]
lea rdx, [rsp + 0xc8]
mov rcx, rdi
call fcn.140080c10
nop
lea rcx, [rsp + 0xc8]
call fcn.14004f4d0
nop
lea rcx, [rsp + 0x68]
call fcn.14004f4d0
nop
lea rcx, [rsp + 0xa8]
call fcn.14004f4d0
mov qword [rsp + 0x98], r14
mov qword [rsp + 0xa0], 0xf
mov byte [rsp + 0x88], 0
mov r13, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
cmp rbx, r13
je 0x14008d618
add rbx, 0x20
nop
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], 7
mov word [rsp + 0x68], r14w
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14008d172
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14008d14d
mov rax, qword [rbx]
lea r12, [rcx + rax]
mov rdi, rbx
jb 0x14008d159
mov rdi, qword [rbx]
call fcn.140206ff0
mov r9, rax
lea r8, [rsp + 0x68]
mov rdx, r12
mov rcx, rdi
call fcn.1402051d0
nop
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x28]
call fcn.140204560
cmp dword [rax], 1
setbe dil
lea rcx, [rsp + 0x68]
call fcn.14004f460
test dil, dil
je 0x14008d232
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], 0xf
mov byte [rsp + 0x68], 0
or esi, 8
mov dword [rsp + 0x20], esi
mov rdx, qword [rbx - 0x10]
inc rdx
lea rcx, [rsp + 0x68]
call fcn.140068500
lea rdx, [rbx - 0x20]
cmp qword [rbx - 8], 0x10
jb 0x14008d1da
mov rdx, qword [rdx]
mov r8, qword [rbx - 0x10]
lea rcx, [rsp + 0x68]
call fcn.14007a550
mov r8d, 1
lea rdx, [0x140299efc]
lea rcx, [rsp + 0x68]
call fcn.14007a550
lea rdx, [rsp + 0x68]
cmp qword [rsp + 0x80], 0x10
cmovae rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x78]
lea rcx, [rsp + 0x88]
call fcn.14007a550
and esi, 0xfffffff7
lea rcx, [rsp + 0x68]
call fcn.14004f4d0
add rbx, 0x40
lea rax, [rbx - 0x20]
cmp rax, r13
jne 0x14008d120
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x14008d618
lea rcx, [rax - 1]
cmp rax, rcx
jb 0x14008d67d
lea rax, [rsp + 0x88]
cmp qword [rsp + 0xa0], 0x10
cmovae rax, qword [rsp + 0x88]
mov qword [rsp + 0x98], rcx
mov byte [rax + rcx], 0
mov rdi, qword [rsp + 0x58]
mov qword [rsp + 0x58], rdi
mov byte [rsp + 0x60], 0
mov qword [rsp + 0xd8], r14
mov qword [rsp + 0xe0], 0xf
mov byte [rsp + 0xc8], 0
mov r8d, 5
lea rdx, str.BEGIN
lea rcx, [rsp + 0xc8]
call fcn.14004f6a0
nop
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xc8]
mov rcx, rdi
call fcn.140080c10
nop
lea rcx, [rsp + 0xc8]
call fcn.14004f4d0
nop
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], 0xf
mov byte [rsp + 0x68], 0
or esi, 0x10
mov dword [rsp + 0x20], esi
mov rbx, qword [rsp + 0x98]
lea rdx, [rbx + 0x29]
lea rcx, [rsp + 0x68]
call fcn.140068500
mov r8d, 0x29
lea rdx, str.DELETE_FROM__Preset_Id__WHERE_key_id_IN__
lea rcx, [rsp + 0x68]
call fcn.14007a550
lea rdx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 0x10
cmovae rdx, qword [rsp + 0x88]
mov r8, rbx
lea rcx, [rsp + 0x68]
call fcn.14007a550
mov r8d, 1
lea rdx, [0x140299898]
lea rcx, [rsp + 0x68]
call fcn.14007a550
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xb8], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0xa8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0xb8], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
or esi, 0x20
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xa8]
mov rcx, rdi
call fcn.140080c10
nop
lea rcx, [rsp + 0xa8]
call fcn.14004f4d0
and esi, 0xffffffef
lea rcx, [rsp + 0x68]
call fcn.14004f4d0
nop
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], 0xf
mov byte [rsp + 0x68], 0
or esi, 0x40
mov dword [rsp + 0x20], esi
mov rbx, qword [rsp + 0x98]
lea rdx, [rbx + 0x38]
lea rcx, [rsp + 0x68]
call fcn.140068500
mov r8d, 0x38
lea rdx, str.DELETE_FROM_Preset_Characteristics_WHERE_preset_key_IN__
lea rcx, [rsp + 0x68]
call fcn.14007a550
lea rdx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 0x10
cmovae rdx, qword [rsp + 0x88]
mov r8, rbx
lea rcx, [rsp + 0x68]
call fcn.14007a550
mov r8d, 1
lea rdx, [0x140299898]
lea rcx, [rsp + 0x68]
call fcn.14007a550
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xb8], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0xa8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0xb8], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
bts esi, 7
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xa8]
mov rcx, rdi
call fcn.140080c10
nop
lea rcx, [rsp + 0xa8]
call fcn.14004f4d0
and esi, 0xffffffbf
lea rcx, [rsp + 0x68]
call fcn.14004f4d0
nop
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], 0xf
mov byte [rsp + 0x68], 0
bts esi, 8
mov dword [rsp + 0x20], esi
mov rbx, qword [rsp + 0x98]
lea rdx, [rbx + 0x33]
lea rcx, [rsp + 0x68]
call fcn.140068500
mov r8d, 0x33
lea rdx, str.DELETE_FROM_Preset_ProductIds_WHERE_preset_key_IN__
lea rcx, [rsp + 0x68]
call fcn.14007a550
lea rdx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 0x10
cmovae rdx, qword [rsp + 0x88]
mov r8, rbx
lea rcx, [rsp + 0x68]
call fcn.14007a550
mov r8d, 1
lea rdx, [0x140299898]
lea rcx, [rsp + 0x68]
call fcn.14007a550
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xb8], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0xa8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0xb8], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
bts esi, 9
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xa8]
mov rcx, rdi
call fcn.140080c10
nop
lea rcx, [rsp + 0xa8]
call fcn.14004f4d0
nop
lea rcx, [rsp + 0x68]
call fcn.14004f4d0
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], 0xf
mov byte [rsp + 0x68], 0
mov r8d, 6
lea rdx, str.COMMIT
lea rcx, [rsp + 0x68]
call fcn.14004f6a0
nop
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.140080c10
nop
lea rcx, [rsp + 0x68]
call fcn.14004f4d0
nop
lea rcx, [rsp + 0x88]
call fcn.14004f4d0
mov dl, 1
mov rcx, r15
call fcn.1400946f0
mov rcx, r15
call fcn.14008e680
nop
lea rcx, [rsp + 0xe8]
call fcn.14004f4d0
nop
lea rcx, [rsp + 0x30]
call fcn.1400c7d10
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.14022d970
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.14004f990
nop
int3