Function at 0x4058b0
Capabilities:
Get installed programs
Get number of processors
Get system information on windows
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x448166
mov eax, dword fs:[0]
push eax
sub esp, 0x890
mov eax, dword [0x45e5e0]
xor eax, esp
mov dword [esp + 0x88c], eax
push ebx
push ebp
push edi
mov eax, dword [0x45e5e0]
xor eax, esp
push eax
lea eax, [esp + 0x8a0]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push 0x450da0
lea ecx, [esp + 0x88]
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], bx
call fcn.004044c0
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x8ac], ebx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x3c]
movzx edx, word [esp + 0x3a]
movzx eax, word [esp + 0x38]
push ecx
movzx ecx, word [esp + 0x3a]
push edx
movzx edx, word [esp + 0x3a]
push eax
movzx eax, word [esp + 0x3c]
push ecx
push edx
push eax
lea ecx, [esp + 0x58]
push 0x450f74
push ecx
call fcn.00443fd0
add esp, 0x20
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0x8b4], 1
call fcn.004043d0
mov edi, 8
mov byte [esp + 0x8a8], bl
cmp dword [esp + 0x58], edi
jb 0x405997
mov edx, dword [esp + 0x44]
push edx
call fcn.00411d3b
add esp, 4
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [esp + 0x5c], 9
jne 0x4059c5
mov ebp, 0xf013f
push ebp
push 0x31
push str.xxxx
mov dword [esi + 0x28], 0x64
push str.__s__d___OSVERSION_IS_64_flagKey____d
jmp 0x4059de
mov ebp, 0xf023f
push ebp
push 0x37
push str.xxxx
mov dword [esi + 0x28], 0xc8
push str.__s__d___OSVERSION_IS_32_flagKey____d
call fcn.00443b10
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
push ebp
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405a1b
cmp dword [esp + 0x98], edi
jb 0x405e53
mov edx, dword [esp + 0x84]
push edx
jmp 0x405e4b
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x4b0]
push ecx
push ebx
push edx
xor edi, edi
mov dword [esp + 0x40], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x405bba
lea ecx, [ecx]
cmp eax, ebx
jne 0x405b87
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push ebp
push ebx
lea ecx, [esp + 0x4a8]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405b92
mov eax, 0x200
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2a0]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebx
push str.DisplayName
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405b7c
mov edx, dword [esi + 8]
lea ecx, [esp + 0x29c]
push ecx
push edx
mov ecx, esi
call fcn.0041c992
lea eax, [esp + 0x29c]
push eax
push 0x5c
push str.xxxx
push str.__s__d___D_Name_:__s
call fcn.00443b10
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xa0]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
push str.InstallDate
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esi + 0x14]
test eax, eax
mov eax, dword [ecx + 8]
jne 0x405b71
lea edx, [esp + 0x9c]
push edx
push eax
call fcn.0041c992
lea ecx, [esp + 0x9c]
push ecx
push 0x63
push str.xxxx
push str.__s__d___I_Date_:__s
call fcn.00443b10
mov eax, dword [esp + 0x94]
add esp, 0x10
cmp dword [esp + 0x98], 8
jae 0x405b50
lea eax, [esp + 0x84]
mov edx, dword [esp + 0x94]
lea ecx, [edx + edx]
mov edx, dword [esp + 0x10]
push ecx
push eax
push 1
push ebx
push str.WiseCapDate
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x405b7c
push 0x451158
push eax
call fcn.0041c992
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 1
mov dword [esp + 0x20], 0x100
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x4b0]
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x405a50
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x74
push str.xxxx
push 0x45115c
call fcn.00443b10
add esp, 0xc
cmp dword [esi + 0x28], 0x64
jne 0x405e39
push 0x7a
push str.xxxx
push str.__s__d___OSVERSION_IS_64
call fcn.00443b10
push 0xf023f
push 0x7e
push str.xxxx
push str.__s__d___KeyFlag____d
call fcn.00443b10
add esp, 0x1c
lea eax, [esp + 0x14]
push eax
push 0xf023f
push ebx
push str.SoftwareWow6432NodeMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405c65
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x83
push str.xxxx
push str.__s__d___RegOpenKeyEx_Error___ld_
call fcn.00443b10
add esp, 0x10
cmp dword [esp + 0x98], 8
jb 0x405e53
mov ecx, dword [esp + 0x84]
push ecx
jmp 0x405e4b
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x6b0]
push eax
push ebx
push ecx
xor edi, edi
mov dword [esp + 0x38], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x405e2e
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ecx]
cmp eax, ebx
jne 0x405dfb
call ebp
push eax
push 0x91
push str.xxxx
push str.__s__d___RegOpenKeyEx_Error___ld_
call fcn.00443b10
mov ecx, dword [esp + 0x24]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
push 0xf023f
push ebx
lea eax, [esp + 0x6a8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405e06
mov eax, 0x200
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x30]
push ecx
push ebx
push str.DisplayName
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405df0
mov ecx, dword [esi + 8]
lea eax, [esp + 0x9c]
push eax
push ecx
mov ecx, esi
call fcn.0041c992
lea edx, [esp + 0x9c]
push edx
push 0x9f
push str.xxxx
push str.__s__d___D_Name_:__s
call fcn.00443b10
add esp, 0x10
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2a0]
push ecx
lea edx, [esp + 0x30]
push edx
push ebx
push str.InstallDate
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esi + 0x14]
test eax, eax
mov eax, dword [ecx + 8]
jne 0x405de5
lea edx, [esp + 0x29c]
push edx
push eax
call fcn.0041c992
lea ecx, [esp + 0x29c]
push ecx
push 0xa5
push str.xxxx
push str.__s__d___I_Date_:__s
call fcn.00443b10
mov eax, dword [esp + 0x94]
add esp, 0x10
cmp dword [esp + 0x98], 8
jae 0x405dc4
lea eax, [esp + 0x84]
mov edx, dword [esp + 0x94]
lea ecx, [edx + edx]
mov edx, dword [esp + 0x10]
push ecx
push eax
push 1
push ebx
push str.WiseCapDate
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x405df0
push 0x451158
push eax
call fcn.0041c992
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 1
mov dword [esp + 0x18], 0x100
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x6b0]
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x405ca0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x98], 8
jb 0x405e53
mov eax, dword [esp + 0x84]
push eax
call fcn.00411d3b
add esp, 4
mov ecx, dword [esp + 0x8a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88c]
xor ecx, esp
call fcn.0042e014
add esp, 0x89c
ret