Function at 0x14004a1d0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x1400ff040]
xor rax, rsp
mov qword [rbp + 0x110], rax
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8d, 0xd
lea rdx, str.oldloader.txt
lea rcx, [rsp + 0x30]
call fcn.14003b1b0
nop
lea rcx, [rbp - 0x60]
call fcn.140038180
mov rbx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x14004a24b
mov rbx, qword [rax]
xorps xmm0, xmm0
movups xmmword [rbp + 0xf0], xmm0
xor edi, edi
mov qword [rbp + 0x100], rdi
mov qword [rbp + 0x108], rdi
lea r8d, [rdi + 5]
lea rdx, str._s__s
lea rcx, [rbp + 0xf0]
call fcn.14003b1b0
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x60], xmm1
lea r9, [rsp + 0x50]
mov r8, rbx
lea rdx, [rbp + 0xf0]
lea rcx, [rbp - 0x80]
call fcn.14004a0c0
nop
cmp qword [rax + 0x18], 0xf
jbe 0x14004a2b3
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.140048040
nop
lea rcx, [rbp - 0x80]
call fcn.14003ab00
nop
lea rcx, [rbp - 0x60]
call fcn.14003ab00
nop
lea rcx, [rsp + 0x30]
call fcn.14003ab00
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x20]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::fail_void_const___ptr64]
test al, al
jne 0x14004a4b4
xorps xmm0, xmm0
movups xmmword [rbp + 0xf0], xmm0
mov qword [rbp + 0x100], rdi
mov qword [rbp + 0x108], 0xf
mov byte [rbp + 0xf0], al
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x20]
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, [rbp + 0xf0]
lea rcx, [rbp - 0x20]
call fcn.14003bbf0
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x14004a3bc
nop dword [rax]
lea rcx, [rbp + 0xf0]
cmp qword [rbp + 0x108], 0xf
cmova rcx, qword [rbp + 0xf0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x20]
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, [rbp + 0xf0]
lea rcx, [rbp - 0x20]
call fcn.14003bbf0
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
jne 0x14004a360
lea rcx, [rbp - 0x10]
call fcn.14003f090
test rax, rax
jne 0x14004a3e6
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x20]
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]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov r8d, 0xd
lea rdx, str.oldloader.txt
lea rcx, [rsp + 0x50]
call fcn.14003b1b0
nop
lea rcx, [rbp - 0x40]
call fcn.140038180
mov rbx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x14004a425
mov rbx, qword [rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov r8d, 5
lea rdx, str._s__s
lea rcx, [rsp + 0x30]
call fcn.14003b1b0
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rsp + 0x60]
movaps xmmword [rbp - 0x70], xmm1
lea r9, [rbp - 0x80]
mov r8, rbx
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x60]
call fcn.14004a0c0
cmp qword [rax + 0x18], 0xf
jbe 0x14004a47f
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea rcx, [rbp - 0x60]
call fcn.14003ab00
nop
lea rcx, [rbp - 0x40]
call fcn.14003ab00
nop
lea rcx, [rsp + 0x50]
call fcn.14003ab00
nop
lea rcx, [rbp + 0xf0]
call fcn.14003ab00
nop
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 0x10]
call fcn.14003ee70
lea rcx, [rbp - 8]
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 + 0x90]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140085d50
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret