Function at 0x401be0
Capabilities:
Check for time delay via gettickcount
Create process on windows
Query service status
Stop service

Disassembly:
sub esp, 0x230
mov eax, dword [0x434dc0]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xf003f
push 0
push 0
mov dword [esp + 0x14], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x401c33
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00413f05
add esp, 0x230
ret
push esi
push 0x2c
push str.rmtserver
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401ca2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.00401740
push 0xff
lea eax, [esp + 0x39]
push esi
push eax
mov byte [esp + 0x40], 0
call fcn.00416320
push str.rmtserver
lea ecx, [esp + 0x44]
push str.sc.exe_delete__s
push ecx
call fcn.004143d6
add esp, 0x18
push esi
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401db9
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push edi
lea eax, [esp + 0x10]
push eax
push 0x24
lea ecx, [esp + 0x20]
push ecx
push 0
push esi
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x401dd2
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x401dd8
cmp eax, 3
jne 0x401d4b
jmp 0x401ce0
mov eax, 0xcccccccd
mul dword [esp + 0x30]
shr edx, 3
cmp edx, 0x3e8
jae 0x401cfb
mov edx, 0x3e8
jmp 0x401d08
cmp edx, 0x2710
jbe 0x401d08
mov edx, 0x2710
push edx
call edi
lea edx, [esp + 0x10]
push edx
push 0x24
lea eax, [esp + 0x20]
push eax
push 0
push esi
call ebp
test eax, eax
je 0x401dd2
cmp dword [esp + 0x1c], 1
je 0x401dd8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x14]
cmp eax, 0x3a98
ja 0x401dd8
cmp dword [esp + 0x1c], 3
je 0x401ce0
call fcn.00401e40
lea ecx, [esp + 0x18]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x401dd2
cmp dword [esp + 0x1c], 1
je 0x401dab
lea esp, [esp]
mov edx, dword [esp + 0x30]
push edx
call edi
lea eax, [esp + 0x10]
push eax
push 0x24
lea ecx, [esp + 0x20]
push ecx
push 0
push esi
call ebp
test eax, eax
je 0x401dd2
cmp dword [esp + 0x1c], 1
je 0x401dab
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x14]
cmp eax, 0x3a98
ja 0x401dd8
cmp dword [esp + 0x1c], 1
jne 0x401d70
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop edi
pop ebp
mov ecx, dword [esp + 0x234]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00413f05
add esp, 0x230
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
call fcn.00401740
push 0xff
lea edx, [esp + 0x141]
push 0
push edx
mov byte [esp + 0x148], 0
call fcn.00416320
push str.rmtserver
lea eax, [esp + 0x14c]
push str.sc.exe_delete__s
push eax
call fcn.004143d6
add esp, 0x18
push 0
lea ecx, [esp + 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0xbb8
call edi
jmp 0x401db7