Function at 0x405840
Capabilities:
Create process on windows
Get common file path
Get installed programs
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5496ab
mov eax, dword fs:[0]
push eax
sub esp, 0xac4
mov eax, dword [0x5ad040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xa64], edi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push eax
call fcn.00530d50
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
push 1
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.msiexec.exe
lea eax, [ebp - 0x428]
push 0x104
push eax
call fcn.0052f62b
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x838], ax
lea eax, [ebp - 0x836]
push eax
call fcn.00530d50
mov eax, dword [edi + 0xae4]
add esp, 0x18
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
mov dword [ebp - 0xa78], eax
mov dword [ebp - 0xa6c], esi
push esi
push esi
push 0x1004
push dword [edi + 0x22b4]
call ebx
test eax, eax
jle 0x405ddd
mov edi, edi
mov eax, dword [0x58d59c]
mov dword [ebp - 0x218], eax
mov eax, dword [0x58d5a0]
push 0x200
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00530d50
add esp, 0xc
lea eax, [ebp - 0x838]
lea ecx, [edi + 0x2294]
push 0x104
push eax
push 1
push esi
call fcn.0041f15d
test esi, esi
js 0x4059a6
push 0
push 0
push 0x1004
push dword [edi + 0x22b4]
call ebx
cmp esi, eax
jge 0x4059a6
lea ecx, [edi + 0x2294]
call fcn.0041fe83
push 0
push 0
push 0x1200
push dword [eax + 0x20]
call ebx
test eax, eax
jle 0x4059a6
push esi
lea ecx, [edi + 0x2294]
call fcn.0041f002
test eax, eax
je 0x4059a6
cmp dword [eax + 0x3c], 0
je 0x405dbd
push 0
push 0
push 0x1004
push dword [edi + 0x22b4]
mov dword [ebp - 0xa5c], 0
call ebx
test eax, eax
jle 0x405dbd
xor ebx, ebx
mov dword [ebp - 0xa60], ebx
mov ecx, dword [edi + 0x24bc]
mov eax, 0x2aaaaaab
mov esi, dword [edi + 0x24b8]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0xa5c]
jbe 0x405f5d
cmp dword [ebx + esi + 0x14], 8
lea eax, [ebx + esi]
jb 0x405a08
mov eax, dword [eax]
lea ecx, [ebp - 0x838]
mov edi, edi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x405a36
test dx, dx
je 0x405a32
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x405a36
add ecx, 4
add eax, 4
test dx, dx
jne 0x405a10
xor eax, eax
jmp 0x405a3b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x405d7e
mov ecx, dword [edi + 0x24b0]
mov eax, 0x2aaaaaab
mov esi, dword [edi + 0x24ac]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0xa5c]
jbe 0x405f5d
cmp dword [ebx + esi + 0x14], 8
lea edx, [ebx + esi]
jb 0x405a7a
mov edx, dword [edx]
xor eax, eax
mov dword [ebp - 0xa44], 7
mov dword [ebp - 0xa48], 0
mov word [ebp - 0xa58], ax
cmp word [edx], ax
jne 0x405aa0
xor ecx, ecx
jmp 0x405ab4
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405aa5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xa58]
call fcn.00406a30
lea esi, [edi + 0x24c4]
mov dword [ebp - 4], 0
mov ebx, dword [esi + 4]
lea eax, [ebp - 0xa58]
cmp eax, ebx
jae 0x405b7e
mov eax, dword [esi]
lea ecx, [ebp - 0xa58]
cmp eax, ecx
ja 0x405b7e
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ebx, dword [esi + 8]
jne 0x405b0f
push ecx
mov ecx, esi
call fcn.004067e0
mov eax, dword [esi]
lea ecx, [edi + edi*2]
mov ebx, dword [esi + 4]
lea edi, [eax + ecx*8]
test ebx, ebx
je 0x405c11
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
cmp dword [edi + 0x14], 8
jae 0x405b50
mov eax, dword [edi + 0x10]
inc eax
je 0x405b5a
add eax, eax
push eax
push edi
push ebx
call fcn.0052e350
add esp, 0xc
jmp 0x405b5a
mov eax, dword [edi]
mov dword [ebx], eax
mov dword [edi], 0
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
jmp 0x405c11
cmp ebx, dword [esi + 8]
jne 0x405b8b
push ecx
mov ecx, esi
call fcn.004067e0
mov edi, dword [esi + 4]
test edi, edi
je 0x405c11
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp dword [ebp - 0xa44], 8
jae 0x405bd0
mov eax, dword [ebp - 0xa48]
inc eax
je 0x405be2
add eax, eax
push eax
lea eax, [ebp - 0xa58]
push eax
push edi
call fcn.0052e350
add esp, 0xc
jmp 0x405be2
mov eax, dword [ebp - 0xa58]
mov dword [edi], eax
mov dword [ebp - 0xa58], 0
mov eax, dword [ebp - 0xa48]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0xa44]
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [ebp - 0xa44], 7
mov dword [ebp - 0xa48], 0
mov word [ebp - 0xa58], ax
add dword [esi + 4], 0x18
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xa44], 8
jb 0x405c33
push dword [ebp - 0xa58]
call fcn.0040f8c3
add esp, 4
mov edi, dword [ebp - 0xa64]
mov eax, 0x2aaaaaab
mov ecx, dword [edi + 0x24b0]
mov esi, dword [edi + 0x24ac]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0xa5c]
jbe 0x405f5d
mov eax, dword [ebp - 0xa60]
add eax, esi
cmp dword [eax + 0x14], 8
jb 0x405c74
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0052f62b
cmp dword [ebp - 0xa78], 0
mov ecx, str.__qb
mov eax, str.__qn
cmovne eax, ecx
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0052f62b
push 0x3c
lea eax, [ebp - 0xab4]
push 0
push eax
call fcn.00530d50
lea eax, [ebp - 0x428]
mov dword [ebp - 0xab4], 0x3c
mov dword [ebp - 0xaa4], eax
add esp, 0x24
lea eax, [ebp - 0x218]
mov dword [ebp - 0xaa8], str.open
mov dword [ebp - 0xaa0], eax
lea eax, [ebp - 0xab4]
mov dword [ebp - 0xa98], 5
push eax
mov dword [ebp - 0xab0], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push dword [ebp - 0xa7c]
call ebx
test eax, eax
je 0x405d78
push 1
push 0
push 0
push 0
lea eax, [ebp - 0xad0]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x405d53
lea eax, [ebp - 0xad0]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xad0]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push dword [ebp - 0xa7c]
call ebx
cmp eax, 0xffffffff
je 0x405d78
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push dword [ebp - 0xa7c]
call ebx
test eax, eax
jne 0x405d20
mov ebx, dword [ebp - 0xa60]
mov esi, dword [ebp - 0xa5c]
add ebx, 0x18
push 0
push 0
push 0x1004
push dword [edi + 0x22b4]
inc esi
mov dword [ebp - 0xa60], ebx
mov dword [ebp - 0xa5c], esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, eax
jl 0x4059d1
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebp - 0xa6c]
push 0
push 0
push 0x1004
push dword [edi + 0x22b4]
inc esi
mov dword [ebp - 0xa6c], esi
call ebx
cmp esi, eax
jl 0x405910
xor eax, eax
mov dword [ebp - 0xa68], 0
push 0x206
push eax
mov word [ebp - 0xa40], ax
lea eax, [ebp - 0xa3e]
push eax
mov dword [ebp - 0xa70], 1
call fcn.00530d50
xor eax, eax
mov dword [ebp - 0xa74], 0x104
push 0x206
push eax
mov word [ebp - 0x630], ax
lea eax, [ebp - 0x62e]
push eax
call fcn.00530d50
mov ecx, dword [edi + 0x24c8]
mov eax, 0x2aaaaaab
sub ecx, dword [edi + 0x24c4]
add esp, 0x18
imul ecx
xor esi, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x405f3f
xor edi, edi
jmp 0x405e60
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea eax, [ebp - 0x630]
push 0x104
push eax
call fcn.0052f5cf
mov ecx, dword [ebp - 0xa64]
mov eax, 0x2aaaaaab
add esp, 0xc
mov ebx, dword [ecx + 0x24c4]
mov ecx, dword [ecx + 0x24c8]
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, esi
jbe 0x405f5d
cmp dword [edi + ebx + 0x14], 8
lea eax, [edi + ebx]
jb 0x405eb2
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x630]
push 0x104
push eax
call fcn.0052f62b
add esp, 0xc
lea eax, [ebp - 0xa68]
push eax
lea eax, [ebp - 0x630]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x405f10
lea eax, [ebp - 0xa74]
push eax
lea eax, [ebp - 0xa40]
push eax
lea eax, [ebp - 0xa70]
push eax
push 0
push str.DisplayName
push dword [ebp - 0xa68]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x405f67
mov eax, dword [ebp - 0xa64]
inc esi
add edi, 0x18
mov ecx, dword [eax + 0x24c8]
sub ecx, dword [eax + 0x24c4]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x405e60
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052e288
mov esp, ebp
pop ebp
ret
push str.invalid_vector_T__subscript
call fcn.00549111
or eax, 0xffffffff
jmp 0x405f41