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

Disassembly:
sub esp, 0x230
push ebx
push ebp
push esi
push edi
call fcn.00441cf0
test eax, eax
je 0x44e304
push 0
lea eax, [esp + 0x44]
push str.CService_::_StopAService_n
push eax
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 + 0x140]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x140]
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 + 0x40]
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 + 0x140]
push eax
call fcn.00441c80
mov ecx, eax
call fcn.00442090
call fcn.00441cf0
test eax, eax
je 0x44e340
mov ecx, dword [esp + 0x248]
mov edx, dword [esp + 0x244]
push ecx
push edx
lea eax, [esp + 0x48]
push str.lpszServiceName___s__bDoDeleteService___d_n
push eax
call fcn.00465850
add esp, 0x10
lea ecx, [esp + 0x40]
push ecx
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 0x44e4ba
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenSCManagerA
push esi
call edi
test eax, eax
mov dword [esp + 0x14], eax
je 0x44e47e
push str.OpenServiceA
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x44e45b
push str.QueryServiceStatus
push esi
call edi
test eax, eax
mov dword [esp + 0x1c], eax
je 0x44e438
push str.ControlService
push esi
call edi
mov ebp, eax
test ebp, ebp
je 0x44e415
push str.DeleteService
push esi
call edi
test eax, eax
mov dword [esp + 0x20], eax
je 0x44e3f2
push str.CloseServiceHandle
push esi
call edi
test eax, eax
mov dword [esp + 0x18], eax
jne 0x44e4dd
call fcn.00441cf0
test eax, eax
je 0x44e64d
push str.Failed_to_load_export_CloseServiceHandle_n
call fcn.00441c80
mov ecx, eax
call fcn.00442090
jmp 0x44e64d
call fcn.00441cf0
test eax, eax
je 0x44e64d
push str.Failed_to_load_export_DeleteService_n
call fcn.00441c80
mov ecx, eax
call fcn.00442090
jmp 0x44e64d
call fcn.00441cf0
test eax, eax
je 0x44e64d
push str.Failed_to_load_export_ControlService_n
call fcn.00441c80
mov ecx, eax
call fcn.00442090
jmp 0x44e64d
call fcn.00441cf0
test eax, eax
je 0x44e64d
push str.Failed_to_load_export_QueryServiceStatus_n
call fcn.00441c80
mov ecx, eax
call fcn.00442090
jmp 0x44e64d
call fcn.00441cf0
test eax, eax
je 0x44e64d
push str.Failed_to_load_export_OpenServiceA_n
call fcn.00441c80
mov ecx, eax
call fcn.00442090
jmp 0x44e64d
call fcn.00441cf0
test eax, eax
je 0x44e64d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x44]
push str.Failed_to_load_export_OpenSCManagerA_:_GetLastError_____d_n
push edx
call fcn.00465850
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00441c80
mov ecx, eax
call fcn.00442090
jmp 0x44e64d
call fcn.00441cf0
test eax, eax
je 0x44e64d
push str.Failed_to_load_Advapi32.dll_file_n
call fcn.00441c80
mov ecx, eax
call fcn.00442090
jmp 0x44e64d
push 0xf003f
push str.ServicesActive
push 0
call dword [esp + 0x20]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x44e64d
mov ecx, dword [esp + 0x244]
push 0xf01ff
push ecx
push edi
call ebx
mov esi, eax
test esi, esi
je 0x44e648
lea edx, [esp + 0x24]
push edx
push esi
call dword [esp + 0x24]
test eax, eax
je 0x44e63f
cmp dword [esp + 0x28], 4
jne 0x44e625
lea eax, [esp + 0x24]
push eax
push 1
push esi
call ebp
test eax, eax
je 0x44e615
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov ebx, eax
mov eax, dword [esp + 0x28]
cmp eax, 1
je 0x44e58b
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [esp + 0x24]
test eax, eax
je 0x44e5ac
cmp dword [esp + 0x28], 1
je 0x44e58b
call ebp
sub eax, ebx
cmp eax, 0x1388
ja 0x44e5ef
cmp dword [esp + 0x28], 1
jne 0x44e55d
mov eax, dword [esp + 0x248]
test eax, eax
je 0x44e59f
push esi
call dword [esp + 0x24]
test eax, eax
je 0x44e615
mov dword [esp + 0x10], 1
jmp 0x44e63f
call fcn.00441cf0
test eax, eax
je 0x44e5df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x44]
push str.ERROR:_QueryServiceStatus_:_GetLastError_____d_n
push edx
call fcn.00465850
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00441c80
mov ecx, eax
call fcn.00442090
call fcn.00441cf0
test eax, eax
je 0x44e63f
push str.ERROR:_Failed_to_completely_stop_service_n
jmp 0x44e633
call fcn.00441cf0
test eax, eax
je 0x44e5df
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x40]
push ecx
push str.ERROR:_TimeOut_:_dwCurrentState_d_n
push edx
call fcn.00465850
add esp, 0xc
lea eax, [esp + 0x40]
jmp 0x44e5d2
call fcn.00441cf0
test eax, eax
je 0x44e63f
push str.FAILED_to_stop_service____Setting_for_Reboot_n
jmp 0x44e633
call fcn.00441cf0
test eax, eax
je 0x44e63f
push str.FAILED_ControlService_:_Service_Not_Running_n
call fcn.00441c80
mov ecx, eax
call fcn.00442090
push esi
call dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
push edi
call dword [esp + 0x1c]
call fcn.00441cf0
test eax, eax
je 0x44e6f9
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x40]
push ebx
push str.CService_::_StopAService_:_bRetVal___d_n
push ecx
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 + 0x140]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x140]
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 + 0x40]
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 + 0x140]
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, 0x230
ret 8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x230
ret 8