Function at 0x41ed60
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x7c
lea esi, [esp + 0x54]
mov dword [esp + 0xc], 0x1c
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1c
mov dword [esp], esi
call fcn.004327e0
mov dword [esp + 8], esi
mov dword [esp + 4], 4
mov eax, dword [edi + 0x7c]
mov ebp, dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [esp], eax
call ebp
sub esp, 0xc
cmp eax, 1
mov edx, dword [esp + 0x58]
je 0x41ee70
cmp edx, 1
je 0x41f000
lea ebx, [esp + 0x44]
lea edi, [esp + 0x3c]
call fcn.0042c430
mov dword [esp], 0x1b
mov esi, eax
mov dword [esp + 0x3c], ebx
call fcn.004ed900
mov edx, 0x6563
mov dword [eax], 0x72657551
mov dword [eax + 4], 0x61745379
mov dword [eax + 8], 0x54737574
mov dword [eax + 0xc], 0x6c65446f
mov dword [eax + 0x10], 0x53657465
mov dword [eax + 0x14], 0x69767265
mov word [eax + 0x18], dx
mov byte [eax + 0x1a], 0
mov dword [esp + 0x10], str.Service_state_isnt_SERVICE_RUNNING_or_SERVICE_STOPPED_it_is_other_state_.we_dont_delete_it
mov dword [esp + 0xc], 0x11b
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], 0x1a
mov dword [esp + 0x40], 0x1a
call fcn.0042ce70
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x41ee5d
mov dword [esp], eax
call fcn.004ed8c0
mov esi, 1
add esp, 0x7c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 4
cmp edx, 4
jne 0x41edb7
call fcn.0042c430
lea ebx, [esp + 0x44]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x3c]
mov dword [esp], 0x1b
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], ebx
call fcn.004ed900
mov ecx, 0x6563
mov dword [eax], 0x72657551
mov dword [eax + 4], 0x61745379
mov dword [eax + 8], 0x54737574
mov dword [eax + 0xc], 0x6c65446f
mov dword [eax + 0x10], 0x53657465
mov dword [eax + 0x14], 0x69767265
mov word [eax + 0x18], cx
mov byte [eax + 0x1a], 0
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], str.Service_state_is_SERVICE_RUNNING
mov dword [esp + 0xc], 0xf5
mov dword [esp + 4], 0
mov dword [esp], edx
mov dword [esp + 0x44], 0x1a
mov dword [esp + 8], eax
mov dword [esp + 0x40], 0x1a
call fcn.0042ce70
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x41ef24
mov dword [esp], eax
call fcn.004ed8c0
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov eax, dword [edi + 0x7c]
mov dword [esp], eax
call ebp
sub esp, 0xc
test eax, eax
mov esi, eax
je 0x41f1f3
mov ecx, dword [esp + 0x90]
test ecx, ecx
je 0x41f290
mov eax, dword [edi + 0x7c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
sub esp, 4
test eax, eax
mov esi, eax
je 0x41f330
call fcn.0042c430
mov ebp, 0x6563
mov dword [esp], 0x1b
mov edi, eax
mov dword [esp + 0x3c], ebx
call fcn.004ed900
mov dword [eax], 0x72657551
mov dword [eax + 4], 0x61745379
mov dword [eax + 8], 0x54737574
mov dword [eax + 0xc], 0x6c65446f
mov dword [eax + 0x10], 0x53657465
mov dword [eax + 0x14], 0x69767265
mov word [eax + 0x18], bp
mov byte [eax + 0x1a], 0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], str.Uninstall_service_successfully
mov dword [esp + 0xc], 0x103
mov dword [esp + 4], 0
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 0x44], 0x1a
mov dword [esp + 0x40], 0x1a
call fcn.0042ce70
jmp 0x41f145
call fcn.0042c430
lea ebx, [esp + 0x44]
mov esi, eax
lea eax, [esp + 0x3c]
mov dword [esp], 0x1b
mov ebp, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], ebx
call fcn.004ed900
mov edx, 0x6563
mov dword [eax], 0x72657551
mov dword [eax + 4], 0x61745379
mov dword [eax + 8], 0x54737574
mov dword [eax + 0xc], 0x6c65446f
mov dword [eax + 0x10], 0x53657465
mov dword [eax + 0x14], 0x69767265
mov word [eax + 0x18], dx
mov byte [eax + 0x1a], 0
mov dword [esp + 0x10], str.Service_state_is_SERVICE_STOPPED
mov dword [esp + 0xc], 0x10f
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], 0x1a
mov dword [esp + 0x40], 0x1a
call fcn.0042ce70
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x41f0a3
mov dword [esp], eax
call fcn.004ed8c0
mov eax, dword [edi + 0x7c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
sub esp, 4
test eax, eax
mov esi, eax
jne 0x41f165
call fcn.0042c430
mov dword [esp], 0x1b
mov edi, eax
mov dword [esp + 0x3c], ebx
call fcn.004ed900
mov ecx, 0x6563
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], 0x1a
mov dword [eax], 0x72657551
mov dword [eax + 4], 0x61745379
mov dword [eax + 8], 0x54737574
mov dword [eax + 0xc], 0x6c65446f
mov dword [eax + 0x10], 0x53657465
mov dword [eax + 0x14], 0x69767265
mov word [eax + 0x18], cx
mov dword [esp + 0x40], 0x1a
mov byte [eax + 0x1a], 0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], str.DeleteService_return_false
mov dword [esp + 0xc], 0x114
mov dword [esp + 4], 0
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.0042ce70
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x41ee62
mov dword [esp], eax
call fcn.004ed8c0
add esp, 0x7c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 4
call fcn.0042c430
mov ebp, 0x6563
mov dword [esp], 0x1b
mov edi, eax
mov dword [esp + 0x3c], ebx
call fcn.004ed900
mov dword [esp + 0x44], 0x1a
mov dword [esp + 0x3c], eax
mov dword [eax], 0x72657551
mov dword [eax + 4], 0x61745379
mov dword [eax + 8], 0x54737574
mov dword [eax + 0xc], 0x6c65446f
mov dword [eax + 0x10], 0x53657465
mov dword [eax + 0x14], 0x69767265
mov word [eax + 0x18], bp
mov dword [esp + 0x40], 0x1a
mov byte [eax + 0x1a], 0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], str.Uninstall_service_successfully
mov dword [esp + 0xc], 0x112
mov dword [esp + 4], 0
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.0042ce70
jmp 0x41f145
call fcn.0042c430
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], 0x1b
mov ebp, eax
mov dword [esp + 0x3c], ebx
call fcn.004ed900
mov edx, 0x6563
mov dword [eax], 0x72657551
mov dword [eax + 4], 0x61745379
mov dword [eax + 8], 0x54737574
mov dword [eax + 0xc], 0x6c65446f
mov dword [eax + 0x10], 0x53657465
mov dword [eax + 0x14], 0x69767265
mov word [eax + 0x18], dx
mov byte [eax + 0x1a], 0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], str.unInstall_Service_Error.Error_Code:_d
mov dword [esp + 0xc], 0xf7
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp], edi
mov dword [esp + 0x44], 0x1a
mov dword [esp + 0x40], 0x1a
call fcn.0042ce70
jmp 0x41f145
call fcn.0042c430
mov dword [esp], 0x1b
mov esi, eax
mov dword [esp + 0x3c], ebx
call fcn.004ed900
mov edx, 0x6563
mov dword [eax], 0x72657551
mov dword [eax + 4], 0x61745379
mov dword [eax + 8], 0x54737574
mov dword [eax + 0xc], 0x6c65446f
mov dword [eax + 0x10], 0x53657465
mov dword [eax + 0x14], 0x69767265
mov word [eax + 0x18], dx
mov byte [eax + 0x1a], 0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], str.Close_service
mov dword [esp + 0xc], 0xfe
mov dword [esp + 4], 0
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 0x44], 0x1a
mov dword [esp + 0x40], 0x1a
call fcn.0042ce70
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x41f329
mov dword [esp], eax
call fcn.004ed8c0
xor esi, esi
jmp 0x41ee62
call fcn.0042c430
mov dword [esp], 0x1b
mov edi, eax
mov dword [esp + 0x3c], ebx
call fcn.004ed900
mov ecx, 0x6563
mov dword [eax], 0x72657551
mov dword [eax + 4], 0x61745379
mov dword [eax + 8], 0x54737574
mov dword [eax + 0xc], 0x6c65446f
mov dword [eax + 0x10], 0x53657465
mov dword [eax + 0x14], 0x69767265
mov word [eax + 0x18], cx
mov byte [eax + 0x1a], 0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], str.DeleteService_return_false
mov dword [esp + 0xc], 0x105
mov dword [esp + 4], 0
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 0x44], 0x1a
mov dword [esp + 0x40], 0x1a
call fcn.0042ce70
jmp 0x41f145