Function at 0x140025f20
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x630
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x1400e2e38]
xor rax, rsp
mov qword [rsp + 0x620], rax
mov rsi, rdx
mov rbx, rcx
mov byte [rsp + 0x220], 0
xor edx, edx
mov r8d, 0x3ff
lea rcx, [r11 - 0x417]
call fcn.140082240
mov rax, qword [0x1400ec150]
test rax, rax
jne 0x140025fa3
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140025f9a
mov rcx, rax
call fcn.140023810
jmp 0x140025f9c
xor eax, eax
mov qword [0x1400ec150], rax
lea rdx, str._GetNtwk1284String__
mov rcx, rax
call fcn.140023be0
mov rax, qword [0x1400ec150]
test rax, rax
jne 0x140025fe5
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140025fdc
mov rcx, rax
call fcn.140023810
jmp 0x140025fde
xor eax, eax
mov qword [0x1400ec150], rax
lea rdx, str._StartNetworkConnection__
mov rcx, rax
call fcn.140023be0
lea rdx, [rsp + 0x80]
mov cx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140026053
mov rax, qword [0x1400ec150]
test rax, rax
jne 0x14002603d
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140026034
mov rcx, rax
call fcn.140023810
jmp 0x140026036
xor eax, eax
mov qword [0x1400ec150], rax
lea rdx, str.ERROR:_Could_not_load_Winsock_DLL
mov rcx, rax
call fcn.140023be0
xor eax, eax
jmp 0x140026454
mov edx, 1
lea ecx, [rdx + 1]
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400260c8
mov rbx, qword [0x1400ec150]
test rbx, rbx
jne 0x1400260a4
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14002609b
mov rcx, rax
call fcn.140023810
mov rbx, rax
jmp 0x14002609d
xor ebx, ebx
mov qword [0x1400ec150], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r8, str.Could_not_get_a_socket
mov rcx, rbx
call fcn.140023e20
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x140026454
mov dword [rsp + 0x38], 0x1388
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x38]
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14002614f
mov rbx, qword [0x1400ec150]
test rbx, rbx
jne 0x14002612b
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140026122
mov rcx, rax
call fcn.140023810
mov rbx, rax
jmp 0x140026124
xor ebx, ebx
mov qword [0x1400ec150], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r8, str.Could_not_set_socket_timeout
mov rcx, rbx
call fcn.140023e20
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x140026454
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x6c], eax
mov word [rsp + 0x68], 2
mov cx, 0x238c
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x6a], ax
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x1400261dc
mov rbx, qword [0x1400ec150]
test rbx, rbx
jne 0x1400261c0
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400261b7
mov rcx, rax
call fcn.140023810
mov rbx, rax
jmp 0x1400261b9
xor ebx, ebx
mov qword [0x1400ec150], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r8, str.Could_not_connect_to_the_socket
mov rcx, rbx
call fcn.140023e20
jmp 0x140026443
xor r9d, r9d
lea r8d, [r9 + 9]
lea rdx, str.e__12345X
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x14002621b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
call fcn.1400237a0
mov rcx, rax
lea r8, str.Could_not_send_ICL_PJL_UEL_to_the_socket
mov edx, ebx
call fcn.140023e20
jmp 0x140026443
cmp eax, 9
jne 0x140026443
xor r9d, r9d
lea r8d, [rax + 0x10]
lea rdx, str._PJL_ENTER_LANGUAGEACL_r_n
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140026263
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
call fcn.1400237a0
mov rcx, rax
lea r8, str.Could_not_send_ICL_PJL_ENTERLANG_to_the_socket
mov edx, ebx
call fcn.140023e20
jmp 0x140026443
cmp eax, 0x19
jne 0x140026443
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov cx, 0xac
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x58], ax
mov cx, 6
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x5a], ax
xor r9d, r9d
lea r8d, [r9 + 0x10]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x140026425
cmp eax, 0x10
jne 0x140026425
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
call fcn.1400237a0
mov rcx, rax
lea rdx, str._GetNtwk1284String__:_Getting_1284_string_...
call fcn.140023be0
xor r9d, r9d
lea r8d, [r9 + 0x10]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x140026405
cmp eax, 0x10
jne 0x140026405
movzx ecx, word [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 0xac
jne 0x1400263ef
movzx ecx, word [rsp + 0x4a]
call qword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 6
jne 0x1400263ef
movzx ecx, word [rsp + 0x4c]
call qword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 1
jne 0x1400263ef
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rsp + 0x220]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x140026385
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
call fcn.1400237a0
mov rcx, rax
lea r8, str.recv_1284_string_failed
mov edx, ebx
call fcn.140023e20
jmp 0x140026443
mov eax, eax
mov byte [rsp + rax + 0x220], 0
lea r8, [rsp + 0x221]
mov edx, pe_nt_image_headers64
mov rcx, rsi
call fcn.14007e5a0
call fcn.1400237a0
mov rcx, rax
lea rdx, str.Successfully_received_1284_string..._Now_sending_end_PJL
call fcn.140023be0
xor r9d, r9d
lea r8d, [r9 + 9]
lea rdx, str.e__12345X
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x140026443
cmp eax, 9
jne 0x140026443
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x140026454
call fcn.1400237a0
mov rcx, rax
lea rdx, str.Incorrect_command_response_received
call fcn.140023be0
jmp 0x140026443
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
call fcn.1400237a0
mov rcx, rax
lea r8, str.recv_response_failed
mov edx, ebx
call fcn.140023e20
jmp 0x140026443
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
call fcn.1400237a0
mov rcx, rax
lea r8, str.Failed_send_acl_cmd_to_the_socket
mov edx, ebx
call fcn.140023e20
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rcx, qword [rsp + 0x620]
xor rcx, rsp
call fcn.14007d3d0
lea r11, [rsp + 0x630]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret