Function at 0x425910
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push 0xffffffffffffffff
push 0x4be185
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
mov eax, dword [0x4f5b3c]
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x174], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push 0xa
lea ecx, [esp + 0x2c]
mov byte [esp + 0x178], 3
call fcn.004a7f83
mov dword [esp + 0x18], 0x4ca7ac
mov eax, dword [0x4ffaa0]
mov byte [esp + 0x174], 4
cmp eax, ebp
mov dword [esp + 0x44], 0x100
jne 0x4259f3
lea ecx, [esp + 0x28]
mov byte [esp + 0x174], 7
call fcn.004a7ff7
lea ecx, [esp + 0x24]
mov byte [esp + 0x174], 6
call fcn.004a9c1f
lea ecx, [esp + 0x20]
mov byte [esp + 0x174], 5
call fcn.004a9c1f
lea ecx, [esp + 0x18]
lea eax, [esp + 0x1c]
neg ecx
sbb ecx, ecx
mov byte [esp + 0x174], 0
and ecx, eax
call fcn.004a9c1f
lea ecx, [esp + 0x10]
mov dword [esp + 0x174], 0xffffffff
call fcn.004a9c1f
mov eax, 1
jmp 0x425ca5
mov esi, dword [esi + 4]
lea ecx, [esp + 0x1c]
push esi
call fcn.004a9d5c
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00438880
lea ecx, [esp + 0x48]
call fcn.004a9c1f
push 1
push ebp
lea edx, [esp + 0x18]
push 0x3a
push edx
push ebp
lea ecx, [esp + 0x30]
call fcn.00437e10
push 0x3a
push ecx
mov ecx, esp
mov dword [esp + 0x70], esp
push str.stop
call fcn.004a9c8d
lea ecx, [esp + 0x24]
call fcn.00438180
mov edi, eax
mov eax, dword [0x4fef7c]
cmp eax, ebp
je 0x425a5b
xor eax, eax
cmp edi, ebp
sete al
mov edi, eax
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], ebp
jne 0x425acd
lea ecx, [esp + 0x28]
mov byte [esp + 0x174], 0xa
call fcn.004a7ff7
lea ecx, [esp + 0x24]
mov byte [esp + 0x174], 9
call fcn.004a9c1f
lea ecx, [esp + 0x20]
mov byte [esp + 0x174], 8
call fcn.004a9c1f
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
neg ecx
sbb ecx, ecx
mov byte [esp + 0x174], 0
and ecx, edx
call fcn.004a9c1f
lea ecx, [esp + 0x10]
mov dword [esp + 0x174], 0xffffffff
call fcn.004a9c1f
xor eax, eax
jmp 0x425ca5
mov eax, edi
neg eax
sbb eax, eax
and eax, 0xf003d
add eax, 2
push eax
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, ebp
je 0x425c3f
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x44]
lea edx, [esp + 0x6c]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetServiceKeyNameA]
mov ecx, edi
lea edx, [esp + 0x6c]
neg ecx
sbb ecx, ecx
and ecx, 0xf01ef
add ecx, 0x10
push ecx
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebp
je 0x425c36
cmp edi, ebp
je 0x425b99
lea eax, [esp + 0x4c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x425c03
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x4c]
push ecx
push esi
call ebp
test eax, eax
je 0x425b86
cmp dword [esp + 0x50], 3
jne 0x425b86
call fcn.00441c00
test eax, eax
je 0x425b86
push 0x3e8
call edi
lea edx, [esp + 0x4c]
push edx
push esi
call ebp
test eax, eax
jne 0x425b63
mov ecx, dword [esp + 0x50]
mov eax, 1
cmp ecx, eax
jne 0x425c03
mov dword [esp + 0x14], eax
jmp 0x425c03
push ebp
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x425bee
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
call fcn.00441c00
test eax, eax
je 0x425be5
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [esp + 0x4c]
push eax
push esi
call ebp
test eax, eax
je 0x425be5
cmp dword [esp + 0x50], 2
jne 0x425be5
push 0x3e8
call edi
call fcn.00441c00
test eax, eax
jne 0x425bc2
cmp dword [esp + 0x50], 4
jne 0x425c03
jmp 0x425bfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x425c03
mov dword [esp + 0x14], 1
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call edi
lea ecx, [esp + 0x6c]
push 0x80
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x425c3c
lea edx, [esp + 0x4c]
push edx
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call edi
jmp 0x425c3c
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x174], 0xd
call fcn.004a7ff7
lea ecx, [esp + 0x24]
mov byte [esp + 0x174], 0xc
call fcn.004a9c1f
lea ecx, [esp + 0x20]
mov byte [esp + 0x174], 0xb
call fcn.004a9c1f
lea ecx, [esp + 0x18]
lea eax, [esp + 0x1c]
neg ecx
sbb ecx, ecx
mov byte [esp + 0x174], 0
and ecx, eax
call fcn.004a9c1f
lea ecx, [esp + 0x10]
mov dword [esp + 0x174], 0xffffffff
call fcn.004a9c1f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x168
ret