Function at 0x1800fe970
Capabilities:
Delete file
Move file

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180129050]
xor rax, rsp
mov qword [rbp + 0x78], rax
mov rdi, rcx
xor r13d, r13d
mov r12d, r13d
mov dword [rsp + 0x20], r13d
mov ecx, dword [rcx + 0x80]
call qword [sym.imp.MSVCR120.dll__close]
cmp dword [rdi + 0x90], r13d
jbe 0x1800ff0d2
lea rax, [0x180000000]
cmp qword [rdi + 0x50], r12
jbe 0x1800fed33
lea rax, [rax + 0x11a7f0]
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP120.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov r12d, 1
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP120.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 [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x2c], edx
lea edx, [r13 + 2]
lea rcx, [rsp + 0x38]
call fcn.180018310
nop
movzx edx, word [rdi + 0x94]
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP120.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov rsi, rax
lea r15, [rdi + 0x40]
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.1800fd6d0
mov rcx, rax
lea rdx, str...___
call fcn.180029bb0
mov rbx, rax
test rax, rax
jne 0x1800fea93
mov ecx, r13d
jmp 0x1800fea9d
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov rdx, qword [rsi + 8]
call qword [rsi]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
mov byte [rcx + rbx + 0x58], 0x30
mov edx, dword [rdi + 0x90]
mov rcx, rbx
call qword [sym.imp.MSVCP120.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_int____ptr64]
mov rcx, rax
lea rdx, [0x1800fe050]
call qword [sym.imp.MSVCP120.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 rdx, [rbp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.180018180
nop
lea rcx, [rbp + 0x38]
cmp qword [rbp + 0x50], 0x10
cmovae rcx, qword [rbp + 0x38]
call qword [sym.imp.MSVCR120.dll_remove]
mov r14d, dword [rdi + 0x90]
cmp r14d, 1
jbe 0x1800fec51
nop dword [rax]
nop word [rax + rax]
mov qword [rbp + 0x70], 0xf
mov qword [rbp + 0x68], r13
mov byte [rbp + 0x58], 0
lea rdx, [rbp + 0x58]
lea rcx, [rsp + 0x38]
call fcn.1800ff4f0
nop
cmp qword [rbp + 0x70], 0x10
jb 0x1800feb3f
mov rcx, qword [rbp + 0x58]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
movzx edx, word [rdi + 0x94]
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP120.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov rsi, rax
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.1800fd6d0
mov rcx, rax
mov dl, 0x2e
call fcn.1800fd8a0
mov rbx, rax
test rax, rax
jne 0x1800feb77
mov rcx, r13
jmp 0x1800feb81
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov rdx, qword [rsi + 8]
call qword [rsi]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
mov byte [rcx + rbx + 0x58], 0x30
dec r14d
mov edx, r14d
mov rcx, rbx
call qword [sym.imp.MSVCP120.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_int____ptr64]
mov rcx, rax
lea rdx, [0x1800fe050]
call qword [sym.imp.MSVCP120.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 rdx, [rbp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.180018180
lea rdx, [rbp + 0x38]
cmp qword [rbp + 0x50], 0x10
cmovae rdx, qword [rbp + 0x38]
cmp qword [rax + 0x18], 0x10
jb 0x1800febd8
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.MSVCR120.dll_rename]
cmp qword [rbp + 0x70], 0x10
jb 0x1800febf1
mov rcx, qword [rbp + 0x58]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
lea rdx, [rbp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.180018180
mov rbx, rax
lea rax, [rbp + 0x38]
cmp rax, rbx
je 0x1800fec37
cmp qword [rbp + 0x50], 0x10
jb 0x1800fec1b
mov rcx, qword [rbp + 0x38]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbp + 0x50], 0xf
mov qword [rbp + 0x48], r13
mov byte [rbp + 0x38], 0
mov rdx, rbx
lea rcx, [rbp + 0x38]
call fcn.18000fdf0
cmp qword [rbp + 0x70], 0x10
jb 0x1800fec47
mov rcx, qword [rbp + 0x58]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
cmp r14d, 1
ja 0x1800feb10
lea rdx, [rbp + 0x38]
cmp qword [rbp + 0x50], 0x10
cmovae rdx, qword [rbp + 0x38]
cmp qword [r15 + 0x18], 0x10
jb 0x1800fec69
mov r15, qword [r15]
mov rcx, r15
call qword [sym.imp.MSVCR120.dll_rename]
nop
cmp qword [rbp + 0x50], 0x10
jb 0x1800fec83
mov rcx, qword [rbp + 0x38]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbp + 0x50], 0xf
mov qword [rbp + 0x48], r13
mov byte [rbp + 0x38], 0
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x2c], edx
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x38], rax
test byte [rbp - 0x58], 1
je 0x1800fecda
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.MSVCP120.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rax, qword [rsp + 0x58]
mov qword [rax], r13
mov rax, qword [rsp + 0x78]
mov qword [rax], r13
mov rax, qword [rbp - 0x70]
mov dword [rax], r13d
mov qword [rbp - 0x60], r13
and dword [rbp - 0x58], 0xfffffffe
lea rcx, [rsp + 0x38]
call qword [sym.imp.MSVCP120.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP120.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP120.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rax, [0x180000000]
cmp qword [rdi + 0x70], 0
jbe 0x1800ff0d2
lea rax, [rax + 0x10e6b8]
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP120.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
or r12d, 2
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP120.dll_public:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0x88]
mov dword [rsp + rcx + 0x2c], r8d
mov edx, 2
lea rcx, [rsp + 0x38]
call fcn.1800fe1a0
nop
movzx edx, word [rdi + 0x94]
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP120.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov rsi, rax
lea r15, [rdi + 0x60]
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.1800fde70
mov rcx, rax
lea rdx, [0x18011a794]
call fcn.1800fdc90
mov rbx, rax
test rax, rax
jne 0x1800fedf0
mov rcx, r13
jmp 0x1800fedfa
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov rdx, qword [rsi + 8]
call qword [rsi]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
mov r12d, 0x30
mov word [rcx + rbx + 0x58], r12w
mov edx, dword [rdi + 0x90]
mov rcx, rbx
call qword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_int____ptr64]
mov rcx, rax
lea rdx, [0x1800fe070]
call qword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, [rbp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1800ff4c0
nop
lea rcx, [rbp + 0x38]
cmp qword [rbp + 0x50], 8
cmovae rcx, qword [rbp + 0x38]
call qword [sym.imp.MSVCR120.dll__wremove]
mov r14d, dword [rdi + 0x90]
cmp r14d, 1
jbe 0x1800feffd
nop word [rax + rax]
mov qword [rbp + 0x70], 7
mov qword [rbp + 0x68], r13
mov word [rbp + 0x58], r13w
test byte [rbp - 0x58], 1
je 0x1800fee94
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.MSVCP120.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::setg_wchar_t____ptr64__wchar_t____ptr64__wchar_t____ptr64____ptr64]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.MSVCP120.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::setp_wchar_t____ptr64__wchar_t____ptr64____ptr64]
mov qword [rbp - 0x60], r13
mov r9d, dword [rbp - 0x58]
and r9d, 0xfffffffe
mov dword [rbp - 0x58], r9d
xor r8d, r8d
lea rdx, [rbp + 0x58]
lea rcx, [rsp + 0x38]
call fcn.1800fe4d0
nop
cmp qword [rbp + 0x70], 8
jb 0x1800feee9
mov rcx, qword [rbp + 0x58]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
movzx edx, word [rdi + 0x94]
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP120.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov rsi, rax
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.1800fde70
mov rcx, rax
mov dl, 0x2e
call fcn.1800fda60
mov rbx, rax
test rax, rax
jne 0x1800fef21
mov rcx, r13
jmp 0x1800fef2b
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov rdx, qword [rsi + 8]
call qword [rsi]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
mov word [rcx + rbx + 0x58], r12w
dec r14d
mov edx, r14d
mov rcx, rbx
call qword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_int____ptr64]
mov rcx, rax
lea rdx, [0x1800fe070]
call qword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, [rbp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.1800ff4c0
lea rdx, [rbp + 0x38]
cmp qword [rbp + 0x50], 8
cmovae rdx, qword [rbp + 0x38]
cmp qword [rax + 0x18], 8
jb 0x1800fef83
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.MSVCR120.dll__wrename]
cmp qword [rbp + 0x70], 8
jb 0x1800fef9c
mov rcx, qword [rbp + 0x58]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
lea rdx, [rbp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.1800ff4c0
mov rbx, rax
lea rax, [rbp + 0x38]
cmp rax, rbx
je 0x1800fefe3
cmp qword [rbp + 0x50], 8
jb 0x1800fefc6
mov rcx, qword [rbp + 0x38]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbp + 0x50], 7
mov qword [rbp + 0x48], r13
mov word [rbp + 0x38], r13w
mov rdx, rbx
lea rcx, [rbp + 0x38]
call fcn.1800077f0
cmp qword [rbp + 0x70], 8
jb 0x1800feff3
mov rcx, qword [rbp + 0x58]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
cmp r14d, 1
ja 0x1800fee70
lea rdx, [rbp + 0x38]
cmp qword [rbp + 0x50], 8
cmovae rdx, qword [rbp + 0x38]
cmp qword [r15 + 0x18], 8
jb 0x1800ff015
mov r15, qword [r15]
mov rcx, r15
call qword [sym.imp.MSVCR120.dll__wrename]
nop
cmp qword [rbp + 0x50], 8
jb 0x1800ff02f
mov rcx, qword [rbp + 0x38]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbp + 0x50], 7
mov qword [rbp + 0x48], r13
mov word [rbp + 0x38], r13w
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x2c], edx
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + 0x38], rax
test byte [rbp - 0x58], 1
je 0x1800ff087
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.MSVCP120.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::setg_wchar_t____ptr64__wchar_t____ptr64__wchar_t____ptr64____ptr64]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.MSVCP120.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::setp_wchar_t____ptr64__wchar_t____ptr64____ptr64]
mov qword [rbp - 0x60], r13
and dword [rbp - 0x58], 0xfffffffe
lea rcx, [rsp + 0x38]
call qword [sym.imp.MSVCP120.dll_public_virtual:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP120.dll_public_virtual:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP120.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
cmp qword [rdi + 0x50], 0
jbe 0x1800ff0fc
lea rcx, [rdi + 0x40]
cmp qword [rcx + 0x18], 0x10
jb 0x1800ff0e7
mov rcx, qword [rcx]
mov r8d, dword [rdi + 0x88]
mov edx, dword [rdi + 0x84]
call qword [sym.imp.MSVCR120.dll__open]
jmp 0x1800ff11d
lea rcx, [rdi + 0x60]
cmp qword [rcx + 0x18], 8
jb 0x1800ff10a
mov rcx, qword [rcx]
mov r8d, dword [rdi + 0x88]
mov edx, dword [rdi + 0x84]
call qword [sym.imp.MSVCR120.dll__wopen]
mov dword [rdi + 0x80], eax
mov rcx, qword [rbp + 0x78]
xor rcx, rsp
call fcn.1801077e0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret