Function at 0x14000a6b0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x860
mov rax, qword [0x140116008]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov eax, dword [0x140117128]
mov r14, r9
mov rbp, r8
mov esi, edx
mov rdi, rcx
cmp eax, 0xffffffff
jne 0x14000a6f2
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140117128], eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14000a71f
mov ebx, dword [reloc.WS2_32.dll_accept]
mov ecx, dword [0x140117128]
mov edx, ebx
lea eax, [rbx + 1]
mov dword [reloc.WS2_32.dll_accept], eax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [rsp + 0x28], esi
lea r8, str.__d__s:__4d:
mov r9d, ebx
mov qword [rsp + 0x20], rdi
mov edx, 0x800
lea rcx, [rsp + 0x50]
call fcn.1400217a0
cmp eax, 0x7eb
ja 0x14000a926
mov edx, 0x800
lea rcx, [rsp + 0x50]
sub edx, eax
mov r9, r14
cdqe
mov r8, rbp
add rcx, rax
call fcn.140021950
test eax, eax
js 0x14000a926
lea rax, [rsp + 0x50]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14000a780
mov rax, qword [0x140118680]
test rax, rax
je 0x14000a7aa
mov rax, qword [rax + 0x5c38]
test rax, rax
je 0x14000a7aa
mov edx, ebx
lea rcx, [rsp + 0x50]
call rax
cmp byte [0x140118480], 0
je 0x14000a922
lea r8, [0x14010a2c8]
lea rdx, [0x140118480]
lea rcx, [rsp + 0x40]
call fcn.140059800
test eax, eax
jne 0x14000a97a
mov rbp, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140052f0c
mov r11, qword [rsp + 0x48]
movabs rax, 0x1845c8a0ce512957
imul r11
mov r10, rdx
sar r10, 0xd
mov rax, r10
shr rax, 0x3f
add r10, rax
imul eax, r10d, 0x15180
mov r8d, r10d
sub r11d, eax
mov eax, 0x91a2b3c5
mul r11d
mov ecx, r11d
mov edi, edx
shr edi, 0xb
imul eax, edi, 0xe10
sub ecx, eax
mov eax, 0x88888889
mul ecx
mov eax, 0x88888889
mov esi, edx
mul r11d
shr esi, 5
shr edx, 5
imul eax, edx, 0x3c
sub r11d, eax
mov eax, 0x6719f361
mul r10d
sub r8d, edx
shr r8d, 1
add r8d, edx
shr r8d, 8
imul eax, r8d, 0x16d
lea ecx, [r8 + 1]
shr ecx, 2
lea edx, [r8 - 1]
add ecx, eax
cmp ecx, r10d
cmovbe edx, r8d
imul eax, edx, 0xfffffe93
lea ecx, [rdx + 1]
shr ecx, 2
sub eax, ecx
add r10d, eax
mov eax, edx
and al, 3
cmp al, 2
jne 0x14000a8a5
cmp r10d, 0x3b
jne 0x14000a8a0
lea r9d, [r10 - 0x39]
jmp 0x14000a8c7
jb 0x14000a8a5
dec r10d
mov r9d, 1
movzx ecx, r10w
lea rax, [0x14007a0e4]
cmp dword [rax], ecx
jg 0x14000a8c7
inc r9d
add rax, 4
cmp r9d, 0xc
jb 0x14000a8b6
mov dword [rsp + 0x38], r11d
lea r8d, [r9 - 1]
lea rax, [0x14007a0e0]
mov dword [rsp + 0x30], esi
sub r10d, dword [rax + r8*4]
mov rcx, rbp
inc r10d
mov dword [rsp + 0x28], edi
lea r8d, [rdx + 0x7b2]
mov dword [rsp + 0x20], r10d
lea rdx, str.__04d__02d__02d__02d:_02d:_02d_:
call fcn.14000a510
mov r9, qword [rsp + 0x40]
lea rcx, [rsp + 0x50]
movsxd r8, ebx
mov edx, 1
call fcn.1400596c0
mov rcx, qword [rsp + 0x40]
call fcn.140056f18
mov eax, ebx
jmp 0x14000a97f
lea rcx, str.dbglogf_failed_n
xor eax, eax
nop
cmp eax, 0x800
jae 0x14000a941
inc rcx
inc eax
cmp byte [rcx], 0
jne 0x14000a930
lea ecx, [rax + 1]
cmp ecx, 0x800
jbe 0x14000a975
lea r9, str.ymemory
mov dword [rsp + 0x20], 0x14c
lea r8, str.YPANIC:_s:_d_n
mov edx, 0x14c
lea rcx, str.ymemory
call fcn.14000a9a0
jmp 0x14000a97a
mov byte [rsp + rax + 0x50], 0
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.14004ee60
add rsp, 0x860
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret