Function at 0x1001add0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10109efe
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x1015746c]
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 esi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x224], eax
mov dword [ebp - 4], 0
call fcn.1001a3c0
mov ecx, eax
test ecx, ecx
je 0x1001b018
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push edi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.10003e60
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x220]
mov ecx, esi
push eax
call fcn.1001b030
mov edx, dword [ebp - 0x220]
or edi, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001ae86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 0xc], 0
jne 0x1001aea7
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x21c]
call fcn.1000aae0
mov esi, dword [ebp - 0x21c]
push 0x1011a8a4
push esi
call fcn.100b1443
add esp, 8
test eax, eax
jne 0x1001af0a
add esi, 0xfffffff0
push esi
call fcn.100042d0
add eax, 0x10
mov byte [ebp - 4], 0
mov dword [ebx], eax
add esp, 4
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001aee2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x1001aff8
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x1001aff8
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10094f30
add esp, 0xc
mov dword [ebp - 0x22c], 1
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x224]
push str.SOFTWAREHaloDesktop
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [ebp - 0x218], 0
je 0x1001afb0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001af72
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.10005580
lea ecx, [ebp - 0x21c]
call fcn.100167b0
lea ecx, [ebp - 0x21c]
call fcn.100166b0
mov esi, dword [ebp - 0x21c]
add esi, 0xfffffff0
push esi
call fcn.100042d0
add eax, 0x10
mov byte [ebp - 4], 0
mov dword [ebx], eax
add esp, 4
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001afd9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1001aff8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.10068438
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.10004170
int3