Function at 0x140006ea0
Capabilities:
Delete file
Move file

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 - 0x180]
sub rsp, 0x280
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r15, rdx
xor r12d, r12d
mov dword [rsp + 0x28], r12d
lea rdx, [0x140016ff0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000fd90
call fcn.1400099f0
mov r14d, eax
mov rsi, qword [r15 + 8]
mov rbx, qword [r15]
cmp rbx, rsi
je 0x140006f82
nop word [rax + rax]
cmp dword [rbx], r14d
je 0x140006f21
add rbx, 0x88
cmp rbx, rsi
jne 0x140006f10
cmp rbx, rsi
je 0x140006f82
lea rdi, [rbx + 0x88]
cmp rdi, rsi
je 0x140006f82
mov eax, dword [rdi]
cmp eax, r14d
je 0x140006f76
mov dword [rbx], eax
lea rdx, [rdi + 8]
lea rcx, [rbx + 8]
call fcn.14000f210
lea rdx, [rdi + 0x28]
lea rcx, [rbx + 0x28]
call fcn.14000f210
lea rdx, [rdi + 0x48]
lea rcx, [rbx + 0x48]
call fcn.14000f210
lea rdx, [rdi + 0x68]
lea rcx, [rbx + 0x68]
call fcn.14000f210
add rbx, 0x88
add rdi, 0x88
cmp rdi, rsi
jne 0x140006f32
mov rsi, qword [r15 + 8]
cmp rbx, rsi
je 0x14000754f
mov rdi, rbx
mov rcx, rdi
call fcn.140009e80
add rdi, 0x88
cmp rdi, rsi
jne 0x140006f92
mov qword [r15 + 8], rbx
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea rbx, [0x140000000]
lea rax, [rbx + 0x17b40]
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x28], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], r13
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rsi, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x40], rsi
mov byte [rbp - 0x44], 0
mov byte [rbp - 0x4f], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x40], r12
mov rax, qword [0x14001db18]
mov qword [rbp - 0x4c], rax
mov qword [rbp - 0x58], r12
mov r8d, 1
lea rdx, str.Staff.txt
lea rcx, [rsp + 0x40]
call fcn.14000f8e0
test rax, rax
jne 0x140007099
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
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]
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x40]
call sub.VCRUNTIME140.dll_memset
lea rax, [rbx + 0x17aa8]
mov qword [rbp + 0x40], rax
lea rcx, [rbp + 0xe8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x28], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x40], r15
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x3c], edx
lea rcx, [rbp + 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
mov qword [rbp + 0x48], rsi
mov byte [rbp + 0xc4], 0
mov byte [rbp + 0xb9], 0
lea rcx, [rbp + 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0xc8], r12
mov rax, qword [0x14001db18]
mov qword [rbp + 0xbc], rax
mov qword [rbp + 0xb0], r12
mov r8d, 2
lea rdx, str.temp6.txt
lea rcx, [rbp + 0x48]
call fcn.14000f8e0
test rax, rax
jne 0x140007180
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x40]
add rcx, rax
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]
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x14000740a
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x40]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x14000740a
xorps xmm0, xmm0
movups xmmword [rbp + 0x150], xmm0
mov qword [rbp + 0x160], r12
mov qword [rbp + 0x168], 0xf
mov byte [rbp + 0x150], 0
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
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 + 0x150]
lea rcx, [rsp + 0x30]
call fcn.140010680
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x1400072f1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rax
lea rbx, [rbp + 0x150]
cmp qword [rbp + 0x168], 0xf
cmova rbx, qword [rbp + 0x150]
mov dword [rax], r12d
mov r8d, 0xa
lea rdx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp rbx, qword [rsp + 0x28]
je 0x1400073f5
cmp dword [rdi], 0x22
je 0x1400073e7
cmp eax, r14d
je 0x1400072ab
lea rdx, [rbp + 0x150]
cmp qword [rbp + 0x168], 0xf
cmova rdx, qword [rbp + 0x150]
mov r8, qword [rbp + 0x160]
lea rcx, [rbp + 0x40]
call fcn.140010820
mov rcx, rax
lea rdx, [0x1400168e4]
call fcn.14000fd90
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
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 + 0x150]
lea rcx, [rsp + 0x30]
call fcn.140010680
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
jne 0x140007225
lea rcx, [rsp + 0x40]
call fcn.14000f820
test rax, rax
jne 0x14000731e
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
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]
lea rcx, [rbp + 0x48]
call fcn.14000f820
test rax, rax
jne 0x140007348
mov rax, qword [rbp + 0x40]
movsxd r8, dword [rax + 4]
lea rcx, [rbp + 0x40]
add rcx, r8
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]
lea rcx, str.Staff.txt
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea rdx, str.Staff.txt
lea rcx, str.temp6.txt
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
lea rdx, [0x140017038]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000fd90
mov rcx, rax
mov edx, r14d
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]
mov rcx, rax
lea rdx, [0x1400168e8]
call fcn.14000fd90
mov rcx, rax
lea rdx, [0x14000ffa0]
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]
nop
mov rdx, qword [rbp + 0x168]
cmp rdx, 0xf
jbe 0x14000742e
inc rdx
mov rcx, qword [rbp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007403
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007403
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, str.stoi_argument_out_of_range
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
lea rcx, str.invalid_stoi_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
nop
call fcn.14001355c
jmp 0x14000742e
lea rdx, [0x140016900]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000fd90
mov rcx, rax
lea rdx, [0x14000ffa0]
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]
nop
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x40], r15
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x3c], edx
mov qword [rbp + 0x48], rsi
cmp qword [rbp + 0xc8], 0
je 0x140007491
mov rax, qword [rbp + 0x60]
lea rcx, [rbp + 0xb8]
cmp qword [rax], rcx
jne 0x140007491
mov rdx, qword [rbp + 0xd8]
mov rcx, qword [rbp + 0xd0]
mov qword [rax], rcx
mov rax, qword [rbp + 0x80]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x98]
mov dword [rax], edx
cmp byte [rbp + 0xc4], 0
je 0x1400074a3
lea rcx, [rbp + 0x48]
call fcn.14000f820
lea rcx, [rbp + 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xe8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x30], r13
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x2c], edx
mov qword [rsp + 0x40], rsi
cmp qword [rbp - 0x40], 0
je 0x14000751c
mov rax, qword [rsp + 0x58]
lea rcx, [rbp - 0x50]
cmp qword [rax], rcx
jne 0x14000751c
mov rdx, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x38]
mov qword [rax], rcx
mov rax, qword [rsp + 0x78]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x70]
mov dword [rax], edx
cmp byte [rbp - 0x44], 0
je 0x14000752c
lea rcx, [rsp + 0x40]
call fcn.14000f820
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
jmp 0x14000758d
lea rdx, [0x140017038]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000fd90
mov rcx, rax
mov edx, r14d
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]
mov rcx, rax
lea rdx, [0x1400167e0]
call fcn.14000fd90
mov rcx, rax
lea rdx, [0x14000ffa0]
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, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140013500
lea r11, [rsp + 0x280]
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