Function at 0x477cf8
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x477d00
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x477f9d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 8], edx
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x477f73
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
jne 0x477d80
lea eax, [ebp - 0x38]
call fcn.00476f10
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x477fb4
call fcn.00405304
mov ecx, dword [ebp - 0x34]
mov dl, 1
mov eax, dword [0x407fd4]
call fcn.0040ccd4
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
call fcn.00404a0c
jmp 0x477f82
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0040547c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x477f0e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
jne 0x477ded
lea eax, [ebp - 0x40]
call fcn.00476f10
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, 0x477fe0
call fcn.00405304
mov ecx, dword [ebp - 0x3c]
mov dl, 1
mov eax, dword [0x407fd4]
call fcn.0040ccd4
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
call fcn.00404a0c
call fcn.00404a0c
jmp 0x477f82
lea eax, [ebp - 0x30]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_ControlService
test eax, eax
jne 0x477e3c
lea eax, [ebp - 0x48]
call fcn.00476f10
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
mov edx, 0x47800c
call fcn.00405304
mov ecx, dword [ebp - 0x44]
mov dl, 1
mov eax, dword [0x407fd4]
call fcn.0040ccd4
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
call fcn.00404a0c
call fcn.00404a0c
jmp 0x477f82
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x477ef1
lea eax, [ebp - 0x50]
call fcn.00476f10
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
mov edx, 0x47802c
call fcn.00405304
mov ecx, dword [ebp - 0x4c]
mov dl, 1
mov eax, dword [0x407fd4]
call fcn.0040ccd4
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
call fcn.00404a0c
call fcn.00404a0c
jmp 0x477f82
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x477ee9
lea eax, [ebp - 0x58]
call fcn.00476f10
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
mov edx, 0x47802c
call fcn.00405304
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x407fd4]
call fcn.0040ccd4
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
call fcn.00404a0c
call fcn.00404a0c
jmp 0x477f82
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jb 0x477ef7
cmp dword [ebp - 0x2c], 1
jne 0x477e8d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477f15
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477fa4
lea eax, [ebp - 0x60]
mov edx, 0xc
call fcn.00405010
ret