Function at 0x4047e0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 1
mov eax, dword [ebx + 8]
push 0
push 0
mov esi, dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x40484d
push 0x10
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
test esi, esi
je 0x40484d
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
test eax, eax
je 0x404847
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x404862
movzx esi, si
or esi, 0xc0070000
mov eax, dword [ebx + 8]
push dword [eax + 4]
push str.Unable_to_start
call sym.ProcessHacker.exe_PhConcatStrings2
push eax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x13]
push ecx
push esi
mov edx, dword [eax + 4]
mov ecx, edi
call fcn.00401680
test al, al
je 0x4049c3
xor al, al
cmp byte [esp + 0x13], al
je 0x404a93
mov ecx, dword [ebx + 8]
mov edx, 1
mov ecx, dword [ecx + 4]
call fcn.004568a0
mov esi, eax
test esi, esi
js 0x4048c7
mov bl, 1
call sym.ProcessHacker.exe__PhUiDisconnectFromPhSvc_0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 8]
push dword [eax + 4]
push str.start
push str.Unable_to__s__s.
call fcn.00401520
add esp, 0xc
mov ebx, dword [eax + 4]
cmp esi, 0xc0000022
je 0x40490c
cmp esi, 0xc0000005
je 0x40490c
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x40491a
movzx eax, si
jmp 0x404916
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jne 0x404927
push esi
lfence
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x404930
push eax
lfence
call sym.ProcessHacker.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x404990
lfence
lfence
push dword [esi + 4]
push 0x54ace8
test ebx, ebx
je 0x40495b
push ebx
push 0xfffe
push 0x20
push edi
call sym.ProcessHacker.exe_PhShowMessage2
add esp, 0x18
jmp 0x404968
push 0x10
push edi
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0x10
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4049b1
lfence
call fcn.004b3960
xor bl, bl
call sym.ProcessHacker.exe__PhUiDisconnectFromPhSvc_0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x40499c
push ebx
push 0x57e1d4
jmp 0x4049a6
push str.Unable_to_perform_the_operation.
push 0x54ace8
push 0x10
push edi
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0x10
xor bl, bl
call sym.ProcessHacker.exe__PhUiDisconnectFromPhSvc_0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 8]
push dword [eax + 4]
push str.start
push str.Unable_to__s__s.
call fcn.00401520
add esp, 0xc
mov ebx, dword [eax + 4]
cmp esi, 0xc0000022
je 0x404a03
cmp esi, 0xc0000005
je 0x404a03
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x404a0e
movzx eax, si
jmp 0x404a0a
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jne 0x404a16
push esi
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x404a1c
push eax
call sym.ProcessHacker.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x404a70
mov eax, dword [esi + 4]
push eax
push 0x54ace8
test ebx, ebx
je 0x404a44
push ebx
push 0xfffe
push 0x20
push edi
call sym.ProcessHacker.exe_PhShowMessage2
add esp, 0x18
jmp 0x404a4f
push 0x10
push edi
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0x10
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x404a91
lea ecx, [ecx]
call fcn.004b3960
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x404a7c
push ebx
push 0x57e1d4
jmp 0x404a86
push str.Unable_to_perform_the_operation.
push 0x54ace8
push 0x10
push edi
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8