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

Disassembly:
sub esp, 0x22c
mov eax, dword [0x4c4004]
xor eax, esp
mov dword [esp + 0x228], eax
push ebp
push esi
push 0xf01ff
push edx
push ecx
xor ebp, ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x42b980
mov edx, 0x4adde4
mov ecx, str.STRT
call fcn.00477440
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x28]
mov edx, 0x4aea68
push 0x30
push eax
mov ecx, str.STRT
call fcn.00477440
push eax
push dword [0x4def88]
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
pop ebp
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0048d925
add esp, 0x22c
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
jne 0x42b9bf
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, 0x4adde4
mov ecx, str.STRT
call fcn.00477440
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov edx, 0x4aeb40
jmp 0x42bbdc
mov eax, dword [esp + 0x14]
cmp eax, 4
je 0x42bbb5
cmp eax, 2
je 0x42bbb5
push edi
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push 0x400
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x42ba68
cmp dword [edi + 4], 4
jne 0x42ba24
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x42bba9
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x42ba5c
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, 0x4adde4
mov ecx, str.STRT
call fcn.00477440
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov edx, 0x4aeb88
jmp 0x42ba8f
lea eax, [esp + 0x14]
push eax
push esi
call ebx
test eax, eax
jne 0x42bac6
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, 0x4adde4
mov ecx, str.STRT
call fcn.00477440
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov edx, 0x4aeb80
lea eax, [esp + 0x30]
mov ecx, str.STRT
push 0x30
push eax
call fcn.00477440
push eax
push dword [0x4def88]
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0048d925
add esp, 0x22c
ret
mov eax, dword [esp + 0x18]
cmp eax, 2
jne 0x42bb49
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x2710
mov ebx, dword [esp + 0x10]
nop
mov eax, 0xcccccccd
mul dword [esp + 0x2c]
shr edx, 3
cmp edx, 0x3e8
jae 0x42bafb
mov edx, 0x3e8
jmp 0x42bb04
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42bb45
cmp dword [esp + 0x28], ebp
jbe 0x42bb2b
call edi
mov ebp, dword [esp + 0x28]
mov ebx, eax
jmp 0x42bb35
call edi
sub eax, ebx
cmp eax, dword [esp + 0x2c]
ja 0x42bb45
mov eax, dword [esp + 0x18]
mov ecx, 0x2710
cmp eax, 2
je 0x42bae0
jmp 0x42bb49
mov eax, dword [esp + 0x18]
mov ecx, str.STRT
cmp eax, 4
jne 0x42bb70
mov edx, 0x4ae654
call fcn.00477440
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov edx, 0x4aeb98
jmp 0x42bb8b
mov edx, 0x4adde4
call fcn.00477440
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov edx, 0x4aeb90
lea eax, [esp + 0x30]
mov ecx, str.STRT
push 0x30
push eax
call fcn.00477440
push eax
push dword [0x4def88]
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x42baad
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, 0x4adde4
mov ecx, str.STRT
call fcn.00477440
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov edx, 0x4aeb38
lea eax, [esp + 0x2c]
mov ecx, str.STRT
push 0x30
push eax
call fcn.00477440
push eax
push dword [0x4def88]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x234]
pop ebx
pop esi
pop ebp
xor ecx, esp
call fcn.0048d925
add esp, 0x22c
ret