Function at 0x42a200
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7fa0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4faee4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], edx
mov esi, ecx
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [ebp - 0x64], edi
test edi, edi
jne 0x42a296
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x28]
mov edx, esi
call fcn.0042aa30
push eax
push str.failed_to_open_service_control_manager._error:
push 0x500960
mov dword [ebp - 4], edi
call fcn.00428450
add esp, 8
push eax
call fcn.004286f0
push eax
call fcn.00428960
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp eax, 0x10
jb 0x42a308
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004046a0
jmp 0x42a308
push 0x14
mov ecx, esi
call fcn.00403e00
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x42a325
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x28]
mov edx, esi
call fcn.0042aa30
push eax
push str.failed_to_open_service._error:
push 0x500960
mov dword [ebp - 4], 1
call fcn.00428450
add esp, 8
push eax
call fcn.004286f0
push eax
call fcn.00428960
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp eax, 0x10
jb 0x42a2fd
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004046a0
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x64]
call edi
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.00464228
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x44], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x5c], xmm0
movq qword [ebp - 0x4c], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x42a3a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x28]
mov edx, esi
call fcn.0042aa30
push eax
push str.failed_to_get_service_status._error:
push 0x500960
mov dword [ebp - 4], 2
call fcn.00428450
add esp, 8
push eax
call fcn.004286f0
push eax
call fcn.00428960
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp eax, 0x10
jb 0x42a589
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004046a0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
jmp 0x42a303
mov edx, dword [ebp - 0x58]
lea ecx, [ebp - 0x28]
call fcn.0042b370
push 0x4e5aac
push eax
push 0x4e5ab0
mov dword [ebp - 4], 3
push dword [ebp - 0x58]
push str.service_state:__
push 0x500838
call fcn.00428450
add esp, 8
mov ecx, eax
call fcn.00426690
push eax
call fcn.00428450
add esp, 8
push eax
call fcn.004286f0
add esp, 8
push eax
call fcn.00428450
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x42a419
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004046a0
mov eax, dword [ebp - 0x58]
cmp eax, 1
je 0x42a481
cmp eax, 3
je 0x42a451
push str.cannot_to_start_service_because_it_is_already_running
push 0x500960
mov esi, 0x420
call fcn.00428450
push eax
call fcn.00428960
add esp, 0xc
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
jmp 0x42a303
push dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
mov edx, 1
push eax
mov ecx, edi
call fcn.0042a810
add esp, 8
test eax, eax
jne 0x42a481
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call edi
jmp 0x42a303
push str.try_to_start_service...
push 0x500838
call fcn.00428450
push eax
call fcn.00428960
add esp, 0xc
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x42a51d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x28]
mov edx, esi
call fcn.0042aa30
push eax
push str.failed_to_start_service._error:
push 0x500960
mov dword [ebp - 4], 4
call fcn.00428450
add esp, 8
push eax
call fcn.004286f0
push eax
call fcn.00428960
mov dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x42a4ff
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004046a0
cmp esi, 0x41f
jne 0x42a517
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42a481
test esi, esi
jne 0x42a589
jmp 0x42a51f
xor esi, esi
push dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
mov edx, 4
push eax
mov ecx, edi
call fcn.0042a810
add esp, 8
test eax, eax
jne 0x42a589
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x40]
mov edx, esi
call fcn.0042aa30
push eax
push str.failed_to_get_service_status._error:
push 0x500960
mov dword [ebp - 4], 5
call fcn.00428450
add esp, 8
push eax
call fcn.004286f0
push eax
call fcn.00428960
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp eax, 0x10
jb 0x42a589
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004046a0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
jmp 0x42a303