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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445d1d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x459020]
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 ebx, ecx
mov dword [ebp - 0x3c], ebx
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0
lea edi, [ebx + 4]
push eax
mov ecx, edi
call fcn.0041f090
mov edx, dword [ebp - 0x40]
mov ecx, 0x7d
push 1
push 0
call fcn.00419180
mov esi, dword [ebp - 0x40]
add esp, 8
test esi, 0x1000
jbe 0x41d470
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xf003f
push 0
push 0
mov dword [ebp - 0x48], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x44], ebx
test ebx, ebx
je 0x41d46d
mov edx, 9
lea ecx, [ebp - 0x60]
call fcn.00411db0
cmp dword [eax + 0x14], 0x10
jb 0x41d382
mov eax, dword [eax]
push 0x24
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edx, dword [ebp - 0x4c]
mov esi, eax
cmp edx, 0x10
jb 0x41d3c2
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41d3b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d6a3
push edx
push ecx
call fcn.00423b44
add esp, 8
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
test esi, esi
jne 0x41d3e4
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41d46a
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea eax, [ebp - 0x14]
push eax
push 0x24
lea eax, [ebp - 0x38]
push eax
push 0
push esi
call ebx
test eax, eax
je 0x41d45c
cmp dword [ebp - 0x34], 1
je 0x41d45c
lea eax, [ebp - 0x38]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x41d45c
cmp dword [ebp - 0x34], 1
je 0x41d46a
nop word [eax + eax]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x14]
push eax
push 0x24
lea eax, [ebp - 0x38]
push eax
push 0
push esi
call ebx
test eax, eax
je 0x41d45c
cmp dword [ebp - 0x34], 1
je 0x41d45c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x48]
cmp eax, 0x7530
ja 0x41d45c
cmp dword [ebp - 0x34], 1
jne 0x41d420
jmp 0x41d46a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x44]
call esi
mov esi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x3c]
test esi, 0x200
jbe 0x41d563
mov eax, dword [edi + 4]
xor esi, esi
mov ecx, dword [edi]
sub eax, ecx
sar eax, 3
test eax, eax
je 0x41d563
mov eax, dword [ecx + esi*8]
lea ecx, [ebp - 0x2c]
add eax, 0xc
push eax
call fcn.00401430
mov edx, 5
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00411db0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409b80
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x44], eax
cmp edx, 0x10
jb 0x41d4f3
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41d4e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d6a3
push edx
push ecx
call fcn.00423b44
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp ecx, 0x10
jb 0x41d540
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41d536
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d6a3
push ecx
push edx
call fcn.00423b44
add esp, 8
cmp dword [ebp - 0x44], 0
jne 0x41d550
mov ecx, dword [edi]
mov ecx, dword [ecx + esi*8]
call fcn.0041a670
mov eax, dword [edi + 4]
inc esi
mov ecx, dword [edi]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x41d490
mov ecx, edi
call fcn.00420e00
mov eax, dword [edi + 4]
xor esi, esi
sub eax, dword [edi]
sar eax, 3
test eax, eax
je 0x41d597
nop dword [eax + eax]
mov ecx, dword [edi]
mov ecx, dword [ecx + esi*8]
call fcn.0041a900
mov eax, dword [edi + 4]
inc esi
sub eax, dword [edi]
sar eax, 3
cmp esi, eax
jb 0x41d580
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push eax
mov ecx, edi
call fcn.0041f090
mov edx, dword [ebp - 0x3c]
mov ecx, 0x7d
push 2
push 0
call fcn.00419180
add esp, 8
mov ecx, edi
call fcn.00421690
call fcn.00421aa0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push eax
mov ecx, edi
call fcn.0041f090
mov edx, dword [ebp - 0x3c]
mov ecx, 0x7d
push 3
push 0
call fcn.00419180
add esp, 8
mov esi, 0x493e0
cmp byte [ebx], 0
jne 0x41d61a
nop dword [eax]
test esi, esi
jle 0x41d61a
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 0x1f4
cmp byte [ebx], 0
je 0x41d600
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push eax
mov ecx, edi
call fcn.0041f090
xor esi, esi
call fcn.0041ded0
cmp eax, 0xffffffff
je 0x41d672
mov esi, 1
call fcn.0041faa0
test al, al
mov ecx, 3
mov al, byte [ebx + 0x20]
cmovne esi, ecx
test al, al
jne 0x41d661
mov ecx, edi
call fcn.00420110
mov byte [ebx + 0x20], al
test al, al
je 0x41d666
or esi, 4
jmp 0x41d672
call fcn.00420270
test al, al
je 0x41d672
or esi, 8
mov edx, dword [ebp - 0x3c]
mov ecx, 0x7d
push 4
push esi
call fcn.00419180
add esp, 8
mov al, 1
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.00423b13
mov esp, ebp
pop ebp
ret
call fcn.0042823f
int3