Function at 0x14026abbf
Capabilities:
Initialize winsock library
Read file on windows
Read pipe

Disassembly:
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14004389d
mov r8d, eax
lea rdx, str.WSAStartup_failed___d_
mov rcx, rbp
call fcn.14002a0a0
lea eax, [rbx + 2]
jmp 0x140043a1f
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx eax, word [rsp + 0x100]
cmp al, 2
jne 0x140043f0f
shr ax, 8
test al, al
jne 0x140043f0f
mov qword [rsp + 0x2c0], rsi
lea rcx, str.WS2_32.DLL
mov qword [rsp + 0x2b0], r14
mov r14d, ebx
call fcn.14002cbb0
mov qword [rsp + 0x80], rax
mov rsi, rax
test rax, rax
jne 0x14004390e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.failed_to_load_WS2_32.DLL___u_
mov rcx, rbp
mov r8d, eax
call fcn.14002a0a0
lea eax, [rsi + 2]
jmp 0x140043a0f
lea rdx, str.WSACreateEvent
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x140043935
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.failed_to_find_WSACreateEvent_function___u_
jmp 0x14004395c
lea rdx, str.WSACloseEvent
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x14004397a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.failed_to_find_WSACloseEvent_function___u_
mov r8d, eax
mov rcx, rbp
call fcn.14002a0a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 2
jmp 0x140043a0f
lea rdx, str.WSAEventSelect
mov qword [rsp + 0x2b8], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x1400439a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.failed_to_find_WSAEventSelect_function___u_
jmp 0x1400439ee
lea rdx, str.WSAEnumNetworkEvents
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x1400439d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.failed_to_find_WSAEnumNetworkEvents_function___u_
jmp 0x1400439ee
call rbx
mov qword [rsp + 0x50], rax
mov rbx, rax
test rax, rax
jne 0x140043a46
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.WSACreateEvent_failed___d_
mov r8d, eax
mov rcx, rbp
call fcn.14002a0a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 2
mov rdi, qword [rsp + 0x2b8]
mov rsi, qword [rsp + 0x2c0]
mov r14, qword [rsp + 0x2b0]
mov rbx, qword [rsp + 0x300]
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140015810
add rsp, 0x2c8
pop r15
pop r13
pop r12
pop rbp
ret
mov rcx, qword [rsp + 0x40]
mov r8d, reloc.WLDAP32.dll_Ordinal_33
mov rdx, rbx
call rdi
cmp rax, 0xffffffffffffffff
jne 0x140043a70
mov rcx, rbx
call qword [rsp + 0x58]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x140043a07
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov qword [rsp + 0x78], rax
mov rdi, rax
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
je 0x140043ab6
test byte [rbp + 0xe70], 1
jne 0x140043ab6
mov eax, 2
mov ecx, 0x3e8
jmp 0x140043ac0
mov eax, 1
mov ecx, 0x64
mov dword [rsp + 0x38], ecx
xor esi, esi
mov dword [rsp + 0x34], eax
nop word [rax + rax]
mov ebx, dword [rbp + 0xb60]
lea rdx, [rsp + 0x88]
mov r9d, ecx
xor r8d, r8d
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x140043c88
sub eax, 1
je 0x140043c3a
cmp eax, 0x101
jne 0x140043bc3
nop dword [rax + rax]
test byte [rbp + 0xe70], 1
je 0x140043b50
mov r9, qword [rbp + 0x1428]
mov r8, rbx
mov edx, 1
mov rcx, r13
call qword [rbp + 0x1420]
cmp rax, 0x10000000
je 0x140043c2f
cmp rax, 0x10000001
je 0x140043bc1
test rax, rax
je 0x140043bc1
mov dword [rsp + 0x30], eax
jmp 0x140043ba5
lea rax, [rsp + 0x30]
xor esi, esi
mov qword [rsp + 0x28], rsi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x140043c57
cmp dword [rsp + 0x30], esi
je 0x140043bc3
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov r8d, ebx
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140043c57
mov eax, dword [rsp + 0x30]
mov r8d, eax
mov rdx, r13
mov rcx, r15
call fcn.140044790
mov r14d, eax
test eax, eax
je 0x140043b10
xor r12b, r12b
xor esi, esi
cmp dword [rbp + 0x798], 0
je 0x140043c19
lea rcx, [rsp + 0xc0]
call fcn.140030700
movups xmm0, xmmword [r15 + 0x230]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xb0]
movups xmm1, xmmword [rax]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0xb0], xmm1
call fcn.140030790
movsxd rcx, dword [rbp + 0x798]
cmp rax, rcx
jge 0x140043e87
test r12b, r12b
je 0x140043e9c
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x38]
jmp 0x140043ad0
xor r12b, r12b
mov r14d, reloc.WLDAP32.dll_Ordinal_26
jmp 0x140043bc1
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov r8d, ebx
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140043c65
xor r12b, r12b
mov r14d, reloc.WLDAP32.dll_Ordinal_26
jmp 0x140043bc3
mov r8d, dword [rsp + 0x30]
mov rdx, r13
mov rcx, r15
call fcn.140044790
mov r14d, eax
test eax, eax
je 0x140043bc3
xor r12b, r12b
jmp 0x140043bc3
mov rbx, qword [rsp + 0x40]
lea r8, [rsp + 0xd0]
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
mov dword [rsp + 0xd0], esi
call qword [rsp + 0x60]
cmp rax, 0xffffffffffffffff
jne 0x140043cdf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2734
je 0x140043bc3
mov r8d, eax
lea rdx, str.WSAEnumNetworkEvents_failed___d_
mov rcx, rbp
call fcn.14002a220
xor r12b, r12b
mov r14d, reloc.WLDAP32.dll_Ordinal_26
jmp 0x140043bc3
test byte [rsp + 0xd0], 1
je 0x140043e72
movsxd r9, dword [rbp + 0xb60]
lea rax, [rsp + 0x68]
mov r8, r13
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r15
call fcn.14002a390
mov r14d, eax
cmp eax, 0x51
je 0x140043bc3
test eax, eax
je 0x140043d24
xor r12b, r12b
jmp 0x140043bc3
mov r8, qword [rsp + 0x68]
test r8, r8
jg 0x140043d36
xor r12b, r12b
jmp 0x140043bc3
mov rdx, r13
mov rcx, r15
call fcn.140044e20
mov r14d, eax
test eax, eax
je 0x140043d50
xor r12b, r12b
jmp 0x140043bc3
mov rax, qword [rsp + 0x48]
cmp dword [rax], 0
je 0x140043e72
cmp dword [rax + 4], 0
jne 0x140043e72
mov rax, qword [r15]
xor ebp, ebp
mov edi, ebp
mov ebx, 0x408
mov rsi, qword [rax + 0x1f8]
nop dword [rax + rax]
cmp edi, 1
je 0x140043e4b
cmp dword [rsi + rbx + 0x400], 1
jne 0x140043de2
mov rax, qword [r15]
mov rdx, qword [rax + 0x1f8]
mov ecx, dword [rdx + rbx - 0x400]
test ecx, ecx
je 0x140043dc7
sub ecx, 2
je 0x140043dbc
cmp ecx, 1
jne 0x140043de2
cmp dword [rbx + rdx], ebp
jne 0x140043de2
mov dword [rbx + rdx], ecx
jmp 0x140043de2
cmp dword [rbx + rdx], 1
jne 0x140043de2
mov dword [rbx + rdx], ebp
jmp 0x140043de2
mov dword [rdx + rbx - 0x400], 2
mov r8d, edi
mov edx, 0xfb
mov rcx, r15
call fcn.140044700
cmp dword [rsi + rbx + 0x1000], 1
jne 0x140043e4b
mov rax, qword [r15]
mov rdx, qword [rax + 0x1f8]
mov ecx, dword [rdx + rbx + 0x800]
test ecx, ecx
je 0x140043e30
sub ecx, 2
je 0x140043e1d
cmp ecx, 1
jne 0x140043e4b
cmp dword [rdx + rbx + 0xc00], ebp
jne 0x140043e4b
mov dword [rdx + rbx + 0xc00], ecx
jmp 0x140043e4b
cmp dword [rdx + rbx + 0xc00], 1
jne 0x140043e4b
mov dword [rdx + rbx + 0xc00], ebp
jmp 0x140043e4b
mov dword [rdx + rbx + 0x800], 2
mov r8d, edi
mov edx, 0xfd
mov rcx, r15
call fcn.140044700
inc edi
add rbx, 4
cmp edi, 0x28
jl 0x140043d80
mov rax, qword [rsp + 0x48]
xor esi, esi
mov rbp, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov dword [rax + 4], 1
test byte [rsp + 0xd0], 0x20
movzx r12d, r12b
cmovne r12d, esi
jmp 0x140043bc3
lea rdx, str.Time_out
mov rcx, rbp
call fcn.14002a0a0
mov r14d, Ordinal_30
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x58]
test rax, rax
jne 0x140043ec2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.WSACloseEvent_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14002a220
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x140043eec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.FreeLibrary_wsock2__failed___u_
mov rcx, rbp
mov r8d, eax
call fcn.14002a220
xor r9d, r9d
mov dword [rsp + 0x20], 0xffffffff
mov rcx, rbp
lea edx, [r9 - 1]
lea r8, [r9 - 1]
call fcn.14002f7f0
mov eax, r14d
jmp 0x140043a07
lea rdx, str.insufficient_winsock_version_to_support_telnet
mov rcx, rbp
call fcn.14002a0a0
mov eax, 2
jmp 0x140043a1f
neg r14
jg 0x140043879
xor word [rsp + 8], 0x237d
push rsi
add qword [rsp + 0x20], 0x991ff
add esi, dword [rsp + 0x28]
mov r12, qword [rsp + 0x48]
not qword [rsp + 0x58]
neg qword [rsp]
call fcn.1402a913a
neg r11d
jge 0x1401dba2f
or r13d, r11d
mov rdx, qword [rsp + 0x48]
call int.1402b8421