Function at 0x419770
Capabilities:
Query service status
Start service

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4764b0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf8
mov eax, dword [0x49c128]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x3c], edi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x3c], edi
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x41984f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
xorps xmm0, xmm0
movq qword [ebp - 0x50], xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x60], xmm0
test eax, eax
je 0x419867
push 0x1c
push str.failed_service::query_status
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
call fcn.00418fe0
mov eax, dword [ebp - 0x3c]
mov dword [edi], eax
movups xmm0, xmmword [ebp - 0x60]
mov dword [edi + 4], 0x49cbb0
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
movups xmmword [edi + 8], xmm0
movq xmm0, qword [ebp - 0x50]
movq qword [edi + 0x18], xmm0
mov byte [edi + 0x20], 1
jmp 0x419997
movups xmm0, xmmword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
movups xmmword [ebp - 0x60], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [ebp - 0x50], xmm0
mov eax, dword [ebp - 0x5c]
cmp eax, 4
jne 0x4198e3
push 0x48ab30
lea edx, [eax + 0xc]
lea ecx, [ebp - 0x108]
call fcn.00404b20
add esp, 4
mov dword [ebp - 4], 0
cmp byte [eax + 0x48], 0
je 0x41989e
mov edx, str.service_already_running
mov ecx, eax
call fcn.00416e30
lea ecx, [ebp - 0xa8]
call fcn.004048b0
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0xa8], vtable.std::ios_base.0
call fcn.00452e26
xorps xmm0, xmm0
add esp, 4
movups xmmword [edi], xmm0
movups xmmword [edi + 0x10], xmm0
mov dword [edi + 0x20], 0
mov byte [edi + 0x20], 0
jmp 0x419997
cmp eax, 2
je 0x419985
cmp eax, 3
jne 0x419942
push dword [ebx + 0xc]
mov edx, esi
lea ecx, [ebp - 0x38]
push dword [ebx + 8]
call fcn.00419550
add esp, 8
cmp byte [ebp - 0x18], 0
je 0x419942
movups xmm0, xmmword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
movups xmmword [edi + 8], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [edi + 0x18], xmm0
mov byte [edi + 0x20], 1
jmp 0x419997
push 0
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x419985
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x13
push str.failed_StartService
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0
mov esi, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
call fcn.00418fe0
mov dword [edi], esi
jmp 0x419818
push dword [ebx + 0xc]
mov edx, esi
mov ecx, edi
push dword [ebx + 8]
call fcn.004192d0
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004553e7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret