Function at 0x412320
Capabilities:
Connect pipe
Query service status
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ed90
mov eax, dword fs:[0]
push eax
sub esp, 0x858
mov eax, dword [0x4fb00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x848], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x850]
push str.F36AD0D0_B5F0_4C69_AF08_603D177FEF0E
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_char_const__]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_void_]
mov byte [ebp - 4], 2
push SysReAllocStringLen
push str.ServicesActive
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x41245a
lea eax, [ebp - 0x828]
xor bl, bl
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_QString::toStdWString_void_]
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x4123be
mov eax, dword [eax]
push SysReAllocStringLen
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x814]
cmp edx, 8
jb 0x412413
mov ecx, dword [ebp - 0x828]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412409
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x412409
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004995e4
add esp, 8
xor eax, eax
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
test edi, edi
je 0x41253e
lea eax, [ebp - 0x844]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x41252c
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push 0x10
call fcn.0049909e
mov edi, eax
add esp, 4
mov dword [ebp - 0x85c], edi
mov byte [ebp - 4], 4
mov ecx, edi
push 0
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QObject::constructor_class_QObject__]
push 0
lea ecx, [edi + 8]
call fcn.00477f60
lea eax, [ebp - 0x850]
mov dword [edi], vtable.QAxObject.0
push eax
lea ecx, [edi + 8]
mov dword [edi + 8], vtable.QAxObject.1.0
call fcn.00478180
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x85c]
push edi
call fcn.0040eb80
mov byte [ebp - 4], 5
lea eax, [ebp - 0x810]
push 0x800
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x854]
push 0x3e8
push eax
push 0x800
lea eax, [ebp - 0x810]
push eax
push 0x10
push str.NeedAKey
push str..pipeMBLG
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
test eax, eax
je 0x4126ad
mov eax, dword [ebp - 0x854]
test eax, eax
je 0x4126ad
shr eax, 1
cmp eax, 0x400
jae 0x412559
add eax, eax
cmp eax, 0x800
jae 0x41270c
xor ecx, ecx
mov word [ebp + eax - 0x810], cx
jmp 0x41255f
cmp dword [ebp - 0x840], 3
mov eax, 1
movzx ebx, bl
cmove ebx, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
test bl, bl
je 0x41245a
xor ebx, ebx
jmp 0x4126be
xor eax, eax
mov word [ebp - 0x12], ax
push 0xffffffffffffffff
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x858]
push eax
call dword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const___int_]
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x84c]
push eax
call dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::operator_class_QString__]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x858]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
push 0x10
call fcn.0049909e
mov ebx, eax
add esp, 4
mov dword [ebp - 0x864], ebx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x860]
push 0x4cb7ac
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_char_const__]
mov byte [ebp - 4], 8
lea edx, [ebp - 0x850]
push eax
lea ecx, [ebp - 0x854]
mov dword [ebp - 0x848], 1
call fcn.00403ce0
mov dword [ebp - 4], 9
lea ecx, [ebp - 0x84c]
push ecx
mov edx, eax
mov dword [ebp - 0x848], 3
lea ecx, [ebp - 0x858]
call fcn.00403ce0
add esp, 8
mov edi, eax
mov dword [ebp - 4], 0xa
mov ecx, ebx
push 0
mov dword [ebp - 0x848], 7
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QObject::constructor_class_QObject__]
push 0
lea ecx, [ebx + 8]
call fcn.00477f60
push edi
lea ecx, [ebx + 8]
mov dword [ebx], vtable.QAxObject.0
mov dword [ebx + 8], vtable.QAxObject.1.0
call fcn.00478180
mov dword [ebp - 4], 0xd
mov dword [ebp - 4], 0xc
mov esi, 7
mov dword [ebp - 0x848], esi
lea ecx, [ebp - 0x858]
and esi, 0xfffffffb
mov dword [ebp - 0x848], esi
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov dword [ebp - 4], 0xb
and esi, 0xfffffffd
lea ecx, [ebp - 0x854]
mov dword [ebp - 0x848], esi
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov dword [ebp - 4], 5
and esi, 0xfffffffe
lea ecx, [ebp - 0x860]
mov dword [ebp - 0x848], esi
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
jmp 0x4126af
xor ebx, ebx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x85c]
call fcn.0040eb70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x850]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00498d66
mov esp, ebp
pop ebp
ret
call fcn.004999f8
int3