Function at 0x14000bdc0
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, 0x300
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x140022338]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov rbx, qword [rsp + 0x368]
xor r14d, r14d
mov qword [rsp + 0xb8], r14
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, dword [0x140019ef8]
lea rcx, [rsp + 0xe4]
movups xmm0, xmmword [0x140019ee8]
mov dword [rsp + 0xe0], edx
mov r8d, 0x1f4
xor edx, edx
mov r12d, eax
movaps xmmword [rsp + 0xd0], xmm0
call sub.msvcrt.dll_memset
cmp qword [0x140023000], r14
mov ebp, r14d
mov r15d, r14d
je 0x14000c205
test rdi, rdi
je 0x14000c205
or dword [rdi + 4], 0x90000
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
lea r13d, [r14 + 1]
mov rsi, rax
test rax, rax
je 0x14000bec4
lea r9, [0x140019b90]
mov edx, r13d
lea r8, [0x140019b94]
mov rcx, rax
call fcn.140008248
test eax, eax
jns 0x14000bebc
mov word [rsi], r14w
mov qword [rsp + 0xb8], rsi
test rbx, rbx
je 0x14000bf26
mov rcx, rbx
call fcn.14000a5dc
test rax, rax
je 0x14000bf1e
movabs r10, 0xf05d06e076def270
mov rcx, rax
lea rdx, [rsp + 0xd0]
mov rax, qword [0x140023040]
mov r8d, 0x104
call qword [vtable.H_MA8HI.0]
mov edx, 0x5c
lea rcx, [rsp + 0xd0]
call sub.msvcrt.dll_wcsrchr
mov rbp, rax
test rax, rax
je 0x14000bf1e
add rbp, 2
jmp 0x14000bf26
lea rbp, [rsp + 0xd0]
mov eax, dword [rdi]
mov r9d, 0x65000000
cmp eax, r9d
je 0x14000bf37
test eax, eax
jne 0x14000bf64
mov edx, dword [0x140022ff8]
mov ecx, eax
bt edx, 0x13
jae 0x14000bf59
cmp eax, r9d
mov ecx, 0x2000000
mov r8d, 0x6b000000
cmove ecx, r8d
mov dword [rdi], ecx
mov eax, ecx
bt edx, 0x12
jae 0x14000bf64
mov r15d, r13d
add eax, 0xff000000
lea rcx, str.WdsLogStructuredException
test eax, 0xfeffffff
jne 0x14000bfe8
mov eax, dword [0x140022354]
cmp eax, 0xffffffff
jne 0x14000bf9b
call fcn.14000b89c
mov ecx, eax
or eax, 0xffffffff
lock cmpxchg dword [0x140022354], ecx
lea rcx, str.WdsLogStructuredException
mov eax, dword [0x140022354]
test eax, eax
je 0x14000bfe8
mov rdx, rcx
lea r8, [0x140019ee8]
mov rcx, qword [rdi + 8]
call fcn.14000bcf8
mov rbx, rax
mov r8d, r12d
xor edx, edx
mov rcx, rax
call fcn.140011280
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 rax, qword [0x140023000]
mov rcx, qword [rax]
mov rax, qword [rcx + 0x28]
mov qword [rsp + 0xc8], rax
call fcn.14000b744
movaps xmm6, xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop dword [rax + rax]
mov ecx, dword [0x140022358]
mov r13d, eax
mov eax, dword [0x14002300c]
mov dword [rsp + 0xb0], eax
mov rax, qword [rdi + 8]
mov qword [rsp + 0xc0], rax
mov eax, dword [rdi + 4]
mov dword [rsp + 0xb4], eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
je 0x14000c090
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14000c090
mov rcx, qword [rax]
mov rax, qword [rcx + rdx*8 - 8]
test rax, rax
je 0x14000c090
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14000c090
mov rax, qword [rax + 0x10]
mov rdx, qword [rax + rcx*8 - 8]
test rdx, rdx
je 0x14000c090
cmp qword [rdx], 0
lea rbx, [0x140019ba0]
mov r14, rbx
cmovne r14, qword [rdx]
jmp 0x14000c09a
lea rbx, [0x140019ba0]
mov r14, rbx
mov ecx, dword [0x140022358]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
xor r8d, r8d
test rax, rax
je 0x14000c0d1
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14000c0d1
mov rax, qword [rax]
mov rdx, qword [rax + rcx*8 - 8]
test rdx, rdx
je 0x14000c0d1
cmp qword [rdx], r8
cmovne rbx, qword [rdx]
movabs r10, 0xcb51b75f5cd36970
mov eax, dword [rsp + 0x380]
mov edx, 0x11
mov ecx, dword [rsp + 0xb0]
mov r9d, dword [rdi]
movsd qword [rsp + 0x98], xmm6
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0x370]
mov qword [rsp + 0x88], r8
mov dword [rsp + 0x80], eax
lea rax, str._unknown_
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x68], rax
lea rax, str.WdsLogStructuredException
mov dword [rsp + 0x60], r13d
mov dword [rsp + 0x58], ecx
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0x50], rcx
mov ecx, dword [rsp + 0xb4]
mov dword [rsp + 0x48], ecx
mov rcx, qword [0x140023000]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x38], r8
mov dword [rsp + 0x30], r8d
lea r8, [0x14001a014]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rbx
call qword [vtable.H_MA8HI.0]
mov ebx, eax
test rsi, rsi
je 0x14000c1b9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
cmp ebx, 4
jne 0x14000c1d2
call fcn.14000b670
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
test r15d, r15d
je 0x14000c1f2
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc0000025
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
jmp 0x14000c207
xor eax, eax
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.140015d30
lea r11, [rsp + 0x300]
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