Function at 0x140089230
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, 0x4a0
mov rax, qword [0x140140880]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov dword [rsp + 0x44], r9d
mov rbx, r8
mov r12, rdx
mov rbp, rcx
mov r15, qword [rsp + 0x500]
mov r13, qword [rsp + 0x508]
mov qword [rsp + 0x58], r15
mov ecx, dword [0x140145f08]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor esi, esi
test rax, rax
je 0x140089295
mov rdx, qword [rax + 8]
jmp 0x140089298
mov rdx, rsi
mov r9d, 8
mov r8d, 0x1e8
movzx ecx, byte [rsp + 0x40]
call fcn.140088ae0
mov rdi, rax
mov rax, qword [r12 + 0x18]
xor r8d, r8d
mov r14d, r8d
mov ecx, r8d
test rax, rax
je 0x1400892d0
mov rcx, qword [r12 + 0x10]
mov r14, rax
lock inc dword [rax + 0xc]
mov qword [rdi + 0x20], r8
lea rax, [0x1400b4560]
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 0x14008930c
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 dword [rax + rax]
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 0x140089320
mov rax, qword [rax]
mov qword [rcx], rax
mov rax, qword [r15 + 8]
mov qword [rdi + 0x158], rax
mov rdx, qword [r15 + 0x20]
mov qword [r15 + 0x20], r8
mov rcx, qword [r15 + 0x18]
mov qword [r15 + 0x18], r8
mov rax, qword [r15 + 0x10]
mov qword [r15 + 0x10], r8
mov qword [rdi + 0x160], rax
mov qword [rdi + 0x168], rcx
mov qword [rdi + 0x170], rdx
mov rax, qword [r15 + 0x28]
mov qword [rdi + 0x178], rax
mov rax, qword [r15 + 0x30]
mov qword [rdi + 0x180], rax
mov rax, qword [r15 + 0x38]
mov qword [rdi + 0x188], rax
mov rax, qword [r15 + 0x40]
mov qword [rdi + 0x190], rax
mov eax, dword [r15 + 0x48]
mov dword [rdi + 0x198], eax
mov qword [rdi + 0x1a0], r8
mov qword [rdi + 0x1a8], r8
mov rax, qword [r15 + 0x50]
mov qword [rdi + 0x1a0], rax
mov rax, qword [r15 + 0x58]
mov qword [rdi + 0x1a8], rax
mov qword [r15 + 0x50], r8
mov qword [r15 + 0x58], r8
lea rcx, [rdi + 0x1b0]
mov r9, r13
xor edx, edx
call fcn.140093ca0
test r14, r14
je 0x140089441
mov eax, 0xffffffff
lock xadd dword [r14 + 0xc], eax
cmp eax, 1
jne 0x140089441
mov rax, qword [r14]
mov rcx, r14
call qword [rax + reloc.WSOCK32.dll_htonl]
xor esi, esi
mov r8d, esi
mov qword [rsp + 0x480], rsi
mov ecx, esi
mov qword [rsp + 0x488], rcx
mov rdx, qword [rbx + 0x100]
shl rdx, 4
add rdx, rbx
cmp rbx, rdx
je 0x1400894c6
nop dword [rax + rax]
cmp r8, 0x40
jae 0x1400894c6
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x70], xmm0
add r8, r8
movq qword [rsp + r8*8 + 0x88], xmm0
mov rax, qword [rbx + 8]
mov dword [rsp + r8*8 + 0x80], eax
mov rcx, qword [rsp + 0x488]
add rcx, rax
mov qword [rsp + 0x488], rcx
add rbx, 0x10
mov r8, qword [rsp + 0x480]
inc r8
mov qword [rsp + 0x480], r8
cmp rbx, rdx
jne 0x140089470
test byte [r12 + 8], 0x10
je 0x1400894f2
test rcx, rcx
jne 0x1400894f2
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.1400c0680
jmp 0x140089586
mov rax, qword [rbp + 8]
lock inc dword [rax + 0x30]
mov rcx, qword [r12]
cmp rcx, 0xffffffffffffffff
jne 0x14008951b
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rdi
mov rcx, qword [rbp + 8]
call fcn.1400c0680
jmp 0x140089586
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rdi
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x80]
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, 0x274d
cmp eax, 0x4d2
cmove eax, ecx
test ebx, ebx
je 0x14008957a
cmp eax, 0x3e5
je 0x14008957a
mov r9d, dword [rsp + 0x48]
mov r8d, eax
mov rdx, rdi
mov rcx, qword [rbp + 8]
call fcn.1400c0680
jmp 0x140089586
mov rdx, rdi
mov rcx, qword [rbp + 8]
call fcn.1400c0970
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], rsi
lea rcx, [rsp + 0x58]
call fcn.1400c5d50
nop
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.14010aaf0
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret