Function at 0x14003da40
Capabilities:
Get thread local storage value
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x490
mov rax, qword [0x1400da5c0]
xor rax, rsp
mov qword [rsp + 0x488], rax
mov dword [rsp + 0x44], r9d
mov rbx, r8
mov r15, rdx
mov rbp, rcx
mov r13, qword [rsp + 0x4f0]
mov r12, qword [rsp + 0x4f8]
mov ecx, dword [0x1400de65c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14003da9e
mov rdx, qword [rax + 8]
jmp 0x14003daa0
xor edx, edx
mov r9d, 8
mov r8d, 0x1e8
movzx ecx, byte [rsp + 0x40]
call fcn.14003d370
mov rdi, rax
mov rax, qword [r15 + 0x18]
xor r8d, r8d
mov r14d, r8d
mov ecx, r8d
test rax, rax
je 0x14003dad6
mov rcx, qword [r15 + 0x10]
mov r14, rax
lock inc dword [rax + 0xc]
mov qword [rdi + 0x20], r8
lea rax, [0x140068d00]
mov qword [rdi + 0x28], rax
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
mov qword [rdi + 0x18], r8
mov dword [rdi + 0x30], r8d
mov qword [rdi + 0x38], r8
mov qword [rdi + 0x40], r8
test r14, r14
je 0x14003db12
mov qword [rdi + 0x38], rcx
mov qword [rdi + 0x40], r14
lock inc dword [r14 + 0xc]
lea rcx, [rdi + 0x48]
mov rax, rbx
mov edx, 2
nop
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x14003db20
mov rax, qword [rax]
mov qword [rcx], rax
mov rax, qword [r13 + 8]
mov qword [rdi + 0x158], rax
mov rdx, qword [r13 + 0x20]
mov qword [r13 + 0x20], r8
mov rcx, qword [r13 + 0x18]
mov qword [r13 + 0x18], r8
mov rax, qword [r13 + 0x10]
mov qword [r13 + 0x10], r8
mov qword [rdi + 0x160], rax
mov qword [rdi + 0x168], rcx
mov qword [rdi + 0x170], rdx
mov rax, qword [r13 + 0x28]
mov qword [rdi + 0x178], rax
mov rax, qword [r13 + 0x30]
mov qword [rdi + 0x180], rax
mov rax, qword [r13 + 0x38]
mov qword [rdi + 0x188], rax
mov rax, qword [r13 + 0x40]
mov qword [rdi + 0x190], rax
mov eax, dword [r13 + 0x48]
mov dword [rdi + 0x198], eax
mov qword [rdi + 0x1a0], r8
mov qword [rdi + 0x1a8], r8
mov rax, qword [r13 + 0x50]
mov qword [rdi + 0x1a0], rax
mov rax, qword [r13 + 0x58]
mov qword [rdi + 0x1a8], rax
mov qword [r13 + 0x50], r8
mov qword [r13 + 0x58], r8
lea rcx, [rdi + 0x1b0]
mov r9, r12
xor edx, edx
call fcn.140044ec0
test r14, r14
je 0x14003dc41
mov eax, 0xffffffff
lock xadd dword [r14 + 0xc], eax
cmp eax, 1
jne 0x14003dc41
mov rax, qword [r14]
mov rcx, r14
call qword [rax + reloc.WS2_32.dll_htonl]
xor r8d, r8d
mov qword [rsp + 0x460], r8
xor ecx, ecx
mov qword [rsp + 0x468], rcx
mov rdx, qword [rbx + 0x100]
shl rdx, 4
add rdx, rbx
cmp rbx, rdx
je 0x14003dcc0
nop dword [rax]
cmp r8, 0x40
jae 0x14003dcc0
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x48], xmm0
add r8, r8
movq qword [rsp + r8*8 + 0x68], xmm0
mov rax, qword [rbx + 8]
mov dword [rsp + r8*8 + 0x60], eax
mov rcx, qword [rsp + 0x468]
add rcx, rax
mov qword [rsp + 0x468], rcx
add rbx, 0x10
mov r8, qword [rsp + 0x460]
inc r8
mov qword [rsp + 0x460], r8
cmp rbx, rdx
jne 0x14003dc70
test byte [r15 + 8], 0x10
je 0x14003dceb
test rcx, rcx
jne 0x14003dceb
mov rax, qword [rbp + 8]
lock inc dword [rax + 0x30]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp + 8]
call fcn.140075ec0
jmp 0x14003dd84
mov rax, qword [rbp + 8]
lock inc dword [rax + 0x30]
mov rcx, qword [r15]
cmp rcx, 0xffffffffffffffff
jne 0x14003dd13
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rdi
mov rcx, qword [rbp + 8]
call fcn.140075ec0
jmp 0x14003dd84
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rdi
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x274d
cmp eax, 0x4d2
cmove eax, ecx
test ebx, ebx
je 0x14003dd77
cmp eax, 0x3e5
je 0x14003dd77
mov r9d, dword [rsp + 0x48]
mov r8d, eax
mov rdx, rdi
mov rcx, qword [rbp + 8]
call fcn.140075ec0
jmp 0x14003dd84
mov rdx, rdi
mov rcx, qword [rbp + 8]
call fcn.1400761a0
nop
mov rcx, qword [rsp + 0x488]
xor rcx, rsp
call fcn.140088830
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x490
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret