Function at 0x456890
Capabilities:
Query service status
Start service

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515365
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x55f2b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x6c], esi
push 1
push str.ServicesActive
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x68], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x456b65
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x456900
mov eax, dword [esi]
push 0x14
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x48], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x456b87
lea eax, [ebp - 0x64]
mov dword [ebp - 0x4c], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x64], xmm0
movq qword [ebp - 0x54], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ecx, dword [ebp - 0x6c]
test eax, eax
jne 0x456958
call fcn.004146e0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push str.Unable_to_query_status_of_the_service__s_
jmp 0x456b9d
mov edx, dword [ecx + 0x10]
mov eax, SysReAllocString
sub eax, edx
cmp eax, 0x22
jb 0x456bb4
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x456975
mov eax, dword [ecx]
push edx
push eax
push 0x22
push str.SYSTEMCurrentControlSetServices_
push ecx
push dword [ebp - 0x48]
lea ecx, [ebp - 0x30]
call fcn.0041ba50
lea eax, [ebp - 0x15]
mov byte [ebp - 0x15], 0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
mov byte [ebp - 0x3c], 0
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 3
mov edx, eax
cmp dword [ebp - 0x1c], 8
cmovae edx, dword [ebp - 0x30]
sub esp, 8
call fcn.00465440
add esp, 8
test al, al
jne 0x456a0f
cmp dword [ebp - 0x1c], 8
lea edx, [ebp - 0x30]
push ecx
cmovae edx, dword [ebp - 0x30]
push 1
push str.ErrorControl
mov byte [ebp - 0x15], 1
call fcn.0041b7a0
cmp dword [ebp - 0x1c], 8
lea edx, [ebp - 0x30]
cmovae edx, dword [ebp - 0x30]
add esp, 8
push 3
push str.Start
call fcn.0041b7a0
cmp dword [ebp - 0x1c], 8
lea edx, [ebp - 0x30]
cmovae edx, dword [ebp - 0x30]
add esp, 8
push dword [ebp - 0x64]
push str.Type
call fcn.0041b7a0
add esp, 0xc
mov eax, dword [ebp - 0x60]
cmp eax, 2
je 0x456a6a
cmp eax, 4
je 0x456a6a
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x456a6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x456a6a
mov ecx, dword [ebp - 0x6c]
call fcn.004146e0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push str.Unable_to_start_the_service__s_
push eax
lea ecx, [ebp - 0x84]
call fcn.00456d30
push 0x55c1ac
lea eax, [ebp - 0x84]
jmp 0x456bae
mov byte [ebp - 4], 4
cmp byte [ebp - 0x3c], 0
jne 0x456a82
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], eax
call fcn.00456dc0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x456ac0
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x456ab6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x456bb9
push edx
push ecx
call fcn.004d06e3
add esp, 8
xor eax, eax
mov dword [ebp - 0x70], eax
cmp eax, 0xffffffff
je 0x456ad1
cmp eax, 0xea60
jae 0x456af6
cmp dword [ebp - 0x60], 4
je 0x456b37
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x64]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x456b08
mov eax, dword [ebp - 0x70]
add eax, 0x64
jmp 0x456ac2
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x456b47
mov ecx, dword [ebp - 0x6c]
call fcn.004146e0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push str.Unable_to_query_status_of_the_service__s_
push eax
lea ecx, [ebp - 0x84]
call fcn.00456d30
push 0x55c1ac
lea eax, [ebp - 0x84]
jmp 0x456bae
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d0675
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.Unable_to_open_the_service_control_manager_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x44]
call fcn.00468eb0
push 0x55c1ac
lea eax, [ebp - 0x44]
push eax
call fcn.004e81cb
mov ecx, dword [ebp - 0x6c]
call fcn.004146e0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push str.Unable_to_open_the_service__s_
push eax
lea ecx, [ebp - 0x44]
call fcn.00456d30
push 0x55c1ac
lea eax, [ebp - 0x44]
push eax
call fcn.004e81cb
call fcn.00414310
call fcn.004ebf29
int3