Function at 0x40542f
Capabilities:
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x43c5a0]
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 0x405466
push dword [edi + ebx*4]
push str.argv__:_s
call fcn.00403d65
inc ebx
pop ecx
pop ecx
cmp ebx, dword [ebp + 8]
jl 0x405451
cmp dword [ebp + 8], 1
jle 0x4056bb
push 0x436fe4
push dword [edi + 4]
call fcn.004149e4
pop ecx
pop ecx
test eax, eax
jne 0x4054cb
push dword [esi + 0xc8]
lea eax, [esi + 4]
push dword [esi + 0xc4]
push eax
push str._s_Version__d._d_n
call fcn.00414015
add esp, 0x10
mov ecx, esi
call fcn.004056ce
mov edx, 0x437008
test eax, eax
mov ecx, str.currently
cmove ecx, edx
push ecx
push str.The_service_is__s_installed_n
call fcn.00414015
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x4056bd
push 0x43702c
push dword [edi + 4]
call fcn.004149e4
pop ecx
pop ecx
test eax, eax
jne 0x405540
mov ecx, esi
call fcn.004056ce
test eax, eax
je 0x4054f0
mov edi, str._s_is_already_installed_n
jmp 0x405500
mov ecx, esi
call fcn.0040570c
test eax, eax
je 0x405516
mov edi, str._s_installed_n
add esi, 4
push esi
push edi
call fcn.00414015
push esi
push edi
call fcn.00403c7f
add esp, 0x10
jmp 0x4054c3
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.00403c7f
add esp, 0xc
call esi
push eax
push edi
push ebx
call fcn.00414015
add esp, 0xc
jmp 0x4054c3
push 0x43707c
push dword [edi + 4]
call fcn.004149e4
pop ecx
pop ecx
test eax, eax
jne 0x4055c2
mov ecx, esi
call fcn.004056ce
test eax, eax
jne 0x405565
mov edi, str._s_is_not_installed_n
jmp 0x405500
mov ecx, esi
call fcn.004058fa
test eax, eax
je 0x4055ad
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.00414015
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push esi
push edi
call fcn.00403c7f
jmp 0x40553b
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 0x405526
push str._stop
push dword [edi + 4]
call fcn.004149e4
pop ecx
pop ecx
test eax, eax
jne 0x405632
mov ecx, esi
call fcn.004056ce
test eax, eax
je 0x40555e
push 5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x4054c3
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 0x4054c3
lea eax, [ebp - 0x12c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call edi
jmp 0x4054c3
push str._start
push dword [edi + 4]
call fcn.004149e4
pop ecx
pop ecx
test eax, eax
jne 0x4056bb
mov ecx, esi
call fcn.004056ce
test eax, eax
je 0x40555e
push 5
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x4054c3
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 0x4054c3
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x4056a3
push str.start_ok_n
call fcn.00403c7f
jmp 0x4056b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.start_failed_Error_Code:_d
call fcn.00403c7f
pop ecx
pop ecx
jmp 0x40562a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004124f9
leave
ret 8