Function at 0x429350
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov eax, 0x1814
call fcn.004c5440
push ebx
push ebp
push esi
xor ebx, ebx
push edi
lea eax, [esp + 0x14]
mov esi, ecx
push ebx
push eax
push ebx
mov ecx, dword [esi + 0x18]
push ebx
push ebx
push ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x429596
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4295c2
cmp eax, 0x3e8
mov dword [esp + 0x18], ebx
jbe 0x4293a1
mov eax, 0x3e8
mov ecx, dword [esi + 0x18]
lea edx, [esp + 0x18]
push ebx
push edx
push eax
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x429596
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x429596
mov edx, dword [0x4d9540]
mov byte [esp + eax + 0x20], bl
lea eax, [esp + 0x20]
mov dword [esp + 0x10], edx
test eax, eax
je 0x429436
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, ebx
je 0x429436
lea edx, [esi + esi + 0xe]
push edx
call fcn.004c58a5
add esp, 4
cmp eax, ebx
je 0x429436
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], bx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
inc esi
lea ecx, [esp + 0x20]
push esi
push ecx
push eax
mov dword [esp + 0x1c], eax
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call int.00401970
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x820]
push 0x800
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x820]
test eax, eax
mov word [esp + edx*2 + 0x820], bx
jne 0x429471
xor ebp, ebp
jmp 0x429481
lea ecx, [esp + 0x820]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], 1
jg 0x429490
cmp ebp, dword [edi - 4]
jle 0x4294ab
lea ecx, [esp + 0x10]
call fcn.0040e950
push ebp
lea ecx, [esp + 0x14]
call fcn.004012f0
cmp eax, ebx
je 0x4294d5
mov edi, dword [esp + 0x10]
lea eax, [ebp + ebp]
lea esi, [esp + 0x820]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], ebp
mov edx, dword [esp + 0x10]
mov word [eax + edx], bx
mov eax, dword [esp + 0x10]
lea esi, [eax - 0xc]
mov eax, dword [eax - 0xc]
cmp eax, 1
jle 0x42951a
lea ecx, [esp + 0x10]
call fcn.0040e950
mov ecx, dword [esi + 4]
push ecx
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x42951a
mov edx, dword [esi + 4]
mov edi, dword [esp + 0x10]
add esi, 0xc
lea ecx, [edx + edx + 2]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
mov dword [edx - 8], eax
mov ecx, dword [esp + 0x10]
mov word [ecx + eax*2], bx
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esp + 0x10]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x429573
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x429573
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov ecx, dword [esi + 0x18]
lea eax, [esp + 0x14]
push ebx
push eax
push ebx
push ebx
push ebx
push ecx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov esi, dword [esp + 0x1c]
test eax, eax
jne 0x429385
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x4295d2
cmp eax, 0xe8
je 0x4295d2
mov edx, dword [esi]
push str.Stdout_Err_r_n
mov ecx, esi
call dword [edx + 8]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1814
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1814
ret
mov eax, dword [esi]
push str._r_nChild_process_ended_r_n
mov ecx, esi
call dword [eax + 4]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1814
ret