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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x490
mov rax, qword [0x140126108]
xor rax, rsp
mov qword [rsp + 0x478], rax
mov rbp, rcx
or ebx, 0xffffffff
xor ecx, ecx
mov dword [rsp + 0x30], ebx
mov edi, edx
call fcn.14009faa0
xor esi, esi
mov qword [0x14013d5b0], rax
mov r10, qword [rbp + 0x50]
lea r15, [rbp + 0x48]
mov edx, esi
mov dword [rsp + 0x250], esi
cmp r10, r15
mov dword [rsp + 0x40], edx
je 0x14004644f
nop
nop
nop
test edx, edx
movsxd r9, dword [r10 + 0x18]
mov eax, esi
mov rcx, rsi
je 0x140046422
nop
cmp qword [rsp + rcx*8 + 0x48], r9
je 0x140046422
add eax, 1
add rcx, 1
cmp eax, edx
jb 0x140046410
cmp eax, edx
jne 0x14004643b
cmp edx, 0x40
jae 0x14004643b
mov qword [rsp + rcx*8 + 0x48], r9
mov edx, dword [rsp + 0x40]
add edx, 1
mov dword [rsp + 0x40], edx
mov r10, qword [r10 + 8]
cmp r9d, ebx
cmovg ebx, r9d
cmp r10, r15
jne 0x140046400
mov dword [rsp + 0x30], ebx
mov rcx, qword [rbp + 0x130]
test rcx, rcx
je 0x140046465
call fcn.1400a2b50
cmp eax, 1
jne 0x140046489
mov rcx, qword [rbp + 0x60]
lea r9, [rsp + 0x250]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
call fcn.140045c80
mov ebx, dword [rsp + 0x30]
test eax, eax
cmovne edi, esi
mov eax, 0x10624dd3
lea ecx, [rbx + 1]
lea r8, [rsp + 0x250]
xor r9d, r9d
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edi
mov dword [rsp + 0x30], edx
imul edx, edx, 0x3e8
sub eax, edx
lea rdx, [rsp + 0x40]
imul eax, eax, 0x3e8
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x1400464e6
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14004669e
mov qword [rsp + 0x488], r13
mov r13, qword [rbp + 0x50]
cmp r13, r15
je 0x140046672
mov qword [rsp + 0x4d0], r12
mov qword [rsp + 0x480], r14
nop
nop
movsxd rcx, dword [r13 + 0x18]
lea rdx, [rsp + 0x40]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140046655
xor r15d, r15d
nop
nop
mov dword [rsp + 0x460], 0x10
movsxd rcx, dword [r13 + 0x18]
lea r8, [rsp + 0x460]
lea rdx, [rsp + 0x464]
call qword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
mov r12, rax
je 0x140046651
mov rbx, qword [rbp + 0x30]
mov r14d, dword [r13 + 0x1c]
lea rsi, [rbp + 0x28]
cmp rbx, rsi
mov edi, 0x2b
je 0x1400465d5
nop
nop
nop
mov ecx, dword [rsp + 0x468]
call qword [sym.imp.WS2_32.dll_ntohl]
and eax, dword [rbx + 0x14]
cmp dword [rbx + 0x10], eax
jne 0x140046598
mov edi, dword [rbx + 0x18]
mov rbx, qword [rbx + 8]
cmp rbx, rsi
jne 0x140046580
cmp edi, 0x2b
je 0x1400465d5
mov ecx, dword [rsp + 0x468]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
xor edx, edx
lea r8, str._s_is_not_allowed_to_connect
lea ecx, [rdx + 2]
mov r9, rax
call fcn.1400488b0
movsxd rcx, r12d
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140046530
mov rcx, qword [rbp + 0x130]
test rcx, rcx
je 0x14004663d
call fcn.1400a2b50
cmp eax, 1
jle 0x14004663d
mov rcx, qword [rbp + 0x60]
lea r8, [rbp + 0x58]
cmp rcx, r8
mov rdx, rcx
je 0x140046613
nop
nop
mov eax, dword [rcx + 0x10]
cmp dword [rdx + 0x10], eax
cmovl rcx, rdx
mov rdx, qword [rdx + 8]
cmp rdx, r8
jne 0x140046600
xor r9d, r9d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x34], r12d
mov dword [rsp + 0x38], r14d
movsxd rcx, dword [rcx + 0x1c]
lea rdx, [rsp + 0x30]
lea r8d, [r9 + 0xc]
call qword [sym.imp.WS2_32.dll_send]
jmp 0x140046530
mov rcx, qword [rbp + 0x60]
mov r8d, r14d
mov edx, r12d
call fcn.140044d10
jmp 0x140046530
lea r15, [rbp + 0x48]
mov r13, qword [r13 + 8]
cmp r13, r15
jne 0x140046510
mov r14, qword [rsp + 0x480]
mov r12, qword [rsp + 0x4d0]
mov rcx, qword [rbp + 0x130]
mov r13, qword [rsp + 0x488]
test rcx, rcx
je 0x140046690
call fcn.1400a2b50
cmp eax, 1
jne 0x14004669e
mov rcx, qword [rbp + 0x60]
lea rdx, [rsp + 0x40]
call fcn.140046220
mov rcx, qword [rsp + 0x478]
xor rcx, rsp
call fcn.14009cca0
add rsp, 0x490
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret