Function at 0x401000
Capabilities:
Delete file

Disassembly:
mov eax, 0x40dea5
call fcn.0040db00
sub esp, 0x2a0
push ebx
push esi
lea eax, [ebp - 0xe]
push edi
push eax
xor ebx, ebx
lea eax, [ebp - 0xd]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x98], edi
call fcn.00401f7a
lea ecx, [edi + 0x10]
mov dword [ebp - 4], ebx
call fcn.0040999d
mov al, byte [ebp + 0xb]
lea esi, [edi + 0x3c]
push ebx
mov ecx, esi
mov byte [ebp - 4], 1
mov byte [esi], 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 ebx, dword [ebp + 8]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push ebx
mov ecx, esi
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 eax, dword [ebp + 0xc]
xor esi, esi
push esi
mov byte [ebp - 4], 2
mov dword [edi + 0x4c], eax
call dword [0x414c58]
mov al, byte [ebp + 0xb]
push esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], 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 al, byte [ebp + 0xb]
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
mov byte [ebp - 0x40], 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_]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x40]
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 esi, str.metafile.dat
mov byte [ebp - 4], 4
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
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 eax, dword [ebp - 0x3c]
xor ebx, ebx
cmp eax, ebx
jne 0x4010d1
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 1
lea ecx, [ebp - 0x1a4]
pop esi
push esi
push esi
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::constructor_char_const___int_]
mov eax, dword [ebp - 0x1a4]
mov byte [ebp - 4], 5
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0x1a0]
test al, 6
mov eax, dword [ebp - 0x3c]
je 0x40110f
cmp eax, ebx
jne 0x401107
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
push str.Cant_find_metafile_:__s
jmp 0x40111e
cmp eax, ebx
jne 0x401118
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
push str.metafile_:__s
push esi
call fcn.00403caf
add esp, 0xc
lea ecx, [ebp - 0x84]
call fcn.00401483
and byte [ebp + 0xb], 0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1a4]
push eax
call sub.MSVCP60.dll_class_std::basic_istream_char__struct_std::char_traits_char______cdecl_std::getline_class_std::basic_istream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____
pop ecx
cmp eax, ebx
pop ecx
jne 0x401154
xor ecx, ecx
jmp 0x40115b
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx + 4]
and al, 6
neg al
sbb eax, eax
not eax
test ecx, eax
je 0x401423
cmp dword [ebp - 0x28], 0x21
jae 0x401191
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x401180
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
push str.Error_line:__s
push esi
call fcn.00403caf
add esp, 0xc
jmp 0x40113a
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], 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_]
push 0x20
lea eax, [ebp - 0xb8]
push ebx
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 7
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__::substr_unsigned_int__unsigned_int_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [ebp - 4], 8
push dword [ecx]
lea ecx, [ebp - 0x20]
push ebx
push eax
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push esi
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 7
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, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [ebp - 0x30]
push dword [eax]
lea eax, [ebp - 0xa8]
push 0x21
push eax
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__::substr_unsigned_int__unsigned_int_]
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 9
push eax
call fcn.00408fad
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x1a4]
push eax
call sub.MSVCP60.dll_class_std::basic_istream_char__struct_std::char_traits_char______cdecl_std::getline_class_std::basic_istream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x1a4]
push eax
call sub.MSVCP60.dll_class_std::basic_istream_char__struct_std::char_traits_char______cdecl_std::getline_class_std::basic_istream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x1a4]
push eax
call sub.MSVCP60.dll_class_std::basic_istream_char__struct_std::char_traits_char______cdecl_std::getline_class_std::basic_istream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____
mov eax, dword [ebp - 0x70]
add esp, 0x1c
cmp eax, ebx
jne 0x40124b
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 fcn.00402ac5
test al, al
mov eax, dword [ebp - 0x70]
pop ecx
jne 0x401276
cmp eax, ebx
jne 0x401262
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
push str.File_not_found:__s
push esi
call fcn.00403caf
add esp, 0xc
jmp 0x4013ab
cmp eax, ebx
jne 0x40127f
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]
lea ecx, [ebp - 0x2ac]
push ecx
push eax
call fcn.00402bff
pop ecx
test eax, eax
pop ecx
jge 0x4012a9
mov eax, dword [ebp - 0x70]
cmp eax, ebx
jne 0x40129e
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
push str.Short_cut_cant_be_resolved:__s
jmp 0x40138f
and byte [ebp - 0x1a8], 0
lea eax, [ebp - 0x2ac]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x84]
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_]
lea eax, [ebp - 0x84]
push eax
call fcn.00401eef
test al, al
mov eax, dword [ebp - 0x80]
pop ecx
jne 0x401380
cmp eax, ebx
jne 0x4012f2
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
push str.New_file_for_serving:__s
push esi
call fcn.00403caf
mov al, byte [ebp - 0x20]
add esp, 0xc
lea ecx, [ebp - 0x114]
mov byte [ebp - 0x114], al
push ebx
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, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [ebp - 0x114]
push dword [eax]
lea eax, [ebp - 0x20]
push ebx
push eax
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
lea eax, [ebp - 0x84]
lea ecx, [ebp - 0x104]
push eax
mov byte [ebp - 4], 0xa
call fcn.004017a5
lea eax, [ebp - 0x114]
mov ecx, edi
push eax
lea eax, [ebp - 0xc0]
push eax
mov byte [ebp - 4], 0xb
call fcn.00401fa0
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 0xc
call fcn.004014ec
push esi
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 9
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 0x4013bf
cmp eax, ebx
jne 0x401389
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
push str.File_has_been_changed:__s
push esi
call fcn.00403caf
mov eax, dword [ebp - 0x70]
add esp, 0xc
cmp eax, ebx
jne 0x4013a4
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]
mov ecx, dword [edi + 0x4c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00407493
mov byte [ebp + 0xb], 1
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x94]
mov byte [ebp - 0x94], 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_]
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x1a4]
push eax
call sub.MSVCP60.dll_class_std::basic_istream_char__struct_std::char_traits_char______cdecl_std::getline_class_std::basic_istream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____
pop ecx
mov byte [ebp - 4], 9
pop ecx
push esi
lea ecx, [ebp - 0x94]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push esi
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
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 0x40113a
cmp byte [ebp + 0xb], 0
je 0x401430
mov ecx, edi
call fcn.00401cdc
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 5
call fcn.004014ec
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::vbase_dtor_void_]
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
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 ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8