Function at 0x40b050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557c73
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x5adf10]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x27c], edi
xor ebx, ebx
push 0x18c
lea eax, [ebp - 0x26c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.005344b0
add esp, 0xc
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x1e8], 0x34
mov dword [ebp - 0x274], ebx
call fcn.00405fd0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x270]
call fcn.00405be0
mov edx, dword [ebp - 0x270]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40b0fe
push ebx
lea ecx, [ebp - 0x270]
call fcn.004061b0
mov edx, dword [ebp - 0x270]
lea ecx, [ebp - 0x274]
push ecx
push 0x20019
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0xb4
push ebx
cmp eax, ebx
je 0x40b17a
lea edx, [ebp - 0xdc]
push edx
mov dword [ebp - 0x1e4], 1
call fcn.005344b0
add esp, 0xc
mov esi, str.IDS_NPSHARE_CONTROL_NOT_INST
mov ecx, str.CheckRes
call fcn.00419bb0
lea edx, [ebp - 0xdc]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40b151
xor eax, eax
lea ecx, [ecx]
mov cl, byte [ebp + eax - 0xdc]
mov byte [ebp + eax - 0x1e0], cl
inc eax
cmp cl, bl
jne 0x40b160
xor esi, esi
jmp 0x40b28c
lea eax, [ebp - 0xdc]
push eax
mov dword [ebp - 0x1e4], ebx
call fcn.005344b0
add esp, 0xc
mov esi, str.IDS_NPSHARE_CONTROL_INST
mov ecx, str.CheckRes
call fcn.00419bb0
lea edx, [ebp - 0xdc]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40b1a6
xor eax, eax
jmp 0x40b1c0
mov cl, byte [ebp + eax - 0xdc]
mov byte [ebp + eax - 0x1e0], cl
inc eax
cmp cl, bl
jne 0x40b1c0
xor eax, eax
lea ecx, [ebp - 0x280]
push ecx
mov ecx, dword [ebp - 0x274]
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
lea eax, [ebp - 0x278]
push eax
push ebx
push str.DisplayVersion
push ecx
mov dword [ebp - 0x278], ebx
mov byte [ebp - 0x24], bl
mov dword [ebp - 0x280], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40b287
lea edi, [ebp - 0x1e0]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x40b228
mov edx, dword [0x586f68]
lea eax, [ebp - 0x24]
mov dword [edi], edx
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40b240
lea edi, [ebp - 0x1e0]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x40b250
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x1e0]
dec edi
nop
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x40b270
mov ax, word [0x587b88]
mov word [edi], ax
mov edi, dword [ebp - 0x27c]
mov esi, 1
cmp edi, ebx
je 0x40b2aa
lea eax, [ebp - 0x1e0]
mov edx, edi
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40b2a0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x270]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b2cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b2f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052d75c
mov esp, ebp
pop ebp
ret 4