Function at 0x401180
Capabilities:
Copy file
Create process on windows
Delete directory
Delete file
Get common file path
Print debug messages
Set current directory

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x31c
lea ecx, [esp]
push esi
push edi
push eax
call sub.MFC42.DLL_CString::CString_1
push str.TonyTempUninst
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find
mov esi, eax
cmp esi, 0xffffffff
je 0x40127a
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push ebp
push 0x1f4
call edi
push 1
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [eax + esi + 0x10]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x14]
push str.Uninst.exe
lea eax, [esp + 0x24]
push edx
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
push 0x404140
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor esi, esi
mov ecx, dword [esp + 0x14]
push ecx
call ebx
test eax, eax
jne 0x401259
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xa
jge 0x401259
push 0x3e8
inc esi
call edi
call ebp
push eax
lea edx, [esp + 0x14]
push 0x40413c
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x14]
push ecx
call ebx
test eax, eax
je 0x401221
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x31c
ret 0x10
push str.silent
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 0xffffffff
jne 0x4012ac
push 0x41
push 0x40412c
push 0x40410c
push 0
call esi
cmp eax, 1
jne 0x4013da
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x124]
lea edx, [esp + 0x124]
rep stosd dword es:[edi], eax
push edx
call fcn.00401090
add esp, 4
test eax, eax
je 0x4012dc
mov al, byte [esp + 0x13e]
mov byte [0x404078], al
call fcn.00401660
call fcn.004016c0
call fcn.00401ae0
call fcn.00401ca0
call fcn.00401760
push str.silent
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x401318
push 0
push 0x40412c
push 0x4040f4
push 0
call esi
lea ecx, [esp + 0x1c]
push ecx
call section..text
add esp, 4
lea edx, [esp + 0x20]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x20]
push edx
rep stosd dword es:[edi], eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_1
push 0x4040e8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
push str.Uninst.exe
lea edx, [esp + 0x1c]
push ecx
push edx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
mov ecx, dword [esp + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
push str.TonyTempUninst
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x14]
push edx
call fcn.00401db2
push 0
push 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
add esp, 0x31c
ret 0x10