Function at 0x14007fc40
Capabilities:
Get thread local storage value
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x310
movaps xmmword [rax - 0x48], xmm6
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rax, qword [rsp + 0x378]
xor r12d, r12d
mov r13, qword [rsp + 0x388]
mov rbp, r9
mov qword [rsp + 0xc8], rax
mov ebx, edx
mov rax, qword [rsp + 0x380]
mov rsi, rcx
mov qword [rsp + 0xc0], rax
mov r14d, r12d
mov rax, qword [rsp + 0x398]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xb8], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movups xmm0, xmmword [0x1400b3870]
mov edi, eax
mov dword [rsp + 0xb0], eax
mov eax, dword [0x1400b3880]
lea rcx, [rsp + 0xf4]
xor edx, edx
movaps xmmword [rsp + 0xe0], xmm0
mov r8d, 0x1f4
mov dword [rsp + 0xf0], eax
call sub.msvcrt.dll_memset
cmp qword [0x1400c9a80], r12
mov r15d, r12d
mov dword [rsp + 0xb4], r12d
je 0x1400800b7
test rsi, rsi
je 0x1400800b7
or dword [rsi + 4], ebx
xor ebx, ebx
test rbp, rbp
je 0x14007fdf8
or rdi, 0xffffffffffffffff
inc rdi
cmp byte [rdi + rbp], bl
jne 0x14007fd36
inc edi
mov r12d, edi
lea rbx, [rdi + rdi]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
xor ebx, ebx
mov r14, rax
test rax, rax
je 0x14007fd9a
mov r9, rbp
lea r8, [0x1400b3528]
mov edx, r12d
mov rcx, rax
call fcn.14002ba4c
test eax, eax
jns 0x14007fd92
lea ecx, [rdi - 1]
mov word [r14 + rcx*2], bx
mov qword [rsp + 0xb8], r14
mov edi, dword [rsp + 0xb0]
test r13, r13
je 0x14007fe0a
mov rcx, r13
call fcn.14007db10
test rax, rax
je 0x14007fe02
mov rcx, rax
lea rdx, [rsp + 0xe0]
mov rax, qword [0x1400c9ac8]
mov r8d, 0x104
call qword [str.PN_t_]
mov edx, 0x5c
lea rcx, [rsp + 0xe0]
call qword [sym.imp.msvcrt.dll_wcsrchr]
nop dword [rax + rax]
mov r15, rax
test rax, rax
je 0x14007fe02
add r15, 2
jmp 0x14007fe0a
mov qword [rsp + 0xb8], rbx
jmp 0x14007fda1
lea r15, [rsp + 0xe0]
mov eax, dword [rsi]
mov r9d, 0x65000000
cmp eax, r9d
je 0x14007fe1b
test eax, eax
jne 0x14007fe4b
mov edx, dword [0x1400c9a7c]
mov ecx, eax
bt edx, 0x13
jae 0x14007fe3d
cmp eax, r9d
mov ecx, 0x2000000
mov r8d, 0x6b000000
cmove ecx, r8d
mov dword [rsi], ecx
mov eax, ecx
mov r13d, 1
bt edx, 0x12
jb 0x14007fe53
mov r13d, dword [rsp + 0xb4]
mov r12d, dword [rsp + 0x370]
add eax, 0xff000000
test eax, 0xfeffffff
jne 0x14007feda
mov eax, dword [0x1400c5b88]
cmp eax, 0xffffffff
jne 0x14007fe84
call fcn.14007f728
mov ecx, eax
or eax, 0xffffffff
lock cmpxchg dword [0x1400c5b88], ecx
mov eax, dword [0x1400c5b88]
test eax, eax
je 0x14007feda
mov r8, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsi + 8]
call fcn.14007fb78
mov rbx, rax
mov r8d, edi
mov edx, r12d
mov rcx, rax
call fcn.140085834
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor ebx, ebx
mov ecx, dword [0x1400c5b8c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
je 0x14007ff31
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14007ff31
mov rax, qword [rax]
mov rax, qword [rax + rcx*8 - 8]
test rax, rax
je 0x14007ff31
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14007ff31
mov rax, qword [rax + 0x10]
mov rdx, qword [rax + rcx*8 - 8]
test rdx, rdx
je 0x14007ff31
cmp qword [rdx], rbx
lea rdi, [0x1400b3530]
mov rbp, rdi
cmovne rbp, qword [rdx]
jmp 0x14007ff3b
lea rdi, [0x1400b3530]
mov rbp, rdi
mov ecx, dword [0x1400c5b8c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
je 0x14007ff6f
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14007ff6f
mov rax, qword [rax]
mov rdx, qword [rax + rcx*8 - 8]
test rdx, rdx
je 0x14007ff6f
cmp qword [rdx], rbx
cmovne rdi, qword [rdx]
mov rax, qword [0x1400c9a80]
mov rbx, qword [rax]
call fcn.14007f5c4
movaps xmm6, xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x3a0]
lea r8, [0x14009cecc]
mov r9d, dword [rsi]
mov edx, FDICreate
movsd qword [rsp + 0x98], xmm6
mov dword [rsp + 0x90], ecx
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0x88], rcx
mov ecx, dword [rsp + 0x390]
mov dword [rsp + 0x80], ecx
lea rcx, str._unknown_
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x70], rcx
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0x68], rcx
mov ecx, dword [0x1400c9a8c]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0xc0]
mov dword [rsp + 0x58], ecx
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x50], rcx
mov ecx, dword [rsi + 4]
mov dword [rsp + 0x48], ecx
mov rcx, qword [0x1400c9a80]
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
mov rax, qword [rbx + 0x28]
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
call qword [str.PN_t_]
mov ebx, eax
test r14, r14
je 0x140080067
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
cmp ebx, 4
jne 0x140080080
call fcn.14007f518
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
test r13d, r13d
je 0x1400800a0
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc0000025
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, dword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
jmp 0x1400800b9
xor eax, eax
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140094220
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret