Function at 0x41edb0
Capabilities:
Access peb ldr_data
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c10f0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x20]
xor ebx, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0xc], ebx
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov dword [esp + 0x10], vtable.AutoLock.0
mov dword [esp + 0x14], esi
call eax
mov dword [esp + 0x80], ebx
cmp edi, 0xffffffff
jne 0x41ee45
push str.Invalid_pipe_handle
lea ecx, [esp + 0x38]
push ecx
call fcn.004048f0
push 0x56e7fc
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3c], vtable.IOException.0
call fcn.004841dc
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x80], 0xffffffff
mov edx, dword [esi]
test eax, eax
mov eax, dword [edx + 8]
mov ecx, esi
setne bl
call eax
test bl, bl
jne 0x41eeff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41efa4
mov eax, dword [esi + 0x20]
test eax, eax
je 0x41eea0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x10], 0
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
mov dword [esp + 0x18], vtable.AutoLock.0
mov dword [esp + 0x1c], esi
call eax
push 0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
push edi
mov dword [esp + 0x90], 1
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x41ef31
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41ef31
mov dword [esp + 0x80], 0xffffffff
mov dword [esp + 0xc], eax
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x41f01a
push str.Unknown_pipe_error
lea eax, [esp + 0x58]
push eax
call fcn.004048f0
push 0x56e7fc
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x5c], vtable.IOException.0
call fcn.004841dc
lea ecx, [esp + 0x34]
call fcn.00404990
lea eax, [esp + 0x34]
push eax
push str.The_Pipes_read_function_failed_after_GetOverlappedResult_calling
mov byte [esp + 0x88], 2
call fcn.0041af50
mov eax, dword [esp + 0x4c]
add esp, 8
mov esi, eax
cmp eax, dword [esp + 0x48]
jbe 0x41ef65
call fcn.00480e22
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x41efa0
call fcn.00480e22
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x41ef7e
call fcn.00480e22
push esi
lea ecx, [esp + 0x58]
push ecx
call fcn.004048f0
push 0x56e7fc
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x5c], vtable.IOException.0
call fcn.004841dc
mov eax, dword [eax]
jmp 0x41ef74
lea ecx, [esp + 0x34]
call fcn.00404990
lea eax, [esp + 0x34]
push eax
push str.The_Pipes_read_function_failed_after_ReadFile_calling
mov dword [esp + 0x88], 3
call fcn.0041af50
mov eax, dword [esp + 0x4c]
add esp, 8
mov esi, eax
cmp eax, dword [esp + 0x48]
jbe 0x41efdb
call fcn.00480e22
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x41f016
call fcn.00480e22
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x41eff4
call fcn.00480e22
push esi
lea ecx, [esp + 0x58]
push ecx
call fcn.004048f0
push 0x56e7fc
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x5c], vtable.IOException.0
call fcn.004841dc
mov eax, dword [eax]
jmp 0x41efea
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8