Function at 0x402ef0
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411670
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x41b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x403025
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
call fcn.00401a70
mov ecx, eax
test ecx, ecx
je 0x403180
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0x4136c8
lea eax, [ebp - 0x21c]
push str._sServices_s
push eax
call fcn.00401620
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x228]
add esp, 0x10
mov dword [ebp - 0x228], 0
push 0
push eax
push 0
push 0xf023f
push 0
push 0
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40315d
push 1
lea eax, [edi + 8]
push eax
push 3
push 0
push str.Status
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x228]
call ebx
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x403025
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push eax
push 0xf023f
push 0
push str.SoftwareRazer_Chroma_SDKServicesRzSDKService.exeRzSvcHost
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40313c
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push 0
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
push dword [ebp - 0x220]
push str._d_Service_Host_modules_detected.
push 0x1dc
push str.c:workspacechromasdkRC3.36CoreSDKServiceChromaSDKService.cpp
push 3
call fcn.0040ba10
push eax
call fcn.0040bed0
mov eax, dword [ebp - 0x21c]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00410b27
xor esi, esi
add esp, 0x1c
mov edi, eax
cmp dword [ebp - 0x220], esi
jbe 0x40312b
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [eax + eax]
mov ecx, dword [ebp - 0x21c]
inc ecx
push ecx
push 0
push edi
mov dword [ebp - 0x22c], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x22c]
push 0
push 0
push 0
push 0
push eax
push edi
push esi
push dword [ebp - 0x224]
call ebx
test eax, eax
jne 0x40311c
push edi
call fcn.00404080
inc esi
cmp esi, dword [ebp - 0x220]
jb 0x4030e0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.00410b30
add esp, 4
push dword [ebp - 0x224]
call ebx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004102d8
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40317c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x403141
push 0x80004005
call fcn.00401b70
int3