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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2f0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1400213a8]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rbx, qword [rsp + 0x358]
xor edi, edi
mov qword [rsp + 0xb0], rdi
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movups xmm0, xmmword [0x140018f00]
mov ecx, dword [0x140018f10]
xor edx, edx
mov dword [rsp + 0xd0], ecx
mov r8d, 0x1f4
lea rcx, [rsp + 0xd4]
movaps xmmword [rsp + 0xc0], xmm0
mov r13d, eax
call sub.msvcrt.dll_memset
cmp qword [0x1400220a0], rdi
mov ebp, edi
mov r12d, edi
je 0x14000a68b
test rsi, rsi
je 0x14000a68b
or dword [rsi + 4], 0x90000
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
lea r15d, [rdi + 1]
mov r14, rax
test rax, rax
je 0x14000a39e
lea r9, [0x140018bac]
mov edx, r15d
lea r8, [0x140018bb0]
mov rcx, rax
call fcn.140007618
test eax, eax
jns 0x14000a396
mov word [r14], di
mov qword [rsp + 0xb0], r14
test rbx, rbx
je 0x14000a3f6
mov rcx, rbx
call fcn.140008b9c
test rax, rax
je 0x14000a3ee
mov rcx, rax
lea rdx, [rsp + 0xc0]
mov rax, qword [0x1400220e0]
mov r8d, 0x104
call qword [0x140017da8]
mov edx, 0x5c
lea rcx, [rsp + 0xc0]
call sub.msvcrt.dll_wcsrchr
mov rbp, rax
test rax, rax
je 0x14000a3ee
add rbp, 2
jmp 0x14000a3f6
lea rbp, [rsp + 0xc0]
mov eax, dword [rsi]
mov r9d, 0x65000000
cmp eax, r9d
je 0x14000a407
test eax, eax
jne 0x14000a434
mov edx, dword [0x140022098]
mov ecx, eax
bt edx, 0x13
jae 0x14000a429
cmp eax, r9d
mov ecx, 0x2000000
mov r8d, 0x6b000000
cmove ecx, r8d
mov dword [rsi], ecx
mov eax, ecx
bt edx, 0x12
jae 0x14000a434
mov r12d, r15d
add eax, 0xff000000
lea rcx, str.WdsLogStructuredException
test eax, 0xfeffffff
jne 0x14000a4b8
mov eax, dword [0x1400213c4]
cmp eax, 0xffffffff
jne 0x14000a46b
call fcn.140009d78
mov ecx, eax
or eax, 0xffffffff
lock cmpxchg dword [0x1400213c4], ecx
lea rcx, str.WdsLogStructuredException
mov eax, dword [0x1400213c4]
test eax, eax
je 0x14000a4b8
mov rdx, rcx
lea r8, [0x140018f00]
mov rcx, qword [rsi + 8]
call fcn.14000a1d4
mov rbx, rax
mov r8d, r13d
xor edx, edx
mov rcx, rax
call fcn.14000fb28
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]
mov ecx, dword [0x1400213c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
je 0x14000a510
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14000a510
mov rax, qword [rax]
mov rax, qword [rax + rcx*8 - 8]
test rax, rax
je 0x14000a510
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14000a510
mov rax, qword [rax + 0x10]
mov rdx, qword [rax + rcx*8 - 8]
test rdx, rdx
je 0x14000a510
cmp qword [rdx], 0
lea rdi, [0x140018bb8]
mov r15, rdi
cmovne r15, qword [rdx]
jmp 0x14000a51a
lea rdi, [0x140018bb8]
mov r15, rdi
mov ecx, dword [0x1400213c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
je 0x14000a54f
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14000a54f
mov rax, qword [rax]
mov rdx, qword [rax + rcx*8 - 8]
test rdx, rdx
je 0x14000a54f
cmp qword [rdx], 0
cmovne rdi, qword [rdx]
mov rax, qword [0x1400220a0]
mov rbx, qword [rax]
call fcn.140009c2c
movaps xmm6, xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x370]
lea r8, [0x140019024]
mov r9d, dword [rsi]
mov edx, 0x11
movsd qword [rsp + 0x98], xmm6
mov dword [rsp + 0x90], ecx
and qword [rsp + 0x88], 0
mov ecx, dword [rsp + 0x360]
mov dword [rsp + 0x80], ecx
lea rcx, str._unknown_
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x70], rcx
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x68], rcx
mov rcx, qword [rsi + 8]
mov dword [rsp + 0x60], eax
mov eax, dword [0x1400220ac]
mov dword [rsp + 0x58], eax
lea rax, str.WdsLogStructuredException
mov qword [rsp + 0x50], rcx
mov ecx, dword [rsi + 4]
mov dword [rsp + 0x48], ecx
mov rcx, qword [0x1400220a0]
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
mov rax, qword [rbx + 0x28]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rdi
call qword [0x140017da8]
mov ebx, eax
test r14, r14
je 0x14000a63f
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 0x14000a658
call fcn.140009b80
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
test r12d, r12d
je 0x14000a678
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc0000025
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
jmp 0x14000a68d
xor eax, eax
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1400144d0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret