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

Disassembly:
push 0xffffffffffffffff
push 0x456fab
mov eax, dword fs:[0]
push eax
sub esp, 0x570
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x56c], eax
push esi
push edi
mov eax, dword [0x46be4c]
xor eax, esp
push eax
lea eax, [esp + 0x57c]
mov dword fs:[0], eax
call fcn.00405750
push 0x104
lea eax, [esp + 0x78]
push 0
push eax
call fcn.004413c0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [esp + 0x74], 0
je 0x40b44f
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x73], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40b211
push 0x45c6ec
lea eax, [esp + 0x78]
push eax
call esi
push str.DiasUninst.EXE
lea ecx, [esp + 0x78]
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea edx, [esp + 0x8c]
push edx
call edi
cmp eax, 0xffffffff
jne 0x40b2f9
push 0x104
lea eax, [esp + 0x78]
push 0
push eax
call fcn.004413c0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b44f
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.SystemRoot
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.System32_
lea ecx, [esp + 0x78]
push ecx
call esi
push str.DiasUninst.EXE
lea edx, [esp + 0x78]
push edx
call esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [esp + 0x8c]
push eax
call edi
cmp eax, 0xffffffff
je 0x40b44f
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push 0x400
lea ecx, [esp + 0x17c]
push 0
push ecx
call fcn.004413c0
add esp, 0xc
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x45d364
lea ecx, [esp + 0x17c]
push ecx
call esi
push 0x44
lea edx, [esp + 0x34]
push 0
push edx
call fcn.004413c0
add esp, 0xc
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x60], ax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x198]
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 0x40b44f
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
push eax
call edi
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x40b3c9
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call edi
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x10]
call fcn.004027b0
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x20
push eax
mov dword [esp + 0x58c], 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.004074d0
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 + 0x584], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b44f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x57c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x56c]
xor ecx, esp
call fcn.0044027a
add esp, 0x57c
ret