Function at 0x42fe50
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebx + 4]
push esi
push edi
lea eax, [ebp - 0x20]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x42fe7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebx + 4]
lea edx, [ebp - 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42ff3b
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [ebp - 0x1c], 1
mov ecx, dword [ebp - 0xc]
mov esi, eax
mov dword [ebp - 0x254], ecx
je 0x42ff23
mov edi, edi
mov eax, 0xcccccccd
mul dword [ebp - 8]
shr edx, 3
cmp edx, 0x3e8
jae 0x42feca
mov edx, 0x3e8
jmp 0x42fed7
cmp edx, 0x2710
jbe 0x42fed7
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 4]
lea edx, [ebp - 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42ff1d
mov ecx, dword [ebp - 0x254]
cmp dword [ebp - 0xc], ecx
jbe 0x42ff0a
call edi
mov edx, dword [ebp - 0xc]
mov esi, eax
mov dword [ebp - 0x254], edx
jmp 0x42ff13
call edi
sub eax, esi
cmp eax, dword [ebp - 8]
ja 0x42ff1d
cmp dword [ebp - 0x1c], 1
jne 0x42feb0
xor eax, eax
jmp 0x42ff41
cmp dword [ebp - 0x1c], 1
jne 0x42ff27
xor eax, eax
jmp 0x42ff41
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
jmp 0x42ff41
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x430081
cmp eax, 0x424
je 0x430081
push 0x45e7c0
push 0x4699dc
mov eax, 1
mov dword [ebp - 0x254], 0
call fcn.0042c820
mov ecx, dword [ebx + 4]
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
add esp, 8
lea eax, [ebp - 0x254]
push eax
push 0
push 0
push ecx
call edi
mov edx, dword [ebp - 0x254]
push edx
call fcn.00437647
mov esi, eax
add esp, 4
test esi, esi
je 0x43007c
mov ecx, dword [ebp - 0x254]
mov edx, dword [ebx + 4]
lea eax, [ebp - 0x254]
push eax
push ecx
push esi
push edx
call edi
test eax, eax
je 0x430041
mov eax, dword [esi + 0xc]
push eax
lea eax, [ebp - 0x250]
call fcn.00430dc0
add esp, 4
cmp eax, 1
jne 0x430010
push str.Force_closing_the_service
push 0x4699dc
call fcn.0042c820
mov ecx, dword [esi + 0xc]
add esp, 8
call fcn.00430e60
push esi
mov edi, eax
call fcn.00439ca1
add esp, 4
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004377c1
mov esp, ebp
pop ebp
ret
push str.Service_is_not_running
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 8
push esi
xor edi, edi
call fcn.00439ca1
add esp, 4
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004377c1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.Error_retrieving_service_configuration__0x_X_
push 0x4699dc
mov eax, 1
call fcn.0042c820
add esp, 0xc
push esi
call fcn.00439ca1
add esp, 4
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004377c1
mov esp, ebp
pop ebp
ret
mov eax, 0xe
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004377c1
mov esp, ebp
pop ebp
ret