Function at 0x408840
Capabilities:
Create process on windows
Delete directory
Delete file
Delete registry key
Enumerate files on windows
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x40cd47
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2bc
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
push str.uninstall.cfg
lea eax, [esp + 0x20]
push 0x411d44
push eax
mov dword [esp + 0x2e0], 0
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2d8], 1
call fcn.0040bcde
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2d4], 0
call fcn.0040bb3a
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ecx
push 0
push str.TOOLFLAG
push str.IETOOLBAR
call esi
lea ecx, [esp + 0x24]
mov edi, eax
call sub.MFC42.DLL_CString::CString
test edi, edi
mov byte [esp + 0x2d4], 2
je 0x408921
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x128]
push edx
push 0x64
push eax
push str.88888888_8888_8888_8888_888888888888
push str.TOOLKEY
push str.IETOOLBAR
call fcn.00401000
add esp, 0x18
lea ecx, [esp + 0x128]
push ecx
lea ecx, [esp + 0x28]
call fcn.0040bb40
mov edx, dword [esp + 0x24]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x10]
push eax
push 0
push str.FILENUM
push str.FILE
call esi
mov ecx, dword [esp + 0x10]
mov ebx, eax
push ecx
push 0
push str.FOLDERNUM
push str.FOLDER
mov dword [esp + 0x2c], ebx
call esi
mov edx, dword [esp + 0x10]
mov ebp, eax
push edx
push 0
push str.OCXNUM
push 0x4104d0
mov dword [esp + 0x28], ebp
call esi
mov edi, eax
lea eax, [edi + ebp]
add eax, ebx
mov dword [esp + 0x20], eax
je 0x408d17
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
xor esi, esi
mov byte [esp + 0x2d4], 3
test edi, edi
jle 0x408a3a
mov ebx, dword [sym.imp.KERNEL32.dll_WinExec]
push esi
lea ecx, [esp + 0x18]
push str.OCX_02d
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x28]
push edx
push 0x100
push eax
push 0x411d40
push ecx
push 0x4104d0
call ebp
mov al, byte [esp + 0x28]
test al, al
je 0x408a2f
lea edx, [esp + 0x28]
lea eax, [esp + 0x14]
push edx
push str.regsvr32__s__u___s_
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 1
push ecx
call ebx
cmp eax, 0x1f
ja 0x408a24
lea edx, [esp + 0x28]
push eax
push edx
lea eax, [esp + 0x1c]
push 0x410880
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x24]
add esp, 0x10
push 0
push 0x10
push ecx
call sub.MFC42.DLL_AfxMessageBox
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc esi
cmp esi, edi
jl 0x408998
jmp 0x408a40
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, dword [esp + 0x1c]
xor edi, edi
test ebx, ebx
jle 0x408ace
push edi
lea eax, [esp + 0x18]
push str.FILE_02d
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x28]
push ecx
push 0x100
push edx
push 0x411d40
push eax
push str.FILE
call ebp
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x28]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x408aad
test cl, cl
je 0x408aa9
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x408aad
add eax, 2
add esi, 2
test cl, cl
jne 0x408a89
xor eax, eax
jmp 0x408ab2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408ac9
mov al, byte [esp + 0x28]
test al, al
je 0x408ac9
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc edi
cmp edi, ebx
jl 0x408a4e
mov ebp, dword [esp + 0x18]
lea eax, [ebp + ebp*4]
lea esi, [eax + eax*4]
lea esi, [esi + esi*4]
shl esi, 1
push esi
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x1c], ebx
and ecx, 3
dec ebp
test ebp, ebp
rep stosb byte es:[edi], al
mov dword [esp + 0x18], ebp
jl 0x408b7e
lea eax, [ebp + ebp*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ebx, [ebx + eax*2]
push ebp
lea ecx, [esp + 0x18]
push str.FOLDER_02d
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x28]
push edx
push 0x100
push eax
push 0x411d40
push ecx
push str.FOLDER
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
sub ebx, 0xfa
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
dec ebp
test ebp, ebp
rep movsb byte es:[edi], byte [esi]
jge 0x408b17
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test ebp, ebp
jl 0x408cf5
mov edx, dword [esp + 0x1c]
lea eax, [ebp + ebp*4]
inc ebp
lea eax, [eax + eax*4]
mov dword [esp + 0x18], ebp
lea ecx, [eax + eax*4]
lea ebx, [edx + ecx*2]
mov esi, 0x411d40
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x408bd2
test cl, cl
je 0x408bce
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x408bd2
add eax, 2
add esi, 2
test cl, cl
jne 0x408bae
xor eax, eax
jmp 0x408bd7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408ce0
push ebx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_1
push 0x4105c8
lea ecx, [esp + 0x24]
mov byte [esp + 0x2d8], 4
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x18c]
push eax
push ecx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x408ccf
test byte [esp + 0x18c], 0x10
je 0x408cb8
mov esi, 0x4108b4
lea eax, [esp + 0x1b8]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x408c5d
test cl, cl
je 0x408c59
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x408c5d
add eax, 2
add esi, 2
test cl, cl
jne 0x408c39
xor eax, eax
jmp 0x408c62
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408c9f
mov esi, 0x4108b8
lea eax, [esp + 0x1b8]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x408c96
test cl, cl
je 0x408c92
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x408c96
add eax, 2
add esi, 2
test cl, cl
jne 0x408c72
xor eax, eax
jmp 0x408c9b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408cb8
lea eax, [esp + 0x18c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408c1f
jmp 0x408cbd
mov ebp, 1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebp, ebp
jne 0x408ccf
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x20]
mov byte [esp + 0x2d4], 3
call fcn.0040bb3a
mov eax, dword [esp + 0x18]
sub ebx, 0xfa
dec eax
mov dword [esp + 0x18], eax
jne 0x408ba7
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x408d06
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x2d4], 2
call fcn.0040bb3a
lea ecx, [esp + 0x24]
mov byte [esp + 0x2d4], 0
call fcn.0040bb3a
lea ecx, [esp + 0x10]
mov dword [esp + 0x2d4], 0xffffffff
call fcn.0040bb3a
mov ecx, dword [esp + 0x2cc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c8
ret