Function at 0x1800412c0
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1fb0]
mov eax, 0x20b0
call fcn.180093840
sub rsp, rax
mov rax, qword [0x1800bf580]
xor rax, rsp
mov qword [rbp + 0x1fa0], rax
lea eax, [r8 + 0xc]
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x50], eax
mov r13, r9
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
cmp r8d, eax
jae case.0x180041361.201
mov r15d, dword [rsp + 0x50]
lea rdx, [0x180000000]
movabs r8, 0x610065006c
movabs r14, 0x6c006c0064
nop dword [rax + rax]
lea eax, [rbx - 0xc7]
cmp eax, 0x24
ja case.0x180041361.208
movzx eax, byte [rdx + rax + 0x4169c]
mov ecx, dword [rdx + rax*4 + 0x41674]
add rcx, rdx
jmp rcx
test rdi, rdi
je 0x180041378
mov rdx, qword [rdi + 0x278]
mov rcx, qword [rdi + 0x270]
jmp 0x18004137c
xor edx, edx
xor ecx, ecx
call qword [sym.imp.OPENGL32.dll_wglMakeCurrent]
mov ecx, dword [0x1800bfc1c]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x180041615
mov eax, dword [0x1800970d0]
lea rdx, [rbp - 0x7c]
mov qword [rsp + 0x7c], r8
mov r8d, 0xa
mov dword [rsp + 0x78], eax
mov dword [rbp - 0x7e], 0x79
lea ecx, [r8 - 7]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ltow]
jmp 0x180041615
mov eax, dword [r13]
mov r14d, eax
shr r14d, 3
and eax, 7
mov dword [rsp + 0x54], r14d
mov dword [rsp + 0x58], eax
movabs r14, 0x6c006c0064
jmp case.0x180041361.208
mov r14d, dword [rsp + 0x54]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r8, rdi
mov dword [rsp + 0x40], 1
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], r14d
mov ecx, 0x68
call fcn.180039610
test eax, eax
je 0x180041634
movsx eax, byte [rsp + 0x30]
lea r9, [rsp + 0x40]
mov ecx, dword [rsp + 0x58]
lea r8, [rsp + 0x30]
bts eax, ecx
mov dword [rsp + 0x28], 0x2c
mov byte [rsp + 0x30], al
lea rcx, [rsp + 0x68]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x38], 1
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], r14d
call fcn.1800399e0
mov eax, dword [rax]
test eax, eax
je 0x180041634
mov dword [rsp + 0x48], 1
movabs r14, 0x6c006c0064
jmp 0x180041615
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x48], rax
jmp case.0x180041361.208
mov dword [rsp + 0x28], 0x96
lea rdx, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x20], 0x4e
xor r8d, r8d
xor ecx, ecx
call fcn.1800295d0
mov r12, rax
mov r14d, 0x6c
nop word [rax + rax]
mov ecx, r14d
sub ecx, 0x6c
je 0x18004156e
sub ecx, 1
je 0x180041559
cmp ecx, 1
jne 0x1800415a1
test r15d, r15d
jle 0x1800415b3
mov rdx, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x10]
mov rax, rdx
sub rax, rcx
movsxd rdi, r15d
cmp rdi, rax
ja 0x18004153b
lea rax, [rcx + rdi]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0x10
jb 0x18004151d
mov rax, qword [rsi]
lea rbx, [rax + rcx]
mov r8, rdi
mov rcx, rbx
lea rdx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
mov rdi, qword [rsp + 0x60]
jmp 0x1800415a1
lea r9, [rbp - 0x60]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.1800027f0
mov rdi, qword [rsp + 0x60]
jmp 0x1800415a1
mov r8d, 0x2000
lea rdx, [rbp - 0x60]
mov rcx, r13
call r12
mov r15d, eax
jmp 0x1800415a1
mov rax, qword [rdi]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov r9d, 0x3d
lea rax, [rsp + 0x40]
mov dword [rsp + 0x38], 0x14
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call fcn.180032b40
cmp al, 2
jne 0x1800415b3
inc r14d
cmp r14d, 0x6f
jb 0x1800414d0
jmp 0x1800414c1
mov ebx, 0xe0
movabs r14, 0x6c006c0064
jmp 0x180041615
mov ecx, dword [r13]
mov eax, dword [rdi]
test ecx, ecx
je 0x18004163e
cdq
mov dword [rsp + 0x40], ecx
idiv ecx
lea r9, [rsp + 0x38]
mov r8d, 0xea
mov dword [rsp + 0x38], edx
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.1800412c0
mov dword [rsp + 0x48], eax
jmp 0x180041615
mov r8d, 0xa
lea rdx, [rbp - 0x7a]
lea ecx, [r8 - 8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ltow]
mov dword [rbp - 0x78], 0x2e
mov qword [rbp - 0x76], r14
movabs r8, 0x610065006c
lea rdx, [0x180000000]
inc ebx
cmp ebx, dword [rsp + 0x50]
jb 0x180041340
jmp case.0x180041361.201
mov dword [rsp + 0x48], 0
jmp case.0x180041361.201
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rbp + 0x1fa0]
xor rcx, rsp
call fcn.1800938b0
mov rbx, qword [rsp + 0x2100]
add rsp, 0x20b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret