Function at 0x42a450
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b128
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5d7ce0]
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 eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], edx
call fcn.0044d418
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42a4a1
push 0x80004005
call fcn.00407ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
call fcn.0044d418
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42a4d1
push 0x80004005
call fcn.00407ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x4c], eax
mov ebx, 1
push ebx
lea ecx, [ebp - 0x3c]
push ecx
push ecx
mov byte [ebp - 4], bl
mov esi, esp
mov dword [ebp - 0x38], esp
mov dword [ebp - 0x38], esi
call fcn.0044d418
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42a510
push 0x80004005
call fcn.00407ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.strServiceName
mov byte [ebp - 4], 2
test ecx, 0xffff0000
jne 0x42a549
mov edx, ecx
movzx edi, dx
push edi
call fcn.0044d834
test eax, eax
je 0x42a557
push edi
push eax
mov ecx, esi
call fcn.004074b0
jmp 0x42a557
push 0xe
push str.strServiceName
mov ecx, esi
call fcn.00407870
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x44]
mov byte [ebp - 4], bl
mov ebx, dword [ebp - 0x50]
push eax
call fcn.0043b9d0
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x42a5d1
mov ecx, 0xa0000001
lea esi, [ebp - 0x38]
call fcn.0041ae20
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0040d290
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a5ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x48]
mov dword [ecx], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x42a848
push 1
lea ecx, [ebp - 0x4c]
push ecx
push ecx
mov esi, esp
mov dword [ebp - 0x38], esp
mov dword [ebp - 0x38], esi
call fcn.0044d418
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42a5fa
push 0x80004005
call fcn.00407ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.iSystemBits
mov byte [ebp - 4], 4
test ecx, 0xffff0000
jne 0x42a633
mov edx, ecx
movzx edi, dx
push edi
call fcn.0044d834
test eax, eax
je 0x42a641
push edi
push eax
mov ecx, esi
call fcn.004074b0
jmp 0x42a641
push 0xb
push str.iSystemBits
mov ecx, esi
call fcn.00407870
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x50]
push eax
mov byte [ebp - 4], 1
call fcn.0043b9d0
xor ebx, ebx
mov dword [ebp - 0x40], eax
cmp eax, ebx
jne 0x42a6a3
mov ecx, 0xa0000001
lea esi, [ebp - 0x38]
call fcn.0041ae20
push eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.0040d290
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a699
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x48]
mov dword [ecx], ebx
jmp 0x42a5b5
mov edi, dword [ebp - 0x4c]
push edi
call fcn.0054df0d
add esp, 4
mov esi, eax
cmp dword [0x5d9fb8], ebx
je 0x42a6fa
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x42a6f4
lea ecx, [ebp - 0x34]
push ecx
call eax
mov ax, word [ebp - 0x34]
cmp ax, 9
je 0x42a6ea
cmp ax, 6
jne 0x42a6f4
mov dword [0x5e0c44], 1
mov dword [0x5d9fb8], ebx
cmp esi, ebx
je 0x42a70b
cmp esi, 1
jne 0x42a760
cmp dword [0x5e0c44], ebx
jne 0x42a76d
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
je 0x42a7ae
mov ecx, dword [ebp - 0x3c]
push 0x10020
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x42a77f
lea edx, [ebp - 0x2c]
push edx
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x42a78e
cmp esi, 2
jne 0x42a76d
cmp dword [0x5e0c44], ebx
jne 0x42a70b
mov dword [ebp - 0x40], 1
mov byte [ebp - 4], bl
lea eax, [edi - 0x10]
jmp 0x42a5bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x40], 0
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x40], 0
jne 0x42a811
mov eax, dword [ebp - 0x48]
cmp esi, 0x4db
jne 0x42a7bb
mov dword [eax], 1
jmp 0x42a7c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x40], ebx
jmp 0x42a79b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov dword [eax], edx
mov ecx, esi
lea esi, [ebp - 0x38]
call fcn.0041ae20
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x38]
mov eax, dword [ecx + 0x2c]
mov ecx, dword [ebp - 0x3c]
push edx
mov edx, dword [ebp - 0x44]
push ecx
push eax
push edx
call fcn.00409220
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a831
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42a831
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp + 8]
mov dword [ecx], 2
mov ecx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x30]
mov edx, dword [ebp - 0x44]
push ecx
push eax
push edx
call fcn.00409220
add esp, 0xc
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a854
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a87a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x40]
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.0054bd91
mov esp, ebp
pop ebp
ret