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

Disassembly:
push 0xffffffffffffffff
push 0x42d8d3
mov eax, dword fs:[0]
push eax
mov eax, 0x4014
mov dword fs:[0], esp
call fcn.00413a10
mov eax, dword [0x43c1d0]
push ebx
push ebp
push esi
mov dword [esp + 0x401c], eax
push edi
mov esi, ecx
xor ebx, ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersionCompatibility_Assistant
lea ecx, [esp + 0x18]
mov dword [esp + 0x4030], ebx
call fcn.00402900
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov edi, esp
push eax
mov byte [esp + 0x4034], 1
call fcn.004015e0
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.00406bd0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0x20007
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408807
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x18]
push edx
push ebx
lea eax, [esp + 0x24]
push eax
push ebx
push str.ExecutablesToExclude
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call esi
test eax, eax
jne 0x4087bc
cmp dword [esp + 0x18], 0x2000
jae 0x408807
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push str.ExecutablesToExclude
push edx
call esi
test eax, eax
jne 0x408807
xor ebp, ebp
xor edi, edi
cmp word [esp + 0x20], bx
lea esi, [esp + 0x20]
je 0x408743
mov eax, dword [esp + 0x4034]
push esi
push eax
call fcn.00413aab
add esp, 8
test eax, eax
je 0x408778
push esi
inc ebp
call fcn.00412f9e
add esp, 4
cmp edi, ebx
lea esi, [esi + eax*2 + 2]
jne 0x40873e
mov edi, esi
cmp word [esi], bx
jne 0x408715
mov edx, dword [esp + 0x4034]
push edx
push esi
call fcn.004136d0
mov eax, dword [esp + 0x403c]
push eax
call fcn.00412f9e
add esp, 0xc
cmp ebp, 0x18
lea eax, [esi + eax*2]
mov word [eax], bx
jle 0x40879d
sub eax, edi
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edi
jmp 0x4087f4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
call fcn.00401910
lea ecx, [esp + 0x4034]
call fcn.00401910
jmp 0x408858
lea ecx, [esp + 0x20]
sub eax, ecx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
mov eax, ecx
mov ecx, dword [esp + 0x14]
push eax
push 7
push ebx
push str.ExecutablesToExclude
push ecx
jmp 0x408801
mov edx, dword [esp + 0x4034]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004136d0
lea ecx, [esp + 0x28]
push ecx
call fcn.00412f9e
lea edx, [esp + 0x2c]
push edx
mov word [esp + eax*2 + 0x32], bx
call fcn.00412f9e
add esp, 0x10
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x24]
push ecx
mov edx, dword [esp + 0x18]
push 7
push ebx
push str.ExecutablesToExclude
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x402c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40882c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x4034]
add eax, 0xfffffff0
mov dword [esp + 0x402c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408858
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x4024]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4020]
call fcn.00412f2e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4020
ret 4