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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b706a
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4e4018]
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 0x45a79c
cmp dword [esi], 2
je 0x45a723
inc edi
add esi, 0x58
cmp edi, eax
jb 0x45a714
jmp 0x45a79c
lea eax, [esi + 4]
mov dword [ebp - 0x68], 2
lea ecx, [ebp - 0x64]
cmp ecx, eax
je 0x45a74a
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x45a73e
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x64]
call fcn.0042c850
lea eax, [esi + 0x1c]
lea ecx, [ebp - 0x4c]
cmp ecx, eax
je 0x45a76a
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x45a75e
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0042c850
lea eax, [esi + 0x34]
lea ecx, [ebp - 0x34]
cmp ecx, eax
je 0x45a78a
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x45a77e
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0042c850
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 [0x4f9128]
test esi, esi
je 0x45a7b0
lock inc dword [esi + 4]
mov esi, dword [0x4f9128]
mov ecx, dword [0x4f9124]
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 + 0x80]
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 0x45a7e0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x64]
call fcn.0042c850
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 0x45a81d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x45a83f
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x45a83f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x45a83f
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 0x45a8bd
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x45a87b
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x45a8bd
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x80], 1
je 0x45a8aa
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.00462d80
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.0042c7f0
lea ecx, [ebp - 0x4c]
call fcn.0042c7f0
lea ecx, [ebp - 0x64]
call fcn.0042c7f0
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.0048782e
mov esp, ebp
pop ebp
ret