Function at 0x4faaf0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
lea ebx, [esi + 0x10]
mov dword [ebp - 8], ebx
jne 0x4fab0f
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
call fcn.004adaa0
cmp eax, 0x40
mov edx, 0x2011f
lea eax, [ebp - 4]
mov ecx, 0x2001f
push eax
cmove ecx, edx
push ecx
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_Assistant
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4fad62
push edi
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0
push 0
push 0
push str.ExecutablesToExclude
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4face0
mov edi, dword [ebp + 8]
push edi
call fcn.00529d80
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4fad58
push edi
push 0
push ebx
call fcn.005278d0
add esp, 0xc
lea eax, [ebp + 8]
push eax
push ebx
push 0
push 0
push str.ExecutablesToExclude
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4facb5
mov ecx, dword [ebp + 8]
xor edi, edi
lea eax, [ecx + 1]
test eax, 0xfffffffe
jbe 0x4fac1e
mov edi, edi
lea eax, [ebx + edi*2]
push eax
lea ecx, [ebp - 0x24]
call fcn.00408718
cmp dword [esi + 0x14], 8
jb 0x4fabd6
mov eax, dword [esi]
jmp 0x4fabd8
mov eax, esi
mov ecx, dword [ebp - 8]
push dword [ecx]
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x14]
push 0
call fcn.00410207
test eax, eax
je 0x4facd0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4facc0
inc edi
add edi, eax
cmp dword [ebp - 0x10], 8
jb 0x4fac12
push dword [ebp - 0x24]
call fcn.00412887
add esp, 4
mov ecx, dword [ebp + 8]
lea eax, [ecx + 1]
shr eax, 1
cmp edi, eax
jb 0x4fabc0
mov edi, dword [ebp - 8]
inc ecx
shr ecx, 1
mov edx, 2
mov eax, dword [edi]
inc eax
add eax, ecx
xor ecx, ecx
mov dword [ebp - 8], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050a92a
mov ecx, dword [ebp - 8]
add ecx, ecx
mov dword [ebp - 0xc], eax
push ecx
push 0
push eax
call fcn.005278d0
mov eax, dword [edi]
add esp, 0x10
cmp dword [esi + 0x14], 8
jb 0x4fac60
mov esi, dword [esi]
inc eax
push eax
push esi
mov esi, dword [ebp - 8]
push esi
push dword [ebp - 0xc]
call fcn.005299d1
mov eax, dword [ebp + 8]
mov ecx, dword [edi]
inc eax
shr eax, 1
sub esi, ecx
push eax
push ebx
dec esi
inc ecx
push esi
mov esi, dword [ebp - 0xc]
lea eax, [esi + ecx*2]
push eax
call fcn.005299d1
mov ecx, dword [edi]
add esp, 0x20
mov eax, dword [ebp + 8]
lea eax, [eax + ecx*2]
add eax, 2
push eax
push esi
push 7
push 0
push str.ExecutablesToExclude
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call fcn.00529e12
add esp, 4
push ebx
call fcn.0052558c
jmp 0x4fad55
lea ecx, [ebp - 0x24]
call fcn.0040327c
mov ecx, dword [ebp + 8]
jmp 0x4fac1e
lea ecx, [ebp - 0x24]
call fcn.0040327c
push ebx
call fcn.0052558c
jmp 0x4fad55
cmp eax, 2
jne 0x4fad58
mov eax, dword [ebx]
xor ecx, ecx
add eax, 2
mov edx, 2
mov dword [ebp - 0xc], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050a92a
mov edi, eax
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
push 0
push edi
mov dword [ebp - 8], eax
call fcn.005278d0
mov eax, dword [ebx]
add esp, 0x10
cmp dword [esi + 0x14], 8
jb 0x4fad23
mov esi, dword [esi]
inc eax
push eax
push esi
push dword [ebp - 0xc]
push edi
call fcn.005299d1
mov eax, dword [ebp - 8]
add esp, 0x10
xor ecx, ecx
push eax
push edi
push 7
push ecx
push str.ExecutablesToExclude
mov word [eax + edi - 2], cx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
call fcn.00529e12
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret