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

Disassembly:
push 0xffffffffffffffff
push 0x454a6b
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x46f7c0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46f7c0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xa0]
mov edi, dword [esp + 0xa4]
xor ebx, ebx
push 1
mov dword [esp + 0x2c], ebx
call fcn.00417630
mov ecx, eax
call fcn.00417640
test al, al
je 0x41d9f5
call fcn.00417630
push 0x11
push str.Reading_from_pipe
lea ecx, [esp + 0x40]
mov esi, eax
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00405990
lea eax, [esp + 0x38]
push eax
push 0x45eb80
push 0xf3
push 0x45ebb0
push 1
mov ecx, esi
mov dword [esp + 0xac], ebx
call fcn.00419b70
cmp dword [esp + 0x4c], 0x10
mov dword [esp + 0x98], 0xffffffff
jb 0x41d9f5
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0043a71e
add esp, 4
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.0040f2e0
mov dword [esp + 0x98], 1
cmp edi, ebx
je 0x41dc4f
push ebx
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push ebx
push edi
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov eax, dword [esp + 0x24]
cmp eax, ebx
jbe 0x41dbdd
lea ecx, [esp + 0x14]
cmp eax, 0xfa000
jae 0x41da4d
inc eax
push eax
jmp 0x41da52
push 0xfa000
call fcn.0040f2e0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x2c]
push ecx
sub eax, esi
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41da80
mov edx, dword [esp + 0x28]
mov byte [esi + edx], bl
jmp 0x41dc53
push 3
call fcn.00417630
mov ecx, eax
call fcn.00417640
test al, al
je 0x41db97
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0041a1c0
add esp, 0xc
mov esi, eax
push 0x15
mov ebp, 0xf
push str.readFromPipe:ReadFile
lea ecx, [esp + 0x40]
mov byte [esp + 0xa0], 2
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00405990
mov edi, 0x10
mov byte [esp + 0x98], 3
cmp dword [esi + 0x14], edi
jb 0x41daea
mov esi, dword [esi]
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], edi
jae 0x41daf8
lea eax, [esp + 0x38]
push esi
push eax
lea ecx, [esp + 0x5c]
push 0x45eb9c
push ecx
call fcn.0041bcf0
add esp, 0x10
mov byte [esp + 0x98], 4
cmp dword [eax + 0x14], edi
jb 0x41db1b
mov eax, dword [eax]
push eax
push 0x45ec2c
push 0x103
push 0x45ec48
push 3
call fcn.00417630
mov ecx, eax
call fcn.00406b70
cmp dword [esp + 0x68], edi
jb 0x41db4c
mov edx, dword [esp + 0x54]
push edx
call fcn.0043a71e
add esp, 4
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
cmp dword [esp + 0x4c], edi
jb 0x41db6b
mov eax, dword [esp + 0x38]
push eax
call fcn.0043a71e
add esp, 4
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x98], 1
cmp dword [esp + 0x84], edi
jb 0x41db9c
mov ecx, dword [esp + 0x70]
push ecx
call fcn.0043a71e
add esp, 4
jmp 0x41db9c
mov ebp, 0xf
push 0x1c
push str.readFromPipe:ReadFile_failed
lea ecx, [esp + 0x5c]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.00405990
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x9c], 5
call fcn.0041c8b0
push 0x469eb4
lea eax, [esp + 0x30]
push eax
call fcn.0043be1d
push 1
call fcn.00417630
mov ecx, eax
call fcn.00417640
test al, al
je 0x41dc4f
call fcn.00417630
push 0xe
push str.Pipe_is_empty.
lea ecx, [esp + 0x40]
mov esi, eax
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00405990
lea ecx, [esp + 0x38]
push ecx
push str.Executor::readBytesFromPipe
push 0x107
push 0x45ecf8
push 1
mov ecx, esi
mov byte [esp + 0xac], 6
call fcn.00419b70
cmp dword [esp + 0x4c], 0x10
jb 0x41dc4f
mov edx, dword [esp + 0x38]
push edx
call fcn.0043a71e
add esp, 4
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x14]
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
cmp ebp, eax
je 0x41dc77
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ebp], esi
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
jmp 0x41dc84
cmp esi, ebx
je 0x41dc84
push esi
call fcn.0043a71e
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0043b8c7
add esp, 0x88
ret 8