Function at 0x4746a0
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4fda8f
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54a020]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x14], ebp
lea esi, [ebp + 0x34]
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::close_void_]
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push 0
push 0
lea ecx, [ecx + ebp + 0x34]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov ecx, dword [ebp + 0xf8]
lea ebx, [ebp + 0xdc]
call fcn.00473e40
push 1
push 2
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
push 1
push 0x504efc
lea edx, [esp + 0x80]
push ebx
push edx
mov dword [esp + 0x110], 0
call fcn.0047b380
add esp, 8
push eax
call fcn.00413340
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x100], 1
jb 0x474769
mov eax, dword [eax + 4]
jmp 0x47476c
add eax, 4
push eax
lea ecx, [esp + 0x1c]
call fcn.0047b960
lea ecx, [esp + 0x5c]
mov byte [esp + 0x100], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, ebp
call fcn.0046dfb0
mov edi, eax
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x47479e
mov eax, 0x533e66
push eax
call dword [sym.imp.MSVCR80.dll_remove]
mov ecx, dword [esp + 0x1c]
add esp, 4
test ecx, ecx
jne 0x4747b5
mov ecx, 0x533e66
mov eax, dword [ebx]
test eax, eax
jne 0x4747c0
mov eax, 0x533e66
push ecx
push eax
call dword [sym.imp.MSVCR80.dll_rename]
neg eax
sbb eax, eax
push eax
push ebx
lea esi, [esp + 0x28]
call fcn.00473350
mov eax, dword [ebx]
add esp, 0x10
test eax, eax
jne 0x4747e5
mov eax, 0x533e66
push eax
call dword [sym.imp.MSVCR80.dll_remove]
add ebp, 0xbc
push ebp
lea ecx, [esp + 0x2c]
push str.Renaming_file
push ecx
call fcn.0047c570
push str._to
push eax
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x11c], 4
call fcn.0047c600
push ebx
push eax
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0x128], 5
call fcn.0047c4d0
add esp, 0x28
push eax
mov ecx, edi
mov byte [esp + 0x104], 6
call fcn.0046dcf0
lea ecx, [esp + 0x50]
mov byte [esp + 0x100], 5
call fcn.0047b260
lea ecx, [esp + 0x44]
mov byte [esp + 0x100], 4
call fcn.0047b260
lea ecx, [esp + 0x24]
mov byte [esp + 0x100], 3
call fcn.0047b260
mov eax, dword [ebx]
test eax, eax
jne 0x47487f
mov eax, 0x533e66
mov ecx, dword [ebp]
test ecx, ecx
jne 0x47488b
mov ecx, 0x533e66
push eax
push ecx
call dword [sym.imp.MSVCR80.dll_rename]
neg eax
sbb eax, eax
push eax
push ebp
mov esi, ebx
call fcn.00473350
mov eax, dword [ebp]
add esp, 0x10
test eax, eax
jne 0x4748af
mov eax, 0x533e66
mov esi, dword [esp + 0x14]
push 0x40
push 0x12
add esi, 0x34
push eax
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::open_char_const___int__int_]
push ebp
push esi
push edi
call fcn.00473490
lea ecx, [esp + 0x40]
push ecx
call fcn.0046e5e0
mov edi, dword [esp + 0x24]
lea esi, [edi + 0xe8]
lea edx, [esp + 0x44]
push esi
push edx
call fcn.0046e7c0
add esp, 0x18
test al, al
je 0x47494a
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.00473a40
push eax
mov ecx, ebx
mov byte [esp + 0x104], 7
call fcn.0047beb0
lea ecx, [esp + 0x24]
mov byte [esp + 0x100], 3
call fcn.0047b260
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.00473810
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x100], 0
call fcn.0047b260
lea ecx, [esp + 0x78]
mov dword [esp + 0x100], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf0
ret