Function at 0x1000e760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001f594
mov eax, dword fs:[0]
push eax
mov eax, 0x17b0
call fcn.1001e770
mov eax, dword [0x1002900c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1798], ecx
push str.CSmartlightingDeviceManager::AddDevice
push str._s__START
push 0x29c
mov ecx, 0x28e
lea esi, [ebp + 0xc]
lea edi, [ebp - 0xd4c]
push str.c:workspacechromasdkRC3.36CoreSmartlightingDeviceManagerSmartlightingDeviceManager.cpp
rep movsd dword es:[edi], dword [esi]
push 3
call fcn.10007430
push eax
call fcn.100077d0
add esp, 0x18
lea eax, [ebp - 0x730]
push eax
lea eax, [ebp - 0x938]
push eax
lea eax, [ebp - 0xb40]
push eax
push dword [ebp + 8]
push dword [ebp - 0x320]
push str.CSmartlightingDeviceManager::AddDevice
push str._s__pid_d__i_d__UID_s__name_s__ip_s
push 0x29f
push str.c:workspacechromasdkRC3.36CoreSmartlightingDeviceManagerSmartlightingDeviceManager.cpp
push 3
call fcn.10007430
push eax
call fcn.100077d0
add esp, 0x2c
or ebx, 0xffffffff
cmp dword [ebp - 0x320], 0x301
jne 0x1000e91b
lea eax, [ebp - 0x528]
mov dword [ebp - 0x220], 0
push eax
push str.SelectedGroup
lea eax, [ebp - 0x220]
push eax
call fcn.10008f60
lea eax, [ebp - 0x528]
mov dword [ebp - 4], 0
push eax
push str.LightChannels
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push eax
call fcn.10008f60
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x224]
cmp dword [esi - 4], 1
jle 0x1000e890
push dword [esi - 0xc]
lea ecx, [ebp - 0x224]
call fcn.10004310
mov esi, dword [ebp - 0x224]
mov eax, dword [ebp - 0x220]
cmp dword [eax - 4], 1
jle 0x1000e8b0
push dword [eax - 0xc]
lea ecx, [ebp - 0x220]
call fcn.10004310
mov eax, dword [ebp - 0x220]
push esi
push eax
push str.CSmartlightingDeviceManager::AddDevice
push str._s__group_s__lightchannel_s
push 0x2a7
push str.c:workspacechromasdkRC3.36CoreSmartlightingDeviceManagerSmartlightingDeviceManager.cpp
push 3
call fcn.10007430
push eax
call fcn.100077d0
mov byte [ebp - 4], 0
add esp, 0x20
mov edx, dword [ebp - 0x224]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000e8f7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000e91b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1798]
xor esi, esi
mov dword [ebp - 0x224], esi
cmp dword [eax], esi
jne 0x1000e937
mov eax, 0x490
jmp 0x1000eea1
mov eax, dword [ebp - 0x320]
mov dword [ebp - 0x17a0], eax
test eax, eax
jne 0x1000e951
mov eax, 0x645
jmp 0x1000eea1
lea eax, [ebp - 0xb40]
push 0x10022114
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x1000e974
mov eax, 0xd
jmp 0x1000eea1
lea eax, [ebp - 0x1794]
mov dword [ebp - 0x1794], esi
push eax
push 0xf023f
push 0
push str.SoftwareRazer_Chroma_SDK
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000ee7a
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0x208
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push str.InstallPath
push dword [ebp - 0x1794]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000ee6e
call fcn.10006ed0
mov ecx, eax
test ecx, ecx
je 0x1000f030
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x228]
call fcn.100041f0
test al, al
jne 0x1000ea42
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000ea20
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.10004d40
push str.Devices.xml
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 3
call fcn.10012200
push 0xc8
lea eax, [ebp - 0x2f4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2f0], 0
lea eax, [ebp - 0x2ec]
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2b8], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2f4], eax
mov dword [ebp - 0x2c4], eax
lea eax, [ebp - 0x2b8]
push 0x100222c8
push dword [ebp - 0x228]
mov dword [ebp - 0x2ec], eax
lea eax, [ebp - 0x1790]
push eax
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2e0], 0x7fec
movups xmmword [ebp - 0x2d4], xmm0
mov dword [ebp - 0x2c0], 0
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x2d8], 0x1401
mov dword [ebp - 0x2b4], 0x7fec
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 0x1790], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
xor esi, esi
mov dword [ebp - 0x17a8], 0x1000b0e0
add esp, 0xc
test eax, eax
cmove esi, dword [ebp - 0x1790]
mov dword [ebp - 0x17ac], esi
lea eax, [ebp - 0x2f0]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2f4]
lea ecx, [ebp - 0x17bc]
push eax
sub esp, 8
push esi
call fcn.1000afc0
add esp, 0x10
test esi, esi
je 0x1000eb82
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov byte [ebp - 4], 4
cmp dword [ebp - 0x17bc], 0
jne 0x1000f026
mov edi, dword [ebp - 0x2f4]
test edi, edi
je 0x1000ebe6
mov edi, dword [edi + 0x10]
test edi, edi
je 0x1000ebe6
mov eax, dword [edi + 4]
test eax, eax
je 0x1000ebdf
mov ecx, str.devices
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x1000ebd6
test dx, dx
je 0x1000ebd2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x1000ebd6
add ecx, 4
add eax, 4
test dx, dx
jne 0x1000ebb0
xor eax, eax
jmp 0x1000ebdb
sbb eax, eax
or eax, 1
test eax, eax
je 0x1000ebed
mov edi, dword [edi + 0x18]
test edi, edi
jne 0x1000eba4
xor esi, esi
jmp 0x1000ee41
mov edi, dword [edi + 0x10]
mov dword [ebp - 0x179c], edi
mov dword [ebp - 0x220], edi
test edi, edi
je 0x1000ebe6
push 0x10022c30
lea eax, [ebp - 0x17b0]
push eax
lea ecx, [ebp - 0x220]
call fcn.1000b0f0
mov ecx, dword [eax]
test ecx, ecx
je 0x1000ee20
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x1000ee20
push ecx
call fcn.10016de0
mov esi, dword [ebp - 0x17a0]
add esp, 4
cmp eax, esi
jne 0x1000ee20
call fcn.10006ed0
mov ecx, eax
test ecx, ecx
je 0x1000f030
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1790], eax
push str.file
lea eax, [ebp - 0x17a8]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x220]
call fcn.1000b0f0
mov ecx, 0x10022114
mov eax, dword [eax]
test eax, eax
je 0x1000ec8e
mov eax, dword [eax + 8]
test eax, eax
cmovne ecx, eax
push ecx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x1790]
push str._s_bin_s
push eax
call fcn.10004fa0
add esp, 0x10
call fcn.10006ed0
mov ecx, eax
test ecx, ecx
je 0x1000f030
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0xb40]
mov byte [ebp - 4], 8
push eax
push esi
lea eax, [ebp - 0x17a4]
push eax
call fcn.1000f3a0
mov esi, eax
mov byte [ebp - 4], 9
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x1000ecf7
push dword [eax - 0xc]
mov ecx, esi
call fcn.10004310
push dword [esi]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push str._s_bin_s
push eax
call fcn.10004fa0
mov byte [ebp - 4], 8
add esp, 0x10
mov edx, dword [ebp - 0x17a4]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000ed35
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x220]
push 0
push esi
push dword [ebp - 0x1790]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
je 0x1000edd7
push str.Init
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000edbd
mov ecx, dword [ebp + 8]
lea esi, [ebp - 0xd4c]
mov dword [ebp - 0x318], ecx
sub esp, 0xa38
mov ecx, 0x28e
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call eax
mov edi, eax
add esp, 0xa38
test edi, edi
je 0x1000eebf
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x220]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x224], edi
mov edi, dword [ebp - 0x179c]
jmp 0x1000ede1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x224], 0x3de1
jmp 0x1000ede1
mov dword [ebp - 0x224], 0x7e
or ebx, 0xffffffff
mov byte [ebp - 4], 7
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000edff
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x1790]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000ee20
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x1000ee3b
mov edi, dword [edi + 0x18]
mov dword [ebp - 0x179c], edi
mov dword [ebp - 0x220], edi
test edi, edi
jne 0x1000ec00
mov esi, dword [ebp - 0x224]
lea ecx, [ebp - 0x2f4]
call fcn.1000b170
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1000ee6e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x1794]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push str.CSmartlightingDeviceManager::AddDevice
push str._s__END__Result___d
push 0x325
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
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001d4a1
mov esp, ebp
pop ebp
ret 0xa3c
push dword [ebp - 0x220]
lea eax, [ebp - 0xd48]
mov dword [ebp - 0xd4c], ebx
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov ebx, dword [ebp - 0x1798]
lea ecx, [ebp - 0x310]
add esp, 0xc
lea eax, [ebx + 0x44]
push eax
call dword [sym.imp.CONCRT140.dll_public:_void___thiscall_Concurrency::critical_section::scoped_lock::constructor_class_Concurrency::critical_section__]
mov eax, dword [ebp + 8]
lea esi, [ebp - 0xd4c]
mov byte [ebp - 4], 0xa
lea edi, [ebp - 0x1788]
mov dword [ebp - 0x178c], eax
mov ecx, 0x28e
lea eax, [ebp - 0x178c]
push eax
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x17ac]
push eax
lea ecx, [ebx + 4]
call fcn.10017090
mov esi, dword [ebx + 0xc]
push esi
push str.CSmartlightingDeviceManager::AddDevice
push str._s__SUCCESS__total_connected_device___d
push 0x2f2
push str.c:workspacechromasdkRC3.36CoreSmartlightingDeviceManagerSmartlightingDeviceManager.cpp
push 3
call fcn.10007430
push eax
call fcn.100077d0
add esp, 0x1c
test esi, esi
je 0x1000efcc
mov ebx, dword [ebx + 8]
mov eax, dword [ebx]
mov dword [ebp - 0x1798], eax
cmp eax, ebx
je 0x1000efcc
nop word [eax + eax]
mov ecx, dword [eax + 8]
lea esi, [eax + 0xc]
mov dword [ebp - 0x178c], ecx
lea eax, [ebp - 0x1784]
push eax
mov ecx, 0x28e
lea edi, [ebp - 0x1788]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x178c]
push str.CSmartlightingDeviceManager::AddDevice
push str._s____d___s
push 0x2f7
push str.c:workspacechromasdkRC3.36CoreSmartlightingDeviceManagerSmartlightingDeviceManager.cpp
push 3
call fcn.10007430
push eax
call fcn.100077d0
mov eax, dword [ebp - 0x1798]
add esp, 0x20
mov eax, dword [eax]
mov dword [ebp - 0x1798], eax
cmp eax, ebx
jne 0x1000ef70
lea ecx, [ebp - 0x310]
call dword [sym.imp.CONCRT140.dll_public:_void___thiscall_Concurrency::critical_section::scoped_lock::destructor_void_]
mov byte [ebp - 4], 7
or ebx, 0xffffffff
mov edx, dword [ebp - 0x220]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000effc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x1790]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000ee3b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1000ee3b
mov esi, 2
jmp 0x1000ee41
push 0x80004005
call fcn.10006fe0
int3