Function at 0x130840
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x130848
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x130b5f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x2c]
mov eax, 0x130b6c
call fcn.00031d88
push dword [ebp - 0x2c]
push dword [ebp - 4]
lea edx, [ebp - 0x30]
mov eax, 0x130b74
call fcn.00031d88
push dword [ebp - 0x30]
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00013f8c
mov eax, dword [ebp - 0x28]
call fcn.001306c8
pop ecx
push 0
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x130af1
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x130aea
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00014090
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x130a10
push 0
call sub.kernel32.dll_SetLastError
lea eax, [ebp - 0x24]
push eax
push 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_ControlService
test eax, eax
je 0x13094e
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x38]
mov eax, 0x130b78
call fcn.00031d88
push dword [ebp - 0x38]
push dword [ebp - 4]
lea edx, [ebp - 0x3c]
mov eax, 0x130b74
call fcn.00031d88
push dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00013f8c
mov eax, dword [ebp - 0x34]
call fcn.001306c8
pop ecx
jmp 0x130a69
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp + 8]
mov dword [edx - 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0x426
jne 0x1309c0
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x44]
mov eax, 0x130b78
call fcn.00031d88
push dword [ebp - 0x44]
push dword [ebp - 4]
lea edx, [ebp - 0x48]
mov eax, 0x130b80
call fcn.00031d88
push dword [ebp - 0x48]
lea edx, [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0002b100
push dword [ebp - 0x4c]
lea eax, [ebp - 0x40]
mov edx, 4
call fcn.00013f8c
mov eax, dword [ebp - 0x40]
call fcn.001306c8
pop ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 8], edx
jmp 0x130a69
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x54]
mov eax, 0x130b84
call fcn.00031d88
push dword [ebp - 0x54]
push dword [ebp - 4]
lea edx, [ebp - 0x58]
mov eax, 0x130b80
call fcn.00031d88
push dword [ebp - 0x58]
lea edx, [ebp - 0x5c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0002b100
push dword [ebp - 0x5c]
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.00013f8c
mov eax, dword [ebp - 0x50]
call fcn.00130784
pop ecx
jmp 0x130a69
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp + 8]
mov dword [edx - 8], eax
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x64]
mov eax, 0x130b8c
call fcn.00031d88
push dword [ebp - 0x64]
push dword [ebp - 4]
lea edx, [ebp - 0x68]
mov eax, 0x130b80
call fcn.00031d88
push dword [ebp - 0x68]
lea edx, [ebp - 0x6c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0002b100
push dword [ebp - 0x6c]
lea eax, [ebp - 0x60]
mov edx, 4
call fcn.00013f8c
mov eax, dword [ebp - 0x60]
call fcn.00130784
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x130b3a
cmp dword [ebp - 8], 0
je 0x130ae9
push 0
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
test eax, eax
jne 0x130ae9
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x74]
mov eax, 0x130b94
call fcn.00031d88
push dword [ebp - 0x74]
push dword [ebp - 4]
lea edx, [ebp - 0x78]
mov eax, 0x130b80
call fcn.00031d88
push dword [ebp - 0x78]
lea edx, [ebp - 0x7c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0002b100
push dword [ebp - 0x7c]
lea eax, [ebp - 0x70]
mov edx, 4
call fcn.00013f8c
mov eax, dword [ebp - 0x70]
call fcn.00130784
pop ecx
ret
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x84]
mov eax, 0x130b9c
call fcn.00031d88
push dword [ebp - 0x84]
push dword [ebp - 4]
lea edx, [ebp - 0x88]
mov eax, 0x130ba4
call fcn.00031d88
push dword [ebp - 0x88]
lea eax, [ebp - 0x80]
mov edx, 3
call fcn.00013f8c
mov eax, dword [ebp - 0x80]
call fcn.00130784
pop ecx
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x130b66
lea eax, [ebp - 0x88]
mov edx, 0x19
call fcn.00013c60
ret