Function at 0x4065b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4f2646
mov eax, dword fs:[0]
push eax
mov eax, 0x4004c
call fcn.004bbbb0
mov eax, dword [0x53de10]
xor eax, esp
mov dword [esp + 0x40048], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53de10]
xor eax, esp
push eax
lea eax, [esp + 0x40060]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40074]
xor ebp, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebp
mov byte [esp + 0x44], 0
push 0xf
push str..pipeezPDF_
lea eax, [esp + 0x48]
mov dword [esp + 0x40070], ebp
call fcn.0040b690
mov ecx, dword [esp + 0x40070]
push ecx
lea ecx, [esp + 0x28]
call fcn.004171f0
add esp, 4
push ebp
push eax
or eax, 0xffffffff
lea esi, [esp + 0x48]
mov byte [esp + 0x40070], 1
call fcn.0040b5a0
mov esi, 0x10
cmp dword [esp + 0x3c], esi
jb 0x406666
mov edx, dword [esp + 0x28]
push edx
call fcn.004b8c4b
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ebx, ebx
mov edi, edi
cmp dword [esp + 0x58], esi
mov eax, dword [esp + 0x44]
jae 0x40667e
lea eax, [esp + 0x44]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
cmp eax, 1
jne 0x4066b6
cmp dword [esp + 0x58], esi
mov eax, dword [esp + 0x44]
jae 0x40669a
lea eax, [esp + 0x44]
push ebp
push ebp
push 3
push ebp
push ebp
push 0xc0000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x4066cf
mov esi, 0x10
jmp 0x406670
cmp ebx, 1
jg 0x4067f7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 1
jmp 0x406670
push ebp
lea eax, [esp + 0x1c]
push eax
push 8
push str.callback
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4067bd
cmp dword [esp + 0x18], ebp
je 0x4067bd
push 0x3ffff
lea ecx, [esp + 0x61]
push ebp
push ecx
mov byte [esp + 0x68], 0
call fcn.004bbbe0
add esp, 0xc
push ebp
lea edx, [esp + 0x24]
push edx
push 0x40000
lea eax, [esp + 0x68]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406769
push 0x200
push ebp
push 0x54b218
call fcn.004bbbe0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR__process_callback_PIPE_ReadFile____code__d_n
push 0x54b218
call fcn.004b913a
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x40]
call fcn.00401830
jmp 0x406848
lea eax, [esp + 0x5c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406770
sub eax, edx
mov ebp, eax
lea ebx, [ebp + 1]
push ebx
call fcn.004b96a9
add esp, 4
push ebx
mov edi, eax
push 0
push edi
call fcn.004bbbe0
add esp, 0xc
push ebp
lea ecx, [esp + 0x60]
push ecx
push edi
call fcn.004bbfd0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x40]
call fcn.00401830
mov eax, edi
jmp 0x40684a
push 0x200
push ebp
push 0x54b218
call fcn.004bbbe0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR__process_callback_PIPE_WriteFile____code__d_n
push 0x54b218
call fcn.004b913a
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x58], 0x10
jmp 0x406839
push 0x200
push ebp
push 0x54b218
call fcn.004bbbe0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x40074]
push eax
push str.ERROR__process_callback_PIPE_Create____pid__d__code__d_n
push 0x54b218
call fcn.004b913a
mov ecx, dword [esp + 0x2c]
add esp, 0x10
cmp dword [esp + 0x58], esi
mov dword [ecx], 1
jb 0x406848
mov edx, dword [esp + 0x44]
push edx
call fcn.004b8c4b
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x40060]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40048]
xor ecx, esp
call fcn.004b883d
add esp, 0x40058
ret