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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x14020db00]
xor rax, rsp
mov qword [rbp + 0xc0], rax
movzx ebx, r9b
mov r14, r8
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], r8
mov r15, qword [rbp + 0x130]
mov qword [rsp + 0x70], r15
mov r12, qword [rbp + 0x138]
mov qword [rsp + 0x78], r12
mov dword [rbp - 0x78], 0
xor edx, edx
lea rcx, [rbp - 0x68]
call fcn.1400540f0
nop
lea rax, [rsp + 0x20]
test bl, bl
jne 0x14005f6ca
mov qword [rbp - 0x78], rax
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.140049a90
mov rbx, rax
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.140054280
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140056f80
nop
movzx edx, byte [rax]
movzx ecx, byte [rbx]
mov byte [rax], cl
mov byte [rbx], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rbx + 8]
mov qword [rax + 8], rdx
mov qword [rbx + 8], rcx
movzx edx, byte [rbx]
lea rcx, [rbx + 8]
call fcn.140063730
nop
jmp 0x14005f809
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x20], 0
xor eax, eax
mov qword [rsp + 0x28], rax
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.140063730
mov byte [rsp + 0x20], 3
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400f1390
mov rbx, rax
lea rax, [rbp - 0x80]
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rbx
mov rdx, r14
mov rcx, rbx
call fcn.140054280
nop
mov qword [rsp + 0x28], rbx
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.140054280
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140056f80
nop
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x20]
mov byte [rax], cl
mov byte [rsp + 0x20], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rsp + 0x28]
mov qword [rax + 8], rdx
mov qword [rsp + 0x28], rcx
movzx edx, byte [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140063730
nop
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x20], 0
xor eax, eax
mov qword [rsp + 0x28], rax
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.140063730
mov byte [rsp + 0x20], 3
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400f1390
mov rbx, rax
lea rax, [rbp - 0x80]
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rbx
mov rdx, r12
mov rcx, rbx
call fcn.140054280
nop
mov qword [rsp + 0x28], rbx
mov rdx, r15
lea rcx, [rsp + 0x38]
call fcn.140054280
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140056f80
nop
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x20]
mov byte [rax], cl
mov byte [rsp + 0x20], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rsp + 0x28]
mov qword [rax + 8], rdx
mov qword [rsp + 0x28], rcx
movzx edx, byte [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140063730
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
mov rbx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x14005f827
mov rbx, qword [rdi]
lea rax, [0x1400fea48]
mov qword [rbp - 0x50], rax
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rbp - 0x78], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x50]
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 - 0x50]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], r13
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], 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]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x48], rax
mov byte [rbp + 0x34], 0
mov byte [rbp + 0x29], 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]
xor ecx, ecx
mov qword [rbp + 0x38], rcx
mov rax, qword [0x14020ec40]
mov qword [rbp + 0x2c], rax
mov qword [rbp + 0x20], rcx
lea r9d, [rcx + 0x40]
lea r8d, [rcx + 2]
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.14006bec0
test rax, rax
jne 0x14005f8f1
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
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 - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], r13
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x50]
call fcn.140056ca0
lea rcx, [rbp - 0x48]
call fcn.140063070
test rax, rax
jne 0x14005f947
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
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
cmp qword [rdi + 0x18], 0xf
jbe 0x14005f954
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14005f9de
test al, 0x10
jne 0x14005f9de
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], r13
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x48]
call fcn.1400557e0
lea rcx, [rbp - 0x40]
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 + 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
movzx edx, byte [rbp - 0x68]
lea rcx, [rbp - 0x60]
call fcn.140063730
nop
mov rcx, rdi
call fcn.140055870
nop
mov rcx, rsi
call fcn.140055870
nop
mov rcx, r14
call fcn.140055870
nop
mov rcx, r15
call fcn.140055870
nop
mov rcx, r12
call fcn.140055870
mov al, 1
jmp 0x14005fa57
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], r13
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x48]
call fcn.1400557e0
lea rcx, [rbp - 0x40]
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 + 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
movzx edx, byte [rbp - 0x68]
lea rcx, [rbp - 0x60]
call fcn.140063730
nop
mov rcx, rdi
call fcn.140055870
nop
mov rcx, rsi
call fcn.140055870
nop
mov rcx, r14
call fcn.140055870
nop
mov rcx, r15
call fcn.140055870
nop
mov rcx, r12
call fcn.140055870
xor al, al
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1400f0e40
mov rbx, qword [rsp + 0x228]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret