Function at 0x41e670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x48c8c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4ada68]
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.00436fa8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41e6d2
push 0x80004005
call fcn.00405de0
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.00438a4d
cmp eax, ebx
je 0x41e700
push 0x85
push eax
lea ecx, [ebp - 0x20]
call fcn.00402e70
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x14]
call fcn.00403280
mov byte [ebp - 4], 1
cmp esi, ebx
jne 0x41e71f
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx - 0xc]
push eax
push ecx
jmp 0x41e72f
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41e724
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.00402c40
push 0x207
lea ecx, [ebp + 1]
push ebx
push ecx
mov byte [ebp], bl
call fcn.00456ba0
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 0x41e778
push ebx
lea ecx, [ebp - 0x14]
call fcn.004030c0
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 0x41e7a6
push 0x4a512c
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], eax
call fcn.00456eab
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 0x41e7f0
push 0x4a512c
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], esi
call fcn.00456eab
mov dword [ebp - 4], 1
mov eax, 0x41e7e9
ret
cmp edi, ebx
je 0x41e80a
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 0x41e800
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x41e81f
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 0x41e844
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 0x41e86a
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.0044fdb2
add ebp, 0x20c
mov esp, ebp
pop ebp
ret