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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x577738
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5c8910]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x5c8910]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
lea ebx, [esi + 0x10]
mov dword [esp + 0x18], ebx
jne 0x4c367e
xor al, al
jmp 0x4c3968
mov dword [esp + 0x14], 0
call fcn.004b2710
cmp eax, 0x40
mov edx, 0x2011f
lea eax, [esp + 0x14]
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 0x4c3966
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
push str.ExecutablesToExclude
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c38e8
mov edi, dword [esp + 0x10]
push edi
call fcn.0053b140
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x4c395c
push edi
push 0
push ebx
call fcn.00538910
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push ebx
push 0
push 0
push str.ExecutablesToExclude
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c388f
mov ecx, dword [esp + 0x10]
xor edi, edi
lea eax, [ecx + 1]
test eax, 0xfffffffe
jbe 0x4c37ef
lea ecx, [ecx]
xor eax, eax
mov dword [esp + 0x34], 7
lea edx, [ebx + edi*2]
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
cmp word [edx], ax
je 0x4c3777
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c3764
sub eax, ebx
mov ebx, dword [esp + 0x1c]
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.00408679
mov dword [esp + 0x48], 0
cmp dword [esi + 0x14], 8
jb 0x4c3794
mov eax, dword [esi]
jmp 0x4c3796
mov eax, esi
mov ecx, dword [esp + 0x18]
push dword [ecx]
lea ecx, [esp + 0x24]
push eax
push dword [esp + 0x38]
push 0
call fcn.00410215
test eax, eax
je 0x4c38cd
mov eax, dword [esp + 0x30]
mov dword [esp + 0x48], 0xffffffff
test eax, eax
je 0x4c389a
inc edi
add edi, eax
cmp dword [esp + 0x34], 8
jb 0x4c37de
push dword [esp + 0x20]
call fcn.005363a4
add esp, 4
mov ecx, dword [esp + 0x10]
lea eax, [ecx + 1]
shr eax, 1
cmp edi, eax
jb 0x4c3740
mov eax, dword [esp + 0x18]
inc ecx
shr ecx, 1
mov edx, 2
mov edi, dword [eax]
inc edi
add edi, ecx
xor ecx, ecx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051b796
lea ecx, [edi + edi]
mov dword [esp + 0x20], eax
push ecx
push 0
push eax
call fcn.00538910
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp dword [esi + 0x14], 8
mov eax, dword [eax]
jb 0x4c3834
mov esi, dword [esi]
inc eax
push eax
push esi
push edi
push dword [esp + 0x28]
call fcn.0053ad5a
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
inc eax
shr eax, 1
push eax
push ebx
mov ecx, dword [esi]
sub edi, ecx
dec edi
inc ecx
push edi
mov edi, dword [esp + 0x38]
lea eax, [edi + ecx*2]
push eax
call fcn.0053ad5a
mov ecx, dword [esi]
add esp, 0x20
mov eax, dword [esp + 0x10]
lea eax, [eax + ecx*2]
add eax, 2
push eax
push edi
push 7
push 0
push str.ExecutablesToExclude
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
call fcn.0053b82d
add esp, 4
push ebx
call fcn.005363a4
jmp 0x4c3959
cmp dword [esp + 0x34], 8
jb 0x4c38ad
push dword [esp + 0x20]
call fcn.005363a4
add esp, 4
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
jmp 0x4c37ef
cmp dword [esp + 0x34], 8
jb 0x4c388f
push dword [esp + 0x20]
call fcn.005363a4
add esp, 4
push ebx
call fcn.005363a4
jmp 0x4c3959
cmp eax, 2
jne 0x4c395c
mov ebx, dword [ebx]
xor ecx, ecx
add ebx, eax
mov edx, 2
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051b796
mov edi, eax
lea eax, [ebx + ebx]
push eax
push 0
push edi
call fcn.00538910
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp dword [esi + 0x14], 8
mov eax, dword [eax]
jb 0x4c3928
mov esi, dword [esi]
inc eax
push eax
push esi
push ebx
push edi
call fcn.0053ad5a
add esp, 0x10
lea eax, [ebx + ebx]
xor ecx, ecx
mov word [eax + edi - 2], cx
push eax
push edi
push 7
push ecx
push str.ExecutablesToExclude
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
call fcn.0053b82d
add esp, 4
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret