Function at 0x405ce0
Capabilities:
Delete file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41c0e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
mov al, byte [esp + 2]
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
push ebp
lea ecx, [esp + 0x54]
mov byte [esp + 0x54], 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 edi, 0x4243c0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4243c0
lea ecx, [esp + 0x58]
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 ecx, [esp + 0x50]
add esi, 0x98
push 0x2f
push ecx
lea edx, [esp + 0x98]
push esi
push edx
mov dword [esp + 0x17c], ebp
call fcn.00402460
add esp, 0x10
mov bl, 2
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x170], bl
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 [esi]
push ebp
lea ecx, [esp + 0x64]
mov byte [esp + 0x64], 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 ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
lea ecx, [esp + 0x60]
push edx
push ebp
push 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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
lea eax, [esp + 0x90]
mov byte [esp + 0x16c], 3
push eax
call fcn.004017b0
add esp, 4
cmp eax, 1
je 0x405de4
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0x170], bl
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 1
lea ecx, [esp + 0x94]
mov dword [esp + 0x170], 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 0x4064c1
lea ecx, [esp + 0x12]
lea edx, [esp + 0x11]
push ecx
push ebp
push edx
lea ecx, [esp + 0x3c]
call fcn.0040a5d0
lea ecx, [esp + 0xb0]
mov byte [esp + 0x16c], 4
call fcn.0041b29e
mov al, byte [esp + 0x11]
push ebp
lea ecx, [esp + 0xa4]
mov byte [esp + 0x170], 5
mov byte [esp + 0xa4], 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 edi, 0x4243bc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4243bc
lea ecx, [esp + 0xa8]
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 ecx, [esp + 0xa0]
push 0x2f
lea edx, [esp + 0x94]
push ecx
lea eax, [esp + 0x88]
push edx
push eax
mov byte [esp + 0x17c], 6
call fcn.00402460
add esp, 0x10
push 1
lea ecx, [esp + 0xa4]
mov byte [esp + 0x170], 8
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 [esp + 0x84]
cmp eax, ebp
jne 0x405ea0
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 ebp
push eax
lea ecx, [esp + 0xb8]
call sub.MFC42.DLL_CFileFind::FindFile
cmp eax, ebp
je 0x40621b
mov bl, 0xb
lea ecx, [esp + 0xb0]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov edx, dword [esp + 0xb0]
push 0x10
lea ecx, [esp + 0xb4]
mov dword [esp + 0x1c], eax
call dword [edx + 0x40]
cmp eax, ebp
jne 0x406211
lea ecx, [esp + 0xb0]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x406211
lea eax, [esp + 0x14]
lea ecx, [esp + 0xb0]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
mov cl, byte [esp + 0x11]
mov esi, dword [eax]
mov byte [esp + 0x50], cl
push ebp
lea ecx, [esp + 0x54]
mov byte [esp + 0x170], 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_]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x58]
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 ecx, [esp + 0x14]
mov byte [esp + 0x16c], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x50]
lea eax, [esp + 0x11c]
push edx
push eax
call fcn.00401fe0
add esp, 8
mov eax, dword [eax + 4]
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]
cmp eax, ebp
mov byte [esp + 0x16c], 0xc
je 0x405f79
mov esi, eax
mov cl, byte [esp + 0x11]
push ebp
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
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 edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x24]
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_]
push 1
lea ecx, [esp + 0x120]
mov byte [esp + 0x170], 0xe
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 edx, [esp + 0x1c]
lea eax, [esp + 0xcc]
push edx
push eax
call fcn.00401d30
lea ecx, [esp + 0xd4]
push 0x4243b8
push ecx
mov byte [esp + 0x17c], 0xf
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x10
test al, al
jne 0x4061d3
lea edx, [esp + 0x50]
lea eax, [esp + 0xec]
push edx
push eax
call fcn.00401d30
add esp, 8
mov eax, dword [esp + 0xf0]
mov byte [esp + 0x16c], 0x10
cmp eax, ebp
jne 0x406020
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.MSVCRT.dll_atoi]
add esp, 4
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x7c]
mov dword [esp + 0x70], eax
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.0040a890
mov eax, dword [eax]
mov ecx, dword [esp + 0x34]
cmp eax, ecx
jne 0x40613c
mov al, byte [esp + 0x11]
mov dword [esp + 0x44], ebp
mov byte [esp + 0x40], al
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x16c], 0x11
push ecx
lea ecx, [esp + 0x100]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea edx, [esp + 0x40]
lea ecx, [esp + 0x10c]
push edx
mov byte [esp + 0x170], 0x12
call fcn.0040a8f0
lea eax, [esp + 0xfc]
lea ecx, [esp + 0x13c]
push eax
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x174], 0x13
call fcn.0040a610
mov edx, dword [eax]
lea ecx, [esp + 0x78]
mov dword [esp + 0x74], edx
lea edx, [esp + 0x74]
mov eax, dword [eax + 4]
push ecx
push edx
lea ecx, [esp + 0x134]
mov dword [esp + 0x80], eax
call fcn.0040ab30
lea ecx, [esp + 0x10c]
mov byte [esp + 0x16c], 0x14
call fcn.0040a5a0
push 1
lea ecx, [esp + 0x100]
mov byte [esp + 0x170], 0x11
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 [esp + 0x48]
mov ecx, dword [esp + 0x44]
push eax
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x174], 0x10
call fcn.0040ab20
mov edx, dword [esp + 0x44]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
lea eax, [esp + 0x13]
lea ecx, [esp + 0xdc]
push eax
call fcn.0040a580
lea ecx, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x14c]
mov byte [esp + 0x174], 0x15
call fcn.0040a420
lea edx, [esp + 0x134]
push eax
push edx
lea ecx, [esp + 0x38]
mov byte [esp + 0x174], 0x16
call fcn.0040a3f0
mov esi, dword [eax]
lea ecx, [esp + 0x144]
mov byte [esp + 0x16c], 0x15
call fcn.00406600
lea ecx, [esp + 0xdc]
mov byte [esp + 0x16c], 0x10
call fcn.0040a5a0
mov eax, dword [esi + 0x24]
lea ecx, [esi + 0x1c]
lea edx, [esp + 0x70]
push edx
push eax
call fcn.0040a960
push 1
lea ecx, [esp + 0xf0]
mov byte [esp + 0x170], 0xf
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 1
lea ecx, [esp + 0xd0]
mov byte [esp + 0x170], 0xe
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 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x170], bl
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 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x170], 8
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
cmp dword [esp + 0x18], ebp
jne 0x405eb8
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x2c], eax
je 0x40639f
jmp 0x406235
xor ebp, ebp
add eax, 0xc
push 0x2f
push eax
lea eax, [esp + 0x98]
lea ecx, [esp + 0xe4]
push eax
push ecx
call fcn.00402460
add esp, 0x10
mov esi, dword [eax + 4]
mov byte [esp + 0x16c], 0x17
cmp esi, ebp
jne 0x406268
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 dl, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], dl
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 edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x24]
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_]
push 1
lea ecx, [esp + 0xe0]
mov byte [esp + 0x170], 0x19
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 ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x2c]
xor ebx, ebx
push ebx
mov byte [esp + 0x170], 0x1a
mov ecx, dword [eax + 0x24]
lea edi, [eax + 0x24]
lea ebp, [eax + 0x20]
push ecx
mov eax, dword [ebp]
push eax
call fcn.0040b8b0
add esp, 0xc
xor esi, esi
mov eax, dword [ebp]
cmp eax, ebx
je 0x40633a
mov ecx, dword [edi]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jae 0x40633a
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
jne 0x4062fa
mov ecx, 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 [eax + esi*4]
lea eax, [esp + 0x14]
push edx
push ecx
push 0x4243b0
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x74]
add esp, 0x10
cmp eax, ebx
jne 0x40631e
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]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.004064e0
mov edx, dword [esp + 0x1c]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc esi
jmp 0x4062da
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 0x19
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x20]
mov byte [esp + 0x16c], 8
cmp eax, ebx
je 0x406378
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40636f
cmp al, 0xff
je 0x40636f
dec al
mov byte [ecx], al
jmp 0x406378
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.0040b590
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jne 0x406233
xor ebp, ebp
mov eax, dword [esp + 0x84]
cmp eax, ebp
je 0x4063c7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4063be
cmp al, 0xff
je 0x4063be
dec al
mov byte [ecx], al
jmp 0x4063c7
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0xb0]
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
mov byte [esp + 0x16c], 4
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x30]
push eax
lea eax, [esp + 0x80]
push eax
mov byte [esp + 0x174], 3
call fcn.0040a600
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x3c]
call fcn.0040a770
mov eax, dword [esp + 0x34]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], ebp
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
mov eax, dword [0x425bcc]
dec eax
mov dword [0x425bcc], eax
jne 0x406460
mov ecx, dword [0x425bc8]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [0x425bc8], ebp
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
mov ecx, dword [esp + 0x64]
cmp ecx, ebp
je 0x40648e
mov al, byte [ecx - 1]
test al, al
je 0x406484
cmp al, 0xff
je 0x406484
dec al
mov byte [ecx - 1], al
jmp 0x40648e
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x64], ebp
cmp ecx, ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
je 0x4064c1
mov al, byte [ecx - 1]
test al, al
je 0x4064b7
cmp al, 0xff
je 0x4064b7
dec al
mov byte [ecx - 1], al
jmp 0x4064c1
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x160
ret