Function at 0x140006d60
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4c0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1400ab2b8]
xor rax, rsp
mov qword [rsp + 0x4b8], rax
mov r13, r8
mov r12, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x60], r8
mov rbx, qword [rsp + 0x528]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x68], rbx
xor r14d, r14d
mov dword [rsp + 0x34], r14d
lea rcx, [0x1400b1b10]
call fcn.140031ec4
test eax, eax
je 0x140006dd7
mov ecx, eax
call fcn.140031a94
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], r14
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.140004c30
xor r8d, r8d
lea rdx, [0x140093e7a]
mov rcx, rsi
call fcn.140004cb0
mov dword [rsp + 0x34], 1
mov r15d, 1
lea edi, [r15 + 1]
mov dword [rsp + 0x30], r15d
cmp r15d, 3
jg 0x140007035
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov word [rsp + 0x70], di
lea ecx, [rax + 0x35]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x72], ax
mov rcx, rbx
call fcn.140004b30
mov rcx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x74], eax
mov rcx, r13
call fcn.140004b30
mov rdx, rax
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [r13 + 0x10]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x140006e97
xor r8d, r8d
lea rdx, [0x140093e7a]
mov rcx, rsi
call fcn.140004cb0
mov qword [rsp + 0xa8], r12
mov dword [rsp + 0xa0], 1
mov qword [rsp + 0x38], 0xa
lea ecx, [r12 + 1]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 1
sete al
test al, al
je 0x140006ff3
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x2b0]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_recv]
movsxd r8, eax
test eax, eax
jle 0x140006ff3
mov ecx, r8d
mov rdx, r8
mov rax, r8
test r8d, r8d
jle 0x140006ff3
nop dword [rax + rax]
cmp byte [rsp + rax + 0x2b0], 0
jne 0x140006fe5
cmp rdx, rax
je 0x140006fe5
test ecx, ecx
je 0x140006ff3
add ecx, 3
cmp ecx, r8d
jge 0x140006ff3
lea rbx, [rsp + 0x2b0]
add rbx, rdx
movsxd rax, ecx
lea rdi, [rsp + 0x2b0]
add rdi, rax
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x98], r14
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.140004c30
cmp rdi, rbx
je 0x140006fa2
sub rbx, rdi
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x80]
call fcn.140004cb0
nop
lea rax, [rsp + 0x80]
cmp rsi, rax
je 0x140006fc7
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.140004d90
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x80]
call fcn.140004c30
mov rbx, qword [rsp + 0x48]
mov edi, 2
jmp 0x140006ff3
dec ecx
dec rax
test rax, rax
jg 0x140006f20
jmp 0x14000701a
lea rdx, [0x140093e7a]
mov rcx, rsi
call fcn.140004a30
test eax, eax
jne 0x140007035
inc r15d
jmp 0x140006e10
lea rcx, [0x1400b1b10]
call fcn.140031ee8
test eax, eax
je 0x14000704d
mov ecx, eax
call fcn.140031a94
nop
xor r8d, r8d
mov dl, 1
mov rcx, r13
call fcn.140004c30
nop
xor r8d, r8d
mov dl, 1
mov rcx, rbx
call fcn.140004c30
mov rax, rsi
mov rcx, qword [rsp + 0x4b8]
xor rcx, rsp
call fcn.140034240
add rsp, 0x4c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret