Function at 0x401e10
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x40542f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
mov ebp, ecx
push esi
xor esi, esi
push edi
mov eax, dword [ebp + 0xf8]
mov dword [esp + 0x14], ebp
test eax, eax
push 0xffffffffffffffff
je 0x40204d
lea eax, [ebp + 0x148]
push 1
push eax
push 4
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, dword [ebp + 0xb8]
test ecx, ecx
je 0x401e6a
or eax, 0xffffffff
jmp 0x4021bb
test eax, eax
jne 0x4021af
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], 1
call sub.MFC42.DLL_CFile::CFile
push fcn.00404d36
push sub.MFC42.DLL_CFile::CFile
push 4
lea ecx, [esp + 0x60]
push 0x10
push ecx
mov dword [esp + 0xb0], 0
call fcn.00404f64
lea ecx, [esp + 0x10]
mov byte [esp + 0x9c], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0x12c]
push 0
push 0x1001
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xa8], 2
call sub.MFC42.DLL_CFile::Open
xor ebx, ebx
lea edi, [esp + 0x54]
jmp 0x401ee2
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
push ebx
lea edx, [esp + 0x14]
push str..down_d
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x10]
add ebp, 0x12c
lea ecx, [esp + 0x18]
push eax
push ebp
push ecx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xa0], 3
call fcn.00404ce8
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 2
call fcn.00404baa
mov edx, dword [esp + 0x10]
push 0
push 0
push edx
mov ecx, edi
call sub.MFC42.DLL_CFile::Open
mov ecx, edi
call sub.MFC42.DLL_CFile::GetLength
test esi, esi
mov ebp, eax
je 0x401f5d
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
push ebp
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
mov ecx, edi
push ebp
push esi
call sub.MFC42.DLL_CFile::Read
push ebp
push esi
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFile::Write
mov ecx, edi
call sub.MFC42.DLL_CFile::Close
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc ebx
add edi, 0x10
cmp ebx, 4
jl 0x401ede
test esi, esi
je 0x401faa
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor esi, esi
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [esp + 0x14]
push str..down
lea edx, [esp + 0x1c]
lea eax, [ecx + 0x12c]
push eax
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xa0], 4
call fcn.00404ce8
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 2
call fcn.00404baa
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x9c], 1
call fcn.00404baa
push fcn.00404d36
push 4
lea ecx, [esp + 0x5c]
push 0x10
push ecx
mov byte [esp + 0xac], 0
call fcn.00404e70
lea ecx, [esp + 0x34]
mov dword [esp + 0x9c], 0xffffffff
call fcn.00404d36
mov ebp, dword [esp + 0x14]
jmp 0x4021a2
mov edx, dword [ebp + 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 0xb8]
test ecx, ecx
je 0x40206c
or eax, 0xffffffff
jmp 0x4021bb
test eax, eax
jne 0x4021af
lea ecx, [esp + 0x44]
mov dword [esp + 0x1c], 1
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x24]
mov dword [esp + 0x9c], 5
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 6
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0x12c]
lea esi, [ebp + 0x12c]
push 0
mov bl, 7
push 0x1001
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0xa8], bl
call sub.MFC42.DLL_CFile::Open
push str..down0
lea eax, [esp + 0x24]
push esi
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], 8
call fcn.00404ce8
lea ecx, [esp + 0x20]
mov byte [esp + 0x9c], bl
call fcn.00404baa
mov ecx, dword [esp + 0x14]
push 0
push 0
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFile::Open
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::GetLength
mov edi, eax
push edi
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
lea ecx, [esp + 0x24]
push edi
push esi
call sub.MFC42.DLL_CFile::Read
push edi
push esi
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Close
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
je 0x402163
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor esi, esi
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 6
call fcn.00404baa
lea ecx, [esp + 0x24]
mov byte [esp + 0x9c], 5
call fcn.00404d36
lea ecx, [esp + 0x44]
mov dword [esp + 0x9c], 0xffffffff
call fcn.00404d36
test esi, esi
je 0x4021af
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [ebp + 0x144], eax
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret