Function at 0x404a00
Capabilities:
Query service status
Start service

Disassembly:
push 0xffffffffffffffff
push 0x406e39
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40d02c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [esp + 0x20]
call dword [sym.imp.NCRRetailFoundation.dll_public:_void___thiscall_NCRRetailCommon::NCRString::constructor_void_]
push str.StartupService
push 0x409dc6
xor eax, eax
push 0x408ec8
mov dword [esp + 0x44], eax
mov edi, dword [sym.imp.NCRRetailFoundation.dll_public:_void___cdecl_NCRRetailCommon::NCRSystemTrace::Trace_unsigned_int__unsigned_int__char_const___char_const___char_const__]
push 7
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x68]
push 0xffffffffffffffff
push eax
call edi
add esp, 0x18
call fcn.00405000
test eax, eax
jne 0x404abe
push str.Start_Failed:_Service_not_installed.__Must_install_with_the__I_option_before_starting_the_service
lea ecx, [esp + 0x24]
call dword [sym.imp.NCRRetailFoundation.dll_public:_class_NCRRetailCommon::NCRString____thiscall_NCRRetailCommon::NCRString::operator_char_const__]
mov ebx, dword [ebx + 0x68]
push str._StartService
push 0x409dc6
push 0x408ec8
push 0x200
push 0xffffffffffffffff
push ebx
call edi
add esp, 0x18
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.NCRRetailFoundation.dll_public_virtual:_void___thiscall_NCRRetailCommon::NCRString::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov ebp, dword [sym.imp.NCRRetailFoundation.dll_public:_void___cdecl_NCRRetailCommon::NCRString::Format_char_const__]
push 0xf003f
lea esi, [ebx + 0x58]
push str.StartupService:_OpenSCManager_SC_MANAGER_ALL_ACCESS0x_x
push esi
call ebp
add esp, 0xc
mov ecx, esi
call dword [sym.imp.NCRRetailFoundation.dll_public:_char_const____thiscall_NCRRetailCommon::NCRString::operator_char_const__void_const]
mov ecx, dword [ebx + 0x68]
push eax
push 0x409dc6
push 0x408ec8
push 0x200
push 0xffffffffffffffff
push ecx
call edi
add esp, 0x18
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x404b48
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x24]
push str.Start_Failed:_Couldnt_Open_the_Microsoft_Service_Control_Manager__GetLastError_____d
push eax
call ebp
mov ebx, dword [ebx + 0x68]
push str._StartService
push 0x409dc6
push 0x408ec8
push 0x200
push 0xffffffffffffffff
push ebx
call edi
add esp, 0x24
jmp 0x404a96
push 0x408ec8
push str.StartupService:_OpenSCManager___S___SERVICE_STARTSERVICE_QUERY_STATYS
push esi
call ebp
add esp, 0xc
mov ecx, esi
call dword [sym.imp.NCRRetailFoundation.dll_public:_char_const____thiscall_NCRRetailCommon::NCRString::operator_char_const__void_const]
mov ecx, dword [ebx + 0x68]
push eax
push 0x409dc6
push 0x408ec8
push 0x200
push 0xffffffffffffffff
push ecx
call edi
mov ecx, dword [esp + 0x30]
add esp, 0x18
push 0x14
push 0x408ec8
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x404bd7
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x24]
push str.Start_Failed:_Couldnt_Open_the_service__GetLastError_____d
push eax
call ebp
mov ebx, dword [ebx + 0x68]
push str._StartupService
push 0x409dc6
push 0x408ec8
push 0x200
push 0xffffffffffffffff
push ebx
call edi
add esp, 0x24
jmp 0x404a96
push str.StartupService:_StartService__
push esi
call ebp
add esp, 8
mov ecx, esi
call dword [sym.imp.NCRRetailFoundation.dll_public:_char_const____thiscall_NCRRetailCommon::NCRString::operator_char_const__void_const]
mov ecx, dword [ebx + 0x68]
push eax
push 0x409dc6
push 0x408ec8
push 0x200
push 0xffffffffffffffff
push ecx
call edi
mov ecx, dword [esp + 0x2c]
add esp, 0x18
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x404cc4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x14]
lea eax, [ebx + 8]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x404c98
lea ebx, [ebx]
cmp dword [ebx + 0xc], 2
jne 0x404c66
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebx + 8]
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x404c40
jmp 0x404c98
mov ecx, dword [ebx + 0xc]
push ecx
push str.StartupService:_QueryStatus__x
push esi
call ebp
add esp, 0xc
mov ecx, esi
call dword [sym.imp.NCRRetailFoundation.dll_public:_char_const____thiscall_NCRRetailCommon::NCRString::operator_char_const__void_const]
mov ecx, dword [ebx + 0x68]
push eax
push 0x409dc6
push 0x408ec8
push 0x200
push 0xffffffffffffffff
push ecx
call edi
add esp, 0x18
cmp dword [ebx + 0xc], 4
lea ecx, [esp + 0x20]
jne 0x404cb7
push str.Service_started.
mov dword [esp + 0x20], 1
call dword [sym.imp.NCRRetailFoundation.dll_public:_class_NCRRetailCommon::NCRString____thiscall_NCRRetailCommon::NCRString::operator_char_const__]
jmp 0x404d10
push str.Service_failed_to_start.
call dword [sym.imp.NCRRetailFoundation.dll_public:_class_NCRRetailCommon::NCRString____thiscall_NCRRetailCommon::NCRString::operator_char_const__]
jmp 0x404d10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x404d08
push eax
lea edx, [esp + 0x24]
push str.Start_Failed:_StartService_returned_failure__GetLastError_____d
push edx
call ebp
add esp, 0xc
lea ecx, [esp + 0x20]
call dword [sym.imp.NCRRetailFoundation.dll_public:_char_const____thiscall_NCRRetailCommon::NCRString::operator_char_const__void_const]
mov ecx, dword [ebx + 0x68]
push eax
push 0x409dc6
push 0x408ec8
push 0x200
push 0xffffffffffffffff
push ecx
call edi
add esp, 0x18
jmp 0x404d10
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov ebx, dword [ebx + 0x68]
push str.StartService
push 0x409dc6
push 0x408ec8
push 8
push 0xffffffffffffffff
push ebx
call edi
add esp, 0x18
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.NCRRetailFoundation.dll_public_virtual:_void___thiscall_NCRRetailCommon::NCRString::destructor_void_]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret