Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool __thiscall sub_1048EBE0(void *this, int a2, signed int Mode)
- {
- void *v3; // esi@1
- bool result; // al@2
- HANDLE v5; // eax@3
- WCHAR NamedPipeName; // [sp+4h] [bp-100h]@1
- char v7; // [sp+6h] [bp-FEh]@1
- v3 = this;
- NamedPipeName = 0;
- memset(&v7, 0, 0xFEu);
- *((_DWORD *)v3 + 2) = a2;
- wsprintfW(&NamedPipeName, L"\\\\.\\pipe\\IGO_pipe_%d", a2);
- if ( WaitNamedPipeW(&NamedPipeName, 0) )
- {
- *((_BYTE *)v3 + 70) = Mode;
- v5 = CreateFileW(&NamedPipeName, 0xC0000000u, 0, 0, 3u, 0x40000000u, 0);
- *((_DWORD *)v3 + 1) = v5;
- if ( v5 != (HANDLE)-1 )
- {
- Mode = 2;
- SetNamedPipeHandleState(v5, (LPDWORD)&Mode, 0, 0);
- if ( *((_BYTE *)v3 + 70) )
- {
- *((_DWORD *)v3 + 33) = 2;
- *((_BYTE *)v3 + 69) = 0;
- sub_1048EB40(v3);
- }
- }
- result = *((_DWORD *)v3 + 1) != -1;
- }
- else
- {
- result = 0;
- }
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement