Function at 0x436660
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, eax
cmp byte [esi], 0
push edi
je 0x4366ac
push esi
push str.RsStartService__s_
push 0x80
call fcn.004025a0
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
jne 0x4366b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_Failed__Err_Code:__d
push 4
call fcn.004025a0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
xor eax, eax
push 0xf01ff
push esi
push ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x436716
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_Failed__Err_Code:__d
push 4
call fcn.004025a0
add esp, 0xc
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [esp + 0x10]
push eax
push esi
call edi
cmp dword [esp + 0x14], 4
jne 0x436758
push str.Service_is_Running...
push 0x80
call fcn.004025a0
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x43679b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartService_Failed__Err_Code:__d
push 4
call fcn.004025a0
add esp, 0xc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x4367d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatus_Failed__Err_Code:__d
push 4
call fcn.004025a0
add esp, 0xc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [esp + 0x14], 2
mov ecx, dword [esp + 0x24]
mov edi, eax
mov dword [esp + 0x34], ecx
jne 0x436886
mov eax, 0xcccccccd
mul dword [esp + 0x28]
shr edx, 3
cmp edx, 0x3e8
jae 0x43680d
mov edx, 0x3e8
jmp 0x43681a
cmp edx, 0x2710
jbe 0x43681a
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x43685c
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x24], eax
jbe 0x436849
call ebx
mov ecx, dword [esp + 0x24]
mov edi, eax
mov dword [esp + 0x34], ecx
jmp 0x436853
call ebx
sub eax, edi
cmp eax, dword [esp + 0x28]
ja 0x436874
cmp dword [esp + 0x14], 2
je 0x4367f2
jmp 0x436886
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatus_Failed__Err_Code:__d
push 4
call fcn.004025a0
add esp, 0xc
jmp 0x436886
push str.No_Progress...
push 0x80
call fcn.004025a0
add esp, 8
cmp dword [esp + 0x14], 4
je 0x4368b7
push str.Invalid_Service_Status_
push 0x80
call fcn.004025a0
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
push str.Service_is_Running...
push 0x80
call fcn.004025a0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 8