Function at 0x4199c0
Capabilities:
Query service status
Stop 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 0x4764f0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x120
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 - 0x88], edi
lea eax, [ebp - 0x40]
mov dword [ebp - 0x88], edi
push eax
push dword [esi]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x419a44
call dword [sym.imp.KERNEL32.dll_GetLastError]
xorps xmm0, xmm0
mov dword [ebp - 0x88], 0x49cbb0
xor ecx, ecx
movq xmm1, xmm0
jmp 0x419a5d
movups xmm0, xmmword [ebp - 0x40]
mov ecx, dword [ebp - 0x28]
movq xmm1, qword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x88], 0x49cb90
mov dword [ebp - 0x18], eax
movq qword [ebp - 0x74], xmm1
mov dword [ebp - 0x6c], ecx
movups xmmword [ebp - 0x60], xmm0
movups xmmword [ebp - 0x84], xmm0
test eax, eax
je 0x419ad9
push 0x1c
push str.failed_service::query_status
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
call fcn.00418fe0
mov eax, dword [ebp - 0x18]
mov dword [edi], eax
mov eax, dword [ebp - 0x88]
mov dword [edi + 4], eax
movups xmm0, xmmword [ebp - 0x40]
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
movups xmmword [edi + 8], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [edi + 0x18], xmm0
mov byte [edi + 0x20], 1
jmp 0x419c15
mov eax, dword [ebp - 0x5c]
cmp eax, 1
jne 0x419b55
push str.stop_service
lea edx, [eax + 0xf]
lea ecx, [ebp - 0x130]
call fcn.00404b20
add esp, 4
mov dword [ebp - 4], 0
cmp byte [eax + 0x48], 0
je 0x419b10
mov edx, str.already_stopped
mov ecx, eax
call fcn.00416e30
lea ecx, [ebp - 0xd0]
call fcn.004048b0
lea eax, [ebp - 0xd0]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0xd0], 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 0x419c15
cmp eax, 3
je 0x419c03
cmp eax, 2
jne 0x419bb4
push dword [ebx + 0xc]
mov edx, esi
lea ecx, [ebp - 0x68]
push dword [ebx + 8]
call fcn.004192d0
add esp, 8
cmp byte [ebp - 0x48], 0
je 0x419bb4
movups xmm0, xmmword [ebp - 0x60]
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
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 - 0x50]
movq qword [edi + 0x18], xmm0
mov byte [edi + 0x20], 1
jmp 0x419c15
lea eax, [ebp - 0x84]
push eax
push 1
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x419c03
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x2a
push str.failed_ControlService_SERVICE_CONTROL_STOP
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0
mov esi, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
call fcn.00418fe0
mov dword [edi], esi
mov dword [edi + 4], 0x49cbb0
jmp 0x419aa9
push dword [ebx + 0xc]
mov edx, esi
mov ecx, edi
push dword [ebx + 8]
call fcn.00419550
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