Function at 0x14010b140
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rbx, r9
mov r14, r8
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, dword [0x1402f4378]
mov ecx, dword [0x1402f0db0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14010b243
mov ecx, dword [0x1402efc60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14010b296
mov rcx, qword [0x1402f4368]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402f4370]
jne 0x14010b296
cmp qword [rax + rcx], 0
je 0x14010b296
mov ecx, dword [0x1402efc60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14010b412
mov rcx, qword [0x1402f4368]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402f4370]
jne 0x14010b412
mov r15, qword [rax + rcx]
mov rcx, qword [r15 + 8]
test rcx, rcx
jne 0x14010b310
cmp edi, 1
je case.default.0x14010b23c
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14010fba0
mov rcx, rsi
mov edx, edi
mov r8, r14
mov r9, rbx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.USER32.dll_DefWindowProcW]
lea rcx, [0x1402f4378]
call fcn.14010d4bc
cmp dword [0x1402f4378], 0xffffffff
jne 0x14010b18e
mov qword [0x1402f4370], 0
lea rcx, [0x1402f4368]
mov qword [0x1402f4368], 0xffffffffffffffff
lea rdx, [0x14006e680]
call fcn.1400c3060
lea rcx, [0x1402f4378]
call fcn.14010d064
jmp 0x14010b18e
mov ecx, 0x18
call fcn.14010cc14
mov r15, rax
add rax, 8
xorps xmm0, xmm0
movups xmmword [r15 + 8], xmm0
mov qword [r15], rax
mov ecx, dword [0x1402efc60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14010b2fc
mov rcx, qword [0x1402f4368]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402f4370]
jne 0x14010b2fc
mov r12, qword [rax + rcx]
lea rcx, [0x1402f4368]
mov rdx, r15
call fcn.1400b0f40
test r12, r12
je 0x14010b1ca
jmp 0x14010b420
lea rcx, [0x1402f4368]
mov rdx, r15
call fcn.1400b0f40
jmp 0x14010b1ca
lea rdx, [r15 + 8]
mov rax, rdx
lea r8, [rcx + 8]
cmp qword [rcx + 0x20], rsi
cmovae r8, rcx
cmovae rax, rcx
mov rcx, qword [r8]
test rcx, rcx
jne 0x14010b317
cmp rax, rdx
je 0x14010b20c
cmp qword [rax + 0x20], rsi
ja 0x14010b20c
mov r12, qword [rax + 0x28]
test r12, r12
jne 0x14010b38c
jmp 0x14010b41d
mov r12, qword [rbx]
mov qword [r12 + 8], rsi
lea r8, [rsp + 0x30]
mov qword [r8], rsi
mov qword [rsp + 0x20], r12
lea r13, [rsp + 0x38]
mov rcx, r15
mov rdx, r13
mov r9, r8
call fcn.14010b4b0
cmp byte [r13 + 8], 0
je 0x14010b41a
test r12, r12
je 0x14010b215
lea rax, [rsp + 0x30]
mov qword [rax], 0
mov qword [rsp + 0x20], rax
mov rcx, r12
mov edx, edi
mov r8, r14
mov r9, rbx
call fcn.14010b440
test al, al
jne 0x14010b3c7
mov rcx, rsi
mov edx, edi
mov r8, r14
mov r9, rbx
call qword [sym.imp.USER32.dll_DefWindowProcW]
mov qword [rsp + 0x30], rax
cmp edi, 2
je 0x14010b3f1
mov rsi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14010fba0
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [r12 + 8], 0
lea rdx, [rsp + 0x38]
mov qword [rdx], rsi
mov rcx, r15
call fcn.1400fb1c0
test rax, rax
jne 0x14010b3cc
int3
xor r15d, r15d
jmp 0x14010b1ff
int3
int3
mov rcx, qword [r12 + 8]
call fcn.14006e6b0
mov rcx, r12
call fcn.14010cc0c
jmp 0x14010b1ca
lea rax, sym.imp.USER32.dll_DefWindowProcW
jmp 0x140274116
lea rax, sym.imp.USER32.dll_DestroyWindow
jmp 0x140274116