Function at 0x41e060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9cb5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push esi
push edi
mov ecx, 0x510337
mov dword [ebp - 4], 0
call fcn.004b532d
mov ebx, SysReAllocString
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
cmovne ebx, ecx
call fcn.00405240
mov ecx, eax
test ecx, ecx
je 0x41e2b9
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
call fcn.00405240
mov ecx, eax
test ecx, ecx
je 0x41e2c3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00404300
test al, al
jne 0x41e103
push 0x34
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x10]
call fcn.00406280
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
push dword [eax - 0xc]
push eax
call fcn.004040d0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push 0x20119
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41e1c2
lea eax, [ebp - 0x14]
mov ebx, SysReAllocString
push eax
push 0x20119
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41e1c2
add edi, 0xfffffff0
push edi
call fcn.004043f0
mov ebx, dword [ebp + 8]
lea edx, [esi - 0x10]
add eax, 0x10
mov byte [ebp - 4], 1
or esi, 0xffffffff
add esp, 4
mov dword [ebx], eax
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41e182
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41e19a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41e2a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41e2a4
push 0x208
lea eax, [ebp - 0x228]
mov dword [ebp - 0x20], 1
push 0
push eax
mov dword [ebp - 0x1c], 0x104
call fcn.004b8400
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.InstallLocation
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e234
lea ecx, [ebp - 0x228]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e212
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00406280
mov edi, dword [ebp - 0x18]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 0xfffffff0
push edi
call fcn.004043f0
mov ebx, dword [ebp + 8]
lea edx, [esi - 0x10]
add eax, 0x10
mov byte [ebp - 4], 1
or esi, 0xffffffff
add esp, 4
mov dword [ebx], eax
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41e26d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41e285
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x41e2a4
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004042d0
push 0x80004005
call fcn.004042d0
int3