Function at 0x4a83a0
Capabilities:
Delete registry key
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538b65
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x58e5a4]
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 edi, dword [ebp + 8]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x34]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x4a8479
push 0xf01ff
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4a846b
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4a844c
cmp dword [ebp - 0x28], 1
je 0x4a843b
lea eax, [ebp - 0x2c]
push eax
push 1
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4a844c
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x4a846b
mov bl, 1
jmp 0x4a844e
xor bl, bl
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x4a8556
push eax
call esi
jmp 0x4a8556
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4a8479
push eax
call esi
call fcn.00410080
mov ecx, eax
test ecx, ecx
je 0x4a8585
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 6
mov eax, 0x560f9c
lea ecx, [ebp - 0x30]
test eax, 0xffff0000
jne 0x4a84b1
movzx eax, ax
push eax
call fcn.0040cd60
jmp 0x4a84bd
push 1
push 0x560f9c
call fcn.0040d3a0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push str.SystemCurrentControlSetServices
push eax
call fcn.00415af0
mov byte [ebp - 4], 8
push edi
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040c040
add esp, 0x18
mov byte [ebp - 4], 9
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
sete bl
mov byte [ebp - 4], 8
or edi, 0xffffffff
mov edx, dword [ebp - 0x38]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a851c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, edi
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a853a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4a8556
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x4a8567
push ecx
call esi
mov al, bl
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.004d2a60
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040fbc0
int3