Function at 0x4042d0
Capabilities:
Get common file path
Get installed programs
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5495c6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x16d4
call fcn.00532b40
mov eax, dword [0x5ad040]
xor eax, esp
mov dword [esp + 0x16d0], eax
push ebx
push esi
push edi
mov eax, dword [0x5ad040]
xor eax, esp
push eax
lea eax, [esp + 0x16e8]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.004101c2
lea eax, [esi + 0xa8]
push ecx
mov ecx, eax
mov dword [esp + 0x1c], eax
call fcn.004072f0
test eax, eax
jns 0x404340
mov eax, 1
jmp 0x404bee
push 3
push 0
push 0
push 0
push 0
push 0x5b3b98
mov ecx, esi
call fcn.00419b25
xor eax, eax
push 0x206
push eax
mov word [esp + 0x294], ax
lea eax, [esp + 0x296]
push eax
call fcn.00530d50
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 0x298]
add esp, 0xc
push eax
push 1
push 0
push 0x1a
push 0
call edi
push str.HNCUserCommon110_themeInfo.xml
lea eax, [esp + 0x290]
push 0x104
push eax
call fcn.0052f62b
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4043d0
lea eax, [esp + 0x28c]
push eax
call fcn.0052f697
add esp, 4
push 0xfdfdfd
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esi + 0x98]
call fcn.00411130
call fcn.00412b6d
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x404403
push 0x80004005
call fcn.00402af0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
push 0x6b
mov dword [esp + 0x16f4], 0
call fcn.0041a31c
test eax, eax
je 0x404437
push 0x6b
push eax
lea ecx, [esp + 0x24]
call fcn.004024b0
mov ebx, dword [esp + 0x1c]
push ebx
lea ecx, [esi + 0x21ac]
call fcn.00419b61
push 0x6c
call fcn.0041a31c
test eax, eax
je 0x40445e
push 0x6c
push eax
lea ecx, [esp + 0x24]
call fcn.004024b0
mov ebx, dword [esp + 0x1c]
push ebx
lea ecx, [esi + 0x2220]
call fcn.00419b61
push dword [esi + 0xa4]
push 1
push 0x80
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esi + 0xa4]
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0x80
push dword [esi + 0x20]
call eax
mov ecx, esi
mov word [esi + 0x21aa], 0
mov byte [esi + 0x21a9], 0
call fcn.00405440
push dword [esi + 0x2a8]
lea ecx, [esi + 0x2438]
call fcn.004197e0
cmp dword [esi + 0x21a0], 1
jne 0x404622
xor eax, eax
push 0x206
push eax
mov word [esp + 0x294], ax
lea eax, [esp + 0x296]
push eax
call fcn.00530d50
add esp, 0xc
xor eax, eax
mov word [esp + 0x8a4], ax
push 0x206
push eax
lea eax, [esp + 0x8ae]
push eax
call fcn.00530d50
add esp, 0xc
xor eax, eax
mov word [esp + 0x69c], ax
push 0x206
push eax
lea eax, [esp + 0x6a6]
push eax
call fcn.00530d50
add esp, 0xc
lea eax, [esp + 0x28c]
push eax
push 1
push 0
push 0x1a
push 0
call edi
push str.HNCUserWinHDB110EC.ini
lea eax, [esp + 0x290]
push 0x104
push eax
call fcn.0052f62b
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [esp + 0x48]
add esp, 0xc
push eax
lea eax, [esp + 0x290]
push eax
call esi
cmp eax, 0xffffffff
je 0x404582
lea eax, [esp + 0x28c]
push eax
call fcn.0052f697
add esp, 4
lea eax, [esp + 0x8a4]
push eax
push 1
push 0
push 0x25
push 0
call edi
push str.WinHDB110.ini
lea eax, [esp + 0x8a8]
push 0x104
push eax
call fcn.0052f62b
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x8a8]
push eax
call esi
cmp eax, 0xffffffff
je 0x4045d2
lea eax, [esp + 0x8a4]
push eax
call fcn.0052f697
add esp, 4
lea eax, [esp + 0x69c]
push eax
push 1
push 0
push 0x25
push 0
call edi
push 0x58d0fc
lea eax, [esp + 0x6a0]
push 0x104
push eax
call fcn.0052f62b
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x6a0]
push eax
call esi
cmp eax, 0xffffffff
je 0x404622
lea eax, [esp + 0x69c]
push eax
call fcn.0052f697
add esp, 4
mov ecx, 0x1a
lea edi, [esp + 0xebc]
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea eax, [esp + 0xf26]
rep movsd dword es:[edi], dword [esi]
push 0x19e
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.00530d50
add esp, 0xc
mov dword [esp + 0x24], 1
xor eax, eax
mov word [esp + 0x10c4], ax
push 0x206
push eax
lea eax, [esp + 0x10ce]
push eax
call fcn.00530d50
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x14e0]
add esp, 0xc
mov dword [esp + 0x2c], 0x104
push eax
call fcn.004081f0
test eax, eax
jne 0x40478c
lea ecx, [esp + 0x14d4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4046a1
sub ecx, edx
sar ecx, 1
cmp ecx, 0x25
jbe 0x40478c
lea eax, [esp + 0x14d4]
push eax
lea eax, [esp + 0xec0]
push 0x104
push eax
call fcn.0052f62b
add esp, 0xc
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0xec0]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40478c
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x10c8]
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push str.DisplayName
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40478c
mov esi, dword [esp + 0x14]
mov ecx, esi
cmp dword [esi + 0x219c], 1
jne 0x404769
call fcn.00405530
mov ecx, esi
test eax, eax
jne 0x404757
call fcn.00404da0
mov ecx, esi
call fcn.00405f80
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x17c]
mov edi, 1
jmp 0x404bc7
mov eax, dword [esi]
call dword [eax + 0x180]
mov edi, 1
jmp 0x404bc7
mov dword [esi + 0xae4], 3
call fcn.00404da0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x17c]
mov edi, 1
jmp 0x404bc7
mov edi, dword [esp + 0x14]
mov eax, 0x2aaaaaab
mov ecx, dword [edi + 0x1b4]
sub ecx, dword [edi + 0x1b0]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4047d1
mov ecx, edi
call fcn.00404da0
mov ecx, edi
call fcn.00405f80
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x17c]
mov edi, 1
jmp 0x404bc7
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x20
push 0
push 0x1036
push dword [edi + 0x22b4]
call esi
push 0
push 1
push 0x100b
push dword [edi + 0x22b4]
call esi
push 0xffffffffffffffff
push 0x16
push 2
push 0x58d1a4
push 0
lea ecx, [edi + 0x2294]
call fcn.0041f2b5
push 0xffffffffffffffff
push 0x11d
push 0
push 0x58d1a8
push 1
lea ecx, [edi + 0x2294]
call fcn.0041f2b5
xor eax, eax
push 0x206
push eax
mov word [esp + 0x12d4], ax
lea eax, [esp + 0x12d6]
push eax
call fcn.00530d50
add esp, 0xc
xor eax, eax
mov word [esp + 0x494], ax
push 0x206
push eax
lea eax, [esp + 0x49e]
push eax
call fcn.00530d50
add esp, 0xc
mov dword [esp + 0x20], 0
xor eax, eax
mov word [esp + 0xaac], ax
push 0x206
push eax
lea eax, [esp + 0xab6]
push eax
call fcn.00530d50
add esp, 0xc
xor eax, eax
mov word [esp + 0xcb4], ax
push 0x206
push eax
lea eax, [esp + 0xcbe]
push eax
call fcn.00530d50
add esp, 0xc
mov dword [esp + 0x30], 0xffffffff
mov eax, esi
push 0
push 0
push 0x1004
push dword [edi + 0x22b4]
call eax
push 1
mov ecx, edi
call fcn.00417c70
lea ecx, [edi + 0x2294]
call fcn.0040ebc0
call fcn.00412b6d
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4048ff
push 0x80004005
call fcn.00402af0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x34], esi
mov byte [esp + 0x16f0], 1
mov eax, 0x2aaaaaab
mov ecx, dword [edi + 0x1b4]
sub ecx, dword [edi + 0x1b0]
imul ecx
mov dword [esp + 0x18], 0
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x404b15
mov dword [esp + 0x14], 0
lea ebx, [ebx]
mov ecx, dword [edi + 0x1c0]
mov eax, 0x2aaaaaab
sub ecx, dword [edi + 0x1bc]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [esp + 0x18]
jbe 0x404b5c
mov eax, dword [edi + 0x1bc]
add eax, dword [esp + 0x14]
cmp dword [eax + 0x14], 8
jb 0x404989
mov eax, dword [eax]
push eax
lea eax, [esp + 0x12d0]
push 0x104
push eax
call fcn.0052f5cf
mov ecx, dword [edi + 0x1b4]
mov eax, 0x2aaaaaab
sub ecx, dword [edi + 0x1b0]
add esp, 0xc
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [esp + 0x18]
jbe 0x404b5c
mov eax, dword [edi + 0x1b0]
add eax, dword [esp + 0x14]
cmp dword [eax + 0x14], 8
jb 0x4049d8
mov eax, dword [eax]
push eax
lea eax, [esp + 0x498]
push 0x104
push eax
call fcn.0052f5cf
add esp, 0xc
lea eax, [esp + 0x494]
push str._unchangeable_
push eax
call fcn.0052f6c5
lea ecx, [esp + 0x49c]
add esp, 8
cmp ecx, eax
jne 0x404a28
lea eax, [esp + 0x4b0]
push eax
mov eax, ecx
push 0x104
push eax
call fcn.0052f5cf
add esp, 0xc
jmp 0x404a4c
lea eax, [esp + 0x494]
push str._disable_
push eax
call fcn.0052f6c5
lea ecx, [esp + 0x49c]
add esp, 8
cmp ecx, eax
je 0x404ae5
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea eax, [esp + 0xab0]
push 0x104
push eax
call fcn.0052f5cf
add esp, 0xc
lea eax, [esp + 0x494]
push eax
lea eax, [esp + 0xab0]
push 0x104
push eax
call fcn.0052f62b
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 0x20019
push 0
lea eax, [esp + 0xab8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404ae5
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0xcb8]
push eax
push 0
push 0
push str.DisplayName
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404ae5
lea ecx, [esp + 0xcb4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404ad4
sub ecx, edx
sar ecx, 1
jne 0x404b53
mov ecx, dword [edi + 0x1b4]
mov eax, 0x2aaaaaab
sub ecx, dword [edi + 0x1b0]
inc dword [esp + 0x18]
add dword [esp + 0x14], 0x18
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jl 0x404950
mov ecx, dword [edi + 0x24b0]
mov eax, 0x2aaaaaab
sub ecx, dword [edi + 0x24ac]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x404b66
mov ecx, edi
call fcn.00404da0
mov ecx, edi
call fcn.00405f80
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x17c]
mov edi, 1
jmp 0x404ba5
mov byte [edi + 0x21aa], 1
jmp 0x404b15
push str.invalid_vector_T__subscript
call fcn.00549111
cmp dword [edi + 0xafc], 1
jne 0x404ba3
mov ecx, edi
call fcn.00405840
test eax, eax
jne 0x404b92
mov ecx, edi
call fcn.00404da0
mov ecx, edi
call fcn.00405f80
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x17c]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x180]
mov edi, 1
jmp 0x404ba5
xor edi, edi
add esi, 0xfffffff0
mov byte [esp + 0x16f0], 0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404bc7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov dword [esp + 0x16f0], 0xffffffff
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404bec
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [esp + 0x16e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x16d0]
xor ecx, esp
call fcn.0052e288
mov esp, ebp
pop ebp
ret