Function at 0x140008fe0
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 [0x14001e288]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rbx, qword [rsp + 0x358]
xor edi, edi
mov r13d, edi
mov rsi, rcx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movups xmm0, xmmword [0x140015e80]
mov ecx, dword [0x140015e90]
xor edx, edx
mov dword [rsp + 0xd0], ecx
mov r8d, 0x1f4
lea rcx, [rsp + 0xd4]
movaps xmmword [rsp + 0xc0], xmm0
mov dword [rsp + 0xb0], eax
call sub.msvcrt.dll_memset
cmp qword [0x14001f020], rdi
mov ebp, edi
mov r15d, edi
je 0x1400092f7
test rsi, rsi
je 0x1400092f7
or dword [rsi + 4], 0x90000
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
lea r12d, [rdi + 1]
mov r14, rax
test rax, rax
je 0x1400090ca
lea r9, [0x140015b2c]
mov edx, r12d
lea r8, [0x140015b30]
mov rcx, rax
call fcn.140006bdc
test eax, eax
jns 0x1400090c7
mov word [r14], di
mov r13, r14
test rbx, rbx
je 0x140009123
mov rcx, rbx
call fcn.140007f60
test rax, rax
je 0x14000911b
mov rcx, rax
lea rdx, [rsp + 0xc0]
mov rax, qword [0x14001f060]
mov r8d, 0x104
call qword [0x140014db0]
mov edx, 0x5c
lea rcx, [rsp + 0xc0]
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov rbp, rax
test rax, rax
je 0x14000911b
add rbp, 2
jmp 0x140009123
lea rbp, [rsp + 0xc0]
mov r8d, 0x65000000
cmp dword [rsi], r8d
je 0x140009132
cmp dword [rsi], edi
jne 0x140009158
mov ecx, dword [0x14001f018]
bt ecx, 0x13
jae 0x140009150
cmp dword [rsi], r8d
mov eax, 0x2000000
mov edx, 0x6b000000
cmove eax, edx
mov dword [rsi], eax
bt ecx, 0x12
cmovb r15d, r12d
mov ecx, dword [0x14001e2a4]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x1400091aa
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400091aa
mov rax, qword [rax]
mov rax, qword [rax + rcx*8 - 8]
test rax, rax
je 0x1400091aa
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1400091aa
mov rax, qword [rax + 0x10]
mov rdx, qword [rax + rcx*8 - 8]
test rdx, rdx
je 0x1400091aa
cmp qword [rdx], 0
lea rdi, [0x140015b38]
mov r12, rdi
cmovne r12, qword [rdx]
jmp 0x1400091b4
lea rdi, [0x140015b38]
mov r12, rdi
mov ecx, dword [0x14001e2a4]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x1400091e3
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400091e3
mov rax, qword [rax]
mov rdx, qword [rax + rcx*8 - 8]
test rdx, rdx
je 0x1400091e3
cmp qword [rdx], 0
cmovne rdi, qword [rdx]
mov rax, qword [0x14001f020]
mov rbx, qword [rax]
call fcn.140008f70
movaps xmm6, xmm0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
mov ecx, dword [rsp + 0x370]
lea r8, [0x140015fa4]
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 [rsi + 8]
mov qword [rsp + 0x68], r13
mov dword [rsp + 0x60], eax
mov eax, dword [0x14001f02c]
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 [0x14001f020]
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
mov rax, qword [rbx + 0x28]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rdi
call qword [0x140014db0]
mov ebx, eax
test r14, r14
je 0x1400092b9
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
cmp ebx, 4
jne 0x1400092cc
call fcn.140008ed0
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
test r15d, r15d
je 0x1400092e6
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc0000025
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_RaiseException]
mov ecx, dword [rsp + 0xb0]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, ebx
jmp 0x1400092f9
xor eax, eax
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140012130
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