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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
lea ebx, [esi + 0x10]
cmp dword [ebx], edi
jne 0x4b1eed
xor al, al
jmp 0x4b21c9
mov dword [ebp - 0x2c], edi
call fcn.00463367
cmp eax, 0x40
mov edx, 0x2011f
lea eax, [ebp - 0x2c]
mov ecx, 0x2001f
push eax
cmove ecx, edx
push ecx
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_Assistant
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b21c7
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], edi
push eax
push edi
push edi
push edi
push str.ExecutablesToExclude
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b214c
push dword [ebp - 0x28]
call fcn.0056728d
mov edi, eax
pop ecx
test edi, edi
je 0x4b21be
push dword [ebp - 0x28]
push 0
push edi
call fcn.00548bf0
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
push edi
push 0
push 0
push str.ExecutablesToExclude
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b20ba
mov eax, dword [ebp - 0x28]
xor ecx, ecx
inc eax
mov dword [ebp - 0x30], ecx
test eax, 0xfffffffe
jbe 0x4b2025
and dword [ebp - 0x1c], 0
lea eax, [edi + ecx*2]
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0x1c]
push eax
mov dword [ebp - 8], 7
call fcn.00409240
push esi
lea ecx, [ebp - 0x1c]
call fcn.004108f3
test al, al
jne 0x4b210b
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4b20c5
mov ecx, dword [ebp - 0x30]
inc eax
add ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], ecx
cmp eax, 8
jb 0x4b2017
mov ecx, dword [ebp - 0x1c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
cmp eax, 0x1000
jb 0x4b200b
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00403fef
mov eax, dword [ebp - 0x24]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x20]
push eax
push ecx
call fcn.00541bf5
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
inc eax
shr eax, 1
cmp ecx, eax
jb 0x4b1f97
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebx]
push 2
pop edx
lea ecx, [ecx + 1]
shr ecx, 1
inc ecx
add eax, ecx
xor ecx, ecx
mov dword [ebp - 0x20], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00542041
mov ecx, dword [ebp - 0x20]
add ecx, ecx
mov dword [ebp - 0x24], eax
push ecx
push 0
push eax
call fcn.00548bf0
add esp, 0x10
cmp dword [esi + 0x14], 8
jb 0x4b2065
mov esi, dword [esi]
mov eax, dword [ebx]
inc eax
push eax
push esi
mov esi, dword [ebp - 0x20]
push esi
push dword [ebp - 0x24]
call fcn.0056761a
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebx]
inc eax
shr eax, 1
sub esi, ecx
push eax
push edi
dec esi
inc ecx
push esi
mov esi, dword [ebp - 0x24]
lea eax, [esi + ecx*2]
push eax
call fcn.0056761a
mov ecx, dword [ebx]
add esp, 0x20
mov eax, dword [ebp - 0x28]
lea eax, [eax + ecx*2]
add eax, 2
push eax
push esi
push 7
push 0
push str.ExecutablesToExclude
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call fcn.0054204a
pop ecx
push edi
call fcn.00553d2a
jmp 0x4b21bd
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x4b2025
mov ecx, dword [ebp - 0x1c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
cmp eax, 0x1000
jb 0x4b20fd
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00403fef
mov eax, dword [ebp - 0x20]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
push eax
push ecx
call fcn.00541bf5
pop ecx
pop ecx
jmp 0x4b2025
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x4b20ba
mov ecx, dword [ebp - 0x1c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
cmp eax, 0x1000
jb 0x4b213f
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00403fef
mov eax, dword [ebp - 0x20]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
push eax
push ecx
call fcn.00541bf5
pop ecx
jmp 0x4b20b9
push 2
pop edx
cmp eax, edx
jne 0x4b21be
mov eax, dword [ebx]
xor ecx, ecx
add eax, edx
mov dword [ebp - 0x20], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00542041
mov edi, eax
mov eax, dword [ebp - 0x20]
add eax, eax
push eax
push 0
push edi
mov dword [ebp - 0x24], eax
call fcn.00548bf0
add esp, 0x10
cmp dword [esi + 0x14], 8
jb 0x4b2189
mov esi, dword [esi]
mov eax, dword [ebx]
inc eax
push eax
push esi
push dword [ebp - 0x20]
push edi
call fcn.0056761a
mov eax, dword [ebp - 0x24]
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 - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
call fcn.0054204a
pop ecx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00542347
leave
ret 4