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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x480681
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
call fcn.004042fc
xor eax, eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 5], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x48045b
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
mov eax, 0x48069c
call fcn.0047fe64
jmp 0x480663
xor eax, eax
push ebp
push 0x48065c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x4804a8
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4804a8
cmp dword [ebp - 0x30], 1
jne 0x4804a8
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
mov eax, 0x4806bc
call fcn.0047fe64
cmp dword [ebp - 0x10], 0
je 0x4804b4
cmp dword [ebp - 0x18], 0
jbe 0x4804ce
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
mov eax, 0x4806e0
call fcn.0047fe64
call fcn.00403d5c
jmp 0x480663
xor eax, eax
push ebp
push 0x48060d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x34]
xor ecx, ecx
mov edx, 0x1c
call fcn.00402e34
lea eax, [ebp - 0x34]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_ControlService
test eax, eax
je 0x480535
lea ecx, [ebp - 0x14]
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.004800c0
test al, al
jne 0x480531
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
mov eax, 0x4806bc
call fcn.0047fe64
call fcn.00403d5c
call fcn.00403d5c
jmp 0x480663
mov byte [ebp - 5], 1
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
mov eax, 0x4806fc
call fcn.0047fe64
lea eax, [ebp - 0x34]
xor ecx, ecx
mov edx, 0x1c
call fcn.00402e34
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x480577
cmp dword [ebp - 0x30], 1
jne 0x480577
mov byte [ebp - 5], 1
lea eax, [ebp - 0x14]
call fcn.004042fc
cmp byte [ebp - 5], 0
je 0x480589
mov eax, 0x48071c
call fcn.00469f14
jmp 0x480593
mov eax, 0x480738
call fcn.00469f14
cmp byte [ebp + 8], 0
jne 0x4805a8
call fcn.00403d5c
call fcn.00403d5c
jmp 0x480663
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_DeleteService
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
jne 0x4805f6
cmp dword [ebp - 0x14], 0
je 0x4805ee
push dword [ebp - 0x14]
push 0x480758
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x18]
mov eax, 0x480764
call fcn.0047fe64
push dword [ebp - 0x38]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0040467c
mov eax, dword [ebp - 0x14]
call fcn.00469f14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480614
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480688
lea eax, [ebp - 0x38]
call fcn.004042fc
lea eax, [ebp - 0x14]
call fcn.004042fc
ret