Function at 0x401070
Capabilities:
Create process on windows
Delete registry key
Get common file path
Set current directory

Disassembly:
sub esp, 0x358
mov ecx, 0x41
xor eax, eax
push ebx
push ebp
push esi
push edi
mov ebx, dword [esp + 0x374]
mov edi, 0x408cdc
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 5
ja 0x4011ab
push 0x408cdc
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.Uninst.fls
push 0x408cdc
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40817c
push 0x408cdc
call fcn.00401e5e
mov esi, eax
add esp, 8
test esi, esi
jne 0x4010fc
push 0x10
push 0x408174
push 0x408148
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x358
ret 0x10
push 0x104
push 0x408cdc
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x408cdc
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 2
push 0
push esi
call fcn.00401db2
push esi
call fcn.00401c5a
push 0
push 0
push esi
mov edi, eax
call fcn.00401db2
push edi
call fcn.00401be6
push esi
push edi
push 1
push eax
mov dword [0x408ad0], eax
call fcn.00401afe
push esi
call fcn.00401aa8
mov eax, dword [0x408ad0]
push eax
push str.SoftWareMicrosoftWindowsCurrentVersionUninstall_s
push 0x408cdc
call fcn.00401a56
add esp, 0x40
push 0x408bd8
push str.UninstallString
push 0x408cdc
call fcn.00401000
mov ecx, dword [0x408ad0]
push ecx
call fcn.00401a27
mov edi, 0x408be5
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x408cdc
call ebx
push 0x2f
push 0x408cdc
call fcn.00401a00
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4011f6
lea edi, [ebp + 1]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x64]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x4080fc
push 0x408cdc
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, 0x4080f0
or ecx, 0xffffffff
xor eax, eax
push 0x40817c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x408cdc
mov esi, edi
mov edx, ecx
mov edi, 0x408cdc
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00401e5e
mov esi, eax
add esp, 8
test esi, esi
jne 0x40126d
push 0x10
push 0x408174
push 0x408148
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x358
ret 0x10
push 2
push 0
push esi
call fcn.00401db2
push esi
call fcn.00401c5a
push 0
push 0
push esi
mov edi, eax
call fcn.00401db2
push edi
call fcn.00401be6
push esi
push edi
push 1
push eax
mov dword [0x408ad0], eax
call fcn.00401afe
push esi
call fcn.00401aa8
mov edx, dword [0x408ad0]
xor eax, eax
mov dword [0x408de0], eax
add esp, 0x34
mov cl, byte [edx]
test cl, cl
mov byte [0x408bd8], cl
je 0x4012d3
inc eax
mov dword [0x408de0], eax
mov cl, byte [eax + edx]
test cl, cl
mov byte [eax + 0x408bd8], cl
jne 0x4012c0
lea eax, [esp + 0xe4]
push 0x408bd8
push eax
call ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0xe4]
push ecx
push 0x4080d8
push 0x408ad4
call ebx
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0xc
push 0x21
push 0x4080d0
push 0x408ad4
push 0
call esi
cmp eax, 2
jne 0x401326
mov edx, dword [0x408ad0]
push edx
jmp 0x401475
test ebp, ebp
je 0x4013cb
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
push ecx
mov dword [esp + 0x1c], eax
push edx
mov dword [esp + 0x24], eax
push 0
mov eax, 1
push 0
push 0
mov dword [esp + 0x60], eax
mov word [esp + 0x64], ax
push 0
push 0
lea eax, [esp + 0x80]
push 0
push eax
push 0
mov dword [esp + 0x48], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4013bb
lea ecx, [esp + 0x64]
push eax
push ecx
lea edx, [esp + 0x1ec]
push 0x4080bc
push edx
call fcn.00401a56
add esp, 0x10
lea eax, [esp + 0x1e4]
push 0
push 0x4080b0
push eax
push 0
call esi
jmp 0x4013cb
mov ecx, dword [esp + 0x10]
push 0xbb8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov edx, dword [esp + 0x36c]
push 0
push 0x401490
push 0
push 0x65
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 0x464
jne 0x40140c
lea eax, [esp + 0xe4]
push eax
push 0x408090
push 0x408ad4
call ebx
add esp, 0xc
push 0x40
jmp 0x401425
lea ecx, [esp + 0xe4]
push ecx
push str.Sorry___s_
push 0x408ad4
call ebx
add esp, 0xc
push 0x10
push 0x4080d0
push 0x408ad4
push 0
call esi
lea edx, [esp + 0x264]
push str.SoftWareMicrosoftWindowsCurrentVersionUninstall_
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0xe4]
lea ecx, [esp + 0x264]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x264]
push edx
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov eax, dword [0x408ad0]
push eax
call fcn.00401a27
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x358
ret 0x10