Function at 0x4153e0
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x424
mov eax, dword [0x5b339c]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push ebp
push esi
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x415440
add edi, 0x180
push 1
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x415439
push eax
mov ebx, 1
call ebp
push esi
call ebp
test ebx, ebx
jne 0x41544a
mov eax, 1
jmp 0x415556
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x41549d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_open_service_manager._Error__d_occurred.
push 0xffffffffffffffff
lea eax, [esp + 0x3c]
push 0x200
push eax
call dword [sym.imp.MSVCR90.dll__snwprintf_s]
add esp, 0x14
push ebx
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [esp + 0x38]
push ecx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x415556
push 0x10020
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4154f6
push ebx
call ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_open_service._Error__d_occurred.
push 0xffffffffffffffff
lea edx, [esp + 0x3c]
push 0x200
push edx
call dword [sym.imp.MSVCR90.dll__snwprintf_s]
add esp, 0x14
push esi
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x415556
lea ecx, [esp + 0x14]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x41554c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Service_could_not_be_deleted._Error__d_occurred.
push 0xffffffffffffffff
lea edx, [esp + 0x3c]
push 0x200
push edx
call dword [sym.imp.MSVCR90.dll__snwprintf_s]
add esp, 0x14
push 0
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea eax, [esp + 0x38]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call ebp
push ebx
call ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051973e
add esp, 0x424
ret