Function at 0x140016a00
Capabilities:
Reference sql statements

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x140245028]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbp, rdx
movsxd r15, ecx
mov qword [r11 - 0x30], rdx
mov esi, 0xffffffff
lea rdx, str.GetIDForValue_is_running
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
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 ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
xor ebx, ebx
mov eax, dword [rcx + rax]
cmp dword [0x14024ff14], eax
jle 0x140016b97
lea rcx, [0x14024ff14]
call fcn.1401cd6d8
cmp dword [0x14024ff14], esi
jne 0x140016b97
xorps xmm0, xmm0
movups xmmword [0x14024fe20], xmm0
movups xmmword [0x14024fe30], xmm0
movups xmmword [0x14024fe40], xmm0
movups xmmword [0x14024fe50], xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
lea r8d, [rsi + 8]
lea rdx, str.repairs
lea rcx, [rsp + 0x50]
call fcn.140002690
lea rax, str.SELECT_customer_id_FROM_repairs_WHERE_repair_id___
mov qword [rsp + 0x70], rax
mov dword [0x14024fe20], ebx
mov qword [0x14024fe28], rbx
mov qword [0x14024fe30], rbx
lea ecx, [rsi + 0x39]
call fcn.1401cd750
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [0x14024fe28], rax
mov qword [0x14024fe38], rbx
xorps xmm0, xmm0
movdqa xmmword [0x14024fe40], xmm0
mov qword [0x14024fe50], 7
mov qword [0x14024fe58], 8
mov dword [0x14024fe20], 0x3f800000
mov r8, rax
lea edx, [rsi + 0x11]
lea rcx, [0x14024fe38]
call fcn.14001a3e0
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
call fcn.14001cb20
nop
lea r9, [fcn.140001bb0]
lea edx, [rsi + 0x29]
lea r8d, [rsi + 2]
lea rcx, [rsp + 0x50]
call fcn.1401cda18
lea rcx, [0x1401d3410]
call fcn.1401cd9c4
nop
lea rcx, [0x14024ff14]
call fcn.1401cd66c
call fcn.140013e40
mov r14, rax
mov r8, rbp
lea rdx, [rsp + 0x78]
call fcn.14001ab70
mov rcx, qword [rax]
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r9d, 0x80
mov r8d, esi
mov rdx, qword [rcx + 0x30]
mov rcx, r14
call fcn.14017ffa0
mov rdi, qword [rsp + 0x40]
test eax, eax
jne 0x140016cf2
mov r8, r15
lea edx, [rax + 1]
mov rcx, rdi
call fcn.140130560
mov rcx, rdi
call fcn.14012ed10
cmp eax, 0x64
jne 0x140016ce2
test rdi, rdi
je 0x140016c44
mov rax, qword [rdi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x140016c1b
call qword [0x140249900]
mov rcx, qword [rdi + 0xa0]
test rcx, rcx
je 0x140016c30
cmp bx, word [rdi + 0xc0]
jb 0x140016c4b
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 0x140016c58
mov rsi, qword [rcx]
jmp 0x140016caf
test al, 8
je 0x140016c97
movsd xmm1, qword [rcx]
movsd xmm0, qword [0x140222b80]
comisd xmm0, xmm1
jbe 0x140016c7a
movabs rsi, 0x8000000000000000
jmp 0x140016caf
comisd xmm1, xmmword [0x140222a58]
jbe 0x140016c90
movabs rsi, 0x7fffffffffffffff
jmp 0x140016caf
cvttsd2si rsi, xmm1
jmp 0x140016caf
test al, 0x12
je 0x140016cac
cmp qword [rcx + 8], 0
je 0x140016cac
call fcn.140127130
mov rsi, rax
jmp 0x140016caf
mov rsi, rbx
test rdi, rdi
je 0x140016d2b
mov edx, dword [rdi + 0x34]
mov rcx, qword [rdi]
cmp byte [rcx + 0x67], 0
jne 0x140016cc4
test edx, edx
je 0x140016ccb
call fcn.1400fcac0
mov ebx, eax
mov dword [rdi + 0x34], ebx
mov rax, qword [rdi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x140016d2b
call qword [0x140249910]
jmp 0x140016d2b
lea rdx, str.GetIDForID:_No_rows_returned.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
jmp 0x140016d16
lea rdx, str.Error_preparing_SQL_statement:
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, r14
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, r14
call fcn.1401bfa10
nop
mov rcx, rbp
call fcn.140001c20
mov eax, esi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401cd610
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret