Function at 0x1000b530
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001f0e5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x1002900c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.CSmartlightingDeviceManager::Init
push str._s__START
push 0x5e
push str.c:workspacechromasdkRC3.36CoreSmartlightingDeviceManagerSmartlightingDeviceManager.cpp
push 3
call fcn.10007430
push eax
call fcn.100077d0
add esp, 0x18
cmp dword [esi], 0
jne 0x1000b8bf
lea eax, [ebp - 0x4c]
mov dword [esi], esi
mov dword [ebp - 0x18], eax
call fcn.10006ed0
mov ecx, eax
test ecx, ecx
je 0x1000b8c9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x4c], eax
push 0x100222b8
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0
call fcn.100041f0
test al, al
jne 0x1000b5e5
push 5
push 0x100222b8
lea ecx, [ebp - 0x4c]
call fcn.10004d40
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], eax
call fcn.10006ed0
mov ecx, eax
test ecx, ecx
je 0x1000b8d3
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x48], eax
push str.SoftwareRazer_Chroma_SDKDevicesSmartLightingPhilipsHue
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.100041f0
test al, al
jne 0x1000b632
push 0x3a
push str.SoftwareRazer_Chroma_SDKDevicesSmartLightingPhilipsHue
lea ecx, [ebp - 0x48]
call fcn.10004d40
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0xf023f
push 0
push dword [ebp - 0x48]
mov dword [ebp - 0x44], 0
push 0x80000002
call edi
cmp eax, 5
jne 0x1000b675
lea eax, [ebp - 0x44]
push eax
push 0x20219
push 0
push dword [ebp - 0x48]
push 0x80000002
call edi
test eax, eax
jne 0x1000b6ae
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x18], 0xff
push eax
push 0
push 0
push dword [ebp - 0x4c]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000b6a5
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x74], eax
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x48]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000b6cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1000b6e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
push 6
movq qword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0
call fcn.1001d4e0
mov dword [ebp - 0x1c], eax
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 3
call fcn.10001ff0
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
jne 0x1000b75b
mov eax, dword [ebp - 0x20]
xorps xmm0, xmm0
movq qword [ebp - 0x40], xmm0
mov dword [ebp - 0x38], 0
test eax, eax
je 0x1000b75b
cmp dword [esi + 0x64], 0
movq xmm0, qword [eax]
movq qword [ebp - 0x40], xmm0
mov eax, dword [eax + 8]
mov dword [ebp - 0x38], eax
jne 0x1000b75b
push str.GlobalE1E6E8C5_6E1C_465A_ADB8_3E213B1E2E36
push 0
push 1
lea eax, [ebp - 0x40]
push eax
call edi
mov dword [esi + 0x64], eax
push 0
push 0
push 1
push 0
call edi
cmp dword [esi + 0x64], 0
mov dword [esi + 0x68], eax
je 0x1000b857
push 0
push 0
push esi
push 0x1000b510
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [esi + 0x64], 0
mov dword [esi + 0x6c], eax
je 0x1000b857
cmp dword [esi + 0x68], 0
je 0x1000b857
test eax, eax
jne 0x1000b7ab
mov esi, 0x236
jmp 0x1000b85c
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1000b7c0
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x1000b7d0
push eax
call esi
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1000b7da
push eax
call esi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1000b7ec
push 0x20
push eax
call fcn.1001d4af
add esp, 8
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1000b7fe
push 0xc
push eax
call fcn.1001d4af
add esp, 8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1000b810
push 6
push eax
call fcn.1001d4af
add esp, 8
xor esi, esi
push esi
push str.CSmartlightingDeviceManager::Init
push str._s__END__Result___d
push 0x8b
push str.c:workspacechromasdkRC3.36CoreSmartlightingDeviceManagerSmartlightingDeviceManager.cpp
push 3
call fcn.10007430
push eax
call fcn.100077d0
add esp, 0x1c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001d4a1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov esi, 0x4bb
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1000b86a
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x1000b87a
push eax
call edi
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1000b884
push eax
call edi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1000b896
push 0x20
push eax
call fcn.1001d4af
add esp, 8
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1000b8a8
push 0xc
push eax
call fcn.1001d4af
add esp, 8
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1000b837
push 6
push ecx
call fcn.1001d4af
add esp, 8
jmp 0x1000b837
mov esi, 0x4df
jmp 0x1000b812
push 0x80004005
call fcn.10006fe0
push 0x80004005
call fcn.10006fe0
int3