Function at 0x41eb60
Capabilities:
Resolve function by parsing pe exports
Write file on windows

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 + 0x28]
mov dword [esp + 0x30], eax
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], 0
cmp edi, 0xffffffff
jne 0x41ebf3
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_WriteFile]
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 0x41ecf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41ed25
mov eax, dword [esi + 0x28]
test eax, eax
je 0x41ec4e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
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
mov eax, dword [esp + 0x10]
jne 0x41ecdb
test eax, eax
je 0x41ecdb
lea ecx, [esp + 0x34]
call fcn.00404990
lea eax, [esp + 0x34]
push eax
push str.The_Pipes_write_function_failed_after_GetOverlappedResult_calling
mov byte [esp + 0x88], 2
call fcn.0041af50
add esp, 8
lea esi, [esp + 0x34]
call fcn.00404b20
push eax
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 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 0x41ed9b
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_write_function_failed_after_WriteFile_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 0x41ed5c
call fcn.00480e22
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x41ed97
call fcn.00480e22
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x41ed75
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 0x41ed6b
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8