Function at 0x410c20
Capabilities:
Check for time delay via gettickcount
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551b00
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5bb270]
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 esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
cmp word [esi], ax
jne 0x410c7c
xor ecx, ecx
jmp 0x410c90
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410c81
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00409480
push 3
push 0
push 0x5631e8
lea ecx, [ebp - 0x40]
call fcn.0040d660
cmp eax, 0xffffffff
setne bl
cmp dword [ebp - 0x2c], 8
jb 0x410cc2
push dword [ebp - 0x40]
call fcn.0041143a
add esp, 4
push esi
lea ecx, [ebp - 0x58]
call fcn.00404880
test bl, bl
je 0x410d40
push 0xffffffffffffffff
push 3
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.0040eb70
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x410d19
cmp dword [ebp - 0x14], 8
jb 0x410cfc
push dword [ebp - 0x28]
call fcn.0041143a
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0040d130
cmp dword [ebp - 0x2c], 8
jb 0x410d2a
push dword [ebp - 0x40]
call fcn.0041143a
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jmp 0x410d77
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x410d77
cmp dword [ebp - 0x14], 8
jb 0x410d5a
push dword [ebp - 0x28]
call fcn.0041143a
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0040d130
cmp dword [ebp - 0x44], 8
jb 0x410d88
push dword [ebp - 0x58]
call fcn.0041143a
add esp, 4
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x80], edi
test edi, edi
jne 0x410da4
xor ebx, ebx
jmp 0x410e7e
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x410db0
lea eax, [ebp - 0x28]
push 0x10024
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x410e68
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x74], 1
je 0x410e56
lea eax, [ebp - 0x78]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x410e56
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [ebp - 0x7c], eax
call ebx
sub eax, dword [ebp - 0x7c]
cmp eax, 0x15f90
jae 0x410e56
mov edi, dword [ebp - 0x7c]
lea ebx, [ebx]
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x58], 1
je 0x410e53
call ebx
sub eax, edi
cmp eax, 0x15f90
jb 0x410e20
mov edi, dword [ebp - 0x80]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x410e68
mov ebx, 1
jmp 0x410e6a
xor ebx, ebx
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x410e7b
push esi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call eax
cmp dword [ebp - 0x14], 8
jb 0x410e8f
push dword [ebp - 0x28]
call fcn.0041143a
add esp, 4
mov eax, ebx
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.0053787e
mov esp, ebp
pop ebp
ret