Function at 0x4014f0
Capabilities:
Get common file path
Terminate process

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
push edi
push str._nSimple_Windows_Service_Manager_n
xor esi, esi
call fcn.00404566
push str._______________________________n_n
call fcn.00404566
mov edi, dword [esp + 0x58]
mov edx, dword [edi]
add esp, 8
mov ecx, edx
mov al, byte [ecx]
cmp al, 0x3a
jne 0x401527
mov esi, 1
add ecx, esi
jmp 0x401518
test al, al
je 0x401530
add ecx, 1
jmp 0x401518
cmp byte [edx], 0x5c
jne 0x401540
cmp byte [edx + 1], 0x5c
jne 0x401540
mov esi, 1
push 0x1f41
call fcn.00403e70
mov ebx, eax
add esp, 4
test esi, esi
mov dword [esp + 0x30], ebx
mov byte [ebx], 0x22
mov byte [ebx + 1], 0
jne 0x4015c3
push 0x1f41
mov edi, 0x1f40
call fcn.00403e70
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
add esp, 4
mov esi, eax
push esi
push 0x1b58
call ebp
test eax, eax
jne 0x4015a0
add edi, edi
push edi
push esi
call fcn.0040462b
add esp, 8
mov esi, eax
push esi
lea eax, [edi - 0x3e8]
push eax
call ebp
test eax, eax
je 0x401584
cmp byte [esi + eax - 1], 0x5c
je 0x4015b0
mov byte [esi + eax], 0x5c
mov byte [esi + eax + 1], 0
push esi
push 0x1f41
push ebx
call fcn.00404846
mov edi, dword [esp + 0x5c]
add esp, 0xc
mov ecx, dword [edi]
push ecx
push 0x1f41
push ebx
call fcn.00404846
push 0x411884
push 0x1f41
push ebx
call fcn.00404846
push ebx
push str.Service_executable_path:__s_n
call fcn.00404566
mov eax, dword [esp + 0x6c]
add esp, 0x20
cmp eax, 2
jle 0x401ad7
mov eax, dword [edi + 4]
mov esi, dword [edi + 8]
push str._uninstallbyname
push eax
call fcn.004039e6
add esp, 8
test eax, eax
jne 0x401648
push str.Uninstalling_Service_by_name..._n
call fcn.00404566
mov eax, dword [edi + 8]
add esp, 4
call fcn.00402aa0
test eax, eax
je 0x401634
push str._n_nService_Uninstalled_Sucessfully_n
jmp 0x401639
push str._n_nError_Uninstalling_Service_n
call fcn.00404566
add esp, 4
push 0
call fcn.00404c22
push esi
push str._nProcessing_configuration_file:__s_n
call fcn.00404566
push esi
mov ecx, str.NAME
call fcn.00401350
mov ebx, eax
push esi
mov ecx, str.DISPLAYNAME
mov dword [esp + 0x3c], ebx
call fcn.00401350
mov ebp, eax
push esi
mov ecx, str.DESCRIPTION
mov dword [esp + 0x48], ebp
call fcn.00401350
push esi
mov ecx, str.WORKINGDIR
mov dword [esp + 0x3c], eax
call fcn.00401350
push esi
mov ecx, str.CMDLINE
mov dword [esp + 0x44], eax
call fcn.00401350
push esi
mov ecx, str.STOP_WORKINGDIR
mov dword [esp + 0x40], eax
call fcn.00401350
push esi
mov ecx, str.LIVENESS_FILE
mov dword [esp + 0x40], eax
call fcn.00401350
push esi
mov ecx, str.STOP_CMDLINE
mov dword [esp + 0x3c], eax
call fcn.00401350
push esi
mov ecx, str.AUTORESTART
mov dword [esp + 0x44], eax
call fcn.00401350
push esi
mov ecx, str.INTERACTIVE
mov edi, eax
call fcn.00401350
push esi
mov ecx, str.RUNONCE
mov dword [esp + 0x80], eax
call fcn.00401350
push esi
mov ecx, str.DOCAD
mov dword [esp + 0x48], eax
call fcn.00401350
add esp, 0x38
test ebx, ebx
mov esi, eax
jne 0x401725
push str.Config_file_must_contain_a_SERVICENAME_entry_n
call fcn.00404566
add esp, 4
push 0xffffffffffffffff
call fcn.00404c22
push ebx
push str._t_tNAME___s_n
call fcn.00404566
add esp, 8
test ebp, ebp
jne 0x40174b
push str.Config_file_must_contain_a_DISPLAYNAME_entry_n
call fcn.00404566
add esp, 4
push 0xffffffffffffffff
call fcn.00404c22
push ebp
push str._t_tDISPLAYNAME___s_n
call fcn.00404566
mov eax, dword [esp + 0x2c]
add esp, 8
test eax, eax
jne 0x401775
push str.Config_file_must_contain_a_SERVICE_DESCRIPTION_entry_n
call fcn.00404566
add esp, 4
push 0xffffffffffffffff
call fcn.00404c22
push eax
push str._t_tSERVICE_DESCRIPTION___s_n
call fcn.00404566
mov eax, dword [esp + 0x30]
add esp, 8
test eax, eax
jne 0x40179a
push str.Config_file_contains_no_WORKINGDIR_entry___process_will_always_be_launched_using_services_current_directory_n
call fcn.00404566
add esp, 4
jmp 0x4017a8
push eax
push str._t_tWORKINGDIR___s_n
call fcn.00404566
add esp, 8
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4017bf
push str.Config_file_contains_no_STOP_WORKINGDIR_entry___stop_process_will_always_be_launched_using_services_current_directory_n
call fcn.00404566
add esp, 4
jmp 0x4017cd
push eax
push str._t_tSTOP_WORKINGDIR___s_n
call fcn.00404566
add esp, 8
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4017e4
push str.Config_file_contains_no_LIVENESS_FILE_entry___service_will_not_restart_child_process._n
call fcn.00404566
add esp, 4
jmp 0x4017f2
push eax
push str._t_tLIVENESS_FILE___s_n
call fcn.00404566
add esp, 8
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x401809
push str.Config_file_contains_no_STOP_CMDLINE_entry___stop_process_will_not_be_launched_and_child_process_will_be_simply_killed_n
call fcn.00404566
add esp, 4
jmp 0x401817
push eax
push str._t_tSTOP_CMDLINE___s_n
call fcn.00404566
add esp, 8
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x401833
push str.Config_file_must_contain_a_RUN_CMDLINE_entry_n
call fcn.00404566
add esp, 4
push 0xffffffffffffffff
call fcn.00404c22
push eax
push str._t_tRUN_CMDLINE___s_n
call fcn.00404566
add esp, 8
test edi, edi
jne 0x401859
push str.Config_file_contains_no_AUTORESTART_entry_n
mov edi, 0x411d0c
call fcn.00404566
add esp, 4
jmp 0x401867
push edi
push str._t_tAUTORESTART___s_n
call fcn.00404566
add esp, 8
mov ebp, dword [esp + 0x4c]
test ebp, ebp
jne 0x401888
push str.Config_file_contains_no_HAS_UI_entry_n
mov dword [esp + 0x50], 0x411d0c
call fcn.00404566
mov ebp, dword [esp + 0x50]
add esp, 4
cmp dword [esp + 0x10], 0
jne 0x4018a4
push str.Config_file_contains_no_RUN_ONCE_entry_n
mov dword [esp + 0x14], 0x411d0c
call fcn.00404566
add esp, 4
test esi, esi
jne 0x4018ba
push str.Config_file_contains_no_cad_entry_n
mov esi, 0x411d0c
call fcn.00404566
add esp, 4
push 0x411dc4
push edi
call fcn.004039e6
add esp, 8
test eax, eax
je 0x4018f5
push 0x411dc8
push edi
call fcn.004039e6
add esp, 8
test eax, eax
je 0x4018f5
push str.true
push edi
call fcn.004039e6
add esp, 8
test eax, eax
mov ebx, 0x411d0c
jne 0x4018fa
mov ebx, 0x411dc4
push ebx
push str._t_tAUTO_RESTART___s_n
call fcn.00404566
push 0x411dc4
push ebp
call fcn.004039e6
add esp, 0x10
test eax, eax
je 0x401940
push 0x411dc8
push ebp
call fcn.004039e6
add esp, 8
test eax, eax
je 0x401940
push str.true
push ebp
call fcn.004039e6
add esp, 8
test eax, eax
mov ebp, 0x411d0c
jne 0x401945
mov ebp, 0x411dc4
push ebp
push str._t_tHAS_UI___s_n_n
call fcn.00404566
mov edi, dword [esp + 0x18]
push 0x411dc4
push edi
call fcn.004039e6
add esp, 0x10
test eax, eax
je 0x40198f
push 0x411dc8
push edi
call fcn.004039e6
add esp, 8
test eax, eax
je 0x40198f
push str.true
push edi
call fcn.004039e6
add esp, 8
test eax, eax
mov edi, 0x411d0c
jne 0x401994
mov edi, 0x411dc4
push edi
push str._t_tRUN_ONCE___s_n_n
call fcn.00404566
push 0x411dc4
push esi
call fcn.004039e6
add esp, 0x10
test eax, eax
je 0x4019da
push 0x411dc8
push esi
call fcn.004039e6
add esp, 8
test eax, eax
je 0x4019da
push str.true
push esi
call fcn.004039e6
add esp, 8
test eax, eax
mov esi, 0x411d0c
jne 0x4019df
mov esi, 0x411dc4
push esi
push str._t_tCAD___s_n_n
call fcn.00404566
mov edx, dword [esp + 0x58]
mov eax, dword [edx + 4]
push str._install
push eax
call fcn.004039e6
add esp, 0x10
test eax, eax
jne 0x401a6a
push str.Installing_Service..._n
call fcn.00404566
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push esi
push edi
push ebx
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x54]
push eax
mov eax, ebp
call fcn.004025c0
add esp, 0x2c
test eax, eax
je 0x401a55
push str._n_nService_Installed_Sucessfully_n
call fcn.00404566
jmp 0x401a67
push str._n_nError_Installing_Service_n
call fcn.00404566
mov dword [esp + 0x50], 0x35
add esp, 4
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + 4]
push str._uninstall
push eax
call fcn.004039e6
add esp, 8
test eax, eax
jne 0x401afe
push str.Uninstalling_Service..._n
call fcn.00404566
mov eax, dword [esp + 0x30]
add esp, 4
call fcn.00402aa0
test eax, eax
je 0x401ab6
push str._n_nService_Uninstalled_Sucessfully_n
call fcn.00404566
mov eax, dword [esp + 0x50]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
push str._n_nError_Uninstalling_Service_n
call fcn.00404566
add esp, 4
pop edi
pop esi
mov dword [esp + 0x44], 0x35
mov eax, dword [esp + 0x44]
pop ebp
pop ebx
add esp, 0x38
ret
je 0x401afe
xor eax, eax
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3c], str.Unknown_Service
mov dword [esp + 0x40], 0x401de0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
push str.Usage:_SimpleService___install_uninstall___config_file_
call fcn.00404566
mov eax, dword [esp + 0x50]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret