Function at 0x401a60
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push 7
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4018cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4018e0
movzx eax, ax
pop edi
or eax, 0x80070000
pop esi
ret
push esi
push edi
call fcn.004018f0
add esp, 8
mov esi, eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
ret
push esi
push edi
mov edi, ecx
push 0x5c
push edi
call fcn.00402d79
mov esi, eax
add esp, 8
test esi, esi
jne 0x4019b9
mov esi, edi
jmp 0x4019bc
add esi, 2
push 0x414298
push str.Service_name_:__s_n
call fcn.00402aad
add eax, 0x20
push eax
call fcn.00402875
add esp, 0xc
push 0x4142e8
push str.Description__:__s_n
call fcn.00402aad
add eax, 0x20
push eax
call fcn.00402875
add esp, 0xc
push str.v1.0.0_win_x86_release_
push str.Version______:__s_n
call fcn.00402aad
add eax, 0x20
push eax
call fcn.00402e1f
call fcn.00402aad
add eax, 0x20
push eax
push 0x413fa4
call fcn.00402909
add esp, 0x14
push esi
push 0x413fa8
call fcn.00402aad
add eax, 0x20
push eax
call fcn.00402875
call fcn.00402aad
add eax, 0x20
push eax
push str.__License:_Moyea_Software__http:__www.leawo.com__r_n_r_n
call fcn.00402909
call fcn.00402aad
add eax, 0x20
push eax
call fcn.00402c3c
add esp, 0x18
mov eax, 1
pop edi
pop esi
ret
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp edi, 2
jge 0x401a9c
push 0x413f30
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x401a94
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x427
jne 0x401a94
mov ecx, dword [ebp + 0xc]
pop edi
mov ecx, dword [ecx]
pop ebp
jmp 0x4019a0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp + 8]
push 0x401d20
push str.Server_exited_with_status_08x_n
push str.Server_exited_n
push str.Runnung_server_as_console_test_application_n
push str._testMain
mov dword [ebp + 8], ebx
call fcn.00401c40
push 0x401d70
push str.Installation_failed_with_status_08x_n
push str.Installed_successfully_n
push str.Installing_service..._n
push str._install
lea ecx, [ebp + 8]
call fcn.00401c40
push 0x401dc0
push str.Registration_failed_with_status_08x_n
push str.Registered_successfully_n
push str.Registering_service..._n
push str._register
lea ecx, [ebp + 8]
call fcn.00401c40
mov ecx, dword [ebx + 4]
mov edx, str._test
mov eax, ecx
push esi
mov si, word [eax]
cmp si, word [edx]
jne 0x401b37
test si, si
je 0x401b33
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x401b37
add eax, 4
add edx, 4
test si, si
jne 0x401b11
xor eax, eax
jmp 0x401b3c
sbb eax, eax
or eax, 1
pop esi
test eax, eax
jne 0x401b6f
cmp edi, 3
jle 0x401b4b
mov ecx, dword [ebx + 8]
jmp 0x401b4d
xor ecx, ecx
call fcn.004023f0
push eax
push str.Test_complete_hr_08x_n
call fcn.00402aad
add eax, 0x20
push eax
call fcn.00402e1f
add esp, 0xc
pop ebx
xor eax, eax
pop edi
pop ebp
ret
mov eax, str._version
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x401b9a
test dx, dx
je 0x401b96
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x401b9a
add ecx, 4
add eax, 4
test dx, dx
jne 0x401b74
xor eax, eax
jmp 0x401b9f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401baf
push str.v1.0.0_win_x86_release_
push 0x414170
jmp 0x401b58
push 0x401e10
push str.Start_failed_with_status_08x_n
push str.Started_successfully_n
push str.Starting_service..._n
push str._start
lea ecx, [ebp + 8]
call fcn.00401c40
push 0x401e50
push str.Stop_failed_with_status_08x_n
push str.Stopped_successfully_n
push str.Stopping_service..._n
push str._stop
lea ecx, [ebp + 8]
call fcn.00401c40
cmp edi, 3
jl 0x401b69
mov eax, dword [ebx + 4]
mov ecx, str.installExe
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401c28
test dx, dx
je 0x401c24
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401c28
add eax, 4
add ecx, 4
test dx, dx
jne 0x401c02
xor eax, eax
jmp 0x401c2d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401b69
mov ecx, dword [ebx + 8]
pop ebx
pop edi
pop ebp
jmp 0x4018a0