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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2c0]
sub rsp, 0x3c0
mov rax, qword [0x14001f010]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov rdi, rdx
mov rbx, rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x1a0]
call sub.VCRUNTIME140.dll_memset
mov rsi, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14000255f
mov rsi, qword [rbx]
lea r13, [0x140000000]
lea rax, [r13 + 0x19338]
mov qword [rbp + 0x1a0], rax
lea rcx, [rbp + 0x250]
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 + 0x1b0]
lea rcx, [rbp + 0x1a0]
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 + 0x1a0]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x1a0], r14
mov rax, qword [rbp + 0x1a0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x19c], edx
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea r12, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x1b0], r12
mov byte [rbp + 0x22c], 0
mov byte [rbp + 0x221], 0
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x230], r15
mov rax, qword [0x14001fcc8]
mov qword [rbp + 0x224], rax
mov qword [rbp + 0x218], r15
mov r8d, 1
mov rdx, rsi
lea rcx, [rbp + 0x1b0]
call fcn.1400065f0
test rax, rax
jne 0x140002666
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]
nop
mov rax, qword [rbp + 0x1a0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x1a0], r14
mov rax, qword [rbp + 0x1a0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x19c], edx
cmp qword [rbp + 0x230], 0
jne 0x1400026c3
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.14000a080
mov rcx, rax
lea rdx, [0x14000a250]
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 0x140002bb1
xor edx, edx
lea rcx, [rbp + 0x80]
call fcn.140006750
nop
mov qword [rbp - 0x78], r15
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x1a0]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx + 0x1e8]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.14000a610
nop
lea r8, [rbp + 0x80]
mov rcx, rax
call fcn.140006200
nop
lea rcx, [rbp - 0x28]
call fcn.1400056a0
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140002740
mov rax, qword [rcx]
lea rdx, [rbp - 0x70]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
lea rcx, [rbp + 0x1b0]
call fcn.140006530
test rax, rax
jne 0x140002773
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]
mov rcx, rdi
mov r14, qword [rdi + 0x18]
cmp r14, 0x10
jb 0x140002783
mov rcx, qword [rdi]
mov rsi, qword [rdi + 0x10]
cmp rsi, 6
jne 0x14000283c
mov r8, rsi
lea rdx, str.NVIDIA
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000283c
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.140007970
mov byte [rsp + 0x30], 4
mov byte [rsp + 0x40], 0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rdx, str.opencl
lea rcx, [rbp + 0x80]
call fcn.14000a400
mov rcx, rax
lea rdx, [0x1400177cc]
call fcn.14000a400
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.140007970
nop
jmp 0x1400028f8
mov rcx, rdi
cmp r14, 0x10
jb 0x140002848
mov rcx, qword [rdi]
cmp rsi, 3
jne 0x1400028f8
mov r8, rsi
lea rdx, [0x140017750]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400028f8
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.140007970
mov byte [rsp + 0x30], 4
mov byte [rsp + 0x40], 1
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rdx, str.opencl
lea rcx, [rbp + 0x80]
call fcn.14000a400
mov rcx, rax
lea rdx, [0x1400177cc]
call fcn.14000a400
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.140007970
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.140013da0
nop
lea rdx, str.opencl
lea rcx, [rbp + 0x80]
call fcn.14000a400
mov rcx, rax
lea rdx, str.platform
call fcn.14000a400
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.140007970
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memset
mov rdi, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140002993
mov rdi, qword [rbx]
lea rax, [r13 + 0x18e18]
mov qword [rbp + 0x90], rax
lea rcx, [rbp + 0x138]
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], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x98]
lea rcx, [rbp + 0x90]
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 + 0x90]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x90], rsi
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x8c], edx
lea rcx, [rbp + 0x98]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
mov qword [rbp + 0x98], r12
mov byte [rbp + 0x114], 0
mov byte [rbp + 0x109], 0
lea rcx, [rbp + 0x98]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x118], r15
mov rax, qword [0x14001fcc8]
mov qword [rbp + 0x10c], rax
mov qword [rbp + 0x100], r15
mov r8d, 2
mov rdx, rdi
lea rcx, [rbp + 0x98]
call fcn.1400065f0
test rax, rax
jne 0x140002a8c
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], rsi
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x8c], edx
cmp qword [rbp + 0x118], 0
jne 0x140002ae9
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.14000a080
mov rcx, rax
lea rdx, [0x14000a250]
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 0x140002b90
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 + 0x90]
movsxd rdx, dword [rcx + 4]
lea rcx, [rbp + 0x90]
add rcx, rdx
mov rdx, qword [rax + 8]
call qword [rax]
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x90]
call fcn.140004e00
mov rcx, rax
lea rdx, [0x14000a250]
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 + 0x98]
call fcn.140006530
test rax, rax
jne 0x140002b6a
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]
cmp qword [rbx + 0x18], 0x10
jb 0x140002b74
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 2
jne 0x140002b90
or eax, 2
mov edx, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop
lea rcx, [rbp + 0x90]
call fcn.140002cb0
nop
movzx edx, byte [rbp + 0x80]
lea rcx, [rbp + 0x88]
call fcn.140007970
nop
lea rcx, [rbp + 0x1a0]
call fcn.140002bf0
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.140014df0
mov rbx, qword [rsp + 0x410]
add rsp, 0x3c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret