Function at 0x404318
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4088e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::CFile
mov byte [ebp - 4], 2
push 0
push 0x8000
lea ecx, [ebp + 8]
call fcn.00401920
push eax
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::Open
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::GetLength
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
add eax, 1
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::Read
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::Close
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
call fcn.004018e0
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
add edx, 1
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x30]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x2c]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x28], 0
jmp 0x404413
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x30]
jge 0x404477
mov dword [ebp - 0x44], 0
lea edx, [ebp - 0x44]
push edx
push 0x40b1fc
push 2
mov eax, dword [ebp - 0x28]
shl eax, 1
push eax
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CString::Mid
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x68], edx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x68]
call fcn.00401920
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x50]
call fcn.00407f3a
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x28]
mov cl, byte [ebp - 0x44]
mov byte [eax], cl
jmp 0x40440a
mov edx, dword [ebp - 0x30]
push edx
push 0x40b200
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040610a
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 0
jmp 0x4044a1
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
cmp edx, dword [ebp - 0x30]
jge 0x4044fd
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x28]
xor ecx, ecx
mov cl, byte [eax]
push ecx
push 0x40b208
lea edx, [ebp - 0x38]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x54]
push edx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x54]
call fcn.00407f3a
jmp 0x404498
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp + 0xc]
call fcn.00401920
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x9002
lea ecx, [ebp + 0xc]
call fcn.00401920
push eax
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::Open
lea ecx, [ebp - 0x40]
call fcn.004018e0
push eax
push 0
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::Write
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::Close
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.00407f3a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.00407f3a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.00407f3a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00407f64
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407f3a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00407f3a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8