Function at 0x41c710
Capabilities:
Connect pipe
Create pipe
Read file on windows
Set current directory
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4314b0
mov eax, dword fs:[0]
push eax
mov eax, 0x1c20
call fcn.004257a0
mov eax, dword [0x43d100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c08], esi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x41cb05
push dword [esi + 0xc]
call sub.msvcrt.dll__wtoi
add esp, 4
cmp eax, 3
je 0x41c79b
push dword [esi + 0xc]
call sub.msvcrt.dll__wtoi
add esp, 4
cmp eax, 0xa
je 0x41c79b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MTInitEC
push edi
call esi
push str.TranTextFlowEC
jmp 0x41c7ae
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MTInitCJ
push edi
call esi
push str.TranTextFlowCJ
push edi
mov dword [ebp - 0x1bfc], eax
call esi
mov esi, dword [ebp - 0x1c08]
mov dword [ebp - 0x1c00], eax
push dword [esi + 0xc]
call sub.msvcrt.dll__wtoi
add esp, 4
push eax
call dword [ebp - 0x1bfc]
push 0
push 0xffffffffffffffff
push 0xffff
push 0xffff
push 0xff
push 6
push 3
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edi, eax
mov dword [ebp - 0x1c1c], 0
push 1
lea eax, [ebp - 0x1c2c]
mov dword [ebp - 0x1c0c], edi
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x1c2c], xmm0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x1c2c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push dword [esi + 0x14]
lea eax, [ebp - 0x1c2c]
mov dword [ebp - 0x1c18], 0xc
push 0
mov dword [ebp - 0x1c14], eax
lea eax, [ebp - 0x1c18]
push 0
push eax
mov dword [ebp - 0x1c10], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push 0x1000
lea eax, [ebp - 0x1bc8]
push 0
push eax
call sub.msvcrt.dll_memset
push 0xbb8
lea eax, [ebp - 0xbc8]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x1c04]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1bc8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cb05
push dword [esi + 0xc]
call sub.msvcrt.dll__wtoi
add esp, 4
push eax
push 0xbb8
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp - 0x1bc8]
push eax
call dword [ebp - 0x1c00]
xorps xmm0, xmm0
mov dword [ebp - 0x1bd0], 0
lea esi, [ebp - 0x1bc8]
mov dword [ebp - 0x1bcc], 0
movups xmmword [ebp - 0x1be0], xmm0
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x41c910
sub esi, ecx
cmp esi, 0x7fffffff
ja 0x41cb27
mov dword [ebp - 0x1bcc], 0xf
cmp esi, 0xf
ja 0x41c95b
push esi
lea eax, [ebp - 0x1bc8]
mov dword [ebp - 0x1bd0], esi
push eax
lea eax, [ebp - 0x1be0]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [ebp + esi - 0x1be0], 0
jmp 0x41c9c7
mov eax, esi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x41c96e
mov eax, 0x7fffffff
jmp 0x41c979
cmp eax, 0x16
mov ecx, 0x16
cmovb eax, ecx
mov dword [ebp - 0x1bfc], eax
lea eax, [ebp - 0x1bfc]
push eax
lea eax, [ebp - 0x1be0]
push eax
call fcn.00401250
mov ecx, dword [ebp - 0x1bfc]
mov edi, eax
push esi
lea eax, [ebp - 0x1bc8]
mov dword [ebp - 0x1be0], edi
push eax
push edi
mov dword [ebp - 0x1bd0], esi
mov dword [ebp - 0x1bcc], ecx
call sub.msvcrt.dll_memcpy
mov byte [edi + esi], 0
add esp, 0x14
mov edi, dword [ebp - 0x1c0c]
push 0x3a4
lea eax, [ebp - 0x1be0]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1bf8]
push eax
call fcn.00412e00
mov ecx, dword [ebp - 0x1be4]
add esp, 0xc
cmp ecx, 7
jbe 0x41ca29
mov edx, dword [ebp - 0x1bf8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41ca1f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cb22
push ecx
push edx
call fcn.00425074
add esp, 8
mov ecx, dword [ebp - 0x1bcc]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0xf
jbe 0x41ca6a
mov edx, dword [ebp - 0x1be0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41ca60
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cb22
push ecx
push edx
call fcn.00425074
add esp, 8
lea ecx, [ebp - 0xbc8]
mov dword [ebp - 0x1bd0], 0
mov dword [ebp - 0x1bcc], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x1be0], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41ca90
push 0
lea eax, [ebp - 0x1c04]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0xbc8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x1000
lea eax, [ebp - 0x1bc8]
push 0
push eax
call sub.msvcrt.dll_memset
push 0xbb8
lea eax, [ebp - 0xbc8]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x1c04]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1bc8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cb05
mov esi, dword [ebp - 0x1c08]
jmp 0x41c8c4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425031
mov esp, ebp
pop ebp
ret
call fcn.004260b0
call fcn.00402d50
int3