Function at 0x1800fe8a0
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 0x1800ff002
lea rax, [0x180000000]
cmp qword [rdi + 0x50], r12
jbe 0x1800fec63
lea rax, [rax + 0x11a4a0]
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.180018290
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.1800fd600
mov rcx, rax
lea rdx, str...___
call fcn.180029b20
mov rbx, rax
test rax, rax
jne 0x1800fe9c3
mov ecx, r13d
jmp 0x1800fe9cd
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, [0x1800fdf80]
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.180018100
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 0x1800feb81
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.1800ff420
nop
cmp qword [rbp + 0x70], 0x10
jb 0x1800fea6f
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.1800fd600
mov rcx, rax
mov dl, 0x2e
call fcn.1800fd7d0
mov rbx, rax
test rax, rax
jne 0x1800feaa7
mov rcx, r13
jmp 0x1800feab1
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, [0x1800fdf80]
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.180018100
lea rdx, [rbp + 0x38]
cmp qword [rbp + 0x50], 0x10
cmovae rdx, qword [rbp + 0x38]
cmp qword [rax + 0x18], 0x10
jb 0x1800feb08
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.MSVCR120.dll_rename]
cmp qword [rbp + 0x70], 0x10
jb 0x1800feb21
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.180018100
mov rbx, rax
lea rax, [rbp + 0x38]
cmp rax, rbx
je 0x1800feb67
cmp qword [rbp + 0x50], 0x10
jb 0x1800feb4b
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.18000fd70
cmp qword [rbp + 0x70], 0x10
jb 0x1800feb77
mov rcx, qword [rbp + 0x58]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
cmp r14d, 1
ja 0x1800fea40
lea rdx, [rbp + 0x38]
cmp qword [rbp + 0x50], 0x10
cmovae rdx, qword [rbp + 0x38]
cmp qword [r15 + 0x18], 0x10
jb 0x1800feb99
mov r15, qword [r15]
mov rcx, r15
call qword [sym.imp.MSVCR120.dll_rename]
nop
cmp qword [rbp + 0x50], 0x10
jb 0x1800febb3
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 0x1800fec0a
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 0x1800ff002
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.1800fe0d0
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.1800fdda0
mov rcx, rax
lea rdx, [0x18011a444]
call fcn.1800fdbc0
mov rbx, rax
test rax, rax
jne 0x1800fed20
mov rcx, r13
jmp 0x1800fed2a
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, [0x1800fdfa0]
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.1800ff3f0
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 0x1800fef2d
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 0x1800fedc4
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.1800fe400
nop
cmp qword [rbp + 0x70], 8
jb 0x1800fee19
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.1800fdda0
mov rcx, rax
mov dl, 0x2e
call fcn.1800fd990
mov rbx, rax
test rax, rax
jne 0x1800fee51
mov rcx, r13
jmp 0x1800fee5b
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, [0x1800fdfa0]
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.1800ff3f0
lea rdx, [rbp + 0x38]
cmp qword [rbp + 0x50], 8
cmovae rdx, qword [rbp + 0x38]
cmp qword [rax + 0x18], 8
jb 0x1800feeb3
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.MSVCR120.dll__wrename]
cmp qword [rbp + 0x70], 8
jb 0x1800feecc
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.1800ff3f0
mov rbx, rax
lea rax, [rbp + 0x38]
cmp rax, rbx
je 0x1800fef13
cmp qword [rbp + 0x50], 8
jb 0x1800feef6
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.180007770
cmp qword [rbp + 0x70], 8
jb 0x1800fef23
mov rcx, qword [rbp + 0x58]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
cmp r14d, 1
ja 0x1800feda0
lea rdx, [rbp + 0x38]
cmp qword [rbp + 0x50], 8
cmovae rdx, qword [rbp + 0x38]
cmp qword [r15 + 0x18], 8
jb 0x1800fef45
mov r15, qword [r15]
mov rcx, r15
call qword [sym.imp.MSVCR120.dll__wrename]
nop
cmp qword [rbp + 0x50], 8
jb 0x1800fef5f
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 0x1800fefb7
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 0x1800ff02c
lea rcx, [rdi + 0x40]
cmp qword [rcx + 0x18], 0x10
jb 0x1800ff017
mov rcx, qword [rcx]
mov r8d, dword [rdi + 0x88]
mov edx, dword [rdi + 0x84]
call qword [sym.imp.MSVCR120.dll__open]
jmp 0x1800ff04d
lea rcx, [rdi + 0x60]
cmp qword [rcx + 0x18], 8
jb 0x1800ff03a
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.180107750
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