Function at 0x1114d3c0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0x1127ae98
push ebx
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x1114d3fc
mov ecx, dword [0x1127b21c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x158]
push 0
push 0
call edx
mov eax, dword [ebp + 0xc]
push eax
push ebx
push str.stop_service__s__timeout__d__n
call fcn.111bd7b0
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
jne 0x1114d438
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret
push edi
push 0x24
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x1114d47b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.Cannot_open__s_service__error__d_n
call fcn.111bd7b0
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
cmp eax, 4
jne 0x1114d5a4
lea edx, [ebp - 0x20]
push edx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1114d4dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.Cannot_stop__s_service__error__d_n
call fcn.111bd7b0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 0xc
push edi
call esi
mov eax, dword [ebp - 0x28]
push eax
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x1114d5a4
jmp 0x1114d4f0
mov ecx, dword [0x1127aa74]
test ecx, ecx
je 0x1114d51a
mov edi, dword [ebp + 0xc]
add edi, 0xfffffed4
cmp esi, edi
jge 0x1114d517
push ebx
push str.Reducing_restart__s_timeout_as_were_quitting
call fcn.111bd7b0
add esp, 8
mov esi, edi
mov edi, dword [ebp - 0x2c]
lea edx, [ebp - 0x20]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1114d577
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
je 0x1114d534
mov dword [ebp - 0x24], eax
cmp eax, 1
je 0x1114d58e
cmp eax, 3
jne 0x1114d563
cmp dword [0x1127acfc], 0
jne 0x1114d550
cmp dword [0x1127ad10], 0
je 0x1114d563
push 0x1127ae98
push ebx
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x1114d596
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x1114d4f0
jmp 0x1114d5a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.Error_getting__s_status__err_d_n
call fcn.111bd7b0
add esp, 0xc
jmp 0x1114d5a4
push ebx
push str._s_stopped_n
jmp 0x1114d59c
push ebx
push str._s_stopping_n
call fcn.111bd7b0
add esp, 8
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
mov eax, dword [ebp - 0x28]
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.111d9022
mov esp, ebp
pop ebp
ret