Function at 0x45a140
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x464f00
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 0x45a248
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 0x45a25e
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 0x45a306
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 0x45a6a3
cmp dword [esp + 0x128], ebp
je 0x45a6a3
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 0x45a343
xor ecx, ecx
jmp 0x45a34a
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 0x45a434
cmp edx, 0x905a4d
jne 0x45a434
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 0x45a390
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 0x45a3bb
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 0x45a3c8
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 0x45a74d
cmp edx, 0x40
jb 0x45a49f
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 0x45a45b
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 0x45a486
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 0x45a493
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 0x45a6f0
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 0x45a509
lea eax, [esp + ecx + 0x178]
mov cl, byte [esp + 0x178]
mov byte [eax], cl
inc eax
dec edx
mov byte [eax], 0
jne 0x45a4f9
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 4]
test byte [esp + edx + 0x30], 6
jne 0x45a532
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 0x45a540
push 0xffffffffffffffff
lea ecx, [esp + 0x164]
call fcn.00429070
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 0x45a589
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 0x45a5d8
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.00407c40
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.00407c50
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 0x45a658
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 0x45a74d
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 0x45a6c5
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 0x45a6f0
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