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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x634254]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x10], 0
push esi
push edi
lea edi, [ebx + 0x10]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
jne 0x4ec1df
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0056d855
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x14], 0
call fcn.004db670
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 0x4ec610
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push str.ExecutablesToExclude
push dword [esp + 0x28]
call esi
test eax, eax
jne 0x4ec591
push dword [esp + 0xc]
call fcn.005a1c68
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
test edi, edi
je 0x4ec606
push dword [esp + 0xc]
push 0
push edi
call fcn.005713c0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push edi
push 0
push 0
push str.ExecutablesToExclude
push dword [esp + 0x28]
call esi
test eax, eax
jne 0x4ec589
mov eax, dword [esp + 0xc]
xor esi, esi
inc eax
mov dword [esp + 0x28], esi
test eax, 0xfffffffe
jbe 0x4ec4e5
lea ebx, [edi + esi*2]
mov dword [esp + 0x2c], 0
mov edi, ebx
mov dword [esp + 0x40], 7
mov edx, 0xa
lea ecx, [edi + 2]
nop dword [eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4ec2c0
sub edi, ecx
sar edi, 1
cmp edi, 7
ja 0x4ec302
lea esi, [edi + edi]
mov dword [esp + 0x3c], edi
push esi
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.00570d00
add esp, 0xc
xor eax, eax
mov word [esp + esi + 0x2c], ax
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x2c]
jmp 0x4ec3bd
cmp edi, 0x7ffffffe
ja 0x4ec64c
mov esi, edi
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4ec32b
mov esi, SysReAllocString
mov eax, 0xfffffffe
mov dword [esp + 0x20], esi
jmp 0x4ec34c
cmp esi, 0xa
cmovb esi, edx
mov dword [esp + 0x20], esi
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4ec647
add eax, eax
cmp eax, 0x1000
jb 0x4ec373
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4ec647
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4ec633
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x4ec38e
test eax, eax
je 0x4ec38c
push eax
call fcn.005a1c68
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4ec624
jmp 0x4ec38e
xor ebx, ebx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x40], esi
lea esi, [edi + edi]
push esi
mov dword [esp + 0x40], edi
lea eax, [edx + ecx*2]
push eax
push ebx
call fcn.00570780
mov edx, dword [esp + 0x2c]
add esp, 0xc
xor eax, eax
mov dword [esp + 0x2c], ebx
mov word [esi + ebx], ax
mov eax, dword [esp + 0x18]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4ec3cb
mov ecx, dword [eax]
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
cmp edx, 8
cmovae eax, ebx
cmp edi, dword [esi]
jne 0x4ec407
mov esi, edi
test esi, esi
je 0x4ec466
sub eax, ecx
mov dword [esp + 0x20], eax
nop dword [eax]
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x4ec407
add ecx, 2
sub esi, 1
je 0x4ec466
mov eax, dword [esp + 0x20]
jmp 0x4ec3f0
test edi, edi
je 0x4ec4ad
mov esi, dword [esp + 0x28]
inc esi
add esi, edi
mov dword [esp + 0x28], esi
cmp edx, 8
jb 0x4ec44e
lea edx, [edx*2 + 2]
mov eax, ebx
cmp edx, 0x1000
jb 0x4ec444
mov ebx, dword [ebx - 4]
add edx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ec642
push edx
push ebx
call fcn.0056d0c8
add esp, 8
mov eax, dword [esp + 0xc]
inc eax
shr eax, 1
cmp esi, eax
jae 0x4ec4e1
mov edi, dword [esp + 0x10]
jmp 0x4ec2a0
cmp edx, 8
jb 0x4ec585
lea edx, [edx*2 + 2]
mov eax, ebx
cmp edx, 0x1000
jb 0x4ec494
mov ebx, dword [ebx - 4]
add edx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ec642
push edx
push ebx
call fcn.0056d0c8
mov edi, dword [esp + 0x18]
add esp, 8
push edi
call fcn.0057becd
jmp 0x4ec603
cmp edx, 8
jb 0x4ec4e1
lea edx, [edx*2 + 2]
mov eax, ebx
cmp edx, 0x1000
jb 0x4ec4d7
mov ebx, dword [ebx - 4]
add edx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ec642
push edx
push ebx
call fcn.0056d0c8
add esp, 8
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
mov edx, 2
mov eax, dword [esp + 0x1c]
lea ecx, [ecx + 1]
mov esi, dword [eax]
shr ecx, 1
inc esi
add esi, ecx
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056d555
lea ecx, [esi + esi]
mov edi, eax
push ecx
push 0
push edi
call fcn.005713c0
add esp, 0x10
cmp dword [ebx + 0x14], 8
jb 0x4ec528
mov ebx, dword [ebx]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
inc eax
push eax
push ebx
push esi
push edi
call fcn.00592286
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
inc eax
shr eax, 1
mov ecx, dword [ebx]
sub esi, ecx
push eax
push dword [esp + 0x24]
inc ecx
dec esi
push esi
lea eax, [edi + ecx*2]
push eax
call fcn.00592286
mov ecx, dword [ebx]
add esp, 0x20
mov eax, dword [esp + 0xc]
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.0056d55e
add esp, 4
mov edi, dword [esp + 0x10]
push edi
call fcn.0057becd
jmp 0x4ec603
cmp eax, 2
jne 0x4ec606
mov edi, dword [edi]
xor ecx, ecx
add edi, eax
mov edx, 2
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056d555
lea ebx, [edi + edi]
mov esi, eax
push ebx
push 0
push esi
call fcn.005713c0
mov ecx, dword [esp + 0x28]
add esp, 0x10
cmp dword [ecx + 0x14], 8
jb 0x4ec5cf
mov ecx, dword [ecx]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
inc eax
push eax
push ecx
push edi
push esi
call fcn.00592286
add esp, 0x10
xor eax, eax
mov word [ebx + esi - 2], ax
push ebx
push esi
push 7
push eax
push str.ExecutablesToExclude
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call fcn.0056d55e
add esp, 4
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x44]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0056d855
mov esp, ebp
pop ebp
ret
push 0x630328
lea eax, [esp + 0x2b]
push eax
call fcn.0057134b
push 0x630328
lea eax, [esp + 0x2a]
push eax
call fcn.0057134b
call fcn.0057b201
call fcn.00407541
call fcn.004072dc
int3