Function at 0x45a470
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5bea
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4e2018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 4], 0
xor eax, eax
mov esi, dword [ecx + 0xcc]
xor edi, edi
mov ecx, dword [ecx + 0xd0]
mov dword [ebp - 0x4c], eax
sub ecx, esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x24], eax
mov word [ebp - 0x34], ax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x64], 0
mov word [ebp - 0x64], ax
mov eax, 0x2e8ba2e9
imul ecx
mov dword [ebp - 0x68], 0
sar edx, 4
mov eax, edx
mov dword [ebp - 0x54], 0
shr eax, 0x1f
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x88], 1
add eax, edx
je 0x45a5bc
cmp dword [esi], 2
je 0x45a543
inc edi
add esi, 0x58
cmp edi, eax
jb 0x45a534
jmp 0x45a5bc
lea eax, [esi + 4]
mov dword [ebp - 0x68], 2
lea ecx, [ebp - 0x64]
cmp ecx, eax
je 0x45a56a
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x45a55e
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x64]
call fcn.0042c6a0
lea eax, [esi + 0x1c]
lea ecx, [ebp - 0x4c]
cmp ecx, eax
je 0x45a58a
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x45a57e
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0042c6a0
lea eax, [esi + 0x34]
lea ecx, [ebp - 0x34]
cmp ecx, eax
je 0x45a5aa
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x45a59e
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0042c6a0
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x14], eax
mov esi, dword [0x4f7118]
test esi, esi
je 0x45a5d0
lock inc dword [esi + 4]
mov esi, dword [0x4f7118]
mov ecx, dword [0x4f7114]
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], esi
mov byte [ebp - 4], 1
lea edx, [ebp - 0x8c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x88]
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45a600
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x64]
call fcn.0042c6a0
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x8c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a63d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x45a65f
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x45a65f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x45a65f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x50], 8
lea edi, [ebp - 0x64]
push 0xf003f
cmovae edi, dword [ebp - 0x64]
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x45a6dd
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x45a69b
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x45a6dd
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x80], 1
je 0x45a6ca
lea eax, [ebp - 0x84]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ecx
push dword [ebp - 0x80]
push ecx
push edi
call fcn.00461690
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
lea ecx, [ebp - 0x34]
call fcn.0042c640
lea ecx, [ebp - 0x4c]
call fcn.0042c640
lea ecx, [ebp - 0x64]
call fcn.0042c640
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00486589
mov esp, ebp
pop ebp
ret