Function at 0x1400363d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x238
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x258]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14003647d
lea rdx, str.Dll_file_doesnt_exist
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140007b60
mov qword [rsp + 0x80], rax
lea rdx, [0x1400138c0]
mov rcx, qword [rsp + 0x80]
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 [rsp + 0x250]
call fcn.1400161c0
nop
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x250]
jmp 0x14003699f
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x24
mov rdx, qword [rsp + 0x258]
lea rcx, [rsp + 0x120]
call fcn.140015420
nop
mov rax, qword [rsp + 0x120]
movsxd rax, dword [rax + 4]
lea rax, [rsp + rax + 0x120]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::fail_void_const___ptr64]
movzx eax, al
test eax, eax
je 0x140036579
lea rdx, str.Opening_the_file_failed:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140007b60
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x120]
movsxd rax, dword [rax + 4]
lea rax, [rsp + rax + 0x120]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::ios_base::rdstate_void_const___ptr64]
mov dword [rsp + 0x50], eax
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x88]
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___unsigned_long_int____ptr64]
mov qword [rsp + 0x90], rax
lea rdx, [0x1400138c0]
mov rcx, qword [rsp + 0x90]
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, [rsp + 0x120]
call fcn.14001faa0
mov rcx, qword [rsp + 0x250]
call fcn.1400161c0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x120]
call fcn.140019f90
mov rax, qword [rsp + 0x250]
jmp 0x14003699f
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x120]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
lea rcx, [rsp + 0x100]
call fcn.14000a010
cmp rax, 0x1000
jge 0x140036613
lea rdx, str.Filesize_invalid.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140007b60
mov qword [rsp + 0x98], rax
lea rdx, [0x1400138c0]
mov rcx, qword [rsp + 0x98]
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, [rsp + 0x120]
call fcn.14001faa0
mov rcx, qword [rsp + 0x250]
call fcn.1400161c0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x120]
call fcn.140019f90
mov rax, qword [rsp + 0x250]
jmp 0x14003699f
lea rcx, [rsp + 0x100]
call fcn.14000a010
mov rcx, rax
call fcn.140322a58
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400366d2
lea rdx, str.Cant_allocate_dll_file.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140007b60
mov qword [rsp + 0xa8], rax
lea rdx, [0x1400138c0]
mov rcx, qword [rsp + 0xa8]
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, [rsp + 0x120]
call fcn.14001faa0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb0]
call fcn.1403227d4
mov rcx, qword [rsp + 0x250]
call fcn.1400161c0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x120]
call fcn.140019f90
mov rax, qword [rsp + 0x250]
jmp 0x14003699f
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x120]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
lea rcx, [rsp + 0x100]
call fcn.14000a010
mov r8, rax
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x120]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
lea rcx, [rsp + 0x120]
call fcn.14001faa0
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400367a0
lea rdx, str.Invalid_file
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140007b60
mov qword [rsp + 0xb8], rax
lea rdx, [0x1400138c0]
mov rcx, qword [rsp + 0xb8]
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 rax, qword [rsp + 0x38]
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xc0]
call fcn.1403227d4
mov rcx, qword [rsp + 0x250]
call fcn.1400161c0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x120]
call fcn.140019f90
mov rax, qword [rsp + 0x250]
jmp 0x14003699f
lea rcx, [rsp + 0x40]
call fcn.140006160
mov qword [rsp + 0xc8], rax
mov byte [rsp + 0x34], 0
lea rcx, [rsp + 0x100]
call fcn.14000a010
mov qword [rsp + 0xd0], rax
mov r9, qword [rsp + 0xc8]
lea r8, [rsp + 0x34]
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x68]
call fcn.140016210
nop
lea rcx, [rsp + 0x100]
call fcn.14000a010
mov qword [rsp + 0xd8], rax
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140018db0
mov rdi, rax
mov rsi, qword [rsp + 0x38]
mov rax, qword [rsp + 0xd8]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x68]
call fcn.14001ffc0
mov qword [rsp + 0xe0], rax
lea rcx, [rsp + 0x68]
call fcn.14001ffc0
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0xe0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
add rax, 0x18
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x48]
add rax, 4
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
cmp eax, 0x8664
je 0x14003690b
lea rdx, str.Invalid_platform
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140007b60
mov qword [rsp + 0xe8], rax
lea rdx, [0x1400138c0]
mov rcx, qword [rsp + 0xe8]
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 rax, qword [rsp + 0x38]
mov qword [rsp + 0xf0], rax
mov rcx, qword [rsp + 0xf0]
call fcn.1403227d4
mov rcx, qword [rsp + 0x250]
call fcn.1400161c0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x68]
call fcn.140017f70
nop
lea rcx, [rsp + 0x120]
call fcn.140019f90
mov rax, qword [rsp + 0x250]
jmp 0x14003699f
cmp qword [rsp + 0x260], 0
je 0x140036948
mov rax, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x48]
mov qword [rax], rcx
mov rax, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xf8], rax
mov rcx, qword [rsp + 0xf8]
call fcn.1403227d4
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x250]
call fcn.140016000
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x68]
call fcn.140017f70
nop
lea rcx, [rsp + 0x120]
call fcn.140019f90
mov rax, qword [rsp + 0x250]
add rsp, 0x238
pop rdi
pop rsi
ret