Function at 0x140001080
Capabilities:
Connect socket
Get socket status
Initialize winsock library
Read and send data from client to server
Read file on windows
Resolve dns
Send data
Send data on socket

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x510]
sub rsp, 0x610
mov rax, qword [0x140020008]
xor rax, rsp
mov qword [rbp + 0x500], rax
xor r14d, r14d
mov rsi, rdx
mov edx, ecx
mov ebx, r14d
lea edi, [r14 + 2]
cmp ecx, 3
jl 0x14000140c
mov rcx, qword [rsi + 8]
mov r8d, r14d
mov qword [rsp + 0x640], r12
mov r12d, r14d
movzx eax, byte [rcx]
cmp al, byte [0x140016588]
jne 0x140001110
movzx eax, byte [rcx + 1]
cmp al, byte [0x140016589]
jne 0x140001110
movzx eax, byte [rcx + 2]
cmp al, byte [0x14001658a]
jne 0x140001110
mov rbx, qword [rsi + 0x10]
cmp edx, 5
jne 0x1400014dd
mov r12d, edi
mov r8d, edi
test rbx, rbx
je 0x1400014dd
mov rcx, qword [rsi + r8*8 + 0x10]
lea rdx, [0x1400165a8]
mov qword [rsp + 0x658], r15
call fcn.140003918
mov r15, rax
test rax, rax
je 0x1400014ea
mov ecx, 0x101
mov qword [rsp + 0x650], r13
lea rdx, [rbp + 0x160]
call sub.WSOCK32.dll_WSAStartup
xor r8d, r8d
mov ecx, edi
lea edx, [r8 + 1]
call sub.WSOCK32.dll_socket
mov r13, rax
test eax, eax
js 0x1400014f7
mov rcx, qword [rsi + r12*8 + 8]
lea rsi, [rsi + r12*8]
call sub.WSOCK32.dll_gethostbyname
test rax, rax
je 0x140001504
xor ecx, ecx
mov qword [rbp + 0x150], rcx
mov qword [rbp + 0x158], rcx
lea rcx, [rbp + 0x154]
mov word [rbp + 0x150], di
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
mov rdx, qword [rdx]
call fcn.140002410
mov ecx, 0x238c
call sub.WSOCK32.dll_htons
movsxd r12, r13d
lea rdx, [rbp + 0x150]
mov rcx, r12
mov word [rbp + 0x152], ax
mov r8d, select
call sub.WSOCK32.dll_connect
test eax, eax
js 0x140001522
mov rdx, qword [rsi + 8]
lea rcx, str.Connected_to_host__s__TCP_port_9100_n
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x30], 0xa
call fcn.140001560
test rbx, rbx
je 0x1400012da
mov esi, edi
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], r14b
jne 0x140001216
cmp rax, 0x2f
ja 0x14000152f
xor edx, edx
lea rcx, [rbp + 0x300]
mov r8d, 0x100
call fcn.140002870
mov r8, rbx
lea rdx, str._JOBNAME__s
lea rcx, [rbp + 0x300]
call fcn.1400015c0
lea rax, [rsp + 0x30]
mov byte [rbp + 0x300], 0xaa
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, edi
call sub.WSOCK32.dll_select
test eax, eax
jne 0x1400012a8
nop dword [rax]
sub esi, 1
js 0x140001549
lea rax, [rsp + 0x30]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, edi
call sub.WSOCK32.dll_select
test eax, eax
je 0x140001280
xor r9d, r9d
lea rdx, [rbp + 0x300]
mov r8d, 0xff
mov rcx, r12
call sub.WSOCK32.dll_send
cmp eax, 0xff
jne 0x14000153c
mov rdx, rbx
lea rcx, str.Sending_job_name:__s_n
call fcn.140001560
lea rcx, str.Sending_raw_job_data_n
call fcn.140001560
mov rcx, r15
call fcn.140003830
test eax, eax
jne 0x140001396
nop word [rax + rax]
mov r9, r15
lea rcx, [rbp + 0x400]
mov edx, 1
mov r8d, 0xff
call fcn.140003bb4
mov rsi, rax
test eax, eax
jle 0x140001386
lea rax, [rsp + 0x30]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, edi
mov ebx, edi
call sub.WSOCK32.dll_select
test eax, eax
jne 0x14000136a
sub ebx, 1
js 0x140001549
lea rax, [rsp + 0x30]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, edi
call sub.WSOCK32.dll_select
test eax, eax
je 0x140001342
xor r9d, r9d
lea rdx, [rbp + 0x400]
mov r8d, esi
mov rcx, r12
call sub.WSOCK32.dll_send
cmp eax, esi
jne 0x1400013f1
add r14d, esi
mov rcx, r15
call fcn.140003830
test eax, eax
je 0x140001300
mov rcx, r15
call fcn.1400037cc
mov rcx, r12
call sub.WSOCK32.dll_closesocket
mov edx, r14d
lea rcx, str.Sent__d_bytes_n
call fcn.140001560
call sub.WSOCK32.dll_WSACleanup
mov r13, qword [rsp + 0x650]
xor eax, eax
mov r15, qword [rsp + 0x658]
mov r12, qword [rsp + 0x640]
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.1400016e0
add rsp, 0x610
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov edx, eax
lea rcx, str.Send___returned__d_n
call fcn.140001560
lea rcx, str.send_failed
call fcn.140001010
int3
mov ecx, edi
call fcn.1400036c0
mov rcx, rax
lea rdx, str.Rawsend___Simple_utility_to_send_print_jobs_to_GPStill_on_the_command_line_n
call fcn.140001030
mov ecx, edi
call fcn.1400036c0
mov rcx, rax
lea rdx, str.Part_of_PStill___Copyright_Dipl._Ing._Frank_Siegert_2018_2024_n_n
call fcn.140001030
mov ecx, edi
call fcn.1400036c0
mov rcx, rax
lea rdx, str.Files_are_send_to_TCP_port_9100___you_can_send_all_types_of_supported_formats:_n
call fcn.140001030
mov ecx, edi
call fcn.1400036c0
mov rcx, rax
lea rdx, str.PS__EPS__PDF__TIFF__JPEG__PNG__GIF__BMP_n_n
call fcn.140001030
mov ecx, edi
call fcn.1400036c0
mov rcx, rax
lea rdx, str.Use_option__j_jobname_to_set_a_jobname_for_non_PS_data_n_n
call fcn.140001030
mov ecx, edi
call fcn.1400036c0
mov rcx, rax
lea rdx, str.Note:_You_need_to_activate_the_network_print_server_in_GPStill_n______and_set_an_output_folder._Also_GPStill_should_be_running._n_n
call fcn.140001030
mov ecx, edi
call fcn.1400036c0
mov rcx, rax
lea rdx, str.Usage_rawsend.exe___j_jobname__hostname_filename_n
call fcn.140001030
mov ecx, edi
call fcn.1400036c0
mov rcx, rax
lea rdx, str._nExample:_rawsend__localhost_path_to_testfile.ps_n
call fcn.140001030
mov ecx, edi
call fcn.1400036c0
mov rcx, rax
lea rdx, [0x140016584]
call fcn.140001030
mov ecx, 1
call fcn.140003594
int3
lea rcx, str.Wrong_missing_options__n
call fcn.140001010
int3
lea rcx, str.Unable_to_open_source_file_n
call fcn.140001010
int3
lea rcx, str.ERROR_opening_network_socket
call fcn.140001010
int3
mov ecx, edi
call fcn.1400036c0
mov rcx, rax
lea rdx, str.Error:_No_such_host_n
call fcn.140001030
xor ecx, ecx
call fcn.140003594
int3
lea rcx, str.connect_failed___check_firewall_and_server_status
call fcn.140001010
int3
lea rcx, str.Jobname_too_long__47_char_max._
call fcn.140001010
int3
lea rcx, str.Unable_to_send_jobname
call fcn.140001010
int3
lea rcx, str.Send_timeout
call fcn.140001010
int3