Function at 0x403530
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41173b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x41b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x238], esi
push str._ChromaSDKService__Service_stopping...
push 0x9c
push str.c:workspacechromasdkRC3.36CoreSDKServiceChromaSDKService.cpp
push 3
call fcn.0040ba10
push eax
call fcn.0040bed0
lea eax, [esi + 8]
add esp, 0x14
mov dword [eax], 2
mov dword [ebp - 0x240], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4035a1
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 0x34], 0
je 0x4035c5
call fcn.00410150
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4035be
push 1
push eax
call fcn.004102e6
add esp, 8
mov dword [esi + 0x34], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x40], 0
je 0x403793
mov eax, dword [esi + 0x3c]
mov ecx, 0x7ffffffe
mov esi, dword [eax]
mov dword [ebp - 0x23c], esi
cmp esi, eax
je 0x403778
nop dword [eax]
cmp dword [esi + 0x1c], 8
lea edi, [esi + 8]
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x234], eax
jb 0x403622
mov edi, dword [edi]
cmp eax, 8
jae 0x40363b
movups xmm0, xmmword [edi]
mov esi, 7
movups xmmword [ebp - 0x230], xmm0
jmp 0x4036be
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
cmova esi, ecx
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x403920
add eax, eax
cmp eax, 0x1000
jb 0x403689
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x403920
push ecx
call fcn.00410317
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40378d
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x40369a
test eax, eax
je 0x403698
push eax
call fcn.00410317
add esp, 4
jmp 0x40369a
xor eax, eax
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x230], eax
lea ecx, [ecx*2 + 2]
push ecx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x234]
add esp, 0xc
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x220], eax
cmp esi, 8
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x23c]
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push dword [esi + 0x20]
push eax
push str.Deleting_service_host_module__s_handle__0x_08X_
push 0xb6
push str.c:workspacechromasdkRC3.36CoreSDKServiceChromaSDKService.cpp
push 3
call fcn.0040ba10
push eax
call fcn.0040bed0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x1c
push dword [esi + 0x20]
call edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x403758
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40374e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40378d
push ecx
push edx
call fcn.004102e6
add esp, 8
mov eax, dword [ebp - 0x238]
mov ecx, 0x7ffffffe
mov esi, dword [esi]
mov dword [ebp - 0x23c], esi
mov eax, dword [eax + 0x3c]
cmp esi, eax
jne 0x4035f0
mov esi, dword [eax]
push eax
push esi
mov esi, dword [ebp - 0x238]
lea ecx, [esi + 0x38]
call fcn.00406d50
jmp 0x4035cb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
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 0x403895
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
call fcn.00401a70
mov ecx, eax
test ecx, ecx
je 0x403925
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push eax
push 0x4136c8
lea eax, [ebp - 0x238]
push str._sServices_s
push eax
call fcn.00401620
mov esi, dword [ebp - 0x238]
lea eax, [ebp - 0x234]
add esp, 0x10
mov dword [ebp - 0x234], 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 0x403876
push 1
push dword [ebp - 0x240]
push 3
push eax
push str.Status
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x403895
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0
call fcn.00405e60
mov esi, dword [0x41c68c]
test esi, esi
je 0x4038e1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4038bb
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4038cc
push eax
call edi
mov dword [esi + 0x10], 0
push 0x1c
push esi
call fcn.004102e6
add esp, 8
mov dword [0x41c68c], 0
push str._ChromaSDKService__Service_has_stopped...
push 0xe2
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
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004102d8
mov esp, ebp
pop ebp
ret
call fcn.004020d0
push 0x80004005
call fcn.00401b70
int3