Function at 0x100024bf
Capabilities:
Connect pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
push 0x848
mov eax, 0x1000c750
call fcn.1000b9cb
mov esi, dword [ebp + 8]
test esi, esi
jne 0x100024dd
push 8
pop eax
jmp 0x1000278a
and dword [ebp - 0x840], 0
mov dword [ebp - 0x838], esi
call fcn.1000a248
test al, al
je 0x10002514
push 0x1000f53c
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x10002514
push str.GetNamedPipeClientProcessId
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x840], eax
mov ecx, esi
call fcn.10001093
mov edi, dword [sym.imp.kernel32.dll_WriteFile]
mov ebx, eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x854], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x850], ebx
mov dword [ebp - 0x848], eax
mov esi, 0x40c
push 0
push dword [ebp - 0x854]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10002788
and dword [ebp - 0x844], 0
and dword [ebp - 0x83c], 0
lea ecx, [ebp - 0x830]
call fcn.10001032
lea ecx, [ebp - 0x420]
call fcn.10001052
push 0
push ebx
call dword [sym.imp.kernel32.dll_ConnectNamedPipe]
test eax, eax
jne 0x10002590
call dword [sym.imp.kernel32.dll_GetLastError]
xor eax, eax
cmp dword [ebp - 0x848], eax
je 0x1000261e
cmp dword [ebp - 0x840], eax
je 0x1000261e
mov dword [ebp - 0x84c], eax
lea eax, [ebp - 0x84c]
push eax
push ebx
call dword [ebp - 0x840]
test eax, eax
je 0x1000261e
mov eax, dword [ebp - 0x848]
cmp eax, dword [ebp - 0x84c]
je 0x1000261e
mov eax, dword [ebp - 0x830]
push 0
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x844]
push eax
push 0x410
lea eax, [ebp - 0x830]
push eax
push ebx
mov dword [ebp - 0x41c], 0xfffffffa
call dword [sym.imp.kernel32.dll_ReadFile]
push 0
lea eax, [ebp - 0x83c]
push eax
push esi
lea eax, [ebp - 0x420]
push eax
push ebx
call edi
push ebx
call dword [sym.imp.kernel32.dll_DisconnectNamedPipe]
jmp 0x10002540
push 0
lea eax, [ebp - 0x844]
push eax
push 0x410
lea eax, [ebp - 0x830]
push eax
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x10002612
cmp dword [ebp - 0x844], 0x410
mov eax, dword [ebp - 0x830]
jne 0x10002792
test eax, eax
je 0x1000272b
cmp eax, 3
je 0x1000272e
cmp dword [ebp - 0x824], 0x400
ja 0x1000272b
mov ecx, dword [ebp - 0x838]
push eax
call fcn.1000a248
test eax, eax
jne 0x1000269a
mov eax, dword [ebp - 0x830]
or dword [ebp - 0x41c], 0xffffffff
mov dword [ebp - 0x420], eax
jmp 0x10002707
push dword [ebp - 0x838]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x830]
push ecx
call eax
add esp, 0xc
or dword [ebp - 4], 0xffffffff
jmp 0x10002707
push 0
lea eax, [ebp - 0x83c]
push eax
push esi
lea eax, [ebp - 0x420]
push eax
push ebx
call edi
mov ecx, dword [ebp - 0x838]
call fcn.100010af
jmp 0x10002612
cmp eax, 3
mov dword [ebp - 0x420], eax
sete byte [ebp - 0x831]
xor eax, eax
cmp byte [ebp - 0x831], al
push 0
setne al
dec eax
and eax, 0xfffffffb
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x83c]
push eax
push esi
lea eax, [ebp - 0x420]
push eax
push ebx
call edi
push ebx
call dword [sym.imp.kernel32.dll_DisconnectNamedPipe]
cmp byte [ebp - 0x831], 0
je 0x10002540
mov eax, dword [ebp - 0x838]
cmp byte [eax + 0x11], 0
jne 0x10002540
xor eax, eax
call fcn.1000ba27
ret 4
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], 0xfffffffe
jmp 0x100025fe