Function at 0x403190
Capabilities:
Create thread
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4116f4
mov eax, dword fs:[0]
push eax
sub esp, 0x220
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 ebx, ecx
push str._ChromaSDKService__Service_starting...
push 0x52
push str.c:workspacechromasdkRC3.36CoreSDKServiceChromaSDKService.cpp
push 3
call fcn.0040ba10
push eax
call fcn.0040bed0
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
add esp, 0x14
push 0
push 0
push 1
push 0
call esi
push 1
mov dword [ebx + 4], eax
mov dword [ebx + 8], 1
call fcn.00405e60
cmp dword [ebx + 0x34], 0
jne 0x40323f
push 1
call fcn.00410317
add esp, 4
mov dword [ebp - 0x21c], eax
mov dword [ebx + 0x34], eax
push 0
push 0
push 1
push 0
call esi
push 0
push 0
push 0
push 0x40fe50
push 0
push 0
mov dword [0x41c684], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x41c680], eax
sub esp, 8
mov ecx, ebx
call fcn.00405650
sub esp, 0x30
mov esi, esp
mov dword [ebp - 0x21c], esi
call fcn.0040b520
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x403264
lock inc dword [ecx + 4]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 4], 0
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [ebp - 4], 0
mov dword [esi + 0xc], 0
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
mov dword [ebp - 0x224], ecx
call dword [sym.imp.MSVCP140.dll_private:_void___thiscall_Concurrency::task_continuation_context::constructor_void_]
mov dword [esi + 0x20], 0
lea ecx, [ebp - 0x22c]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x1c], 0
mov byte [esi + 0x18], 0
push ebx
mov word [esi + 0x2c], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00407110
mov esi, dword [ebp - 0x228]
add esp, 0x34
or edi, 0xffffffff
test esi, esi
je 0x403301
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x403301
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x403301
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
sub esp, 0x30
mov esi, esp
mov dword [ebp - 0x224], esi
call fcn.0040b520
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40331c
lock inc dword [ecx + 4]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 4], 0
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [ebp - 4], 2
mov dword [esi + 0xc], 0
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 3
mov dword [ebp - 0x21c], ecx
call dword [sym.imp.MSVCP140.dll_private:_void___thiscall_Concurrency::task_continuation_context::constructor_void_]
mov dword [esi + 0x20], 0
lea ecx, [ebp - 0x22c]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x1c], 0
mov byte [esi + 0x18], 0
push ebx
mov word [esi + 0x2c], 0
mov dword [ebp - 4], 0xffffffff
call fcn.004071b0
mov esi, dword [ebp - 0x228]
add esp, 0x34
test esi, esi
je 0x4033b6
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4033b6
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x4033b6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
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]
test eax, eax
je 0x4034b2
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
call fcn.00401a70
mov ecx, eax
test ecx, ecx
je 0x403525
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 4
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 - 0x220]
add esp, 0x10
mov dword [ebp - 0x220], 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 0x403496
push 1
lea eax, [ebx + 8]
push eax
push 3
push 0
push str.Status
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4034b2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [0x41c68c], 0
jne 0x4034e5
push 0x1c
call fcn.00410317
add esp, 4
mov dword [ebp - 0x224], eax
mov ecx, eax
mov dword [ebp - 4], 5
call fcn.00402ce0
mov dword [ebp - 4], 0xffffffff
mov dword [0x41c68c], eax
push str._ChromaSDKService__Service_has_started
push 0x95
push str.c:workspacechromasdkRC3.36CoreSDKServiceChromaSDKService.cpp
push 3
call fcn.0040ba10
push eax
call fcn.0040bed0
add esp, 0x14
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
push 0x80004005
call fcn.00401b70
int3