Function at 0x10042a310
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x188
mov ebp, edx
mov rsi, rcx
mov rdi, r8
mov ebx, r9d
call sub.cygwin1.dll_strlen
test bpl, bpl
jne 0x10042a548
test bl, bl
jne 0x10042a520
mov edx, eax
lea ebx, [rax + 1]
mov rax, qword [0x10044cf20]
cmp byte [rax], 0
je 0x10042a3af
mov rax, qword [0x10044d200]
cmp byte [rax], 0
je 0x10042a3d0
cmp edx, 0xa
mov qword [rsp + 0x20], rsi
lea rdx, [0x10044a1a3]
lea rax, [0x10044a19f]
cmovle rax, rdx
lea r12, [rsp + 0x80]
mov edx, 0x100
mov r9d, ebx
lea r8, str.API:_send_reply:___d___.10s_s
mov rcx, r12
mov qword [rsp + 0x28], rax
call sub.cygwin1.dll_snprintf
xor r8d, r8d
mov rdx, r12
mov ecx, 7
call fcn.100433050
test ebx, ebx
jg 0x10042a3f0
add rsp, 0x188
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x10044cf80]
cmp byte [rax], 0
jne 0x10042a361
mov rax, qword [0x10044cf70]
cmp dword [rax], 6
jle 0x10042a3af
jmp 0x10042a361
test rdi, rdi
lea rax, [rdi + 0x3f]
lea r15d, [rdi + 1]
mov ebp, ebx
cmovns rax, rdi
lea r14, [rsp + 0x68]
xor r13d, r13d
xor r12d, r12d
sar rax, 6
mov qword [rsp + 0x40], rax
mov rax, rdi
sar rax, 0x3f
shr rax, 0x3a
lea rcx, [rdi + rax]
and ecx, 0x3f
sub rcx, rax
mov eax, 1
shl rax, cl
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
xor r9d, r9d
mov r8, r14
mov qword [rsp + 0x70], 0
mov ecx, r15d
mov qword [rsp + rax*8 + 0x68], rdx
mov rax, qword [rsp + 0x48]
xor edx, edx
mov qword [rsp + 0x78], 0xc350
mov qword [rsp + 0x20], rax
call sub.cygwin1.dll_select
test eax, eax
jle 0x10042a780
xor r9d, r9d
movsxd r8, ebp
mov rdx, rsi
mov ecx, edi
call sub.cygwin1.dll_send
add r12d, 1
mov r10, rax
test eax, eax
js 0x10042a618
mov rax, qword [0x10044cf20]
movzx eax, byte [rax]
cmp r12d, 1
je 0x10042a6b8
cmp ebp, r10d
je 0x10042a560
test al, al
je 0x10042a4f8
mov rax, qword [0x10044d200]
cmp byte [rax], 0
jne 0x10042a5c0
mov rax, qword [0x10044cf80]
cmp byte [rax], 0
jne 0x10042a5c0
mov rax, qword [0x10044cf70]
cmp dword [rax], 6
jg 0x10042a5c0
nop dword [rax]
movsxd rax, r10d
sub ebp, r10d
add rsi, rax
cmp r10d, 1
adc r13d, 0
cmp r13d, 4
jg 0x10042a3b3
test ebp, ebp
jle 0x10042a3b3
jmp 0x10042a441
movabs rbx, 0x7d313a226469222c
add rax, rsi
mov rcx, rsi
mov qword [rax], rbx
mov byte [rax + 8], 0
call sub.cygwin1.dll_strlen
jmp 0x10042a344
mov edx, 0x5d
mov word [rsi + rax], dx
add rax, 1
jmp 0x10042a33c
test al, al
je 0x10042a4f8
mov rax, qword [0x10044d200]
cmp byte [rax], 0
jne 0x10042a58c
mov rax, qword [0x10044cf80]
cmp byte [rax], 0
jne 0x10042a58c
mov rax, qword [0x10044cf70]
cmp dword [rax], 6
jle 0x10042a4f8
mov dword [rsp + 0x20], r12d
mov r9d, ebp
lea r11, [rsp + 0x80]
lea r8, str.API:_sent_all_of_remaining__d__sendc_d_
mov edx, 0x100
mov rcx, r11
mov qword [rsp + 0x58], r10
mov qword [rsp + 0x50], r11
call sub.cygwin1.dll_snprintf
jmp 0x10042a5f2
mov dword [rsp + 0x28], r12d
lea r11, [rsp + 0x80]
mov r9d, r10d
mov edx, 0x100
mov dword [rsp + 0x20], ebp
lea r8, str.API:_sent__d_of_remaining__d__sendc_d_
mov rcx, r11
mov qword [rsp + 0x58], r10
mov qword [rsp + 0x50], r11
call sub.cygwin1.dll_snprintf
mov r11, qword [rsp + 0x50]
xor r8d, r8d
mov ecx, 7
mov rdx, r11
call fcn.100433050
mov r10, qword [rsp + 0x58]
jmp 0x10042a4f8
call sub.cygwin1.dll___errno
cmp dword [rax], 0xb
je 0x10042a6a8
call sub.cygwin1.dll___errno
cmp dword [rax], 0xb
je 0x10042a6a8
mov rax, qword [0x10044d200]
cmp byte [rax], 0
jne 0x10042a658
mov rax, qword [0x10044cf80]
cmp byte [rax], 0
jne 0x10042a658
mov rax, qword [0x10044cf70]
cmp dword [rax], 3
jle 0x10042a3b3
call sub.cygwin1.dll___errno
lea r12, [rsp + 0x80]
mov ecx, dword [rax]
call sub.cygwin1.dll_strerror
mov rcx, r12
mov r9d, ebx
mov edx, 0x100
mov qword [rsp + 0x28], rax
mov eax, ebx
lea r8, str.API:_send___d:_d__failed:__s
sub eax, ebp
mov dword [rsp + 0x20], eax
call sub.cygwin1.dll_snprintf
xor r8d, r8d
mov rdx, r12
mov ecx, 4
call fcn.100433050
jmp 0x10042a3b3
add r13d, 1
jmp 0x10042a509
cmp ebp, r10d
je 0x10042a720
test al, al
je 0x10042a4f8
mov rax, qword [0x10044d200]
cmp byte [rax], 0
jne 0x10042a6ed
mov rax, qword [0x10044cf80]
cmp byte [rax], 0
jne 0x10042a6ed
mov rax, qword [0x10044cf70]
cmp dword [rax], 6
jle 0x10042a4f8
mov dword [rsp + 0x20], ebp
mov r9d, r10d
lea r11, [rsp + 0x80]
lea r8, str.API:_sent__d_of__d_first_go
mov edx, 0x100
mov rcx, r11
mov qword [rsp + 0x58], r10
mov qword [rsp + 0x50], r11
call sub.cygwin1.dll_snprintf
jmp 0x10042a5f2
test al, al
je 0x10042a4f8
mov rax, qword [0x10044d200]
cmp byte [rax], 0
jne 0x10042a750
mov rax, qword [0x10044cf80]
cmp byte [rax], 0
jne 0x10042a750
mov rax, qword [0x10044cf70]
cmp dword [rax], 6
jle 0x10042a4f8
lea r11, [rsp + 0x80]
mov r9d, ebp
mov edx, 0x100
mov qword [rsp + 0x58], r10
lea r8, str.API:_sent_all_of__d_first_go
mov rcx, r11
mov qword [rsp + 0x50], r11
call sub.cygwin1.dll_snprintf
jmp 0x10042a5f2
mov rdx, qword [0x10044d200]
cmp byte [rdx], 0
jne 0x10042a7a8
mov rdx, qword [0x10044cf80]
cmp byte [rdx], 0
jne 0x10042a7a8
mov rdx, qword [0x10044cf70]
cmp dword [rdx], 3
jle 0x10042a3b3
lea r12, [rsp + 0x80]
mov r9d, eax
mov edx, 0x100
mov rcx, r12
lea r8, str.API:_send_select_failed___d_
call sub.cygwin1.dll_snprintf
xor r8d, r8d
mov rdx, r12
mov ecx, 4
call fcn.100433050
jmp 0x10042a3b3