Function at 0x140001800
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rbp + 0x47], rax
lea rcx, [0x140008950]
cmp qword [0x140008968], 0xf
cmova rcx, qword [0x140008950]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.Copyright_C__2024_Toshiba_America_Electronic_Components__Inc.__All_Rights_Reserved._n
call fcn.140001200
mov rbx, qword [0x140008970]
lea rdi, [rbx + 8]
xor r14d, r14d
cmp qword [rdi + 0x80], r14
jne 0x14000197b
lea edx, [r14 + 2]
lea r8d, [r14 + 0x40]
lea rcx, str.C:_skar.txt
call qword [sym.imp.MSVCP140.dll_struct__iobuf____ptr64___cdecl_std::_Fiopen_char_const____ptr64__int__int_]
mov rsi, rax
test rax, rax
je 0x14000197b
mov byte [rdi + 0x7c], 1
mov byte [rdi + 0x71], r14b
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x1f], r14
mov qword [rbp + 0x17], r14
mov qword [rbp + 0xf], r14
lea r9, [rbp + 0xf]
lea r8, [rbp + 0x17]
lea rdx, [rbp + 0x1f]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_stream_buffer_pointers]
mov r9, qword [rbp + 0xf]
mov qword [rsp + 0x30], r9
mov r8, qword [rbp + 0x17]
mov qword [rsp + 0x28], r8
mov rdx, qword [rbp + 0x1f]
mov qword [rsp + 0x20], rdx
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_char____ptr64____ptr64__char____ptr64____ptr64__int____ptr64__char____ptr64____ptr64__char____ptr64____ptr64__int____ptr64____ptr64]
mov qword [rdi + 0x80], rsi
mov rax, qword [0x1400089a0]
mov qword [rdi + 0x74], rax
mov qword [rdi + 0x68], r14
lea rdx, [rbp - 0x21]
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_class_std::locale___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::getloc_void____ptr64]
nop
mov rcx, rax
call fcn.140002c00
mov rsi, rax
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::codecvt_base::always_noconv_void_const___ptr64]
test al, al
je 0x14000192c
mov qword [rdi + 0x68], r14
jmp 0x14000193a
mov qword [rdi + 0x68], rsi
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
nop
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14000195c
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x14000195c
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, qword [rbx]
add rax, 4
test rdi, rdi
je 0x140001982
movsxd rcx, dword [rax]
add rcx, rbx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x140001995
mov rax, qword [rbx]
add rax, 4
movsxd rcx, dword [rax]
add rcx, rbx
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
cmp qword [rbx + 0x88], 0
je 0x140001aa6
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
mov qword [rbp + 0x37], r14
mov qword [rbp + 0x3f], 0xf
mov byte [rbp + 0x27], 0
lea rcx, str.New_Disk_Serialnumber__max._256_bytes_:
call fcn.140001200
mov rbx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp + 0x27]
mov rcx, rbx
call fcn.140003050
mov rcx, qword [0x140008970]
cmp qword [rcx + 0x88], 0
je 0x140001a27
lea rdx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 0xf
cmova rdx, qword [rbp + 0x27]
mov r8, qword [rbp + 0x37]
call fcn.140002e90
mov rcx, rax
lea rdx, [0x140002bc0]
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]
lea rdx, str.done.
lea rcx, [rbp - 0x11]
call fcn.140002860
mov rdx, rax
call fcn.1400014e0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0xf
jbe 0x140001a96
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a91
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a91
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000351c
mov qword [rbp + 0x37], r14
mov qword [rbp + 0x3f], 0xf
mov byte [rbp + 0x27], 0
mov rdi, qword [0x140008970]
test rdi, rdi
je 0x140001b04
mov rax, qword [rdi]
movsxd rdx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rdx + rdi], rax
mov rax, qword [rdi]
movsxd rdx, dword [rax + 4]
lea r8d, [rdx - 0xa8]
mov dword [rdx + rdi - 4], r8d
lea rcx, [rdi + 8]
call fcn.140002720
lea rcx, [rdi + 0x10]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rdi + 0xa8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov edx, 0x108
mov rcx, rdi
call fcn.14000351c
xor eax, eax
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140003280
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret