Function at 0x408ba0
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40d5b8
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
xor ebx, ebx
mov edi, dword [ebp + 0xc8]
lea esi, [ebp + 0xc4]
cmp edi, ebx
je 0x408be1
lea eax, [edi + 8]
push 1
push eax
call sub.MFC42.DLL_DestructElements
mov edi, dword [edi]
cmp edi, ebx
jne 0x408bd0
mov ecx, dword [esi + 0x14]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
call sub.MFC42.DLL_CPlex::FreeDataChain
lea ecx, [esp + 0x28]
mov dword [esi + 0x14], ebx
call fcn.0040c9e8
lea ecx, [ebp + 0x8c]
mov dword [esp + 0x44], ebx
push ecx
lea ecx, [esp + 0x24]
call fcn.0040c9c4
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x20]
push 0x411200
lea eax, [esp + 0x28]
push edx
push eax
mov byte [esp + 0x50], 3
call sub.MFC42.DLL_operator_1
push str.AppList.Sec
lea ecx, [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x50], 4
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 3
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x18]
push str..tmp
lea eax, [esp + 0x28]
push edx
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 3
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push str.WhiteListPWD
push ecx
push edx
call fcn.0040a3c0
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x28]
push ebx
push 0x4000
push eax
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
jne 0x408d8d
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push 0x412058
push edx
mov byte [esp + 0x50], 7
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp + 0x60]
mov eax, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x24], eax
cmp dword [ecx + 0x2c], 3
jg 0x408d30
mov edx, dword [ecx]
lea esi, [esp + 0x28]
push esi
push eax
push 3
call dword [edx]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CStdioFile::CStdioFile
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
mov byte [esp + 0x48], 8
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x408de5
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], ebx
je 0x408dd3
cmp byte [eax], 0x23
je 0x408dd3
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.0040c9c4
mov ecx, esi
call fcn.00409dc0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
jne 0x408dad
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CStdioFile::Close
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret