Function at 0x40cc60
Capabilities:
Delete directory
Delete file
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x4120b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0
lea eax, [esp + 0x48]
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, 0x41b0ac
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x44]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov dword [esp + 0x154], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x154], 2
call fcn.00410418
lea ecx, [esp + 0x44]
lea edx, [esp + 0x10]
push ecx
push 0x41b08c
push edx
mov byte [esp + 0x160], 3
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
push eax
call esi
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push 0x41b07c
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0x41c354
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
push 0x41b070
push ecx
mov byte [esp + 0x160], 4
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x18]
push 0
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x15c], 5
call sub.MFC42.DLL_CFileFind::FindFile
cmp eax, 1
jne 0x40ce2e
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov edi, eax
mov eax, dword [esp + 0x24]
push 0x10
lea ecx, [esp + 0x28]
call dword [eax + 0x40]
test eax, eax
jne 0x40ce26
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x40ce26
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x158], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x154], 5
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x41b068
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x20]
add esp, 0x10
push edx
call esi
test edi, edi
jne 0x40cda9
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
push 0x41b060
push ecx
mov byte [esp + 0x160], 7
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x24]
push 0
push edx
call sub.MFC42.DLL_CFileFind::FindFile
cmp eax, 1
jne 0x40cef4
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov edi, eax
mov eax, dword [esp + 0x24]
push 0x10
lea ecx, [esp + 0x28]
call dword [eax + 0x40]
test eax, eax
jne 0x40ceec
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x40ceec
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x158], 8
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x154], 7
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x44]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x41b058
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x20]
add esp, 0x10
push edx
call esi
test edi, edi
jne 0x40ce6f
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::Close
lea eax, [esp + 0x44]
lea ecx, [esp + 0xc]
push eax
push 0x41b04c
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
add esp, 0xc
push edx
call ebp
lea eax, [esp + 0x44]
lea ecx, [esp + 0xc]
push eax
push 0x41b044
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
call ebp
lea eax, [esp + 0x44]
lea ecx, [esp + 0xc]
push eax
call fcn.0041030a
mov ecx, dword [esp + 0xc]
push ecx
call ebp
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x44]
push 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x48]
push 0x26
push edx
push 0
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, 0x41b0ac
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x44]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.0041030a
mov ecx, dword [esp + 0xc]
push ecx
call ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0x154], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x154], 2
call sub.MFC42.DLL_CFileFind::CFileFind
mov byte [esp + 0x154], 1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x154], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x154], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14c
ret