Function at 0x42b830
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 0x42b8b0
mov edx, 0x4adde4
mov ecx, 0x4af760
call fcn.004773a0
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, 0x4af760
call fcn.004773a0
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.0048d815
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 0x42b8ef
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, 0x4adde4
mov ecx, 0x4af760
call fcn.004773a0
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov edx, 0x4aeb40
jmp 0x42bb0c
mov eax, dword [esp + 0x14]
cmp eax, 4
je 0x42bae5
cmp eax, 2
je 0x42bae5
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 0x42b998
cmp dword [edi + 4], 4
jne 0x42b954
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 0x42bad9
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x42b98c
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, 0x4adde4
mov ecx, 0x4af760
call fcn.004773a0
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov edx, 0x4aeb88
jmp 0x42b9bf
lea eax, [esp + 0x14]
push eax
push esi
call ebx
test eax, eax
jne 0x42b9f6
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, 0x4adde4
mov ecx, 0x4af760
call fcn.004773a0
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov edx, 0x4aeb80
lea eax, [esp + 0x30]
mov ecx, 0x4af760
push 0x30
push eax
call fcn.004773a0
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.0048d815
add esp, 0x22c
ret
mov eax, dword [esp + 0x18]
cmp eax, 2
jne 0x42ba79
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 0x42ba2b
mov edx, 0x3e8
jmp 0x42ba34
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 0x42ba75
cmp dword [esp + 0x28], ebp
jbe 0x42ba5b
call edi
mov ebp, dword [esp + 0x28]
mov ebx, eax
jmp 0x42ba65
call edi
sub eax, ebx
cmp eax, dword [esp + 0x2c]
ja 0x42ba75
mov eax, dword [esp + 0x18]
mov ecx, 0x2710
cmp eax, 2
je 0x42ba10
jmp 0x42ba79
mov eax, dword [esp + 0x18]
mov ecx, 0x4af760
cmp eax, 4
jne 0x42baa0
mov edx, 0x4ae654
call fcn.004773a0
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov edx, 0x4aeb98
jmp 0x42babb
mov edx, 0x4adde4
call fcn.004773a0
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov edx, 0x4aeb90
lea eax, [esp + 0x30]
mov ecx, 0x4af760
push 0x30
push eax
call fcn.004773a0
push eax
push dword [0x4def88]
call dword [sym.imp.user32.dll_MessageBoxW]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x42b9dd
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, 0x4adde4
mov ecx, 0x4af760
call fcn.004773a0
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov edx, 0x4aeb38
lea eax, [esp + 0x2c]
mov ecx, 0x4af760
push 0x30
push eax
call fcn.004773a0
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.0048d815
add esp, 0x22c
ret