Function at 0x6dd56230
Capabilities:
Read file on windows
Read pipe
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6de3b6bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
mov eax, dword [0x6de41080]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], eax
mov al, byte [esi + 0x38]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp al, bl
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xbc], esi
je 0x6dd5649b
mov eax, dword [esi]
push 1
call dword [eax + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 4]
push ebx
lea ecx, [ebp - 0xb8]
push ecx
push edx
push edi
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xb8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x6dd562d4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x6dd562b1
call esi
jmp 0x6dd562bd
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0xb4], eax
push 0x6de3cc7c
lea eax, [ebp - 0xb4]
push eax
call sub.msvcrt.dll__CxxThrowException
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ebx, [ebx]
cmp byte [esi + 0x39], bl
je 0x6dd5649b
lea ecx, [ebp - 0x94]
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], 8
mov eax, dword [esi + 4]
push ebx
lea edx, [ebp - 0xa0]
push edx
push 8
push ecx
push eax
mov byte [ebp - 4], 1
call edi
cmp eax, ebx
jne 0x6dd5641d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x6dd563f8
mov eax, dword [esi + 4]
lea edx, [ebp - 0xa4]
push edx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x6dd56385
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x6dd56362
call esi
jmp 0x6dd5636e
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0xb0], eax
push 0x6de3cc7c
lea eax, [ebp - 0xb0]
push eax
call sub.msvcrt.dll__CxxThrowException
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0x98]
add edx, ecx
push edx
lea ecx, [ebp - 0x9c]
call fcn.6dd54880
mov ecx, dword [esi + 4]
push ebx
lea edx, [ebp - 0xa0]
push edx
mov edx, dword [ebp - 0xa4]
push edx
mov edx, dword [ebp - 0xa0]
add eax, edx
push eax
push ecx
call edi
test eax, eax
jne 0x6dd56446
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x6dd563d5
call esi
jmp 0x6dd563e1
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0xa8], eax
push 0x6de3cc7c
lea eax, [ebp - 0xa8]
push eax
call sub.msvcrt.dll__CxxThrowException
cmp eax, ebx
jle 0x6dd56406
and eax, 0xffff
or eax, 0x80070000
push 0x6de3cc7c
lea ecx, [ebp - 0xac]
push ecx
mov dword [ebp - 0xac], eax
call sub.msvcrt.dll__CxxThrowException
mov edx, dword [ebp - 0xa0]
cmp edx, dword [ebp - 0x98]
jae 0x6dd56446
push 0x6de3cc7c
lea eax, [ebp - 0xc0]
push eax
mov dword [ebp - 0xc0], 0x80004005
call sub.msvcrt.dll__CxxThrowException
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x9c]
mov edx, dword [esi]
push eax
push ecx
mov ecx, esi
call dword [edx]
mov eax, dword [ebp - 0x9c]
lea edx, [ebp - 0x94]
cmp eax, edx
mov byte [ebp - 4], bl
je 0x6dd562e0
push eax
call fcn.6dd45c40
add esp, 4
jmp 0x6dd562e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.6dd58dd9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8