Function at 0x140022ff0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
lea rax, vtable.TgStats.0
mov qword [rcx], rax
mov rax, qword [0x1401b08f8]
test rax, rax
je 0x14002301b
mov ecx, dword [rax + 0x38]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdi, vtable.UtStringStat.0
mov qword [rsi + 0x470], rdi
mov rax, qword [rsi + 0x4d0]
cmp rax, 0x10
jb 0x140023071
lea rcx, [rsi + 0x4b8]
mov rcx, qword [rcx]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14002306c
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140023453
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140117b2c
lea rcx, [rsi + 0x470]
mov qword [rsi + 0x4c8], 0
mov qword [rsi + 0x4d0], 0xf
mov byte [rsi + 0x4b8], 0
call fcn.140040fd0
mov qword [rsi + 0x408], rdi
mov rax, qword [rsi + 0x468]
cmp rax, 0x10
jb 0x1400230e9
lea rcx, [rsi + 0x450]
mov rcx, qword [rcx]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1400230e4
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140023453
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140117b2c
lea rcx, [rsi + 0x408]
mov qword [rsi + 0x460], 0
mov qword [rsi + 0x468], 0xf
mov byte [rsi + 0x450], 0
call fcn.140040fd0
mov qword [rsi + 0x3a0], rdi
mov rax, qword [rsi + 0x400]
cmp rax, 0x10
jb 0x140023161
lea rcx, [rsi + 0x3e8]
mov rcx, qword [rcx]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14002315c
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140023453
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140117b2c
lea rcx, [rsi + 0x3a0]
mov qword [rsi + 0x3f8], 0
mov qword [rsi + 0x400], 0xf
mov byte [rsi + 0x3e8], 0
call fcn.140040fd0
mov qword [rsi + 0x338], rdi
mov rax, qword [rsi + 0x398]
cmp rax, 0x10
jb 0x1400231d9
lea rcx, [rsi + 0x380]
mov rcx, qword [rcx]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1400231d4
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140023453
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140117b2c
lea rcx, [rsi + 0x338]
mov qword [rsi + 0x390], 0
mov qword [rsi + 0x398], 0xf
mov byte [rsi + 0x380], 0
call fcn.140040fd0
mov qword [rsi + 0x2d0], rdi
mov rax, qword [rsi + 0x330]
cmp rax, 0x10
jb 0x140023251
lea rcx, [rsi + 0x318]
mov rcx, qword [rcx]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14002324c
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140023453
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140117b2c
lea rcx, [rsi + 0x2d0]
mov qword [rsi + 0x328], 0
mov qword [rsi + 0x330], 0xf
mov byte [rsi + 0x318], 0
call fcn.140040fd0
lea rdi, [rsi + 0x278]
lea rax, vtable.UtSetStat_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___.0
mov qword [rsi + 0x278], rax
lea rcx, [rsi + 0x2c0]
mov rax, qword [rsi + 0x2c0]
mov r8, qword [rax + 8]
mov rdx, rcx
call fcn.140012110
mov rcx, qword [rsi + 0x2c0]
mov edx, 0x40
call fcn.140117b2c
mov rcx, rdi
call fcn.140040fd0
lea rcx, [rsi + 0x200]
call fcn.140040fd0
lea rcx, [rsi + 0x1b0]
call fcn.140040fd0
lea rcx, [rsi + 0x160]
call fcn.140040fd0
lea rcx, [rsi + 0x110]
call fcn.140040fd0
lea rcx, [rsi + 0xc0]
call fcn.140040fd0
lea rcx, [rsi + 0x78]
call fcn.140040fd0
lea rax, vtable.UtStatsList.0
mov qword [rsi], rax
mov rax, qword [rsi + 0x70]
cmp rax, 0x10
jb 0x140023353
lea rcx, [rsi + 0x58]
mov rcx, qword [rcx]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14002334e
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140023453
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140117b2c
mov qword [rsi + 0x68], 0
mov qword [rsi + 0x70], 0xf
mov byte [rsi + 0x58], 0
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx + 8]
mov qword [rax], 0
mov rdi, qword [rcx]
test rdi, rdi
je 0x14002343a
mov rbx, qword [rdi]
mov edx, 0x18
mov rcx, rdi
call fcn.140117b2c
test rbx, rbx
je 0x140023436
mov rdi, qword [rbx]
mov edx, 0x18
mov rcx, rbx
call fcn.140117b2c
test rdi, rdi
je 0x140023436
mov rbx, qword [rdi]
mov edx, 0x18
mov rcx, rdi
call fcn.140117b2c
test rbx, rbx
je 0x140023436
mov rdi, qword [rbx]
mov edx, 0x18
mov rcx, rbx
call fcn.140117b2c
test rdi, rdi
je 0x140023436
mov rbx, qword [rdi]
mov edx, 0x18
mov rcx, rdi
call fcn.140117b2c
test rbx, rbx
je 0x140023436
mov rdi, qword [rbx]
mov edx, 0x18
mov rcx, rbx
call fcn.140117b2c
test rdi, rdi
je 0x140023436
mov rbx, qword [rdi]
mov edx, 0x18
mov rcx, rdi
call fcn.140117b2c
test rbx, rbx
je 0x140023436
mov rdi, qword [rbx]
mov edx, 0x18
mov rcx, rbx
call fcn.140117b2c
test rdi, rdi
jne 0x140023382
mov rcx, qword [rsi + 0x48]
mov edx, 0x18
call fcn.140117b2c
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140040fd0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3