Function at 0x429ed0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7f48
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
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 dword [ebp - 0x64], ecx
push 1
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [ebp - 0x68], edi
test edi, edi
jne 0x429f67
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 0x429fda
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004046a0
jmp 0x429fda
mov ecx, dword [ebp - 0x64]
push 0x24
call fcn.00403e00
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x429ff7
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 0x429fcf
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 - 0x68]
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], esi
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 0x42a077
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 0x42a1f2
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 0x429fd5
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 0x42a0e7
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004046a0
mov eax, dword [ebp - 0x58]
cmp eax, 1
jne 0x42a11a
push str.service_is_already_stopped
push 0x500960
mov esi, 0x426
call fcn.00428450
push eax
call fcn.00428960
add esp, 0xc
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
jmp 0x429fd5
cmp eax, 3
je 0x42a1d0
push str.try_to_stop_service...
push 0x500838
call fcn.00428450
push eax
call fcn.00428960
add esp, 0xc
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x5c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x5c], xmm0
push eax
push 1
push edi
movq qword [ebp - 0x4c], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x42a1d0
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_stop_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 - 0x2c]
cmp eax, 0x10
jb 0x42a1b6
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004046a0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp esi, 0x41d
jne 0x42a1f2
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 0x42a1f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
jmp 0x429fd5