Function at 0x40a9d0
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x52a7bd
mov eax, dword fs:[0]
push eax
mov eax, 0x1070
call fcn.0051a950
mov eax, dword [0x56b1dc]
xor eax, esp
mov dword [esp + 0x106c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56b1dc]
xor eax, esp
push eax
lea eax, [esp + 0x1084]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1094]
neg eax
sbb eax, eax
add eax, 0x80000002
mov ebx, eax
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x48], ebx
call dword [section..rdata]
test eax, eax
jne 0x40aec0
push 0x800
xor esi, esi
lea ecx, [esp + 0x84]
push esi
mov edi, 0x400
push ecx
mov dword [esp + 0x20], edi
call fcn.00508d80
mov ecx, dword [esp + 0x24]
add esp, 0xc
push esi
push esi
push esi
push esi
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x94]
push eax
push esi
push ecx
call dword [0x531008]
test eax, eax
jne 0x40aeb5
lea edx, [esp + 0x3c]
add esi, 1
push edx
lea ecx, [esp + 0x84]
mov dword [esp + 0x34], esi
call fcn.00402550
lea ecx, [esp + 0x1c]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push ecx
mov ecx, eax
mov dword [esp + 0x1094], 0
call fcn.0040d2f0
add esp, 8
mov byte [esp + 0x108c], 2
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40aaf2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push 0x20019
push 0
push edx
push ebx
call dword [section..rdata]
test eax, eax
jne 0x40ae41
mov edx, dword [0x5759e8]
mov eax, dword [edx + 0xc]
mov ecx, 0x5759e8
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push 0x800
lea ecx, [esp + 0x884]
push 0
mov byte [esp + 0x1094], 3
push ecx
mov dword [esp + 0x4c], edi
call fcn.00508d80
mov ecx, dword [esp + 0x30]
add esp, 0xc
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x884]
push eax
push 0
push 0
push str.DisplayName
push ecx
call dword [0x531040]
test eax, eax
jne 0x40abbb
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x884]
call fcn.00402550
lea edi, [esp + 0x20]
mov byte [esp + 0x108c], 4
call fcn.00401dd0
mov byte [esp + 0x108c], 3
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40abbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [0x531004]
mov ecx, dword [esp + 0x28]
call fcn.0040e420
mov ebp, eax
test ebp, ebp
je 0x40ae19
xor eax, eax
test ebp, ebp
setne al
test eax, eax
je 0x40aeea
mov esi, dword [ebp]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40ac12
cmp eax, dword [esi]
jne 0x40ac12
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40ac4d
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x40aef4
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.004ffedf
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x44], edi
lea ecx, [esp + 0x48]
lea edi, [ebp + 4]
push ecx
mov byte [esp + 0x1090], 5
call fcn.0040a070
mov edx, dword [esp + 0x28]
mov byte [esp + 0x108c], 6
mov eax, dword [ebp + 0x28]
mov ecx, dword [edx + 0x14]
cmp eax, ecx
je 0x40aca3
test eax, eax
je 0x40ac9d
mov edx, eax
mov eax, dword [eax + 0x24]
cmp eax, ecx
je 0x40ac9f
lea esp, [esp]
mov edx, eax
mov eax, dword [edx + 0x24]
cmp eax, ecx
jne 0x40ac90
mov ebp, edx
jmp 0x40acc6
xor edx, edx
mov ebp, edx
jmp 0x40acc6
mov eax, dword [ebp + 0x2c]
cmp eax, ecx
mov edx, ebp
je 0x40acc2
lea esp, [esp]
cmp edx, dword [eax + 0x28]
jne 0x40acbe
mov edx, eax
mov eax, dword [eax + 0x2c]
cmp eax, ecx
jne 0x40acb0
cmp eax, ecx
jne 0x40acc4
xor eax, eax
mov ebp, eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x48]
call fcn.004055e0
test al, al
je 0x40ad81
push 1
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x7c], esp
push ecx
lea edi, [esp + 0x68]
call fcn.0040a070
lea ebx, [esp + 0x80]
call fcn.0040e4f0
add esp, 0x1c
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x108c], 7
push eax
mov eax, dword [esp + 0x4c]
add ecx, 0x60
call fcn.0040e320
mov byte [esp + 0x108c], 6
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ad41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ad61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ad81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x108c], 3
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ada9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40adc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ade9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ae09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
jne 0x40abd9
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov byte [esp + 0x108c], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ae41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x108c], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ae6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x800
lea ecx, [esp + 0x84]
push 0
mov edi, 0x400
push ecx
mov dword [esp + 0x20], edi
call fcn.00508d80
mov ecx, dword [esp + 0x24]
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x94]
push eax
push esi
push ecx
call dword [0x531008]
test eax, eax
je 0x40aa93
mov edx, dword [esp + 0x18]
push edx
call dword [0x531004]
mov ecx, dword [esp + 0x1084]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x106c]
xor ecx, esp
call fcn.004ff939
add esp, 0x107c
ret 4
push 0x80004005
call fcn.004026a0
call fcn.004020a0
int3