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

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140137010]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp dword [0x14013edc0], 0
jne 0x14004b0a1
xor edx, edx
lea rcx, [0x14013edc0]
mov r8d, 0x26e8
call sub.VCRUNTIME140.dll_memset
movsd xmm0, qword [0x1400de888]
mov eax, dword [0x1400de890]
movsd qword [0x14013edc8], xmm0
mov dword [0x14013edd0], eax
call fcn.14004eea0
test eax, eax
je 0x14004b0c9
lea rcx, [0x1401403f0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1401403e8], 1
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401403d8], eax
cmp eax, 0xffffffff
je 0x14004b0b8
mov dword [0x1401403d4], 1
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401403e0], eax
cmp eax, 0xffffffff
je 0x14004b0b8
mov ecx, dword [0x1401403d8]
lea rdx, [0x1401418a0]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x30], rdi
mov dword [0x1401403dc], 1
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, 0xf5
lea ecx, [rdx + 0x78]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [0x1401403c8], rax
xor ebx, ebx
lea rdi, str.03000000fa2d00000100000000000000_3DRUDDER_leftx:a0_lefty:a1_rightx:a5_righty:a2_platform:Windows_
nop dword [rax]
movsxd rcx, dword [0x1401403d0]
mov rdx, qword [rbx + rdi]
imul rcx, rcx, 0xf5
add rcx, rax
call fcn.14004b240
test eax, eax
je 0x14004af24
inc dword [0x1401403d0]
add rbx, 8
cmp rbx, 0xb68
jae 0x14004af3a
mov rax, qword [0x1401403c8]
jmp 0x14004af00
lea rbx, [0x14013f2b0]
lea rdi, [0x140140390]
nop dword [rax + rax]
cmp dword [rbx - 0xe4], 0
je 0x14004af68
lea rcx, [rbx - 0xe8]
call fcn.14004b180
mov qword [rbx], rax
add rbx, 0x120
cmp rbx, rdi
jle 0x14004af50
mov rdi, qword [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
mov dword [0x14013edc0], 1
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp dword [0x14013edc0], 0
mov rax, qword [rsp + 0x20]
mov qword [0x140140418], rax
jne 0x14004afcb
xor edx, edx
mov ecx, 0x10001
call fcn.14004aaa0
mov eax, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400b5770
add rsp, 0x38
ret
xorps xmm0, xmm0
lea rcx, [0x14013ee20]
movups xmmword [0x14013f170], xmm0
xor eax, eax
xor edx, edx
movups xmmword [0x14013f180], xmm0
mov r8d, 0x340
mov qword [0x14013f190], rax
movdqa xmm0, xmmword [0x140101410]
movdqa xmmword [0x14013f160], xmm0
call sub.VCRUNTIME140.dll_memset
movdqa xmm0, xmmword [0x140101490]
xor eax, eax
movdqa xmmword [0x14013ee30], xmm0
xorps xmm0, xmm0
movups xmmword [0x14013edd8], xmm0
mov dword [0x14013ee40], 1
movups xmmword [0x14013ede8], xmm0
mov dword [0x14013ee4c], 1
movups xmmword [0x14013ee08], xmm0
mov dword [0x14013ee50], 1
movups xmmword [0x14013edf8], xmm0
mov qword [0x14013ee18], rax
movdqa xmm0, xmmword [0x140101510]
movdqa xmmword [0x14013ede0], xmm0
mov dword [0x14013edd8], 8
mov dword [0x14013eddc], 8
mov dword [0x14013ee10], 1
mov dword [0x14013f198], 0xffffffff
mov dword [0x14013ee58], 1
mov eax, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400b5770
add rsp, 0x38
ret
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.14004ea00
call fcn.14004a700
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400b5770
add rsp, 0x38
ret