Function at 0x41d490
Capabilities:
Delete service
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4241ae
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x453804]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0x45437c
mov dword [ebp - 0x30], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
mov ecx, 0x45670c
call dword [sym.imp.mfc140.dll_Ordinal_13907]
mov esi, dword [sym.imp.CompDoc.dll_public:_void___thiscall_nsPath::CPath::constructor_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char____const__]
lea ecx, [ebp - 0x54]
push 0x45670c
call esi
mov edi, dword [sym.imp.CompDoc.dll_public:_class_nsPath::CPath___thiscall_nsPath::CPath::GetPath_bool_]
lea eax, [ebp - 0x58]
push 1
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0
call edi
mov ebx, dword [sym.imp.CompDoc.dll_public:_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______thiscall_nsPath::CPath::GetStr_unsigned_long_int_]
lea ecx, [ebp - 0x50]
push 2
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call dword [sym.imp.CompDoc.dll_public:_void___thiscall_nsPath::CPath::destructor_void_]
lea ecx, [ebp - 0x50]
call dword [sym.imp.mfc140.dll_Ordinal_8146]
test al, al
mov eax, dword [sym.imp.CompDoc.dll_class_nsPath::CPath___cdecl_nsPath::GetModuleFileNameA_struct_HINSTANCE____]
je 0x41d5a1
lea ecx, [ebp - 0x34]
push 0
push ecx
call eax
add esp, 8
push 1
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x34]
call edi
push 2
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call ebx
push eax
mov ecx, 0x45670c
mov byte [ebp - 4], 6
call dword [sym.imp.mfc140.dll_Ordinal_1526]
lea ecx, [ebp - 0x5c]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call dword [sym.imp.CompDoc.dll_public:_void___thiscall_nsPath::CPath::destructor_void_]
push dword [ebp - 0x30]
mov ecx, 0x45670c
call dword [sym.imp.mfc140.dll_Ordinal_2459]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call dword [sym.imp.CompDoc.dll_public:_void___thiscall_nsPath::CPath::destructor_void_]
mov eax, dword [sym.imp.CompDoc.dll_class_nsPath::CPath___cdecl_nsPath::GetModuleFileNameA_struct_HINSTANCE____]
lea ecx, [ebp - 0x4c]
push 0
push ecx
call eax
add esp, 8
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 7
call dword [sym.imp.CompDoc.dll_public:_char_const____thiscall_nsPath::CPath::operator_char_const__void_const]
push eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc140.dll_Ordinal_310]
push 0x440aa4
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call dword [sym.imp.mfc140.dll_Ordinal_1696]
push 0x45670c
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc140.dll_Ordinal_1692]
push 0x440aa8
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc140.dll_Ordinal_1696]
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
mov edx, 0x454180
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x41d601
push 0x45670c
lea ecx, [ebp - 0x48]
call esi
push 1
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x48]
call edi
push 2
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xa
push ecx
mov ecx, eax
call ebx
push eax
mov ecx, 0x456804
mov byte [ebp - 4], 0xb
call dword [sym.imp.mfc140.dll_Ordinal_1526]
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 9
call dword [sym.imp.CompDoc.dll_public:_void___thiscall_nsPath::CPath::destructor_void_]
cmp dword [0x45677c], 0
je 0x41d6ab
push 0x456750
lea ecx, [ebp - 0x34]
call esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xc
call dword [sym.imp.CompDoc.dll_public:_bool___thiscall_nsPath::CPath::IsRelative_void_]
mov ecx, 0x456804
push 0x456750
test al, al
je 0x41d69a
call dword [sym.imp.mfc140.dll_Ordinal_1692]
lea ecx, [ebp - 0x34]
call dword [sym.imp.CompDoc.dll_public:_void___thiscall_nsPath::CPath::destructor_void_]
jmp 0x41d6bb
call dword [sym.imp.mfc140.dll_Ordinal_1526]
lea ecx, [ebp - 0x34]
call dword [sym.imp.CompDoc.dll_public:_void___thiscall_nsPath::CPath::destructor_void_]
jmp 0x41d6bb
push str.TripService.log
mov ecx, 0x456804
call dword [sym.imp.mfc140.dll_Ordinal_1696]
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc140.dll_Ordinal_316]
mov ecx, 0x461a78
mov byte [ebp - 4], 0xd
call dword [sym.imp.mfc140.dll_Ordinal_8146]
mov edi, dword [sym.imp.mfc140.dll_Ordinal_4807]
test al, al
lea eax, [ebp - 0x3c]
je 0x41d6ed
push str.Service_started_with_no_command
push eax
call edi
add esp, 8
jmp 0x41d6fe
push dword [0x461a78]
push str.Service_started_with_command_line:__s
push eax
call edi
add esp, 0xc
push ecx
lea eax, [ebp - 0x3c]
mov ecx, esp
push eax
call dword [sym.imp.mfc140.dll_Ordinal_300]
call fcn.0041eaf0
add esp, 4
lea ecx, [ebp - 0x40]
push 0x440918
call dword [sym.imp.mfc140.dll_Ordinal_310]
cmp dword [0x4567d0], 0
mov byte [ebp - 4], 0xe
je 0x41d75f
push 0x456794
lea eax, [ebp - 0x30]
push 0x440490
push eax
call fcn.00418a90
add esp, 0xc
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xf
call dword [sym.imp.mfc140.dll_Ordinal_1692]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xe
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x40]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
mov edx, 0x453f88
sub edx, eax
nop
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x41d770
mov ecx, 0x461a78
call dword [sym.imp.mfc140.dll_Ordinal_1661]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
push eax
push 0x440b04
call esi
add esp, 8
test eax, eax
je 0x41daac
mov ecx, 0x461a78
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
push 0x440b08
call esi
add esp, 8
test eax, eax
je 0x41daac
mov ecx, 0x461a78
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
push 0x440b0c
call esi
add esp, 8
test eax, eax
je 0x41da1e
mov ecx, 0x461a78
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
push 0x440b10
call esi
add esp, 8
test eax, eax
je 0x41da1e
mov ecx, 0x461a78
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
push 0x440b14
call esi
add esp, 8
test eax, eax
je 0x41d95b
mov ecx, 0x461a78
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
push 0x440b18
call esi
add esp, 8
test eax, eax
je 0x41d95b
mov ecx, 0x461a78
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
push 0x440b1c
call esi
add esp, 8
test eax, eax
je 0x41d899
mov ecx, 0x461a78
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
push 0x440b20
call esi
add esp, 8
test eax, eax
je 0x41d899
push 0x4523fc
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x41dabe
push ecx
mov ecx, esp
push str.StartServiceCtrlDispatcher_failed__error_code___d
call dword [sym.imp.mfc140.dll_Ordinal_310]
call fcn.0041ea60
add esp, 4
jmp 0x41dabe
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x41d8c9
push ecx
mov ecx, esp
push str.OpenSCManager_failed__error_code___d
call dword [sym.imp.mfc140.dll_Ordinal_310]
call fcn.0041ea60
add esp, 4
jmp 0x41dabe
push 0xf01ff
push 0x453f88
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x41d904
push ecx
mov ecx, esp
push str.OpenService_failed__error_code___d
call dword [sym.imp.mfc140.dll_Ordinal_310]
call fcn.0041ea60
add esp, 4
push edi
call ebx
jmp 0x41dabe
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x41d93a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push ecx
mov ecx, esp
push str.Service_Started
call dword [sym.imp.mfc140.dll_Ordinal_310]
call fcn.0041eaf0
add esp, 4
jmp 0x41dabe
push ecx
mov ecx, esp
push str.StartService_failed__error_code___d
call dword [sym.imp.mfc140.dll_Ordinal_310]
call fcn.0041ea60
add esp, 4
push esi
call ebx
push edi
call ebx
jmp 0x41dabe
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x41d8ae
push 0xf01ff
push 0x453f88
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
jne 0x41d9af
push ecx
mov ecx, esp
push str.OpenService_failed__error_code___d
call dword [sym.imp.mfc140.dll_Ordinal_310]
call fcn.0041ea60
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 4
push esi
call edi
jmp 0x41dabe
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
lea ecx, [ebp - 0x34]
test eax, eax
jne 0x41d9d3
call dword [sym.imp.mfc140.dll_Ordinal_316]
push 0x453f88
mov byte [ebp - 4], 0x10
push str.Failed_to_delete_service__s
jmp 0x41d9e7
call dword [sym.imp.mfc140.dll_Ordinal_316]
push 0x453f88
mov byte [ebp - 4], 0x11
push str.Service__s_removed
lea eax, [ebp - 0x34]
push eax
call edi
add esp, 8
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call dword [sym.imp.mfc140.dll_Ordinal_300]
call fcn.0041eaf0
add esp, 4
lea ecx, [ebp - 0x34]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call edi
push esi
call edi
jmp 0x41dabe
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x41d8ae
push 0xf01ff
push 0x453f88
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x41da6f
push ecx
mov ecx, esp
push str.OpenService_failed__error_code___d
call dword [sym.imp.mfc140.dll_Ordinal_310]
call fcn.0041ea60
add esp, 4
push edi
call ebx
jmp 0x41dabe
lea eax, [ebp - 0x2c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x41da8e
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
jmp 0x41dabe
push ecx
mov ecx, esp
push str.ControlService_failed__error_code___d
call dword [sym.imp.mfc140.dll_Ordinal_310]
call fcn.0041ea60
add esp, 4
push esi
call ebx
push edi
call ebx
jmp 0x41dabe
push 0x453f88
push 0x454180
call fcn.0041b980
add esp, 8
lea ecx, [ebp - 0x40]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x48]
call dword [sym.imp.CompDoc.dll_public:_void___thiscall_nsPath::CPath::destructor_void_]
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x4c]
call dword [sym.imp.CompDoc.dll_public:_void___thiscall_nsPath::CPath::destructor_void_]
lea ecx, [ebp - 0x50]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x54]
call dword [sym.imp.CompDoc.dll_public:_void___thiscall_nsPath::CPath::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004211b5
mov esp, ebp
pop ebp
ret