Function at 0x4063f0
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 0x43288b
mov eax, dword fs:[0]
push eax
mov eax, 0x1c2c
call fcn.0040e9d0
mov eax, dword [0x4430a0]
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 - 0x1c14], 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 0x40686f
push dword [esi + 0xc]
call fcn.004152ad
add esp, 4
cmp eax, 3
je 0x40647b
push dword [esi + 0xc]
call fcn.004152ad
add esp, 4
cmp eax, 0xa
je 0x40647b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MTInitEC
push edi
call esi
push str.TranTextFlowEC
jmp 0x40648e
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 - 0x1c14]
mov dword [ebp - 0x1c10], eax
push dword [esi + 0xc]
call fcn.004152ad
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 - 0x1c28], 0
push 1
lea eax, [ebp - 0x1c38]
mov dword [ebp - 0x1c18], edi
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x1c38], xmm0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x1c38]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push dword [esi + 0x14]
lea eax, [ebp - 0x1c38]
mov dword [ebp - 0x1c24], 0xc
push 0
mov dword [ebp - 0x1c20], eax
lea eax, [ebp - 0x1c24]
push 0
push eax
mov dword [ebp - 0x1c1c], 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 fcn.0040ff90
push 0xbb8
lea eax, [ebp - 0xbc8]
push 0
push eax
call fcn.0040ff90
add esp, 0x18
lea eax, [ebp - 0x1bfc]
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 0x40686f
push dword [esi + 0xc]
call fcn.004152ad
add esp, 4
push eax
push 0xbb8
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp - 0x1bc8]
push eax
call dword [ebp - 0x1c10]
xorps xmm0, xmm0
mov dword [ebp - 0x1bd0], 0
lea ecx, [ebp - 0x1bc8]
mov dword [ebp - 0x1bcc], 0
movups xmmword [ebp - 0x1be0], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4065f0
sub ecx, edx
lea eax, [ebp - 0x1bc8]
push ecx
push eax
lea ecx, [ebp - 0x1be0]
call fcn.004010d0
mov ecx, dword [ebp - 0x1bd0]
xor edx, edx
xor esi, esi
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x1c00], ecx
mov dword [ebp - 0x1c0c], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x1c08], edx
mov dword [ebp - 0x1c04], edx
test eax, eax
je 0x40669c
cmp eax, 0x7fffffff
ja 0x40688c
push eax
lea ecx, [ebp - 0x1c0c]
call fcn.00402ab0
mov ecx, dword [ebp - 0x1c00]
mov esi, eax
mov dword [ebp - 0x1c0c], esi
lea ecx, [ecx*2 + 2]
push ecx
lea edx, [ecx + esi]
push edi
push esi
mov dword [ebp - 0x1c00], edx
mov dword [ebp - 0x1c04], edx
call fcn.0040ff90
mov edx, dword [ebp - 0x1c00]
add esp, 0xc
mov ecx, dword [ebp - 0x1bd0]
mov edi, edx
mov dword [ebp - 0x1c08], edx
sub edx, esi
mov byte [ebp - 4], 1
sar edx, 1
lea eax, [ebp - 0x1be0]
push edx
inc ecx
cmp dword [ebp - 0x1bcc], 0x10
push esi
cmovae eax, dword [ebp - 0x1be0]
push ecx
push eax
push 0
push 0x3a4
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
dec eax
mov dword [ebp - 0x1be8], 0
push eax
push dword [ebp - 0x1c0c]
xorps xmm0, xmm0
mov dword [ebp - 0x1be4], 0
lea ecx, [ebp - 0x1bf8]
movups xmmword [ebp - 0x1bf8], xmm0
call fcn.00401170
mov byte [ebp - 4], 0
test esi, esi
je 0x40674f
sub edi, esi
sar edi, 1
add edi, edi
cmp edi, 0x1000
jb 0x406727
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x406891
mov esi, ecx
push edi
push esi
call fcn.0040e532
add esp, 8
mov dword [ebp - 0x1c0c], 0
mov dword [ebp - 0x1c08], 0
mov dword [ebp - 0x1c04], 0
mov ecx, dword [ebp - 0x1be4]
cmp ecx, 8
jb 0x40678f
mov edx, dword [ebp - 0x1bf8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406785
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406891
push ecx
push edx
call fcn.0040e532
add esp, 8
mov ecx, dword [ebp - 0x1bcc]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x4067d0
mov edx, dword [ebp - 0x1be0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4067c6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406891
push ecx
push edx
call fcn.0040e532
add esp, 8
lea eax, [ebp - 0xbc8]
mov dword [ebp - 0x1bd0], 0
mov dword [ebp - 0x1bcc], 0xf
lea edx, [eax + 1]
mov byte [ebp - 0x1be0], 0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4067f4
mov edi, dword [ebp - 0x1c18]
lea ecx, [ebp - 0x1bfc]
push 0
push ecx
sub eax, edx
push eax
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 fcn.0040ff90
push 0xbb8
lea eax, [ebp - 0xbc8]
push 0
push eax
call fcn.0040ff90
add esp, 0x18
lea eax, [ebp - 0x1bfc]
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 0x40686f
mov esi, dword [ebp - 0x1c14]
jmp 0x4065a4
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.0040e54e
mov esp, ebp
pop ebp
ret
call fcn.004063e0
call fcn.004130cf
int3