Function at 0x40c2c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e616
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x5d7f50]
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 eax, dword [ebp + 8]
mov edi, ecx
push 0x18c
xor ebx, ebx
lea ecx, [ebp - 0x26c]
push ebx
push ecx
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x278], edi
call fcn.00543bb0
add esp, 0xc
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x1e8], 0x34
mov dword [ebp - 0x27c], ebx
call fcn.00402770
mov dword [ebp - 4], ebx
mov eax, dword [0x5e35b0]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x270]
call fcn.004078f0
mov edx, dword [ebp - 0x270]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40c375
push ebx
lea ecx, [ebp - 0x270]
call fcn.00402950
mov edx, dword [ebp - 0x270]
lea eax, [ebp - 0x27c]
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 0x40c3fa
lea ecx, [ebp - 0xdc]
push ecx
mov dword [ebp - 0x1e4], 1
call fcn.00543bb0
add esp, 0xc
mov esi, str.IDS_NPSHARE_CONTROL_NOT_INST
mov ecx, str.CheckRes
call fcn.00425600
lea edx, [ebp - 0xdc]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40c3c8
xor eax, eax
jmp 0x40c3e0
mov cl, byte [ebp + eax - 0xdc]
mov byte [ebp + eax - 0x1e0], cl
inc eax
cmp cl, bl
jne 0x40c3e0
xor esi, esi
jmp 0x40c585
lea edx, [ebp - 0xdc]
push edx
mov dword [ebp - 0x1e4], ebx
call fcn.00543bb0
add esp, 0xc
mov esi, str.IDS_NPSHARE_CONTROL_INST
mov ecx, str.CheckRes
call fcn.00425600
lea edx, [ebp - 0xdc]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40c426
xor eax, eax
jmp 0x40c440
mov cl, byte [ebp + eax - 0xdc]
mov byte [ebp + eax - 0x1e0], cl
inc eax
cmp cl, bl
jne 0x40c440
xor eax, eax
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 - 0x288]
push eax
mov eax, dword [ebp - 0x27c]
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x280]
push edx
push ebx
push str.DisplayVersion
push eax
mov dword [ebp - 0x280], ebx
mov byte [ebp - 0x24], bl
mov dword [ebp - 0x288], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40c580
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x274]
call fcn.00402770
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x274]
push str.10.0.0.56
push edx
call fcn.0053cf63
add esp, 8
cmp eax, ebx
sete al
cmp al, bl
je 0x40c4f3
push ecx
mov ecx, esp
mov dword [ebp - 0x278], esp
push str.B5647B92_E7FF_4595_9213_A1732D73DD24
call fcn.00402770
push ebx
call fcn.0040d2e0
add esp, 8
jmp 0x40c55b
lea edi, [ebp - 0x1e0]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x40c500
mov eax, dword [0x5aea1c]
mov dword [edi], eax
lea eax, [ebp - 0x24]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40c514
lea edi, [ebp - 0x1e0]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x40c524
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
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x40c543
mov cx, word [0x5af6ac]
mov word [edi], cx
mov edi, dword [ebp - 0x278]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c580
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, 1
mov eax, dword [ebp - 0x284]
cmp eax, ebx
je 0x40c59e
lea ecx, [ebp - 0x26c]
push ecx
call fcn.0041f520
add esp, 4
cmp edi, ebx
je 0x40c5ba
lea eax, [ebp - 0x1e0]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40c5b0
mov dword [ebp - 4], 0xffffffff
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 0x40c5e3
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.0053c99c
mov esp, ebp
pop ebp
ret 4