Function at 0x1400411f0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x14009efd0], 0
je 0x140041207
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
lea rcx, [0x14009eff8]
xor edx, edx
mov qword [0x14009efd0], rax
mov r8d, 0x240
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x14009f260]
mov r8d, 0x2848
call sub.VCRUNTIME140.dll_memset
mov rax, qword [0x1400a1ec8]
mov rcx, qword [0x1400a1ec0]
movsd xmm1, qword [0x140093810]
mov qword [0x14009efe0], rax
mov rax, qword [0x1400a1ed0]
mov qword [0x14009efe8], rax
mov rax, qword [0x1400a1ed8]
mov qword [0x14009eff0], rax
movsd qword [0x14009f258], xmm1
mov qword [0x14009efd8], rcx
movups xmm2, xmmword [0x1400937f0]
movups xmm0, xmmword [0x140093800]
movups xmmword [0x14009f238], xmm2
movups xmmword [0x14009f248], xmm0
test rcx, rcx
jne 0x1400412cb
lea rax, [0x14003ede0]
mov qword [0x14009efd8], rax
lea rax, [0x14003ee00]
mov qword [0x14009efe0], rax
lea rax, [0x14003edf0]
mov qword [0x14009efe8], rax
psrldq xmm2, 8
movd r8d, xmm2
lea eax, [r8 - 0x60000]
cmp eax, 4
jbe 0x140041306
cmp r8d, 0x60005
je 0x1400415db
lea rdx, str.Invalid_platform_ID_0x_08X
mov ecx, 0x10003
call fcn.140039140
xor eax, eax
add rsp, 0x28
ret
cmp r8d, 0x60005
je 0x1400415db
cmp r8d, 0x60000
jne 0x14004132e
lea rdx, [0x14009eff8]
lea ecx, [r8 + 1]
call fcn.140034ac0
jmp 0x14004137c
lea r9, [0x140085250]
xor eax, eax
mov rcx, r9
nop word [rax + rax]
cmp dword [rcx], r8d
je 0x14004136a
inc rax
add rcx, 0x10
cmp rax, 1
jb 0x140041340
lea rdx, str.The_requested_platform_is_not_supported
mov ecx, 0x1000e
call fcn.140039140
xor eax, eax
add rsp, 0x28
ret
add rax, rax
lea rdx, [0x14009eff8]
mov ecx, r8d
call qword [r9 + rax*8 + 8]
test eax, eax
je 0x1400415db
call qword [0x14009f000]
test eax, eax
je 0x1400415d6
lea rcx, [0x1400a0988]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1400a0980], 1
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400a0970], eax
cmp eax, 0xffffffff
je 0x1400415c5
mov dword [0x1400a096c], 1
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400a0978], eax
cmp eax, 0xffffffff
je 0x1400415c5
mov ecx, dword [0x1400a0970]
lea rdx, [0x1400a1ab0]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x20], rdi
mov dword [0x1400a0974], 1
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rdx, qword [0x14009eff0]
mov ecx, 0x2d0a5
call qword [0x14009efd8]
test rax, rax
je 0x140041430
xor edx, edx
mov r8d, 0x2d0a5
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rdx, rax
jmp 0x14004143e
xor edx, edx
mov ecx, 0x10005
call fcn.140039140
xor edx, edx
mov qword [0x1400a0960], rdx
lea rdi, str.03000000300f00000a01000000000000_3_In_1_Conversion_Box_a:b2_b:b1_back:b9_dpdown:h0.4_dpleft:h0.8_dpright:h0.2_dpup:h0.1_leftshoulder:b6_leftstick:b10_lefttrigger:b4_leftx:a0_lefty:a1_rightshoulder:b7_rightstick:b11_righttrigger:b5_rightx:a3_righty:a2_start:b8_x:b3_y:b0_platform:Windows_
xor ebx, ebx
nop
movsxd rax, dword [0x1400a0968]
imul rcx, rax, 0xf5
add rcx, rdx
mov rdx, qword [rbx + rdi]
call fcn.140042a70
test eax, eax
je 0x140041474
inc dword [0x1400a0968]
add rbx, 8
cmp rbx, 0x1788
jae 0x14004148a
mov rdx, qword [0x1400a0960]
jmp 0x140041450
lea rcx, [0x1400a09b8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
lea rcx, [0x14009f2a8]
xorps xmm0, xmm0
mov qword [0x1400a09b0], rax
movups xmmword [0x14009f6f8], xmm0
xor eax, eax
mov dword [0x14009efd0], 1
xor edx, edx
mov qword [0x14009f728], rax
mov r8d, 0x450
mov dword [0x14009f6f8], 0x30001
movups xmmword [0x14009f708], xmm0
mov dword [0x14009f6fc], 0x36001
movups xmmword [0x14009f718], xmm0
mov qword [0x14009f700], 1
call sub.VCRUNTIME140.dll_memset
movdqa xmm0, xmmword [0x140050630]
xor eax, eax
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x38]
movdqa xmmword [0x14009f2c0], xmm0
xorps xmm0, xmm0
movups xmmword [0x14009f270], xmm0
mov qword [0x14009f2a0], rax
mov eax, 1
movups xmmword [0x14009f290], xmm0
mov dword [0x14009f2d0], 1
movups xmmword [0x14009f280], xmm0
mov dword [0x14009f2dc], 1
movdqa xmm0, xmmword [str._b_b_b_b]
movdqa xmmword [0x14009f260], xmm0
mov dword [0x14009f2e0], 1
mov dword [0x14009f2a8], 0x80000000
mov dword [0x14009f2ac], 0x80000000
mov dword [0x14009f270], 0x18
mov dword [0x14009f274], 8
mov dword [0x14009f298], 1
mov dword [0x14009f730], 0xffffffff
mov dword [0x14009f2ec], 1
add rsp, 0x28
ret
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.140039140
call fcn.1400436f0
xor eax, eax
add rsp, 0x28
ret