Function at 0x408e60
Capabilities:
Create process on windows
Delete file
Get common file path
Query or enumerate registry value
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x447f2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
push ebp
push esi
push edi
call fcn.00404b00
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [esp + 0x78]
test al, al
je 0x4090ff
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x77], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x408ed6
push 0x44b63c
lea edx, [esp + 0x7c]
push edx
call esi
push str.DiasUninst.EXE
lea eax, [esp + 0x7c]
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
lea ecx, [esp + 0x90]
push ecx
call ebp
cmp eax, 0xffffffff
jne 0x408fb9
lea edx, [esp + 0x10]
push edx
push 0x20019
xor eax, eax
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov ecx, 0x41
lea edi, [esp + 0x88]
push reloc.OLEAUT32.dll_SysReAllocString
rep stosd dword es:[edi], eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4090ff
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push str.SystemRoot
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.System32_
lea edx, [esp + 0x7c]
push edx
call esi
push str.DiasUninst.EXE
lea eax, [esp + 0x7c]
push eax
call esi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
lea ecx, [esp + 0x90]
push ecx
call ebp
cmp eax, 0xffffffff
je 0x4090ff
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebp
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x180]
lea edx, [esp + 0x78]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x44bfdc
lea ecx, [esp + 0x184]
push ecx
call esi
xor edx, edx
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
lea ecx, [esp + 0x34]
push ecx
push edx
push edx
push edx
push edx
push edx
push edx
mov dword [esp + 0x48], edx
mov word [esp + 0x80], dx
lea edx, [esp + 0x1a0]
push edx
push 0
mov dword [esp + 0x58], 0x44
mov dword [esp + 0x84], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4090ff
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
push eax
call ebp
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x40907b
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call ebp
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x10]
call fcn.00402470
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x20
push eax
mov dword [esp + 0x29c], 0
call esi
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
call edi
push str..INI
push str..EXE
lea ecx, [esp + 0x14]
call fcn.00405d00
mov edx, dword [esp + 0xc]
push 0x20
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call edi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x294], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4090ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x28c]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
mov esp, ebp
pop ebp
ret