Function at 0x140002500
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2c0]
sub rsp, 0x3c0
mov rax, qword [0x140020010]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov rdi, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memset
mov rsi, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14000255b
mov rsi, qword [rbx]
lea rax, [0x14001a428]
mov qword [rbp + 0x90], rax
lea rcx, [rbp + 0x140]
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 + 0x40], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x90]
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 [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x90], r15
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x8c], edx
lea rcx, [rbp + 0xa0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0xa0], rax
mov byte [rbp + 0x11c], 0
mov byte [rbp + 0x111], 0
lea rcx, [rbp + 0xa0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x120], r14
mov rax, qword [0x140929ad8]
mov qword [rbp + 0x114], rax
mov qword [rbp + 0x108], r14
mov r8d, 1
mov rdx, rsi
lea rcx, [rbp + 0xa0]
call fcn.1400072f0
test rax, rax
jne 0x14000265b
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x90]
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 [rbp + 0x90]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x90], r15
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x8c], edx
cmp qword [rbp + 0x120], 0
jne 0x1400026b8
lea rdx, str.Could_not_open_the_file_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000ad80
mov rcx, rax
lea rdx, [0x14000af50]
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]
jmp 0x140002a85
xor edx, edx
lea rcx, [rbp + 0x80]
call fcn.140007450
nop
mov qword [rbp - 0x78], r14
lea rax, [rbp + 0x90]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx + 0xd8]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.14000b310
nop
lea r8, [rbp + 0x80]
mov rcx, rax
call fcn.140006f00
nop
lea rcx, [rbp - 0x28]
call fcn.1400063a0
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140002735
mov rax, qword [rcx]
lea rdx, [rbp - 0x70]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
lea rcx, [rbp + 0xa0]
call fcn.140007230
test rax, rax
jne 0x140002768
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x90]
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]
mov rcx, rdi
mov r14, qword [rdi + 0x18]
cmp r14, 0x10
jb 0x140002778
mov rcx, qword [rdi]
mov rsi, qword [rdi + 0x10]
cmp rsi, 6
jne 0x140002831
mov r8, rsi
lea rdx, [0x1400187c8]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140002831
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor eax, eax
mov qword [rsp + 0x38], rax
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140008670
mov byte [rsp + 0x30], 4
mov byte [rsp + 0x40], 0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rdx, [0x140018844]
lea rcx, [rbp + 0x80]
call fcn.14000b100
mov rcx, rax
lea rdx, [0x14001884c]
call fcn.14000b100
nop
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov byte [rsp + 0x30], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rsp + 0x38]
mov qword [rax + 8], rdx
mov qword [rsp + 0x38], rcx
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140008670
nop
jmp 0x1400028ed
mov rcx, rdi
cmp r14, 0x10
jb 0x14000283d
mov rcx, qword [rdi]
cmp rsi, 3
jne 0x1400028ed
mov r8, rsi
lea rdx, [0x1400187d0]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400028ed
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor eax, eax
mov qword [rsp + 0x38], rax
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140008670
mov byte [rsp + 0x30], 4
mov byte [rsp + 0x40], 1
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rdx, [0x140018844]
lea rcx, [rbp + 0x80]
call fcn.14000b100
mov rcx, rax
lea rdx, [0x14001884c]
call fcn.14000b100
nop
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov byte [rsp + 0x30], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rsp + 0x38]
mov qword [rax + 8], rdx
mov qword [rsp + 0x38], rcx
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140008670
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor eax, eax
mov qword [rsp + 0x38], rax
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140014aa0
nop
lea rdx, [0x140018844]
lea rcx, [rbp + 0x80]
call fcn.14000b100
mov rcx, rax
lea rdx, [0x140018850]
call fcn.14000b100
nop
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov byte [rsp + 0x30], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rsp + 0x38]
mov qword [rax + 8], rdx
mov qword [rsp + 0x38], rcx
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140008670
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x1a0]
call sub.VCRUNTIME140.dll_memset
mov rdx, rbx
lea rcx, [rbp + 0x1a0]
call fcn.140004db0
nop
cmp qword [rbp + 0x228], 0
jne 0x1400029bd
lea rdx, str.Could_not_open_the_file_for_writing_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000ad80
mov rcx, rax
lea rdx, [0x14000af50]
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]
jmp 0x140002a64
mov edx, 4
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov rcx, qword [rbp + 0x1a0]
movsxd rdx, dword [rcx + 4]
lea rcx, [rbp + 0x1a0]
add rcx, rdx
mov rdx, qword [rax + 8]
call qword [rax]
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x1a0]
call fcn.140005b00
mov rcx, rax
lea rdx, [0x14000af50]
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 rcx, [rbp + 0x1a8]
call fcn.140007230
test rax, rax
jne 0x140002a3e
mov rax, qword [rbp + 0x1a0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x1a0]
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]
cmp qword [rbx + 0x18], 0x10
jb 0x140002a48
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 2
jne 0x140002a64
or eax, 2
mov edx, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop
lea rcx, [rbp + 0x1a0]
call fcn.140002b80
nop
movzx edx, byte [rbp + 0x80]
lea rcx, [rbp + 0x88]
call fcn.140008670
nop
lea rcx, [rbp + 0x90]
call fcn.140002ac0
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.140015af0
mov rbx, qword [rsp + 0x400]
add rsp, 0x3c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret