Function at 0x424300
Capabilities:
Query or enumerate registry key
Query service status
Start service

Disassembly:
push 0x44
mov eax, 0x4f06b6
call fcn.004d2094
push ecx
mov edi, ecx
mov eax, esp
add edi, 0xc
mov dword [ebp - 0x20], esp
push dword [edi]
xor ebx, ebx
push str.ScmDirectStart__s_
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], edi
call fcn.00478210
add esp, 0xc
call fcn.00422ddb
pop ecx
lea eax, [ebp - 0x18]
push eax
push 0x109
push ebx
push str.SystemCurrentControlSetServices
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x42435e
xor eax, eax
inc eax
jmp 0x4246dc
push ecx
mov eax, esp
mov dword [ebp - 0x20], esp
push dword [edi]
push str.ScmDirectStart:__s:_browsing_virt_services_under_the_real_Services_key
push eax
call fcn.00478210
add esp, 0xc
call fcn.00422ddb
pop ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.004bc4b7
push eax
lea ecx, [ebp - 0x10]
call fcn.0042636f
mov esi, 0x104
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0042249e
push esi
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00424af8
cmp esi, ebx
jne 0x424615
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push edi
call fcn.004247d5
push ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x30], esp
mov ecx, esp
push eax
call fcn.00424eef
mov byte [ebp - 4], bl
call fcn.00422d04
pop ecx
pop ecx
cmp eax, ebx
jne 0x4243fd
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
jmp 0x4245b3
mov esi, dword [ebp - 0x10]
push ecx
mov eax, esp
mov dword [ebp - 0x30], esp
push esi
push str.ScmDirectStart:_virtual_service_found:__s
push eax
call fcn.00478210
add esp, 0xc
call fcn.00422ddb
inc dword [ebp - 0x28]
pop ecx
push ebx
lea eax, [ebp - 0x1c]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.OrgStartType
mov dword [ebp - 0x1c], ebx
call fcn.004247ea
push ecx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00424eef
push dword [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00478f70
add esp, 0x14
cmp eax, ebx
jne 0x424481
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
push str.ScmDirectStart:_could_NOT_read_value_OrgStartType__LE_d_._Skipping_this_service.
push ecx
call fcn.00478210
add esp, 0xc
call fcn.00422ddb
pop ecx
jmp 0x4245ac
cmp dword [ebp - 0x1c], 3
je 0x4245ac
cmp dword [ebp - 0x1c], 4
je 0x4245ac
cmp dword [ebp - 0x14], ebx
jne 0x4244c9
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push ecx
mov dword [ebp - 0x30], esp
mov ecx, esp
push 0x5432bc
mov dword [ebp - 0x14], eax
call fcn.00424eef
call fcn.0048a6d0
pop ecx
cmp dword [ebp - 0x14], ebx
je 0x4245c0
push 0x14
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x4244f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
push str.ScmDirectStart:_FAILED_opening_service:_LE_d
jmp 0x42446d
push ecx
mov eax, esp
mov dword [ebp - 0x30], esp
push esi
push str.ScmDirectStart:_starting_virtual_auto_start_service__s
push eax
call fcn.00478210
add esp, 0xc
call fcn.00422ddb
pop ecx
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x4c], ebx
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42457f
cmp dword [ebp - 0x48], 1
jne 0x42456a
push ebx
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov edi, str.TRUE
cmp eax, ebx
jne 0x42454b
mov edi, str.FALSE
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
push edi
push esi
push str.ScmDirectStart:_StartService__s__s__LE_d_
push ecx
call fcn.00478210
add esp, 0x14
jmp 0x42459a
push ecx
mov eax, esp
mov dword [ebp - 0x30], esp
push str.ScmDirectStart:_service_already_running
push eax
call fcn.00478210
pop ecx
pop ecx
jmp 0x42459a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
push str.ScmDirectStart:_QueryServiceStatus_failed:_LE_d
push ecx
call fcn.00478210
add esp, 0xc
call fcn.00422ddb
pop ecx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [ebp - 0x2c]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.0042201a
inc dword [ebp - 0x24]
jmp 0x424380
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 5
jne 0x4245de
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.00476ed0
test eax, eax
je 0x424647
call edi
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
push str.ScmDirectStart:_FAILED_opening_SCM:_LE_d
push ecx
call fcn.00478210
add esp, 0xc
call fcn.00422ddb
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x11
pop ebx
jmp 0x4246cd
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042201a
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], ebx
je 0x424637
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x28], ebx
jle 0x4246d9
xor eax, eax
jmp 0x4246dc
or dword [ebp - 0x24], 0xffffffff
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str._Quiet__SvcStart
lea esi, [ebp - 0x24]
call fcn.004247ea
push ecx
mov eax, esp
mov dword [ebp - 0x2c], esp
push eax
mov byte [ebp - 4], 3
call fcn.004770f0
pop ecx
xor ecx, ecx
mov edx, esi
mov byte [ebp - 4], bl
call fcn.00476cc0
add esp, 0xc
cmp eax, ebx
je 0x424689
cmp dword [ebp - 0x24], ebx
je 0x4246ca
push dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push eax
call fcn.0047f660
pop ecx
pop ecx
mov esi, eax
mov byte [ebp - 4], 4
call edi
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
push dword [esi]
push str.ScmDirectStart:_FAILED_elevating_process_for_opening_SCM:_ApiRet_s__LE_d
push ecx
call fcn.00478210
add esp, 0x10
call fcn.00422ddb
pop ecx
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.0042201a
push 0x11
pop ebx
mov esi, dword [ebp - 0x10]
lea ecx, [esi - 0x10]
call fcn.0042201a
mov eax, ebx
jmp 0x4246dc
push 5
pop eax
call fcn.004d216c
ret