Function at 0x14000c55c
Capabilities:
Create thread
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, rcx
mov rbp, r8
mov ecx, dword [0x14003d17c]
mov r13, rdx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
mov r14, rax
test rax, rax
jne 0x14000c5b4
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x30]
and dword [rsp + 0x30], eax
lea r14, [rsp + 0x30]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov edi, 1
add dword [r14], edi
mov eax, dword [r14]
mov r10, qword [0x14003d048]
lea rcx, [0x14003d048]
lea rdx, [0x140035650]
mov r12d, 0x1df
cmp r10, rcx
je 0x14000c615
test byte [r10 + 0x1c], dil
je 0x14000c615
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14000c5fa
mov eax, ecx
mov ecx, r12d
sub rcx, rax
jmp 0x14000c5fc
xor ecx, ecx
lea r9, [rcx + rdx]
mov edx, reloc.ProximityCommon.dll_Ordinal_20
mov rcx, qword [r10 + 0x10]
lea r8, [0x140036090]
call fcn.1400012b0
mov esi, 0x80004004
xor eax, eax
lock cmpxchg dword [0x14003d98c], edi
jne 0x14000c6e5
mov ecx, reloc.ProximityCommon.dll_Ordinal_24
call fcn.140030ea0
xor ecx, ecx
mov rdi, rax
test rax, rax
je 0x14000c64b
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
jmp 0x14000c64e
mov rdi, rcx
mov rax, rdi
neg rax
sbb esi, esi
not esi
and esi, 0x8007000e
test rdi, rdi
je 0x14000c740
cmp qword [rdi], r15
je 0x14000c699
test r15, r15
je 0x14000c681
mov rax, qword [r15]
mov rcx, r15
mov rax, qword [rax + 8]
call qword [0x140034e68]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000c696
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov qword [rdi], r15
lea rdx, [rdi + 8]
mov rcx, r13
call qword [sym.imp.api_ms_win_shcore_obsolete_l1_1_0.dll_SHStrDupW]
test eax, eax
js 0x14000c744
lea rdx, [rdi + 0x10]
mov rcx, rbp
call qword [sym.imp.api_ms_win_shcore_obsolete_l1_1_0.dll_SHStrDupW]
test eax, eax
js 0x14000c744
xor r9d, r9d
lea rcx, [0x14000c4c0]
mov rdx, rdi
lea r8d, [r9 + 4]
call qword [sym.imp.api_ms_win_shcore_thread_l1_1_0.dll_SHCreateThread]
test eax, eax
je 0x14000c722
xor esi, esi
mov edi, 1
lea r15, [0x14003d048]
mov rcx, qword [0x14003d048]
cmp rcx, r15
je 0x14000c826
test byte [rcx + 0x1c], dil
je 0x14000c826
mov eax, dword [r14]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14000c800
mov eax, edx
sub r12, rax
jmp 0x14000c803
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
test esi, esi
jns 0x14000c6e0
mov r10, qword [0x14003d048]
lea r15, [0x14003d048]
cmp r10, r15
je 0x14000c799
test byte [r10 + 0x1c], 8
je 0x14000c799
mov eax, dword [r14]
inc eax
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14000c778
mov eax, ecx
mov rcx, r12
sub rcx, rax
jmp 0x14000c77a
xor ecx, ecx
lea r9, [0x140035650]
mov edx, reloc.ProximityCommon.dll_Ordinal_21
add r9, rcx
lea r8, [0x140036090]
mov rcx, qword [r10 + 0x10]
call fcn.1400012b0
lea r8, [rsp + 0x88]
mov rdx, rbp
mov rcx, r13
call fcn.14000c160
mov esi, eax
test rdi, rdi
je 0x14000c7ee
mov rcx, qword [rdi + 0x10]
and qword [rdi + 0x10], 0
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov rcx, qword [rdi + 8]
and qword [rdi + 8], 0
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000c7e6
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rcx, rdi
call fcn.140030104
xor eax, eax
mov edi, 1
xchg dword [0x14003d98c], eax
jmp 0x14000c6ec
xor r12d, r12d
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, r12
mov dword [rsp + 0x20], esi
mov edx, reloc.ProximityCommon.dll_Ordinal_22
lea r8, [0x140036090]
call fcn.140001304
or eax, 0xffffffff
add dword [r14], eax
cmp ebx, eax
je 0x14000c847
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14000c847
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
lea r11, [rsp + 0x40]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret