Function at 0x40541a
Capabilities:
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x43b5a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
cmp dword [ebp + 8], ebx
jle 0x405451
push dword [edi + ebx*4]
push str.argv__:_s
call fcn.00403c87
inc ebx
pop ecx
pop ecx
cmp ebx, dword [ebp + 8]
jl 0x40543c
cmp dword [ebp + 8], 1
jle 0x4056d8
push 0x435f40
push dword [edi + 4]
call fcn.004143d4
pop ecx
pop ecx
test eax, eax
jne 0x4054b6
push dword [esi + 0xc8]
lea eax, [esi + 4]
push dword [esi + 0xc4]
push eax
push str._s_Version__d._d_n
call fcn.00413e5c
add esp, 0x10
mov ecx, esi
call fcn.004056eb
mov edx, 0x435f64
test eax, eax
mov ecx, str.currently
cmove ecx, edx
push ecx
push str.The_service_is__s_installed_n
call fcn.00413e5c
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x4056da
push 0x435f88
push dword [edi + 4]
call fcn.004143d4
pop ecx
pop ecx
test eax, eax
jne 0x40552b
mov ecx, esi
call fcn.004056eb
test eax, eax
je 0x4054db
mov edi, str._s_is_already_installed_n
jmp 0x4054eb
mov ecx, esi
call fcn.00405729
test eax, eax
je 0x405501
mov edi, str._s_installed_n
add esi, 4
push esi
push edi
call fcn.00413e5c
push esi
push edi
call fcn.00403c87
add esp, 0x10
jmp 0x4054ae
lea edi, [esi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, str._s_failed_to_install._Error__d_n
push eax
push edi
push ebx
call fcn.00403c87
add esp, 0xc
call esi
push eax
push edi
push ebx
call fcn.00413e5c
add esp, 0xc
jmp 0x4054ae
push 0x435fd8
push dword [edi + 4]
call fcn.004143d4
pop ecx
pop ecx
test eax, eax
jne 0x4055ad
mov ecx, esi
call fcn.004056eb
test eax, eax
jne 0x405550
mov edi, str._s_is_not_installed_n
jmp 0x4054eb
mov ecx, esi
call fcn.00405917
test eax, eax
je 0x405598
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x110]
push eax
add esi, 4
push esi
mov edi, str._s_removed.__You_must_delete_the_file___s__yourself.__n
push edi
call fcn.00413e5c
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push esi
push edi
call fcn.00403c87
jmp 0x405526
lea edi, [esi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, str.Could_not_remove__s._Error__d_n
jmp 0x405511
push str._stop
push dword [edi + 4]
call fcn.004143d4
pop ecx
pop ecx
test eax, eax
jne 0x405634
mov ecx, esi
call fcn.004056eb
test eax, eax
jne 0x4055e6
add esi, 4
push esi
mov edi, str._s_is_not_installed_n
push edi
call fcn.00413e5c
push esi
push edi
call fcn.00403d50
jmp 0x4054fc
push 5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x4054ae
push 0x20
lea ecx, [esi + 4]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call edi
test esi, esi
je 0x4054ae
lea eax, [ebp - 0x12c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call edi
jmp 0x4054ae
push str._start
push dword [edi + 4]
call fcn.004143d4
pop ecx
pop ecx
test eax, eax
jne 0x4056d8
mov ecx, esi
call fcn.004056eb
test eax, eax
jne 0x405671
add esi, 4
push esi
mov edi, str._s_is_not_installed_n
push edi
call fcn.00413e5c
push esi
push edi
call fcn.00403ba1
jmp 0x4054fc
push 5
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x4054ae
push 0x10
lea ecx, [esi + 4]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call edi
test esi, esi
je 0x4054ae
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x4056c0
push str.start_ok_n
call fcn.00403ba1
jmp 0x4056d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.start_failed_Error_Code:_d
call fcn.00403ba1
pop ecx
pop ecx
jmp 0x40562c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041206b
leave
ret 8