Function at 0x4a56d0
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8c70
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x529748]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x3c], edi
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 1
or esi, 0xffffffff
cmp byte [edi + 0x24], 0
je 0x4a571e
mov byte [ebp - 0x29], 0
jmp 0x4a5bb2
cmp byte [edi + 0x25], 0
jne 0x4a5742
push dword [edi + 0x28]
mov byte [edi + 0x24], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [edi + 4], 0
je 0x4a573e
mov ecx, edi
call fcn.004bb9d0
mov byte [edi + 0x25], 1
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xorps xmm0, xmm0
push 0
push 1
movdqu xmmword [edi + 0x34], xmm0
mov dword [edi + 0x44], 0
push 1
movdqu xmmword [edi + 0x48], xmm0
push 0
mov dword [edi + 0x58], 0
call esi
push 0
push 0
push 0
push 0
mov dword [ebp - 0x40], eax
mov dword [edi + 0x44], eax
mov dword [edi + 0x58], 0
call esi
mov edx, str.Gx1hHjY_JTEGOA
mov dword [edi + 0x28], eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x18], 0
call fcn.004bba60
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 1
jne 0x4a57b4
push str.invalid_vector_T__subscript
call fcn.004bc548
push ecx
lea ecx, [ebp - 0x18]
call fcn.0048e020
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4a57e6
push eax
call fcn.004191e0
add esp, 4
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4a57f1
xor edx, edx
jmp 0x4a5805
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4a57f6
sub edx, esi
sar edx, 1
push edx
push eax
lea ecx, [ebp - 0x18]
call fcn.0049c940
mov edx, str.Gx1hHjY_JTEGPg
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x60]
call fcn.004bba60
mov byte [ebp - 4], 5
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 1
jne 0x4a583c
push str.invalid_vector_T__subscript
call fcn.004bc548
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0048e020
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x4a586e
push eax
call fcn.004191e0
add esp, 4
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4a5879
xor edx, edx
jmp 0x4a588f
mov edx, eax
lea esi, [edx + 2]
mov edi, edi
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4a5880
sub edx, esi
sar edx, 1
push edx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0049c940
cmp dword [ebp + 0xc], 0
je 0x4a59c3
push 0x14
call fcn.004be871
add esp, 4
mov dword [ebp - 0x24], eax
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov esi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea eax, [ebp - 0x28]
push eax
push 0xffffffffffffffff
push 0x2000
push 0x2000
push 0xff
push 6
push 0x40000001
push dword [ebp - 0x18]
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x20], 1
call esi
mov dword [edi + 0x2c], eax
lea eax, [ebp - 0x28]
push eax
push 0xffffffffffffffff
push 0x2000
push 0x2000
push 0xff
push 6
push 0x40000002
push dword [ebp - 0x1c]
call esi
mov dword [edi + 0x30], eax
lea eax, [edi + 0x34]
push eax
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x4a5afc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x217
je 0x4a596c
cmp esi, 0x3e5
jne 0x4a5b04
push dword [ebp + 0x10]
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4a5b04
lea eax, [edi + 0x48]
push eax
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x4a5989
call eax
jmp 0x4a5b02
call eax
mov esi, eax
cmp esi, 0x217
je 0x4a5ab1
cmp esi, 0x3e5
jne 0x4a5b04
push dword [ebp + 0x10]
push dword [edi + 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4a5ab1
mov esi, eax
jmp 0x4a5b04
mov eax, 0x10624dd3
xor esi, esi
imul dword [ebp + 0x10]
mov cl, 0
sar edx, 5
mov eax, edx
mov dword [ebp - 0x38], ecx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x34], eax
mov al, cl
mov dword [ebp - 0x30], eax
je 0x4a5afc
mov edx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
mov edi, dword [ebp - 0x34]
test cl, cl
je 0x4a59fd
test al, al
jne 0x4a5a5f
jmp 0x4a5a26
push 0x3e8
push dword [ebp - 0x18]
call edx
mov ecx, dword [ebp - 0x38]
test eax, eax
movzx ecx, cl
mov eax, 1
cmovne ecx, eax
cmp byte [ebp - 0x30], 0
mov dword [ebp - 0x38], ecx
jne 0x4a5a43
mov edx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
push 0x3e8
push dword [ebp - 0x1c]
call edx
mov ecx, dword [ebp - 0x30]
test eax, eax
movzx ecx, cl
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 0x30], ecx
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x30]
inc esi
mov ecx, dword [ebp - 0x38]
mov edx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
cmp esi, edi
jb 0x4a59f3
mov edi, dword [ebp - 0x3c]
test cl, cl
je 0x4a5afc
test al, al
je 0x4a5afc
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x60000000
push 3
push 0
push 0
push 0x40000000
push dword [ebp - 0x18]
call esi
push 0
push 0x60000000
push 3
push 0
push 0
push SysReAllocString
push dword [ebp - 0x1c]
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x2c], eax
cmp eax, 0xffffffff
je 0x4a5afc
lea eax, [ebp + 0x1c]
mov word [edi + 0x24], 1
push eax
lea ecx, [edi + 8]
call fcn.004b88d0
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x44]
mov dword [edi + 0x20], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x3c], edi
push eax
mov dword [ebp - 0x34], 0x4a5c10
call fcn.004b9420
push eax
mov ecx, edi
call fcn.004bb9a0
cmp dword [ebp - 0x40], 0
je 0x4a5af6
call fcn.004c0d3c
mov byte [ebp - 0x29], 1
jmp 0x4a5b6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4a5b0d
mov dword [eax], esi
mov eax, dword [edi + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4a5b24
push eax
call esi
mov dword [edi + 0x28], 0
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x4a5b35
push eax
call esi
mov dword [edi + 0x2c], 0
mov eax, dword [edi + 0x30]
test eax, eax
je 0x4a5b46
push eax
call esi
mov dword [edi + 0x30], 0
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4a5b50
push eax
call esi
xorps xmm0, xmm0
mov byte [ebp - 0x29], 0
movdqu xmmword [edi + 0x34], xmm0
mov dword [edi + 0x44], 0
movdqu xmmword [edi + 0x48], xmm0
mov dword [edi + 0x58], 0
mov byte [ebp - 4], 4
or esi, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov ecx, esi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a5b92
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a5bb2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4a5bd0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x4a5bef
mov esi, dword [ecx]
lea eax, [ebp + 0x1c]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, byte [ebp - 0x29]
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.004bd963
mov esp, ebp
pop ebp
ret 0x2c