Function at 0x10015900
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c0fb
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x1002b148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [edi + 0x40]
call dword [sym.imp.MSVCR120.dll__close]
add esp, 4
cmp dword [edi + 0x4c], 0
jbe 0x10015d2b
push 1
push 2
lea ecx, [ebp - 0xdc]
call fcn.10005e10
movzx eax, word [edi + 0x50]
cdq
push edx
push eax
lea eax, [ebp - 0xec]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.MSVCP120.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
add esp, 0xc
mov dword [ebp - 0x44], eax
lea ebx, [edi + 0x28]
lea eax, [ebp - 0xdc]
push 0x1001df9c
push ebx
push eax
call fcn.10005bf0
add esp, 8
push eax
call fcn.100010f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x100159a1
xor ecx, ecx
jmp 0x100159a8
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ebp - 0x44]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
mov eax, dword [esi]
add esp, 0xc
mov ecx, esi
mov eax, dword [eax + 4]
push 0x10015600
mov byte [eax + esi + 0x40], 0x30
push dword [edi + 0x4c]
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xdc]
call fcn.100061f0
push 0x10005de0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
push dword [sym.imp.MSVCP120.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.10005bf0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.MSVCR120.dll_remove]
mov eax, dword [edi + 0x4c]
add esp, 4
mov dword [ebp - 0x44], eax
cmp eax, 1
jbe 0x10015c2e
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
test byte [ebp - 0x9c], 1
mov byte [ebp - 4], 2
je 0x10015a60
mov eax, dword [ebp - 0xcc]
push dword [eax]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0
push 0
push 0
lea ecx, [ebp - 0xd8]
call dword [sym.imp.MSVCP120.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xd8]
mov dword [eax], 0
mov eax, dword [ebp - 0xb8]
mov dword [eax], 0
mov eax, dword [ebp - 0xa8]
mov dword [eax], 0
mov eax, dword [ebp - 0x9c]
and eax, 0xfffffffe
mov dword [ebp - 0xa0], 0
push eax
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.10002ae0
cmp dword [ebp - 0x2c], 0x10
mov byte [ebp - 4], 1
jb 0x10015ad6
push dword [ebp - 0x40]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
movzx eax, word [edi + 0x50]
cdq
push edx
push eax
lea eax, [ebp - 0xec]
push eax
call dword [sym.imp.MSVCP120.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
add esp, 0xc
mov ebx, eax
lea eax, [edi + 0x28]
push 0x2e
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.10005bf0
add esp, 8
push eax
call fcn.1000d2a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10015b17
xor ecx, ecx
jmp 0x10015b1e
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
push dword [ebx + 0xc]
mov eax, dword [ebx]
push dword [ebx + 8]
push ecx
call eax
mov eax, dword [esi]
add esp, 0xc
mov ebx, dword [ebp - 0x44]
mov ecx, esi
dec ebx
mov dword [ebp - 0x44], ebx
mov eax, dword [eax + 4]
push 0x10015600
push ebx
mov byte [eax + esi + 0x40], 0x30
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xdc]
call fcn.100061f0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 0x10
jb 0x10015b75
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.MSVCR120.dll_rename]
add esp, 8
cmp dword [ebp - 0x2c], 0x10
jb 0x10015b91
push dword [ebp - 0x40]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xdc]
call fcn.100061f0
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x10015c11
cmp dword [ebp - 0x14], 0x10
jb 0x10015bba
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp dword [esi + 0x14], 0x10
jae 0x10015be9
mov eax, dword [esi + 0x10]
inc eax
je 0x10015bf4
push eax
lea eax, [ebp - 0x28]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x10015bf4
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [ebp - 0x2c], 0x10
jb 0x10015c22
push dword [ebp - 0x40]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp ebx, 1
ja 0x10015a31
lea ebx, [edi + 0x28]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [ebx + 0x14], 0x10
jb 0x10015c41
mov ebx, dword [ebx]
push eax
push ebx
call dword [sym.imp.MSVCR120.dll_rename]
add esp, 8
cmp dword [ebp - 0x14], 0x10
jb 0x10015c5d
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov eax, dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp + eax - 0xdc], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xe0], eax
test byte [ebp - 0x9c], 1
mov dword [ebp - 0xd8], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
je 0x10015cc0
mov eax, dword [ebp - 0xcc]
push dword [eax]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0
push 0
push 0
lea ecx, [ebp - 0xd8]
call dword [sym.imp.MSVCP120.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xd8]
mov dword [eax], 0
mov eax, dword [ebp - 0xb8]
mov dword [eax], 0
mov eax, dword [ebp - 0xa8]
mov dword [eax], 0
and dword [ebp - 0x9c], 0xfffffffe
mov dword [ebp - 0xa0], 0
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xd4]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x8c]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
cmp dword [edi + 0x3c], 0x10
lea eax, [edi + 0x28]
jb 0x10015d36
mov eax, dword [eax]
push dword [edi + 0x48]
push dword [edi + 0x44]
push eax
call dword [sym.imp.MSVCR120.dll__open]
add esp, 0xc
mov dword [edi + 0x40], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100197c4
mov esp, ebp
pop ebp
ret