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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
call fcn.1400104b0
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebp, ebp
lea esi, [rbp - 1]
test rax, rax
jne 0x1400102fa
lea ecx, [rbp + 0x20]
call fcn.140061538
mov rbx, rax
mov qword [rax], rdi
mov dword [rax + 0xc], ebp
mov dword [rax + 0x10], esi
mov byte [rax + 8], bpl
mov qword [rax + 0x18], rbp
call fcn.1400104b0
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.1400104b0
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010310
mov byte [rax + 8], bpl
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rdi + 8], eax
mov eax, dword [rdi + 0x2c]
cmp eax, 3
jne 0x14001032c
mov rcx, qword [rdi + 0x38]
mov rax, qword [rcx]
call qword [rax]
jmp 0x140010378
mov ecx, 0x160
cmp eax, 2
jne 0x14001034b
call fcn.140061538
mov qword [rsp + 0x50], rax
mov rcx, rax
call fcn.140011f50
nop
jmp 0x140010378
cmp eax, 1
jne 0x140010365
call fcn.140061538
mov qword [rsp + 0x50], rax
mov rcx, rax
call fcn.140011d90
nop
jmp 0x140010378
call fcn.140061538
mov qword [rsp + 0x50], rax
mov rcx, rax
call fcn.140010770
nop
mov qword [rdi + 0x30], rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + InitCommonControls]
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rdx, qword [rdi + 0x48]
mov rcx, qword [rdi + 0x30]
mov qword [rsp + 0x30], rcx
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400103b4
mov eax, dword [rax]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x1400103bc
mov dword [rsp + 0x20], 1
lea rax, [rsp + 0x20]
mov qword [rcx + 0x10], rax
mov byte [rsp + 0x24], 0
mov qword [rsp + 0x28], rbp
mov rax, qword [rcx + 0x10]
mov qword [rax + 8], rdx
call fcn.140010e00
nop
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
mov rcx, qword [rdi + 0x30]
cmp dword [rdi + 0x2c], 3
je 0x14001040f
test rcx, rcx
je 0x140010456
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
jmp 0x140010456
test rcx, rcx
je 0x14001041e
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rdi + 0x38], rbp
mov rbx, qword [rdi + 0x40]
mov qword [rdi + 0x40], rbp
test rbx, rbx
je 0x140010456
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140010456
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x140010456
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov qword [rdi + 0x30], rbp
mov dword [rdi + 8], ebp
call fcn.1400104b0
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
call fcn.1400104b0
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001049b
call fcn.1400104b0
xor edx, edx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, 0x20
mov rcx, rbx
call fcn.140061530
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret