Function at 0x14001af1c
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
push r12
push r14
sub rsp, 0x30
lea rax, [0x140033940]
mov rdi, rcx
mov qword [rcx], rax
lea rax, fcn.140007a20
mov qword [rcx + 0x10], rax
lea rax, [0x140033908]
mov qword [rcx + 0x18], rax
lea rax, [0x140033900]
mov qword [rcx + 0x20], rax
mov ecx, dword [0x14003d17c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
xor ebp, ebp
mov rsi, rax
test rax, rax
jne 0x14001af97
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x50]
mov ecx, ebx
mov dword [rsp + 0x50], ebp
lea rsi, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [rsi]
mov rcx, qword [0x14003d048]
lea r12, [0x14003d048]
cmp rcx, r12
je 0x14001b049
test byte [rcx + 0x1c], 1
lea r8, [0x140035650]
mov r14d, 0x1df
je 0x14001b009
mov eax, dword [rsi]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14001afda
mov eax, edx
mov edx, r14d
sub rdx, rax
jmp 0x14001afdd
mov rdx, rbp
mov rcx, qword [rcx + 0x10]
lea r9, [rdx + r8]
mov edx, 0xa
mov qword [rsp + 0x20], rdi
lea r8, [0x140036cb8]
call fcn.140001370
mov rcx, qword [0x14003d048]
lea r8, [0x140035650]
cmp rcx, r12
je 0x14001b049
test byte [rcx + 0x1c], 1
je 0x14001b049
mov eax, dword [rsi]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14001b028
mov eax, edx
sub r14, rax
jmp 0x14001b02b
mov r14, rbp
mov rcx, qword [rcx + 0x10]
lea r9, [r14 + r8]
lea r8, [0x140036cb8]
mov qword [rsp + 0x20], rdi
mov edx, ntohl
call fcn.140001370
dec dword [rsi]
cmp ebx, 0xffffffff
je 0x14001b067
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14001b067
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov rcx, qword [rdi + 0x150]
mov qword [rdi + 0x150], rbp
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001b085
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rdi + 0x148]
mov qword [rdi + 0x148], rbp
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001b0a3
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rdi + 0x140]
mov qword [rdi + 0x140], rbp
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001b0c1
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rdi + 0x138]
mov qword [rdi + 0x138], rbp
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001b0df
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rdi + 0x128]
test rcx, rcx
je 0x14001b0ff
mov qword [rdi + 0x128], rbp
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rcx, qword [rdi + 0x120]
test rcx, rcx
je 0x14001b11f
mov qword [rdi + 0x120], rbp
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rcx, qword [rdi + 0x118]
test rcx, rcx
je 0x14001b13f
mov qword [rdi + 0x118], rbp
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
lea rbx, [rdi + 0xb8]
lea rax, [0x1400338c8]
mov rcx, rbx
mov qword [rbx], rax
lea rax, [0x1400338f0]
mov qword [rbx + 0x18], rax
call fcn.140025ec8
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x14001b17d
mov qword [rbx + 0x58], rbp
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14001b197
mov qword [rbx + 0x50], rbp
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rcx, qword [rbx + 0x40]
mov qword [rbx + 0x40], rbp
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov rcx, qword [rbx + 0x38]
mov qword [rbx + 0x38], rbp
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov rcx, qword [rdi + 0xb0]
test rcx, rcx
je 0x14001b1d3
mov qword [rdi + 0xb0], rbp
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rcx, qword [rdi + 0x58]
test rcx, rcx
je 0x14001b1ed
mov qword [rdi + 0x58], rbp
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov edx, dword [rdi + 0x40]
lea rbx, [0x1400338b8]
mov qword [rdi + 0x38], rbx
test edx, edx
je 0x14001b21b
cmp dword [rdi + 0x44], ebp
jl 0x14001b218
mov rcx, qword [0x14003da90]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [0x140034e68]
mov dword [rdi + 0x40], ebp
mov edx, dword [rdi + 0x30]
mov qword [rdi + 0x28], rbx
test edx, edx
je 0x14001b242
cmp dword [rdi + 0x34], ebp
jl 0x14001b23f
mov rcx, qword [0x14003da90]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [0x140034e68]
mov dword [rdi + 0x30], ebp
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov dword [rdi + 0xc], 0xc0000001
add rsp, 0x30
pop r14
pop r12
pop rdi
ret