Function at 0x407980
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
sub esp, 0xc
mov eax, dword [eax + 8]
push ebx
push esi
xor bl, bl
push edi
mov edi, dword [ebp + 8]
test eax, eax
je 0x4079a2
mov eax, dword ds:[eax + 4]
jmp 0x4079a4
xor eax, eax
push eax
push 0x10
lea eax, [esp + 0x1c]
push eax
call sym.SystemInformer.exe_PhOpenService
mov esi, eax
test esi, esi
js 0x4079e8
mov ebx, dword [esp + 0x14]
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4079f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov esi, eax
test esi, esi
jns 0x4079f7
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor bl, bl
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
test eax, eax
je 0x407a13
mov eax, dword [eax + 4]
jmp 0x407a15
push ebx
mov byte [esp + 0x17], 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
push eax
push str.Unable_to_start
call sym.SystemInformer.exe_PhConcatStrings2
push eax
call sym.SystemInformer.exe_PhAutoDereferenceObject
lea ecx, [esp + 0x13]
push ecx
push esi
mov edx, dword [eax + 4]
mov ecx, edi
call fcn.00401940
jmp 0x407a40
test al, al
je 0x407bb8
cmp byte [esp + 0x13], 0
je 0x407cc8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
test eax, eax
je 0x407a62
mov ecx, dword [eax + 4]
jmp 0x407a64
xor ecx, ecx
mov edx, 1
call fcn.0047d1a0
mov esi, eax
test esi, esi
js 0x407a86
mov bl, 1
call sym.SystemInformer.exe__PhUiDisconnectFromPhSvc_0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
push dword [eax + 4]
push str.start
push str.Unable_to__s__s.
call fcn.004017e0
add esp, 0xc
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
cmp esi, 0xc0000022
je 0x407ade
cmp esi, 0xc0000005
je 0x407ade
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x407acc
movzx eax, si
jmp 0x407ae8
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x407aec
mov eax, esi
jmp 0x407ae8
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
test eax, eax
jne 0x407af7
push esi
lfence
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x407b05
push eax
lfence
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x407b27
test esi, esi
je 0x407b1a
mov ecx, 0x21
jmp 0x407b38
push eax
push 0x5cd020
push 0x5c9adc
jmp 0x407b95
test esi, esi
je 0x407b86
mov dword [ebp + 8], edi
mov ecx, 9
mov eax, 0x5c9adc
mov edx, esi
mov edi, 4
lfence
push dword [edi + edx]
mov edi, dword [ebp + 8]
push 0x5cd020
push eax
push 0xfffe
push ecx
push edi
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
lfence
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x407ba8
lfence
call fcn.004fbfa0
call sym.SystemInformer.exe__PhUiDisconnectFromPhSvc_0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x5c9adc
push 0x5cd020
push str.Unable_to_perform_the_operation.
push 0xfffe
push 9
push edi
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
call sym.SystemInformer.exe__PhUiDisconnectFromPhSvc_0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
push dword [eax + 4]
push str.start
push str.Unable_to__s__s.
call fcn.004017e0
add esp, 0xc
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
cmp esi, 0xc0000022
je 0x407c15
cmp esi, 0xc0000005
je 0x407c15
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x407c03
movzx eax, si
jmp 0x407c1c
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x407c24
mov eax, esi
jmp 0x407c1c
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
lea esp, [esp]
test eax, eax
jne 0x407c2c
push esi
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x407c32
push eax
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x407c58
lea esp, [esp]
test esi, esi
je 0x407c4b
mov ecx, 0x21
jmp 0x407c69
push eax
push 0x5cd020
push 0x5c9adc
jmp 0x407cb8
test esi, esi
je 0x407ca9
mov dword [ebp + 8], edi
mov ecx, 9
mov eax, 0x5c9adc
mov edx, esi
mov edi, 4
push dword [edi + edx]
mov edi, dword [ebp + 8]
push 0x5cd020
push eax
push 0xfffe
push ecx
push edi
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x407cc8
call fcn.004fbfa0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x5c9adc
push 0x5cd020
push str.Unable_to_perform_the_operation.
push 0xfffe
push 9
push edi
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8