Function at 0x14003ee60
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rdi, r9
mov rbx, r8
mov ebp, edx
mov rsi, rcx
mov rax, qword [0x1402cb038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [0x1402e5bf0]
mov ecx, dword [0x1402db110]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003f1bb
mov ecx, dword [0x1402da9c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14003f124
mov rcx, qword [0x1402e5be0]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402e5be8]
jne 0x14003f124
cmp qword [rax + rcx], 0
je 0x14003f124
mov ecx, dword [0x1402da9c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14003f021
mov rcx, qword [0x1402e5be0]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402e5be8]
jne 0x14003f021
mov r13, qword [rax + rcx]
lea r14, [r13 + 8]
mov rcx, qword [r13 + 8]
test rcx, rcx
je 0x14003f029
mov rax, r14
lea rdx, [rcx + 8]
cmp qword [rcx + 0x20], rsi
cmovae rdx, rcx
cmovae rax, rcx
mov rcx, qword [rdx]
test rcx, rcx
jne 0x14003ef34
cmp rax, r14
je 0x14003f029
cmp qword [rax + 0x20], rsi
ja 0x14003f029
mov r15, qword [rax + 0x28]
test r15, r15
je 0x14003f2ed
mov qword [rsp + 0x38], 0
mov r12, qword [r15]
test r12, r12
je 0x14003f2e4
mov qword [rsp + 0x28], r13
mov eax, 1
lock xadd dword [r12], eax
test eax, eax
jle 0x14003f2e7
cmp eax, 0x7fffffff
je 0x14003f2ea
mov r8, rbx
mov r13, rsi
mov rax, qword [r15]
mov rax, qword [rax + 8]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov rcx, r12
mov ebx, ebp
mov edx, ebp
mov rsi, r8
mov r9, rdi
call qword [0x1402f5008]
mov ebp, eax
lock dec dword [r12]
je 0x14003f2f0
test bpl, bpl
jne 0x14003eff6
mov rcx, r13
mov edx, ebx
mov r8, rsi
mov r9, rdi
call qword [sym.imp.USER32.dll_DefWindowProcW]
mov qword [rsp + 0x38], rax
cmp ebx, 2
je 0x14003f061
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401ce5b0
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r13d, r13d
jmp 0x14003ef20
cmp ebp, 1
je case.default.0x14003f05a
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401ce5b0
mov rcx, rsi
mov edx, ebp
mov r8, rbx
mov r9, rdi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.USER32.dll_DefWindowProcW]
mov qword [r15 + 8], 0
mov rcx, qword [r14]
test rcx, rcx
je 0x14003f2e1
mov rax, rcx
mov rdi, r14
lea rdx, [rax + 8]
cmp qword [rax + 0x20], r13
cmovae rdx, rax
cmovae rdi, rax
mov rax, qword [rdx]
test rax, rax
jne 0x14003f07b
cmp rdi, r14
je 0x14003f2e1
cmp qword [rdi + 0x20], r13
ja 0x14003f2e1
mov rdx, qword [rdi + 8]
test rdx, rdx
jne 0x14003f10d
mov rdx, rdi
mov r8, qword [rsp + 0x28]
mov rax, qword [rdx + 0x10]
cmp qword [rax], rdx
mov rdx, rax
jne 0x14003f0b7
lea rsi, [rdi + 0x20]
cmp qword [r8], rdi
jne 0x14003f0cf
mov qword [r8], rax
dec qword [r8 + 0x10]
mov rdx, rdi
call fcn.1401734f0
test rsi, rsi
je 0x14003f317
mov rcx, qword [rdi + 0x28]
mov rax, qword [0x1402cbde0]
and rax, rcx
cmp rax, qword [0x1402cbdc8]
jne 0x14003f100
call fcn.1401509f0
mov rcx, rdi
call fcn.1401cbbbc
jmp 0x14003effb
mov r8, qword [rsp + 0x28]
mov rax, rdx
mov rdx, qword [rdx]
test rdx, rdx
je 0x14003f0c3
jmp 0x14003f112
xor r12d, r12d
jmp 0x14003f16d
mov ecx, 0x18
call fcn.1401cbbc4
mov r15, rax
add rax, 8
xorps xmm0, xmm0
movups xmmword [r15 + 8], xmm0
mov qword [r15], rax
mov ecx, dword [0x1402da9c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14003f11f
mov rcx, qword [0x1402e5be0]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402e5be8]
jne 0x14003f11f
mov r12, qword [rax + rcx]
mov ecx, dword [0x1402da9c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
jne 0x14003f189
test r15, r15
je 0x14003f1ad
call fcn.1400221a0
mov rcx, qword [0x1402e5be0]
shl rcx, 4
mov qword [rax + rcx], r15
mov ecx, dword [0x1402e5be8]
mov rdx, qword [0x1402e5be0]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
test r12, r12
je 0x14003eeeb
jmp 0x14003f300
lea rcx, [0x1402e5bf0]
call fcn.1401cc16c
cmp dword [0x1402e5bf0], 0xffffffff
jne 0x14003eeaf
mov qword [0x1402e5be8], 0
lea rcx, [0x1402e5be0]
mov qword [0x1402e5be0], 0xffffffffffffffff
lea rdx, [0x140043bc0]
call fcn.140028450
lea rcx, [0x1402e5bf0]
call fcn.1401cc1d4
jmp 0x14003eeaf
mov rax, qword [rbp]
mov rbx, rbp
jmp 0x14003f236
mov dword [rsp + 0x34], ebp
mov rax, rdi
mov rdi, rbx
mov qword [rsp + 0x28], rax
mov r15, qword [rax]
mov qword [r15 + 8], rsi
mov rax, qword [r14]
mov rbx, r14
mov rbp, r14
test rax, rax
je 0x14003f257
mov rbp, rax
cmp qword [rax + 0x20], rsi
ja 0x14003f20e
jae 0x14003f2fd
mov rax, qword [rbp + 8]
test rax, rax
jne 0x14003f23b
lea rbx, [rbp + 8]
mov ecx, 0x30
call fcn.1401cbbc4
mov r12, rax
add rax, 0x20
je 0x14003f343
mov qword [rax], rsi
mov rax, qword [0x1402cbde0]
and rax, r15
cmp rax, qword [0x1402cbdc8]
jne 0x14003f28c
mov rcx, r15
call fcn.1401508a0
mov qword [r12 + 0x28], r15
xorps xmm0, xmm0
movups xmmword [r12], xmm0
mov qword [r12 + 0x10], rbp
mov qword [rbx], r12
mov rax, qword [r13]
mov rax, qword [rax]
test rax, rax
je 0x14003f2b4
mov qword [r13], rax
mov r12, qword [rbx]
mov rcx, qword [r13 + 8]
mov rdx, r12
call fcn.140170780
inc qword [r13 + 0x10]
test r15, r15
mov rax, qword [rsp + 0x28]
mov rbx, rdi
mov rdi, rax
mov ebp, dword [rsp + 0x34]
jne 0x14003ef6c
jmp 0x14003f032
int3
int3
int3
int3
int3
mov rcx, r12
call fcn.14005dbc0
jmp 0x14003efdb
int3
mov rcx, qword [r12 + 8]
call fcn.140043bf0
mov rcx, r12
call fcn.1401cbbbc
jmp 0x14003eeeb
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x44
call fcn.140207060
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.140207060
int3
lea rax, sym.imp.USER32.dll_DefWindowProcW
jmp fcn.14028b035
lea rax, sym.imp.USER32.dll_DestroyWindow
jmp fcn.14028b035