Function at 0x10002400
Capabilities:
Create pipe

Disassembly:
push ebp
sub esp, 0x200
lea ebp, [esp - 4]
mov eax, dword [0x1000e0cc]
xor eax, ebp
mov dword [ebp + 0x200], eax
push 0x24
mov eax, 0x1000a0d9
call fcn.10002c4a
mov eax, dword [ebp + 0x20c]
mov dword [ebp - 0x18], eax
xor eax, eax
mov word [ebp], ax
push 0x1fe
xor ebx, ebx
push ebx
lea eax, [ebp + 2]
push eax
call fcn.10003090
add esp, 0xc
mov eax, dword [str..pipedatastate_]
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10002351
sub eax, edx
lea edi, [ebp]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
cmp cx, bx
jne 0x10002362
mov ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x18]
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10002382
sub eax, edx
lea edi, [ebp]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
cmp cx, bx
jne 0x10002393
mov ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x100023d6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x10002501
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
ja 0x100023f8
mov dword [ebp - 0x20], ebx
jmp 0x1000243b
mov dword [ebp - 4], ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push 1
push str.S:_ML__NW___LW_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA
test eax, eax
je 0x100023cf
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
test eax, eax
je 0x100023cf
or dword [ebp - 4], 0xffffffff
jmp 0x1000243b
push 0x20c
call fcn.10003292
pop ecx
mov esi, eax
mov dword [ebp - 0x30], esi
mov eax, dword [ebp - 0x18]
mov edx, esi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, bx
jne 0x10002452
mov eax, dword [ebp + 0x210]
mov dword [esi + 0x204], eax
mov byte [esi + 0x208], bl
lea eax, [ebp - 0x24]
push eax
push ebx
mov eax, 0x1000
push eax
push eax
push 1
push 6
push 0x40003
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea ecx, [esi + 0x200]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x100024ac
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100023cf
push dword [ebp - 0x14]
push ebx
push ebx
push ebx
push 4
push 6
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push ebx
push esi
push 0x100010aa
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x1000ed64
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [0x1000ed60]
call fcn.100022b0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.10002c08
add ebp, 0x204
leave
ret 8