Function at 0x458780
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x463220
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8d8
mov al, byte [esp + 3]
push ebp
push esi
xor ebp, ebp
push edi
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x1c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov esi, dword [esp + 0x8f4]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov edi, str..tmp
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x8ec], ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str..tmp
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vbtable]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
mov dword [esp + 0x14], 1
push ebp
lea edx, [esp + 0x38]
push ebp
push edx
lea ecx, [esp + 0x38]
mov byte [esp + 0x8f8], 1
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
push ebp
lea ecx, [esp + 0x38]
mov dword [esp + 0x8f0], 2
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::constructor_struct__iobuf__]
mov eax, dword [esp + 0x2c]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vftable]
push 0x21
push esi
mov ecx, dword [eax + 4]
mov byte [esp + 0x8f4], 3
mov dword [esp + ecx + 0x34], edx
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_filebuf_char__struct_std::char_traits_char______thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::open_char_const___int_]
test eax, eax
jne 0x458888
mov eax, dword [esp + 0x2c]
push ebp
push 2
mov ecx, dword [eax + 4]
lea ecx, [esp + ecx + 0x34]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov esi, dword [esp + 0x1c]
mov byte [esp + 0x8ec], 4
cmp esi, ebp
jne 0x45889e
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ofstream_char__struct_std::char_traits_char__::vbtable]
lea ecx, [esp + 0x12c]
mov dword [esp + 0xd4], edx
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
mov dword [esp + 0x14], 3
push ebp
push 1
lea eax, [esp + 0xe0]
push ebp
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x8fc], 5
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool__bool_]
push ebp
lea ecx, [esp + 0xdc]
mov dword [esp + 0x8f0], 6
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::constructor_struct__iobuf__]
mov ecx, dword [esp + 0xd4]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_ofstream_char__struct_std::char_traits_char__::vftable]
push 0x22
push esi
mov edx, dword [ecx + 4]
lea ecx, [esp + 0xe0]
mov byte [esp + 0x8f4], 7
mov dword [esp + edx + 0xdc], eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_filebuf_char__struct_std::char_traits_char______thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::open_char_const___int_]
test eax, eax
jne 0x458946
mov ecx, dword [esp + 0xd4]
push ebp
push 2
mov edx, dword [ecx + 4]
lea ecx, [esp + edx + 0xdc]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov eax, dword [esp + 0x84]
mov byte [esp + 0x8ec], 8
cmp eax, ebp
je 0x458ce3
cmp dword [esp + 0x128], ebp
je 0x458ce3
lea eax, [esp + 0x28]
push 4
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___int_]
cmp eax, ebp
jne 0x458983
xor ecx, ecx
jmp 0x45898a
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov edx, dword [ecx + 4]
and dl, 6
neg dl
sbb edx, edx
not edx
test ecx, edx
mov edx, dword [esp + 0x28]
je 0x458a74
cmp edx, 0x905a4d
jne 0x458a74
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_filebuf_char__struct_std::char_traits_char______thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::close_void_]
test eax, eax
jne 0x4589d0
mov eax, dword [esp + 0x2c]
push ebp
push 2
mov ecx, dword [eax + 4]
lea ecx, [esp + ecx + 0x34]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [esp + 0xd8]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_filebuf_char__struct_std::char_traits_char______thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::close_void_]
test eax, eax
jne 0x4589fb
mov edx, dword [esp + 0xd4]
push ebp
push 2
mov eax, dword [edx + 4]
lea ecx, [esp + eax + 0xdc]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jne 0x458a08
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x12c]
mov byte [esp + 0x8ec], 4
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [esp + 0x12c]
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [esp + 0x88]
mov byte [esp + 0x8ec], 0
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x8f0], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, 1
jmp 0x458d8d
cmp edx, 0x40
jb 0x458adf
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_filebuf_char__struct_std::char_traits_char______thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::close_void_]
test eax, eax
jne 0x458a9b
mov ecx, dword [esp + 0x2c]
push ebp
push 2
mov edx, dword [ecx + 4]
lea ecx, [esp + edx + 0x34]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [esp + 0xd8]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_filebuf_char__struct_std::char_traits_char______thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::close_void_]
test eax, eax
jne 0x458ac6
mov eax, dword [esp + 0xd4]
push ebp
push 2
mov ecx, dword [eax + 4]
lea ecx, [esp + ecx + 0xdc]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jne 0x458ad3
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x458d30
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x179]
mov byte [esp + 0x178], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
lea edx, [esp + 0x17c]
push edx
lea ecx, [esp + 0x34]
stosb byte es:[edi], al
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___int_]
movsx eax, byte [esp + 0x178]
cdq
mov ecx, 0xa
lea edi, [esp + 0x178]
idiv ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ebp
jle 0x458b49
lea eax, [esp + ecx + 0x178]
mov cl, byte [esp + 0x178]
mov byte [eax], cl
inc eax
dec edx
mov byte [eax], 0
jne 0x458b39
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 4]
test byte [esp + edx + 0x30], 6
jne 0x458b72
mov eax, edx
push 1
push 1
lea edx, [esp + 0xc4]
mov ecx, dword [esp + eax + 0x5c]
push ebp
push edx
call dword [sym.imp.MSVCP60.dll_public:_class_std::fpos_int____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pubseekoff_long_int__enum_std::ios_base::seekdir__int_]
jmp 0x458b80
push 0xffffffffffffffff
lea ecx, [esp + 0x164]
call fcn.0042b530
mov ecx, 6
mov esi, eax
lea edi, [esp + 0xbc]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xbc]
lea ebp, [ecx + eax]
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 4]
test byte [esp + edx + 0x30], 6
jne 0x458bc9
mov eax, edx
push 1
push 2
lea edx, [esp + 0x168]
mov ecx, dword [esp + eax + 0x5c]
push 0
push edx
call dword [sym.imp.MSVCP60.dll_public:_class_std::fpos_int____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pubseekoff_long_int__enum_std::ios_base::seekdir__int_]
lea eax, [esp + 0x160]
lea ecx, [esp + 0x2c]
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::fpos_int____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
mov ecx, dword [eax + 8]
mov esi, dword [eax]
add ecx, esi
sub ecx, ebp
mov esi, ecx
push esi
call sub.MFC42.DLL_operatornew
mov edi, eax
mov eax, dword [esp + 0x30]
add esp, 4
mov ecx, dword [eax + 4]
test byte [esp + ecx + 0x30], 6
jne 0x458c18
mov edx, ecx
push 1
push 0
lea eax, [esp + 0x168]
mov ecx, dword [esp + edx + 0x5c]
push ebp
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::fpos_int____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pubseekoff_long_int__enum_std::ios_base::seekdir__int_]
push esi
push edi
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___int_]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::close_void_]
lea ecx, [esp + 0x1f8]
call fcn.00407c80
lea ecx, [esp + 0x10]
lea edx, [esp + 0x178]
push ecx
push esi
push edx
push edi
lea ecx, [esp + 0x208]
mov dword [esp + 0x20], 0
call fcn.00407c90
mov ecx, dword [esp + 0x10]
push ecx
push eax
lea ecx, [esp + 0xdc]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___int_]
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::close_void_]
mov esi, dword [esp + 0x8f4]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x458c98
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [esp + 0xd4]
mov byte [esp + 0x8ec], 4
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::vbase_dtor_void_]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x8ec], 0
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::vbase_dtor_void_]
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x8f0], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x458d8d
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_filebuf_char__struct_std::char_traits_char______thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::close_void_]
test eax, eax
jne 0x458d05
mov edx, dword [esp + 0x2c]
push ebp
push 2
mov eax, dword [edx + 4]
lea ecx, [esp + eax + 0x34]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [esp + 0xd8]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_filebuf_char__struct_std::char_traits_char______thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::close_void_]
test eax, eax
jne 0x458d30
mov ecx, dword [esp + 0xd4]
push ebp
push 2
mov edx, dword [ecx + 4]
lea ecx, [esp + edx + 0xdc]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [esp + 0x12c]
mov byte [esp + 0x8ec], 4
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [esp + 0x12c]
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [esp + 0x88]
mov byte [esp + 0x8ec], 0
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x8f0], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor eax, eax
mov ecx, dword [esp + 0x8e4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x8e4
ret