Function at 0x45fb90
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589120
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], edi
mov eax, dword [0x5f5774]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f5774
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
cmp ebx, edi
je 0x45fc15
test ebx, 0xffff0000
jne 0x45fc15
movzx esi, bx
push edi
push esi
call fcn.004013d0
add esp, 8
cmp eax, edi
je 0x45fc1e
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00412bd0
jmp 0x45fc1e
push ebx
lea ecx, [ebp - 0x14]
call fcn.00412df0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
push 0xf003f
push edi
push eax
call fcn.00505a30
movzx ecx, al
add esp, 4
neg ecx
sbb ecx, ecx
not ecx
and ecx, ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45fc6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x2c], esi
cmp esi, edi
jne 0x45fc90
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, 0x14
jl 0x45fbd3
mov ecx, dword [ebp + 8]
push 0xf01ff
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
mov dword [ebp - 0x30], ebx
test ebx, ebx
jne 0x45fd2e
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x14
jl 0x45fc90
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x424
jne 0x45fd02
mov byte [ebp - 4], 1
push ebx
call fcn.00553d26
add esp, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x45fcef
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call edi
test eax, eax
jle 0x45fd12
and eax, 0xffff
or eax, 0x80070000
push str.hService
push eax
lea ecx, [ebp - 0x40]
call fcn.00434a80
push 0x5cc0a0
lea edx, [ebp - 0x40]
push edx
call fcn.00554cbc
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
mov edi, 1
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x45fed7
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xea
je 0x45fd75
call edi
test eax, eax
jle 0x45fd6e
and eax, 0xffff
or eax, 0x80070000
push 0x5a0454
jmp 0x45fd17
mov eax, dword [ebp - 0x18]
push eax
call fcn.0053f875
add esp, 4
lea ecx, [ebp - 0x1c]
push ecx
mov edi, eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x18]
push edx
push eax
push edi
push 1
push ebx
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x45fdd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x45fdb4
and eax, 0xffff
or eax, 0x80070000
push str.::EnumDependentServicesW__hService__0x00000001__pDependencies__dwBytesNeeded__dwBytesNeeded__dwCount_
push eax
lea ecx, [ebp - 0x40]
call fcn.00434a80
push 0x5cc0a0
lea ecx, [ebp - 0x40]
push ecx
jmp 0x45fd29
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
jbe 0x45fed2
mov dword [ebp - 0x14], edi
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
mov ecx, 9
lea edi, [ebp - 0x80]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x80]
push 0x24
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x45fe77
lea ecx, [ebp - 0x5c]
push ecx
mov edi, 1
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x45fe29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
jne 0x45fea7
cmp dword [ebp - 0x58], edi
je 0x45fe5d
mov edi, edi
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x58], edi
je 0x45fe5d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 0x14]
ja 0x45feb2
cmp dword [ebp - 0x58], edi
jne 0x45fe30
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], 0x24
add eax, edi
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x1c]
jb 0x45fde4
mov esi, dword [ebp - 0x24]
jmp 0x45fed7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x45fe8b
and eax, 0xffff
or eax, 0x80070000
push 0x5a0458
push eax
lea ecx, [ebp - 0x40]
call fcn.00434a80
push 0x5cc0a0
lea ecx, [ebp - 0x40]
push ecx
jmp 0x45fd29
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x45fd60
push 0x59c2bc
push 0x800705b4
lea ecx, [ebp - 0x40]
call fcn.00434a80
push 0x5cc0a0
lea eax, [ebp - 0x40]
push eax
jmp 0x45fd29
mov edi, 1
lea ecx, [ebp - 0x5c]
push ecx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x45feff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x426
jne 0x45fd5e
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp + 0x10], eax
je 0x45ff8f
cmp dword [ebp - 0x58], edi
je 0x45ff40
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x5c]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x58], edi
je 0x45ff40
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 0x14]
ja 0x45ff85
cmp dword [ebp - 0x58], edi
jne 0x45ff13
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
push eax
call fcn.00553d26
add esp, 4
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 0
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call edi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x45ff72
push esi
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
push edx
jmp 0x45ff97
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00553d26
mov dword [ebp - 0x10], 0
add esp, 4
mov byte [ebp - 4], 0
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x45ffc1
push esi
call ebx
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret