Function at 0x140016fb0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x140245028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x58], rcx
xor esi, esi
mov dword [rsp + 0x40], esi
call fcn.140013e40
mov rbp, rax
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14], rsi
mov qword [r14 + 8], rsi
mov qword [r14 + 0x10], rsi
mov r13d, 1
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9d, [r13 + 0x7f]
lea r8d, [rsi - 1]
lea rdx, str.SELECT__FROM_repairs_update_WHERE_repair_id____ORDER_BY_date_DESC
mov rcx, rbp
call fcn.14017ffa0
mov rdi, qword [rsp + 0x48]
test eax, eax
jne 0x1400172e3
movsxd r8, dword [rbx]
mov edx, r13d
mov rcx, rdi
call fcn.140130560
mov rcx, rdi
call fcn.14012ed10
cmp eax, 0x64
jne 0x1400173a4
lea r15, [0x1402050a8]
lea ebp, [rsi + 2]
mov r12d, 0x202
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
movups xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], 0xf
mov byte [rsp + 0x80], 0
test rdi, rdi
je 0x14001710e
mov rax, qword [rdi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1400170d9
call qword [0x140249900]
mov rcx, qword [rdi + 0xa0]
test rcx, rcx
je 0x1400170fa
cmp r13w, word [rdi + 0xc0]
jae 0x1400170fa
add rcx, 0x38
jne 0x140017111
mov rbx, rsi
jmp 0x140017142
mov rcx, qword [rdi]
mov dword [rcx + 0x50], 0x19
mov edx, 0x19
call fcn.1400ffec0
mov rcx, r15
movzx edx, word [rcx + 0x14]
movzx eax, dx
and ax, r12w
cmp ax, r12w
jne 0x14001712e
cmp byte [rcx + 0x16], 1
jne 0x14001712e
mov rbx, qword [rcx + 8]
jmp 0x140017142
test dl, 1
je 0x140017138
mov rbx, rsi
jmp 0x140017142
mov dl, 1
call fcn.140127f50
mov rbx, rax
test rdi, rdi
je 0x140017175
mov edx, dword [rdi + 0x34]
mov rcx, qword [rdi]
cmp byte [rcx + 0x67], 0
jne 0x14001715b
test edx, edx
jne 0x14001715b
mov eax, esi
jmp 0x140017160
call fcn.1400fcac0
mov dword [rdi + 0x34], eax
mov rax, qword [rdi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x140017175
call qword [0x140249910]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x140017180
mov rdx, rbx
lea rcx, [rsp + 0x80]
call fcn.14001a520
test rdi, rdi
je 0x1400171e5
mov rax, qword [rdi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1400171b1
call qword [0x140249900]
mov rcx, qword [rdi + 0xa0]
test rcx, rcx
je 0x1400171d1
cmp bp, word [rdi + 0xc0]
jae 0x1400171d1
add rcx, 0x70
jne 0x1400171e8
mov rbx, rsi
jmp 0x140017219
mov rcx, qword [rdi]
mov dword [rcx + 0x50], 0x19
mov edx, 0x19
call fcn.1400ffec0
mov rcx, r15
movzx edx, word [rcx + 0x14]
movzx eax, dx
and ax, r12w
cmp ax, r12w
jne 0x140017205
cmp byte [rcx + 0x16], 1
jne 0x140017205
mov rbx, qword [rcx + 8]
jmp 0x140017219
test dl, 1
je 0x14001720f
mov rbx, rsi
jmp 0x140017219
mov dl, 1
call fcn.140127f50
mov rbx, rax
test rdi, rdi
je 0x14001724c
mov edx, dword [rdi + 0x34]
mov rcx, qword [rdi]
cmp byte [rcx + 0x67], 0
jne 0x140017232
test edx, edx
jne 0x140017232
mov eax, esi
jmp 0x140017237
call fcn.1400fcac0
mov dword [rdi + 0x34], eax
mov rax, qword [rdi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14001724c
call qword [0x140249910]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x140017253
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14001a520
mov rbx, qword [r14 + 8]
cmp rbx, qword [r14 + 0x10]
je 0x1400172a0
mov qword [rsp + 0x48], rbx
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140006ef0
nop
lea rcx, [rbx + 0x20]
lea rdx, [rsp + 0x80]
call fcn.140006ef0
nop
add qword [r14 + 8], 0x40
jmp 0x1400172b1
lea r8, [rsp + 0x60]
mov rdx, rbx
mov rcx, r14
call fcn.14001c6b0
nop
lea rcx, [rsp + 0x80]
call fcn.140001c20
lea rcx, [rsp + 0x60]
call fcn.140001c20
mov rcx, rdi
call fcn.14012ed10
cmp eax, 0x64
je 0x140017083
mov rbp, qword [rsp + 0x50]
jmp 0x1400173a4
lea rdx, str.Error_during_retreiving_an_update_information:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000b220
mov rbx, rax
mov rcx, rbp
call fcn.1401c17c0
mov rdx, rax
mov rcx, rbx
call fcn.14000b220
mov rcx, rax
lea rdx, [0x1401f3e18]
call fcn.14000b220
mov rsi, rax
test rbp, rbp
je 0x140017384
movzx eax, byte [rbp + 0x71]
cmp al, 0xba
je 0x140017376
cmp al, 0x76
je 0x140017376
cmp al, 0x6d
je 0x140017376
lea r8, str.invalid
lea rdx, str.API_call_with__s_database_connection_pointer
mov ebx, 0x15
mov ecx, ebx
call fcn.1400ff0b0
lea rax, [0x140222664]
mov qword [rsp + 0x20], rax
mov r9d, 0x2bb83
lea r8, str.misuse
lea rdx, str._s_at_line__d_of___.10s_
mov ecx, ebx
call fcn.1400ff0b0
jmp 0x140017389
cmp byte [rbp + 0x67], 0
jne 0x140017384
mov ebx, dword [rbp + 0x58]
and ebx, dword [rbp + 0x50]
jmp 0x140017389
mov ebx, 7
mov edx, ebx
mov rcx, rsi
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___int____ptr64]
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, rbp
call fcn.1401bfa10
mov rax, r14
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1401cd610
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret