Function at 0x477994
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x47799c
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x477c3f
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 0x477c15
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
jne 0x477a1d
lea eax, [ebp - 0x3c]
call fcn.00476f10
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
mov edx, 0x477c58
call fcn.00405304
mov ecx, dword [ebp - 0x38]
mov dl, 1
mov eax, dword [0x407fd4]
call fcn.0040ccd4
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
call fcn.00404a0c
jmp 0x477c24
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 0x477bb0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
jne 0x477a8a
lea eax, [ebp - 0x44]
call fcn.00476f10
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
mov edx, 0x477c84
call fcn.00405304
mov ecx, dword [ebp - 0x40]
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 0x477c24
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_StartServiceA
test eax, eax
jne 0x477ade
lea eax, [ebp - 0x4c]
call fcn.00476f10
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
mov edx, 0x477cb0
call fcn.00405304
mov ecx, dword [ebp - 0x48]
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 0x477c24
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x477b93
lea eax, [ebp - 0x54]
call fcn.00476f10
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
mov edx, 0x477cd0
call fcn.00405304
mov ecx, dword [ebp - 0x50]
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 0x477c24
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x477b8b
lea eax, [ebp - 0x5c]
call fcn.00476f10
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
mov edx, 0x477cd0
call fcn.00405304
mov ecx, dword [ebp - 0x58]
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 0x477c24
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x18]
jb 0x477b99
cmp dword [ebp - 0x30], 4
jne 0x477b2f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477bb7
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 0x477c46
lea eax, [ebp - 0x64]
mov edx, 0xc
call fcn.00405010
ret