Function at 0x40a560
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 + 0x19], 0
push dword [eax + 4]
push 0x5d3ecc
push edi
call sym.SystemInformer.exe_Ordinal_1695
test al, al
jne 0x40a59c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword ds:[ebx + 8]
test eax, eax
je 0x40a5a9
mov eax, dword [eax + 4]
jmp 0x40a5ab
xor eax, eax
push eax
push 0x10000
lea eax, [esp + 0x1c]
push eax
call sym.SystemInformer.exe_Ordinal_1936
mov esi, eax
test esi, esi
js 0x40a60b
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40a617
cmp dword [0x62db64], 0xffffffff
jae 0x40a5e6
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x40a5ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_Ordinal_1343
mov esi, eax
test esi, esi
jns 0x40a617
push dword ds:[esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [esp + 0x11], 0
mov eax, dword [ebx + 8]
test eax, eax
je 0x40a633
mov eax, dword [eax + 4]
jmp 0x40a635
push dword [esp + 0x14]
mov byte [esp + 0x15], 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [esp + 0x11]
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_Ordinal_1303
push eax
call sym.SystemInformer.exe_Ordinal_1238
lea ecx, ds:[esp + 0x13]
push ecx
lea ecx, [esp + 0x16]
mov edx, dword [eax + 4]
push ecx
push esi
mov ecx, edi
call fcn.00401a00
test al, al
je 0x40a6d2
cmp byte [esp + 0x12], 0
je 0x40a7d1
mov eax, dword [ebx + 8]
test eax, eax
je 0x40a682
mov ecx, dword ds:[eax + 4]
jmp 0x40a684
xor ecx, ecx
mov edx, 5
call fcn.0047e600
test eax, eax
js 0x40a6a9
mov byte [esp + 0x11], 1
call sym.SystemInformer.exe_Ordinal_1190
mov al, byte [esp + 0x11]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ecx
push eax
push ebx
mov edx, 0x5d3ecc
mov ecx, edi
lfence
call fcn.00408540
nop dword [eax + eax]
call sym.SystemInformer.exe_Ordinal_1190
mov al, byte [esp + 0x11]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 8]
push dword [eax + 4]
push 0x5d3ecc
push str.Unable_to__s__s.
call fcn.004019c0
add esp, 0xc
mov ebx, dword [eax + 4]
cmp esi, 0xc0000022
je 0x40a722
cmp esi, 0xc0000005
je 0x40a722
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x40a710
movzx eax, si
jmp 0x40a729
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x40a72d
mov eax, esi
jmp 0x40a729
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
test eax, eax
jne 0x40a735
push esi
call sym.SystemInformer.exe_Ordinal_1660
jmp 0x40a73b
push eax
call sym.SystemInformer.exe_Ordinal_1670
mov esi, eax
test ebx, ebx
je 0x40a75c
test esi, esi
je 0x40a74f
mov eax, 0x21
jmp 0x40a76e
push ebx
push 0x5d369c
push 0x5d1e90
jmp 0x40a7c1
nop dword [eax]
test esi, esi
je 0x40a7b2
mov eax, 9
mov ebx, 0x5d1e90
mov edx, 4
mov ecx, esi
push dword [edx + ecx]
push 0x5d369c
push ebx
push 0xfffe
push eax
push edi
call sym.SystemInformer.exe_Ordinal_1699
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40a7d1
nop dword [eax + eax]
call fcn.004fe1e0
mov al, byte [esp + 0x11]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x5d1e90
push 0x5d369c
push str.Unable_to_perform_the_operation.
push 0xfffe
push 9
push edi
call sym.SystemInformer.exe_Ordinal_1699
add esp, 0x18
mov al, byte [esp + 0x11]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8