Function at 0x42cb50
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8d90
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x506054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x438], xmm0
push 6
movq qword [ebp - 0x428], xmm0
movups xmmword [ebp - 0x438], xmm0
mov dword [ebp - 0x428], 0
call fcn.004364e1
mov dword [ebp - 0x424], eax
push ecx
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0
call fcn.00405af0
test eax, eax
je 0x42cbd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x42cf72
cmp dword [ebp - 0x428], 0
jne 0x42cbec
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [ebp - 0x49c], eax
cmp eax, 0xffffffff
je 0x42cf72
xorps xmm0, xmm0
mov dword [ebp - 0x480], 0x44
xor eax, eax
movlpd qword [ebp - 0x47c], xmm0
push 0x208
push eax
mov word [ebp - 0x43e], ax
mov word [ebp - 0x450], ax
lea eax, [ebp - 0x218]
push eax
movlpd qword [ebp - 0x474], xmm0
movlpd qword [ebp - 0x46c], xmm0
movlpd qword [ebp - 0x464], xmm0
movlpd qword [ebp - 0x45c], xmm0
movlpd qword [ebp - 0x44e], xmm0
movlpd qword [ebp - 0x446], xmm0
mov dword [ebp - 0x454], 1
movups xmmword [ebp - 0x498], xmm0
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x420]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x484], esi
lea eax, [ebp - 0x484]
push eax
push 0xf023f
push esi
push str.SoftwareRazer_Chroma_SDK
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x42cdb8
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x43c], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push str.InstallPath
push dword [ebp - 0x484]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword fs:[0x2c]
mov esi, eax
test esi, esi
jne 0x42cd44
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push 0x4ef4c0
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x218]
push str.RzChromaStreamSession.exe
push eax
call esi
push dword [ebp - 0x484]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42ce25
mov ecx, dword [edi]
mov eax, dword [0x50e588]
cmp eax, dword [ecx + 4]
jle 0x42cd99
push 0x50e588
call fcn.00436657
add esp, 4
cmp dword [0x50e588], 0xffffffff
jne 0x42cd99
push 0x210
push 0
push 0x50e378
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call fcn.0040a390
push 0x4be580
call fcn.00436969
push 0x50e588
call fcn.0043660d
add esp, 8
push 0xca
push ecx
push esi
mov ecx, 0x50e378
call fcn.0040aab0
push dword [ebp - 0x484]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42ce25
mov edi, dword fs:[0x2c]
mov eax, dword [0x50e588]
mov ecx, dword [edi]
cmp eax, dword [ecx + 4]
jle 0x42ce14
push 0x50e588
call fcn.00436657
add esp, 4
cmp dword [0x50e588], 0xffffffff
jne 0x42ce14
push 0x210
push 0
push 0x50e378
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call fcn.0040a390
push 0x4be580
call fcn.00436969
push 0x50e588
call fcn.0043660d
add esp, 8
push 0xd1
push ecx
push esi
mov ecx, 0x50e378
call fcn.0040aab0
lea eax, [ebp - 0x488]
mov dword [ebp - 0x488], 0
push eax
push dword [ebp - 0x49c]
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x42cf04
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x488]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp eax, 1
jne 0x42cea0
mov eax, dword [ebp - 0x498]
xor esi, esi
mov dword [0x50f2bc], eax
mov eax, dword [ebp - 0x490]
mov dword [0x50f2b8], eax
jmp 0x42cf72
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov esi, eax
mov eax, dword [0x50e588]
cmp eax, dword [ecx + 4]
jle 0x42cefd
push 0x50e588
call fcn.00436657
add esp, 4
cmp dword [0x50e588], 0xffffffff
jne 0x42cefd
push 0x210
push 0
push 0x50e378
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call fcn.0040a390
push 0x4be580
call fcn.00436969
push 0x50e588
call fcn.0043660d
add esp, 8
push 0xf0
jmp 0x42cf66
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov esi, eax
mov eax, dword [0x50e588]
cmp eax, dword [ecx + 4]
jle 0x42cf61
push 0x50e588
call fcn.00436657
add esp, 4
cmp dword [0x50e588], 0xffffffff
jne 0x42cf61
push 0x210
push 0
push 0x50e378
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call fcn.0040a390
push 0x4be580
call fcn.00436969
push 0x50e588
call fcn.0043660d
add esp, 8
push 0xf6
push ecx
push esi
mov ecx, 0x50e378
call fcn.0040aab0
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x42cf83
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x434]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x42cf96
push eax
call edi
mov eax, dword [ebp - 0x430]
test eax, eax
je 0x42cfa3
push eax
call edi
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x42cfb8
push 0x20
push eax
call fcn.00436511
add esp, 8
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x42cfcd
push 0xc
push eax
call fcn.00436511
add esp, 8
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x42cfe2
push 6
push eax
call fcn.00436511
add esp, 8
mov eax, esi
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.004364d3
mov esp, ebp
pop ebp
ret