Function at 0x401460
Capabilities:
Delete service

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
mov byte [esp + 0x1f], 0
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x4015de
push 0xf01ff
push str.NcrOdometer
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, eax
test ebp, ebp
je 0x4014fd
push ebp
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x4014e7
mov eax, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push eax
push ecx
push str._uninstalled_successfully.
push ecx
mov ecx, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push str.NCR_Retail_Odometer
push ecx
mov byte [esp + 0x2b], 1
call fcn.00401bc0
add esp, 0xc
push eax
call fcn.00401bc0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40150a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov edi, eax
mov ebx, 0x403414
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40150a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ebx, str.OpenService
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp byte [esp + 0x13], 0
jne 0x4015d8
mov edx, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push edx
push ecx
push 0x4033bc
push edi
push 0x401040
push 0x401020
push str.__0x
push edi
push section..text
push ecx
push str._failed__error
push ecx
push ebx
push ecx
push str.
mov eax, edx
push eax
push str._uninstallation_failed.
push ecx
mov ecx, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push str.NCR_Retail_Odometer
push ecx
call fcn.00401bc0
add esp, 0xc
push eax
call fcn.00401bc0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push eax
call fcn.00401bc0
add esp, 0xc
push eax
call fcn.00401bc0
add esp, 0xc
push eax
call fcn.00401bc0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push eax
call fcn.00401bc0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push eax
call fcn.00401bc0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ebx, str.OpenSCManager
jmp 0x40151c