Function at 0x14005fd40
Capabilities:
Delete file
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x100]
sub rsp, 0x200
xor edi, edi
mov dword [rbp + 0x120], edi
mov esi, 0xf
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], 0xd
movsd xmm0, qword [str.oldloader.txt]
movsd qword [rsp + 0x30], xmm0
mov eax, dword [0x1400e2cb8]
mov dword [rsp + 0x38], eax
movzx eax, byte [0x1400e2cbc]
mov byte [rsp + 0x3c], al
mov byte [rsp + 0x3d], dil
lea rcx, [rbp - 0x50]
call fcn.1400041f0
mov r8, rax
cmp qword [rax + 0x18], 0x10
jb 0x14005fdb6
mov r8, qword [rax]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], 5
mov eax, dword [0x1400e2cc0]
mov dword [rsp + 0x50], eax
movzx eax, byte [0x1400e2cc4]
mov byte [rsp + 0x54], al
mov byte [rsp + 0x55], 0
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x60], xmm1
lea r9, [rbp - 0x70]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.14005f240
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x14005fe15
mov rbx, qword [rax]
lea rax, [0x1400e28e0]
mov qword [rbp - 0x30], rax
lea rcx, [rbp + 0x80]
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 + 0x120], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 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 [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x30], r14
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x34], edx
lea rax, [rbp - 0x20]
mov qword [rbp + 0x128], rax
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x20], rax
mov byte [rbp + 0x5c], 0
mov byte [rbp + 0x51], 0
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x60], rdi
mov rax, qword [0x1402fecd8]
mov qword [rbp + 0x54], rax
mov qword [rbp + 0x48], rdi
mov r9d, 0x40
lea r8d, [r9 - 0x3f]
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.140060370
test rax, rax
jne 0x14005fef1
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 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
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x14005ff30
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ff2b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005ff2b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140096dc8
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rsi
mov byte [rsp + 0x70], 0
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x14005ff7b
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ff76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005ff76
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140096dc8
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rsi
mov byte [rbp - 0x50], 0
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx - 0x20], 6
jne 0x14006030e
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rsi
mov byte [rsp + 0x30], 0
lea rax, [rbp - 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, [rsp + 0x30]
lea rcx, [rbp - 0x30]
call fcn.140002f30
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
jne 0x14006002e
nop dword [rax]
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 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, [rsp + 0x30]
lea rcx, [rbp - 0x30]
call fcn.140002f30
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
je 0x14005ffe0
cmp qword [rbp + 0x60], 0
je 0x140060149
mov rax, qword [rbp - 8]
lea rcx, [rbp + 0x50]
cmp qword [rax], rcx
jne 0x140060060
mov rdx, qword [rbp + 0x70]
mov rcx, qword [rbp + 0x68]
mov qword [rax], rcx
mov rax, qword [rbp + 0x18]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x30]
mov dword [rax], edx
cmp qword [rbp + 0x48], 0
je 0x1400600be
cmp byte [rbp + 0x51], 0
je 0x1400600be
mov rax, qword [rbp - 0x20]
mov edx, 0xffffffff
lea rcx, [rbp - 0x20]
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x140060086
xor al, al
jmp 0x1400600c0
lea rax, [rbp + 0x120]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x70]
lea rdx, [rbp + 0x54]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14006010a
sub eax, 1
je 0x14006010e
cmp eax, 2
je 0x1400600ba
xor al, al
jmp 0x1400600c0
mov byte [rbp + 0x51], 0
mov al, 1
lea rbx, [rbp - 0x20]
test al, al
cmove rbx, rdi
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test eax, eax
cmovne rbx, rdi
mov byte [rbp + 0x5c], 0
mov byte [rbp + 0x51], 0
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x60], rdi
mov rax, qword [0x1402fecd8]
mov qword [rbp + 0x54], rax
mov qword [rbp + 0x48], rdi
test rbx, rbx
jne 0x14006018a
jmp 0x14006016e
mov byte [rbp + 0x51], 0
lea rax, [rbp - 0x70]
mov rbx, qword [rbp + 0x120]
sub rbx, rax
je 0x14006013d
mov r9, qword [rbp + 0x60]
mov r8, rbx
mov edx, 1
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
je 0x14006013d
xor al, al
jmp 0x1400600c0
cmp byte [rbp + 0x51], 0
sete al
jmp 0x1400600c0
mov byte [rbp + 0x5c], 0
mov byte [rbp + 0x51], 0
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x60], rdi
mov rax, qword [0x1402fecd8]
mov qword [rbp + 0x54], rax
mov qword [rbp + 0x48], rdi
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 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]
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], 0xd
movsd xmm0, qword [str.oldloader.txt]
movsd qword [rsp + 0x50], xmm0
mov eax, dword [0x1400e2cb8]
mov dword [rsp + 0x58], eax
movzx eax, byte [0x1400e2cbc]
mov byte [rsp + 0x5c], al
mov byte [rsp + 0x5d], 0
lea rcx, [rbp - 0x70]
call fcn.1400041f0
mov r8, rax
cmp qword [rax + 0x18], 0x10
jb 0x1400601d6
mov r8, qword [rax]
mov qword [rsp + 0x70], rdi
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x80], 5
mov eax, dword [0x1400e2cc0]
mov dword [rsp + 0x70], eax
movzx eax, byte [0x1400e2cc4]
mov byte [rsp + 0x74], al
mov byte [rsp + 0x75], 0
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rbp + 0xe0], xmm0
movups xmm1, xmmword [rsp + 0x60]
movaps xmmword [rbp + 0xf0], xmm1
lea r9, [rbp + 0xe0]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x50]
call fcn.14005f240
cmp qword [rax + 0x18], 0x10
jb 0x140060238
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x14006027f
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006027a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006027a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140096dc8
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rsi
mov byte [rbp - 0x50], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x1400602c9
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400602c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400602c4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140096dc8
mov byte [rbp - 0x70], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14006030e
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140060308
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140060308
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140096dc8
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x30], r14
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x20]
call fcn.140008d90
lea rcx, [rbp - 0x18]
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 + 0x80]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret