Function at 0x140209f90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x140251b88]
test ecx, ecx
je 0x140209fbf
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140209fd8
cmp byte [rax + 8], 0
je 0x140209fd8
add rax, 9
jmp 0x14020a080
lea rcx, case.0x1401e54b1.169
call fcn.140200490
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140209fb0
mov ecx, dword [0x140251b88]
test ecx, ecx
je 0x14020a061
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14020a07e
mov rdi, rax
test rax, rax
jne 0x14020a03e
mov rax, qword [0x14031ef28]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.14000ea30
test rax, rax
je 0x14020a097
mov rdi, rax
lea rax, case.0x1401e54b1.169
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x140251b88]
test ecx, ecx
je 0x14020a087
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
xor ecx, ecx
test rsi, rsi
je 0x14020a054
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, ecx
mov ecx, eax
lea rax, [rdi + 9]
mov byte [rdi + 8], 1
mov byte [rdi + 9], cl
jmp 0x14020a080
lea rcx, case.0x1401e54b1.169
call fcn.140200490
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140209ff3
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, case.0x1401e54b1.169
call fcn.140200490
mov ecx, eax
jmp 0x14020a036
mov ecx, 8
mov edx, 0x10
call fcn.140226c80
ud2

Function at 0x14020a230
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x140251bc8]
test ecx, ecx
je 0x14020a332
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14020a262
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14020a32c
mov ecx, dword [0x140251bc8]
test ecx, ecx
je 0x14020a354
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14020a371
mov rdi, rax
test rax, rax
jne 0x14020a2d8
mov rax, qword [0x14031ef28]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.14000ea30
test rax, rax
je 0x14020a390
mov rdi, rax
lea rax, [0x140251bb0]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x140251bc8]
test ecx, ecx
je 0x14020a37d
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x14020a2f2
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x14020a2f4
mov rax, qword [rsi + 8]
jmp 0x14020a2f4
xor eax, eax
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x14020a32c
test rcx, rcx
je 0x14020a32c
lock dec qword [rcx]
jne 0x14020a32c
lea rcx, [rsp + 0x30]
call fcn.1401c0ee0
add rdi, 0x10
jmp 0x14020a373
lea rcx, [0x140251bb0]
call fcn.140200490
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14020a254
jmp 0x14020a262
lea rcx, [0x140251bb0]
call fcn.140200490
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14020a281
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x140251bb0]
call fcn.140200490
mov ecx, eax
jmp 0x14020a2d0
mov ecx, 8
mov edx, 0x18
call fcn.140226c80
ud2