Function at 0x44e710
Capabilities:
Check for time delay via gettickcount
Link many functions at runtime

Disassembly:
sub esp, 0x238
push ebx
push ebp
push esi
push edi
call fcn.00441cf0
test eax, eax
je 0x44e7ba
mov eax, dword [esp + 0x24c]
lea ecx, [esp + 0x48]
push eax
push str.CService_::_StartAService_:_csServiceName___s_n
push ecx
call fcn.00465850
mov edi, str.ENTRY:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x148]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x148]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x48]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00441c80
mov ecx, eax
call fcn.00441d20
lea eax, [esp + 0x148]
push eax
call fcn.00441c80
mov ecx, eax
call fcn.00442090
push str.Advapi32.dll
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x44e8e4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenSCManagerA
push esi
call edi
test eax, eax
mov dword [esp + 0x14], eax
je 0x44e8c1
push str.OpenServiceA
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x44e89e
push str.QueryServiceStatusEx
push esi
call edi
test eax, eax
mov dword [esp + 0x1c], eax
je 0x44e87b
push str.StartServiceA
push esi
call edi
mov ebp, eax
test ebp, ebp
je 0x44e858
push str.CloseServiceHandle
push esi
call edi
test eax, eax
mov dword [esp + 0x18], eax
jne 0x44e907
call fcn.00441cf0
test eax, eax
je 0x44eb35
push str.Failed_to_load_export_CloseServiceHandle_n
call fcn.00441c80
mov ecx, eax
call fcn.00442090
jmp 0x44eb35
call fcn.00441cf0
test eax, eax
je 0x44eb35
push str.Failed_to_load_export_StartService_n
call fcn.00441c80
mov ecx, eax
call fcn.00442090
jmp 0x44eb35
call fcn.00441cf0
test eax, eax
je 0x44eb35
push str.Failed_to_load_export_pfnQueryServiceStatusEx_n
call fcn.00441c80
mov ecx, eax
call fcn.00442090
jmp 0x44eb35
call fcn.00441cf0
test eax, eax
je 0x44eb35
push str.Failed_to_load_export_OpenServiceA_n
call fcn.00441c80
mov ecx, eax
call fcn.00442090
jmp 0x44eb35
call fcn.00441cf0
test eax, eax
je 0x44eb35
push str.Failed_to_load_export_OpenSCManagerA_n
call fcn.00441c80
mov ecx, eax
call fcn.00442090
jmp 0x44eb35
call fcn.00441cf0
test eax, eax
je 0x44eb35
push str.Failed_to_load_Advapi32.dll_file_n
call fcn.00441c80
mov ecx, eax
call fcn.00442090
jmp 0x44eb35
push 1
push str.ServicesActive
push 0
call dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x14], eax
je 0x44ea53
mov ecx, dword [esp + 0x24c]
push 0xf01ff
push ecx
push eax
call ebx
mov esi, eax
test esi, esi
je 0x44ea8f
push 0
push 0
push esi
call ebp
test eax, eax
je 0x44eab8
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push 0x24
push eax
push 0
push esi
call edi
test eax, eax
je 0x44eae1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov ecx, dword [esp + 0x38]
mov ebx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
cmp eax, 2
jne 0x44ea46
mov eax, 0xcccccccd
mul dword [esp + 0x3c]
shr edx, 3
cmp edx, 0x3e8
jae 0x44e9a0
mov edx, 0x3e8
jmp 0x44e9ad
cmp edx, 0x2710
jbe 0x44e9ad
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x20]
lea eax, [esp + 0x24]
push edx
push 0x24
push eax
push 0
push esi
call edi
test eax, eax
je 0x44ea03
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
cmp eax, ecx
jbe 0x44e9e3
call ebp
mov edx, dword [esp + 0x38]
mov ebx, eax
mov dword [esp + 0x10], edx
jmp 0x44e9ef
call ebp
mov ecx, dword [esp + 0x3c]
sub eax, ebx
cmp eax, ecx
ja 0x44ea2c
cmp dword [esp + 0x28], 2
je 0x44e985
mov dword [esp + 0x10], 1
jmp 0x44eb14
call fcn.00441cf0
test eax, eax
je 0x44ea46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x4c]
push str.ERROR:_QueryServiceStatusEx___2_:_GetLastError_____d_n
push eax
call fcn.00465850
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
jmp 0x44ea3a
call fcn.00441cf0
test eax, eax
je 0x44ea46
push str.ERROR:_Time_Out_n
call fcn.00441c80
mov ecx, eax
call fcn.00442090
mov dword [esp + 0x10], 1
jmp 0x44eb14
call fcn.00441cf0
test eax, eax
je 0x44eb26
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x4c]
push str.ERROR:_OpenSCManager___:_GetLastError_____d_n
push edx
call fcn.00465850
add esp, 0xc
lea eax, [esp + 0x48]
push eax
call fcn.00441c80
mov ecx, eax
call fcn.00442090
jmp 0x44eb26
call fcn.00441cf0
test eax, eax
je 0x44eb14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x4c]
push str.ERROR:_OpenService___:_GetLastError_____d_n
push ecx
call fcn.00465850
add esp, 0xc
lea edx, [esp + 0x48]
push edx
jmp 0x44eb08
call fcn.00441cf0
test eax, eax
je 0x44eb14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x4c]
push str.ERROR:_StartService___:_GetLastError_____d_n
push eax
call fcn.00465850
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
jmp 0x44eb08
call fcn.00441cf0
test eax, eax
je 0x44eb14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x4c]
push str.ERROR:_QueryServiceStatusEx___:_GetLastError_____d_n
push edx
call fcn.00465850
add esp, 0xc
lea eax, [esp + 0x48]
push eax
call fcn.00441c80
mov ecx, eax
call fcn.00442090
test esi, esi
je 0x44eb1d
push esi
call dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push ecx
call dword [esp + 0x1c]
cmp dword [esp + 0x28], 4
je 0x44eb35
mov dword [esp + 0x10], 0
call fcn.00441cf0
test eax, eax
je 0x44ebe1
mov ebx, dword [esp + 0x10]
lea edx, [esp + 0x48]
push ebx
push str.CService_::_StartAService_:_bRetVal___d_n
push edx
call fcn.00465850
mov edi, str.EXIT:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x148]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x148]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x48]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x148]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00441c80
mov ecx, eax
call fcn.00442090
call fcn.00441c80
mov ecx, eax
call fcn.00441d30
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x238
ret 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x238
ret 4