Function at 0x408952
Capabilities:
Delete file

Disassembly:
mov eax, 0x41b3c6
call fcn.00418610
sub esp, 0xe0
push esi
lea eax, [ebp - 0x38]
push eax
mov esi, ecx
call fcn.00415310
pop ecx
and dword [ebp - 4], 0
mov ecx, eax
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push 0
lea ecx, [ebp - 0x1c]
call fcn.0040ea35
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [ebp - 0x1c]
mov ecx, eax
mov dword [ebp - 0x64], eax
call fcn.0040ea98
mov byte [ebp - 4], 3
lea eax, [ebp - 0x38]
push eax
call fcn.00414f20
pop ecx
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call dword [0x41d208]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call fcn.0040eebe
test al, al
pop ecx
jne 0x4089e5
mov esi, 0x80004005
jmp 0x408c6b
push ebx
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.0040c46a
pop ecx
mov byte [ebp - 4], 5
lea edi, [esi + 0x1c]
push eax
mov ecx, edi
call dword [0x41d208]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.004036ed
pop ecx
pop ecx
mov byte [ebp - 4], 6
push eax
mov ecx, edi
call dword [0x41d208]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [ebp - 0x38]
push eax
call fcn.0040c4c5
pop ecx
mov byte [ebp - 4], 7
lea ebx, [esi + 0x38]
push eax
mov ecx, ebx
call dword [0x41d208]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [ebp - 0x60]
push eax
call fcn.004154a0
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.004039b9
add esp, 0x10
mov byte [ebp - 4], 9
push eax
lea ecx, [esi + 0xc8]
call dword [0x41d208]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 0x2e
mov ecx, edi
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0040f06e
add esp, 0xc
mov byte [ebp - 4], 0xa
lea ebx, [esi + 0x54]
push eax
mov ecx, ebx
call dword [0x41d208]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [esi + 0x68], 0
jne 0x408b6c
push 1
push 3
lea ecx, [ebp - 0xec]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_int_]
mov byte [ebp - 4], 0xb
call sub.KERNEL32.dll_GetLastError
mov esi, dword [sym.imp.MSVCP71.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______cdecl_std::operator___wchar_t__struct_std::char_traits_wchar_t___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____wchar_t_const__]
push eax
push str.__errno:
push edi
lea eax, [ebp - 0xe4]
push str.get_file_version_failed__path:
push eax
call esi
pop ecx
pop ecx
push eax
call fcn.00401735
pop ecx
pop ecx
push eax
call esi
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0xec]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::str_void_]
mov byte [ebp - 4], 0xc
push eax
call fcn.0040f2e0
pop ecx
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xec]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void_]
mov esi, 0x80004005
jmp 0x408c69
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.00415410
pop ecx
pop ecx
mov byte [ebp - 4], 0xd
lea edi, [esi + 0x74]
push eax
mov ecx, edi
call dword [0x41d208]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [esi + 0xe4]
push edi
push eax
call fcn.00413790
pop ecx
pop ecx
call fcn.00414d50
and dword [ebp - 0x14], 0
mov dword [esi + 0x70], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.004052f2
mov ecx, esi
mov byte [ebp - 0xd], al
call fcn.00406b3f
lea ecx, [ebp - 0x44]
call fcn.00407f8f
mov byte [ebp - 4], 0xe
cmp byte [ebp - 0xd], 0
jne 0x408bed
cmp byte [esi + 0xf0], 0
je 0x408c0f
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00406289
jmp 0x408c0f
mov ecx, esi
call fcn.00407af0
cmp byte [esi + 0xf0], 0
je 0x408c04
mov ecx, esi
call fcn.00407e7a
lea eax, [ebp - 0x44]
push eax
mov ecx, esi
call fcn.0040875b
lea eax, [ebp - 0x44]
push eax
mov ecx, esi
call fcn.00407a87
lea eax, [ebp - 0x44]
push eax
mov ecx, esi
call fcn.004078fb
cmp dword [esi + 0xec], 0
je 0x408c3f
lea eax, [esi + 0xe4]
push edi
push eax
call fcn.00414050
pop ecx
pop ecx
jmp 0x408c4e
mov ecx, edi
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esi + 0x70]
push ebx
push esi
call fcn.00406731
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.00407ebd
xor esi, esi
pop edi
pop ebx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.0040eaa4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040ea80
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret