Function at 0x140038650
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 [0x140054040]
xor rax, rsp
mov qword [rsp + 0x488], rax
mov dword [rsp + 0x40], r9d
mov rbx, r8
mov r15, rdx
mov rbp, rcx
mov r13, qword [rsp + 0x4f0]
mov r12, qword [rsp + 0x4f8]
mov ecx, dword [0x1405df284]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400386ae
mov rdx, qword [rax + 8]
jmp 0x1400386b0
xor edx, edx
mov r8d, 0x1e8
call fcn.140028560
mov rdi, rax
mov rax, qword [r15 + 0x18]
xor r8d, r8d
mov r14d, r8d
mov ecx, r8d
test rax, rax
je 0x1400386db
mov rcx, qword [r15 + 0x10]
mov r14, rax
lock inc dword [rax + 0xc]
mov qword [rdi + 0x20], r8
lea rax, [0x140038d90]
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 0x140038717
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]
nop word [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 0x140038730
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
call fcn.140036cc0
test r14, r14
je 0x14003884f
mov eax, 0xffffffff
lock xadd dword [r14 + 0xc], eax
cmp eax, 1
jne 0x14003884f
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 0x1400388c7
cmp r8, 0x40
jae 0x1400388c7
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 0x140038877
test byte [r15 + 8], 0x10
je 0x1400388f2
test rcx, rcx
jne 0x1400388f2
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.14000b100
jmp 0x14003898b
mov rax, qword [rbp + 8]
lock inc dword [rax + 0x30]
mov rcx, qword [r15]
cmp rcx, 0xffffffffffffffff
jne 0x14003891a
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rdi
mov rcx, qword [rbp + 8]
call fcn.14000b100
jmp 0x14003898b
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rdi
mov eax, dword [rsp + 0x40]
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 0x14003897e
cmp eax, 0x3e5
je 0x14003897e
mov r9d, dword [rsp + 0x48]
mov r8d, eax
mov rdx, rdi
mov rcx, qword [rbp + 8]
call fcn.14000b100
jmp 0x14003898b
mov rdx, rdi
mov rcx, qword [rbp + 8]
call fcn.14000b070
nop
mov rcx, qword [rsp + 0x488]
xor rcx, rsp
call fcn.14003a7b0
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x490
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret