Function at 0x140015310
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov r12, rdx
mov rdi, rcx
lea rdx, str.GetIDForValue_is_running_S_with_value:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000b220
mov rcx, rax
mov rdx, r12
call fcn.14000b220
mov rcx, rax
lea rdx, [0x1401f40ec]
call fcn.14000b220
lea rdx, [0x14000b3f0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call fcn.140013e40
mov r15, rax
mov eax, 4
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
lea r13, [0x14024fee8]
mov ecx, dword [rax + rcx]
cmp dword [0x14024ff10], ecx
jle 0x14001547b
lea rcx, [0x14024ff10]
call fcn.1401cd6d8
cmp dword [0x14024ff10], 0xffffffff
jne 0x14001547b
xorps xmm0, xmm0
movups xmmword [0x14024fee8], xmm0
lea rax, str.Customer
mov qword [rbp - 0x29], rax
lea rax, str.SELECT_customer_id_FROM_customers_WHERE_LOWER_phone___LOWER___
mov qword [rbp - 0x21], rax
lea rax, [0x1401f3eb8]
mov qword [rbp - 0x19], rax
lea rcx, str.SELECT_model_id_FROM_models_WHERE_LOWER_model___LOWER___
mov qword [rbp - 0x11], rcx
lea rax, [0x1401f3ef8]
mov qword [rbp - 9], rax
lea rax, str.SELECT_category_id_FROM_categories_WHERE_LOWER_category___LOWER___
mov qword [rbp - 1], rax
lea rax, [0x1401f40a8]
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rcx
lea rax, str.Color2
mov qword [rbp + 0x17], rax
lea rax, str.SELECT_color_id_FROM_colors_WHERE_LOWER_color___LOWER___
mov qword [rbp + 0x1f], rax
lea rax, [0x1401f42a0]
mov qword [rbp + 0x27], rax
lea rax, str.SELECT_repair_state_id_FROM_repair_states_WHERE_LOWER_repair_state___LOWER___
mov qword [rbp + 0x2f], rax
lea rax, [rbp - 0x29]
mov qword [rbp - 0x59], rax
lea rax, [rbp + 0x37]
mov qword [rbp - 0x51], rax
lea rdx, [rbp - 0x59]
mov rcx, r13
call fcn.140019df0
lea rcx, [0x1401d33e0]
call fcn.1401cd9c4
nop
lea rcx, [0x14024ff10]
call fcn.1401cd66c
mov rsi, 0xffffffffffffffff
mov r14, qword [0x14024fee8]
mov rax, qword [r14 + 8]
mov qword [rbp - 0x49], rax
xor ebx, ebx
mov dword [rbp - 0x41], ebx
mov rdx, r14
cmp byte [rax + 0x19], bl
jne 0x1400154c5
nop
mov qword [rbp - 0x49], rax
cmp qword [rax + 0x20], rdi
jae 0x1400154b3
mov dword [rbp - 0x41], ebx
mov rax, qword [rax + 0x10]
jmp 0x1400154c0
mov dword [rbp - 0x41], 1
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], bl
je 0x1400154a0
cmp byte [rdx + 0x19], bl
jne 0x1400154d0
cmp rdi, qword [rdx + 0x20]
jae 0x14001552d
movabs rax, 0x555555555555555
cmp qword [0x14024fef0], rax
je 0x1400156e9
mov qword [rbp - 0x59], r13
mov qword [rbp - 0x51], rbx
mov ecx, 0x30
call fcn.1401cd750
nop
mov qword [rax + 0x20], rdi
mov qword [rax + 0x28], rbx
mov qword [rax], r14
mov qword [rax + 8], r14
mov qword [rax + 0x10], r14
mov word [rax + 0x18], 0
movups xmm0, xmmword [rbp - 0x49]
movaps xmmword [rbp - 0x59], xmm0
mov r8, rax
lea rdx, [rbp - 0x59]
mov rcx, r13
call fcn.1400038d0
mov rdx, rax
mov qword [rsp + 0x30], rbx
lea rax, [rbp - 0x59]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r9d, 0x80
mov r8d, esi
mov rdx, qword [rdx + 0x28]
mov rcx, r15
call fcn.14017ffa0
mov rdi, qword [rbp - 0x59]
test eax, eax
jne 0x14001567b
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x20], rbx
mov r9, rsi
mov r8, r12
lea edx, [rax + 1]
mov rcx, rdi
call fcn.140130230
mov rcx, rdi
call fcn.14012ed10
cmp eax, 0x64
jne 0x14001566b
test rdi, rdi
je 0x1400155cd
mov rax, qword [rdi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1400155a4
call qword [0x140249900]
mov rcx, qword [rdi + 0xa0]
test rcx, rcx
je 0x1400155b9
cmp bx, word [rdi + 0xc0]
jb 0x1400155d4
mov rcx, qword [rdi]
mov dword [rcx + 0x50], 0x19
mov edx, 0x19
call fcn.1400ffec0
lea rcx, [0x1402050a8]
movzx eax, word [rcx + 0x14]
test al, 0x24
je 0x1400155e1
mov rsi, qword [rcx]
jmp 0x140015638
test al, 8
je 0x140015620
movsd xmm1, qword [rcx]
movsd xmm0, qword [0x140222b80]
comisd xmm0, xmm1
jbe 0x140015603
movabs rsi, 0x8000000000000000
jmp 0x140015638
comisd xmm1, xmmword [0x140222a58]
jbe 0x140015619
movabs rsi, 0x7fffffffffffffff
jmp 0x140015638
cvttsd2si rsi, xmm1
jmp 0x140015638
test al, 0x12
je 0x140015635
cmp qword [rcx + 8], 0
je 0x140015635
call fcn.140127130
mov rsi, rax
jmp 0x140015638
mov rsi, rbx
test rdi, rdi
je 0x1400156b4
mov edx, dword [rdi + 0x34]
mov rcx, qword [rdi]
cmp byte [rcx + 0x67], 0
jne 0x14001564d
test edx, edx
je 0x140015654
call fcn.1400fcac0
mov ebx, eax
mov dword [rdi + 0x34], ebx
mov rax, qword [rdi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1400156b4
call qword [0x140249910]
jmp 0x1400156b4
lea rdx, str.GetIDForValue:_No_rows_returned.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
jmp 0x14001569f
lea rdx, str.Error_preparing_SQL_statement:_GetIDForValueS
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000b220
mov rbx, rax
mov rcx, r15
call fcn.1401c17c0
mov rdx, rax
mov rcx, rbx
call fcn.14000b220
lea rdx, [0x14000b3f0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rdi
call fcn.14012ddb0
xor edx, edx
mov rcx, r15
call fcn.1401bfa10
mov eax, esi
lea r11, [rsp + 0xd0]
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
call fcn.140001330
int3