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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push 1
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x45e166
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x45e13d
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x45e111
push str.StartService____Service_start_pending.
call fcn.0045f4c0
add esp, 4
lea eax, [ebp - 0x34]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x45e10a
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
cmp eax, 2
jne 0x45e09c
mov ecx, 0x2710
lea esp, [esp]
mov eax, 0xcccccccd
mul dword [ebp - 0x10]
shr edx, 3
cmp edx, 0x3e8
jae 0x45e04a
mov edx, 0x3e8
jmp 0x45e053
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x34]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x45e099
cmp dword [ebp - 0x14], ebx
jbe 0x45e080
call edi
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
jmp 0x45e08a
call edi
sub eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x10]
ja 0x45e099
mov eax, dword [ebp - 0x24]
mov ecx, 0x2710
cmp eax, 2
je 0x45e030
jmp 0x45e09c
mov eax, dword [ebp - 0x24]
cmp eax, 4
jne 0x45e0d5
push str.StartService____StartService_success
call fcn.0045f4c0
mov edi, dword [ebp - 0x2c]
add esp, 4
mov ebx, 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046984a
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1c]
push eax
push str.StartService____Service_not_started._Current_State:__d___Exit_Code:__d
call fcn.0045f4c0
mov edi, dword [ebp - 0x2c]
add esp, 0xc
xor ebx, ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046984a
mov esp, ebp
pop ebp
ret
push str.StartService____QueryServiceStatusEx_failed
jmp 0x45e116
push str.StartService____StartService_failed
call fcn.0045f4c0
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046984a
mov esp, ebp
pop ebp
ret
push str.StartService____OpenService_failed
call fcn.0045f4c0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 4
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046984a
mov esp, ebp
pop ebp
ret
push str.StartService____OpenSCManager_failed
call fcn.0045f4c0
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046984a
mov esp, ebp
pop ebp
ret