Function at 0x40b320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557c33
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x5adf10]
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 eax, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x278], edi
xor ebx, ebx
push 0x18c
lea ecx, [ebp - 0x268]
push ebx
push ecx
mov dword [ebp - 4], ebx
call fcn.005344b0
add esp, 0xc
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x1e4], 0x34
mov dword [ebp - 0x274], ebx
call fcn.00405fd0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x26c]
call fcn.00405be0
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x270], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x40b3e3
lea edx, [ebp - 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov edx, dword [ebp - 0x26c]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40b40a
push ebx
lea ecx, [ebp - 0x26c]
call fcn.004061b0
mov edx, dword [ebp - 0x26c]
lea eax, [ebp - 0x274]
push eax
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 0x40b48a
lea ecx, [ebp - 0xd8]
push ecx
mov dword [ebp - 0x1e0], 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 - 0xd8]
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40b460
xor eax, eax
lea esp, [esp]
mov cl, byte [ebp + eax - 0xd8]
mov byte [ebp + eax - 0x1dc], cl
inc eax
cmp cl, bl
jne 0x40b470
xor esi, esi
jmp 0x40b59d
lea edx, [ebp - 0xd8]
push edx
mov dword [ebp - 0x1e0], ebx
call fcn.005344b0
add esp, 0xc
mov esi, str.IDS_NPSHARE_CONTROL_INST
mov ecx, str.CheckRes
call fcn.00419bb0
lea edx, [ebp - 0xd8]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40b4b6
xor eax, eax
jmp 0x40b4d0
mov cl, byte [ebp + eax - 0xd8]
mov byte [ebp + eax - 0x1dc], cl
inc eax
cmp cl, bl
jne 0x40b4d0
xor eax, eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
lea eax, [ebp - 0x270]
push eax
mov eax, dword [ebp - 0x274]
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x280]
push edx
push ebx
push str.DisplayVersion
push eax
mov dword [ebp - 0x280], ebx
mov byte [ebp - 0x20], bl
mov dword [ebp - 0x270], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40b598
lea edi, [ebp - 0x1dc]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x40b538
mov ecx, dword [0x586f68]
lea eax, [ebp - 0x20]
mov dword [edi], ecx
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40b550
lea edi, [ebp - 0x1dc]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x40b560
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 - 0x1dc]
dec edi
nop
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x40b580
mov dx, word [0x587b88]
mov word [edi], dx
mov edi, dword [ebp - 0x278]
mov esi, 1
mov eax, dword [ebp - 0x27c]
cmp eax, ebx
je 0x40b5b6
lea ecx, [ebp - 0x268]
push ecx
call fcn.00417780
add esp, 4
cmp edi, ebx
je 0x40b5d0
lea eax, [ebp - 0x1dc]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40b5c6
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b5f5
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 + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b61b
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 - 0x10]
xor ecx, ebp
call fcn.0052d75c
mov esp, ebp
pop ebp
ret 8