Function at 0x10003efa
Capabilities:
Check for time delay via gettickcount
Create service
Delete service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x4e20
push 0x6800
mov dword [ebp - 0x18], eax
call fcn.10007a9f
mov edx, eax
mov edi, 0x400
pop ecx
mov esi, edi
mov dword [ebp - 0x14], edx
call fcn.10007b4f
mov ebx, eax
mov dword [ebp - 4], ebx
call fcn.10007b4f
mov esi, 0x4000
mov dword [ebp - 8], eax
call fcn.10007b4f
mov esi, 0x2000
mov dword [ebp - 0x10], eax
call fcn.10007b4f
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x2c]
call fcn.10007b06
push edi
push eax
call fcn.10007bc0
mov ebx, dword [ebp - 8]
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.10007bc0
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push 0x4000
push eax
call fcn.10007bc0
add esp, 0x18
push 0xf003f
xor ebx, ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, ebx
jne 0x10003fbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 4]
push 0x33
call fcn.10001b02
add esp, 0xc
jmp 0x100040ea
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
push ebx
push 3
push 0x10
push 0xf01ff
push ebx
push dword [ebp - 8]
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x10004009
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push str._s_on__s:__d
push 0x36
call fcn.10001b47
add esp, 0x14
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100040ea
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10004037
call edi
cmp eax, 0x41d
je 0x10004037
call edi
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push str._s_on__s:__d
push 0x37
jmp 0x100040ad
push dword [ebp - 4]
push dword [ebp - 8]
push str.Started_service__s_on__s
push esi
push dword [ebp - 0xc]
call fcn.10014b26
mov eax, dword [ebp - 0xc]
add esp, 0x14
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10004054
sub eax, esi
push ebx
push eax
push dword [ebp - 0xc]
call fcn.10001355
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
jmp 0x10004094
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1000409d
cmp dword [ebp - 0x44], 1
je 0x100040b5
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, dword [ebp - 0x18]
jb 0x10004072
jmp 0x100040b5
call edi
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push str._s_on__s:__d
push 0x38
call fcn.10001b47
add esp, 0x14
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x100040da
call edi
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push str._s_on__s:__d
push 0x39
call fcn.10001b47
add esp, 0x14
push dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x1c]
call esi
mov esi, dword [ebp - 0x14]
call fcn.10007adf
pop edi
pop esi
pop ebx
leave
ret