Function at 0x41f550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c571
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x60c9c8]
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 esi, dword [ebp + 0x10]
xor edi, edi
push 0x206
lea edx, [ebp - 0x216]
mov dword [ebp - 0x21c], edi
xor ecx, ecx
push edi
push edx
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], edi
mov word [ebp - 0x218], cx
call fcn.00531fb0
add esp, 0xc
push 0x55f1ce
lea ecx, [ebp - 0x224]
call fcn.0040dc70
push esi
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], edi
call fcn.00405b90
mov ebx, 1
push 0x55f1ce
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], bl
call fcn.0040dc70
mov eax, dword [ebp - 0x21c]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
lea ecx, [ebp - 0x220]
push 0x55d250
push ecx
mov byte [ebp - 4], 2
call fcn.004047a0
mov eax, dword [ebp - 0x220]
add esp, 0x10
lea edx, [ebp - 0x228]
push edx
push ebx
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41f70b
mov dword [ebp - 0x234], 0x208
mov dword [ebp - 0x230], edi
cmp dword [ebp + 0xc], edi
je 0x41f66d
lea ecx, [ebp - 0x234]
push ecx
mov ecx, dword [ebp - 0x228]
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x230]
push eax
push edi
push str.Path
push ecx
jmp 0x41f68f
lea edx, [ebp - 0x234]
push edx
mov edx, dword [ebp - 0x228]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
push ecx
push edi
push 0x55c8ac
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jne 0x41f70b
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41f6b1
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x224]
call fcn.00403290
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
push eax
call fcn.00402f60
mov esi, dword [ebp - 0x22c]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41f736
mov esi, dword [ebp - 0x22c]
push 0x55f1ce
mov ecx, esi
call fcn.0040dc70
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f742
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f768
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f791
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.00531f97
mov esp, ebp
pop ebp
ret 0xc