Function at 0x41fc10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x48ec40
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4afa68]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
call fcn.004384a4
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41fc72
push 0x80004005
call fcn.00405cc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
push 0x85
mov dword [ebp - 4], ebx
call fcn.00439f5b
cmp eax, ebx
je 0x41fca0
push 0x85
push eax
lea ecx, [ebp - 0x20]
call fcn.00402db0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x14]
call fcn.004031c0
mov byte [ebp - 4], 1
cmp esi, ebx
jne 0x41fcbf
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx - 0xc]
push eax
push ecx
jmp 0x41fccf
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41fcc4
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.00402b80
push 0x207
lea ecx, [ebp + 1]
push ebx
push ecx
mov byte [ebp], bl
call fcn.00457ee0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0x208
mov dword [ebp - 0x2c], ebx
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
add esp, 0xc
or ecx, eax
jge 0x41fd18
push ebx
lea ecx, [ebp - 0x14]
call fcn.00403000
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x41fd46
push 0x4a74e4
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], eax
call fcn.004581eb
lea edx, [ebp - 0x30]
push edx
mov edx, dword [ebp - 0x18]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push ebx
push str.DisplayVersion
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x41fd90
push 0x4a74e4
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], esi
call fcn.004581eb
mov dword [ebp - 4], 1
mov eax, 0x41fd89
ret
cmp edi, ebx
je 0x41fdaa
lea eax, [ebp]
mov edx, edi
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x41fda0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x41fdbf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 0x18], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41fde4
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 - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fe0a
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 + 0x208]
xor ecx, ebp
call fcn.004512da
add ebp, 0x20c
mov esp, ebp
pop ebp
ret