Function at 0x426770
Capabilities:
Accept command line arguments
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4ad1
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x4e13b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0xf003f
push 0
push 0
mov dword [ebp - 0x144], ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x154], edi
mov dword [ebp - 4], 0
test edi, edi
jne 0x4267d6
mov eax, 0x80004003
jmp 0x426b1b
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x158], esi
mov byte [ebp - 4], 1
test esi, esi
jne 0x42680b
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call ebx
mov dword [ebp - 0x13c], 0x80004005
jmp 0x426b0b
lea eax, [ebp - 0x148]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x42690c
mov eax, dword [ebp - 0x30]
cmp eax, 1
je 0x42683a
cmp eax, 3
jne 0x42690c
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [ebp - 0x30], 3
mov ecx, 0x2710
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x13c], eax
jne 0x4268da
nop dword [eax]
mov eax, 0xcccccccd
mul dword [ebp - 0x1c]
shr edx, 3
cmp edx, 0x3e8
jae 0x42687a
mov edx, 0x3e8
jmp 0x426883
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x148]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x42690c
mov eax, dword [ebp - 0x13c]
cmp dword [ebp - 0x20], eax
jbe 0x4268c2
call ebx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], ecx
jmp 0x4268cf
call ebx
sub eax, dword [ebp - 0x140]
cmp eax, dword [ebp - 0x1c]
ja 0x42690c
cmp dword [ebp - 0x30], 3
mov ecx, 0x2710
je 0x426860
lea eax, [ebp - 0x134]
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x140], 0
test eax, eax
jne 0x426927
mov dword [ebp - 0x138], eax
jmp 0x426985
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call ebx
push edi
call ebx
mov dword [ebp - 0x13c], 0x80004005
jmp 0x426b0b
mov ebx, eax
lea ecx, [ebx + 2]
nop dword [eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x426930
sub ebx, ecx
lea eax, [ebp - 0x134]
push 0x80
push eax
sar ebx, 1
lea eax, [ebp - 0x138]
inc ebx
push ebx
push eax
call fcn.00406bd0
mov ecx, dword [ebp - 0x144]
lea eax, [ebx + ebx]
push eax
push ecx
push eax
push dword [ebp - 0x138]
call fcn.00426c80
push eax
call fcn.004071a0
mov eax, dword [ebp - 0x138]
add esp, 0x24
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 2
call fcn.00406d80
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 1
cmp eax, ecx
je 0x4269b2
push eax
call fcn.00469256
add esp, 4
mov eax, dword [ebp - 0x150]
cmp dword [eax - 0xc], 0
je 0x4269d4
lea ecx, [ebp - 0x14c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x140], eax
jmp 0x4269d6
xor eax, eax
push eax
push dword [ebp - 0x14c]
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4269f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x426a0a
lea eax, [ebp - 0x148]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x426a36
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call ebx
push edi
call ebx
mov eax, dword [ebp - 0x140]
test eax, eax
je 0x426a27
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x13c], 0x80004005
jmp 0x426aed
call ebx
cmp dword [ebp - 0x30], 2
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x20]
jne 0x426ac6
mov edi, eax
nop dword [eax]
mov eax, 0xcccccccd
mul dword [ebp - 0x1c]
shr edx, 3
cmp edx, 0x3e8
jae 0x426a6a
mov edx, 0x3e8
jmp 0x426a78
cmp edx, 0x2710
mov eax, 0x2710
cmova edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x148]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x426ac0
cmp dword [ebp - 0x20], edi
jbe 0x426aad
call ebx
mov ecx, dword [ebp - 0x20]
mov edi, ecx
mov dword [ebp - 0x144], eax
jmp 0x426aba
call ebx
sub eax, dword [ebp - 0x144]
cmp eax, dword [ebp - 0x1c]
ja 0x426ac0
cmp dword [ebp - 0x30], 2
je 0x426a50
mov edi, dword [ebp - 0x154]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call ebx
push edi
call ebx
mov eax, dword [ebp - 0x140]
test eax, eax
je 0x426ae3
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x13c], 0
mov edx, dword [ebp - 0x150]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x426b0b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x426b12
push esi
call ebx
push edi
call ebx
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428c45
mov esp, ebp
pop ebp
ret