Function at 0x4093c0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 8]
push 1
push str.Deleting_a_service_can_prevent_the_system_from_starting_or_functioning_properly.
mov byte [esp + 0x1a], 0
push dword [eax + 4]
push 0x5caaf4
push edi
call sym.SystemInformer.exe_PhShowConfirmMessage
test al, al
jne 0x4093fc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword ds:[ebx + 8]
test eax, eax
je 0x409409
mov eax, dword [eax + 4]
jmp 0x40940b
xor eax, eax
push eax
push 0x10000
lea eax, [esp + 0x1c]
push eax
call sym.SystemInformer.exe_PhOpenService
mov esi, eax
test esi, esi
js 0x409454
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x409462
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov esi, eax
test esi, esi
jns 0x409462
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [esp + 0x12], 0
mov eax, dword [ebx + 8]
test eax, eax
je 0x40947f
mov eax, dword ds:[eax + 4]
jmp 0x409481
mov eax, dword [esp + 0x14]
push eax
mov byte [esp + 0x16], 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
push eax
push str.Unable_to_delete
call sym.SystemInformer.exe_PhConcatStrings2
push eax
call sym.SystemInformer.exe_PhAutoDereferenceObject
lea ecx, ds:[esp + 0x13]
push ecx
push esi
mov edx, dword [eax + 4]
mov ecx, edi
call fcn.00401940
test al, al
je 0x409512
cmp byte [esp + 0x13], 0
je 0x409611
mov eax, dword [ebx + 8]
test eax, eax
je 0x4094c2
mov ecx, dword ds:[eax + 4]
jmp 0x4094c4
xor ecx, ecx
mov edx, 5
call fcn.0047c080
test eax, eax
js 0x4094e9
mov byte [esp + 0x12], 1
call sym.SystemInformer.exe__PhUiDisconnectFromPhSvc_0
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ecx
push eax
push ebx
mov edx, 0x5caaf4
mov ecx, edi
lfence
call fcn.00407520
jmp 0x409500
call sym.SystemInformer.exe__PhUiDisconnectFromPhSvc_0
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 8]
push dword [eax + 4]
push 0x5caaf4
push str.Unable_to__s__s.
call fcn.004017e0
add esp, 0xc
mov ebx, dword [eax + 4]
cmp esi, 0xc0000022
je 0x409562
cmp esi, 0xc0000005
je 0x409562
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x409550
movzx eax, si
jmp 0x409569
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x40956d
mov eax, esi
jmp 0x409569
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
test eax, eax
jne 0x409575
push esi
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x40957b
push eax
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
test ebx, ebx
je 0x40959c
test esi, esi
je 0x40958f
mov eax, 0x21
jmp 0x4095ae
push ebx
push 0x5ca058
push 0x5c6aec
jmp 0x409601
lea esp, [esp]
test esi, esi
je 0x4095f2
mov eax, 9
mov ebx, 0x5c6aec
mov edx, 4
mov ecx, esi
push dword [edx + ecx]
push 0x5ca058
push ebx
push 0xfffe
push eax
push edi
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x409611
jmp 0x4095e0
call fcn.004f9e40
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x5c6aec
push 0x5ca058
push str.Unable_to_perform_the_operation.
push 0xfffe
push 9
push edi
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8