Function at 0x14004cd90
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 rbx, r9
mov rbp, r8
mov esi, edx
mov rdi, rcx
mov rax, qword [0x140260028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [0x140272500]
mov ecx, dword [0x14026ee18]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004cebc
mov ecx, dword [0x14026e7a0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14004cf0f
mov rcx, qword [0x1402724f0]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402724f8]
jne 0x14004cf0f
add rax, rcx
cmp qword [rax], 0
je 0x14004cf0f
mov ecx, dword [0x14026e7a0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14004ceb7
mov rcx, qword [0x1402724f0]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402724f8]
jne 0x14004ceb7
add rax, rcx
mov r13, qword [rax]
lea r14, [r13 + 8]
mov rcx, qword [r13 + 8]
test rcx, rcx
je 0x14004ce7f
mov rax, r14
xor edx, edx
cmp qword [rcx + 0x20], rdi
setb dl
cmovae rax, rcx
mov rcx, qword [rcx + rdx*8]
test rcx, rcx
jne 0x14004ce60
cmp rax, r14
jne 0x14004d07b
cmp esi, 1
je case.default.0x14004ceb0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140149190
mov rcx, rdi
mov edx, esi
mov r8, rbp
mov r9, rbx
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]
xor r13d, r13d
jmp 0x14004ce50
lea rcx, [0x140272500]
call fcn.1401467a0
cmp dword [0x140272500], 0xffffffff
jne 0x14004cddf
mov qword [0x1402724f8], 0
lea rcx, [0x1402724f0]
mov qword [0x1402724f0], 0xffffffffffffffff
lea rdx, [0x140054b70]
call fcn.1400367a0
lea rcx, [0x140272500]
call fcn.140146740
jmp 0x14004cddf
mov ecx, 0x18
call fcn.140146648
mov r15, rax
add rax, 8
xorps xmm0, xmm0
movups xmmword [r15 + 8], xmm0
mov qword [r15], rax
mov ecx, dword [0x14026e7a0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14004cfa8
mov rcx, qword [0x1402724f0]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402724f8]
jne 0x14004cfa8
add rax, rcx
mov r12, qword [rax]
mov ecx, dword [0x14026e7a0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
jne 0x14004cf76
test r15, r15
je 0x14004cf9a
call fcn.14000ede0
mov rcx, qword [0x1402724f0]
shl rcx, 4
mov qword [rax + rcx], r15
mov ecx, dword [0x1402724f8]
mov rdx, qword [0x1402724f0]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
test r12, r12
je 0x14004ce1d
jmp 0x14004d220
xor r12d, r12d
jmp 0x14004cf5a
mov rax, qword [rbp]
mov rbx, rbp
jmp 0x14004cff0
mov rbp, rax
cmp qword [rax + 0x20], rdi
ja 0x14004cfad
jae 0x14004d21d
mov rax, qword [rbp + 8]
test rax, rax
jne 0x14004cfb6
lea rbx, [rbp + 8]
jmp 0x14004cff5
mov dword [rsp + 0x34], esi
mov rsi, rbp
mov qword [rsp + 0x28], rbx
mov r15, qword [rbx]
mov qword [r15 + 8], rdi
mov rax, qword [r14]
mov rbx, r14
mov rbp, r14
test rax, rax
jne 0x14004cfb6
mov ecx, 0x30
call fcn.140146648
mov r12, rax
add rax, 0x20
je 0x14004d1ff
mov qword [rax], rdi
movabs rax, 0xfffffffc00000000
and rax, r15
cmp rax, qword [0x140262688]
jne 0x14004d02d
mov rcx, r15
call fcn.140004ab0
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 0x14004d055
mov qword [r13], rax
mov r12, qword [rbx]
mov rcx, qword [r13 + 8]
mov rdx, r12
call fcn.1400f7da0
inc qword [r13 + 0x10]
test r15, r15
mov rbx, qword [rsp + 0x28]
mov rbp, rsi
mov esi, dword [rsp + 0x34]
jne 0x14004d092
jmp 0x14004ce88
cmp qword [rax + 0x20], rdi
ja 0x14004ce7f
mov r15, qword [rax + 0x28]
test r15, r15
je 0x14004d21a
mov qword [rsp + 0x38], 0
mov r12, qword [r15]
test r12, r12
je 0x14004d201
mov eax, 1
lock xadd dword [r12], eax
test eax, eax
jle 0x14004d204
mov qword [rsp + 0x28], rdi
cmp eax, 0x7fffffff
je 0x14004d207
mov rax, qword [r15]
mov rax, qword [rax + 8]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov rcx, r12
mov edi, esi
mov edx, esi
mov rsi, rbp
mov r8, rbp
mov r9, rbx
call qword [0x1402529a0]
mov ebp, eax
lock dec dword [r12]
je 0x14004d20d
test bpl, bpl
mov rcx, qword [rsp + 0x28]
jne 0x14004d11b
mov edx, edi
mov r8, rsi
mov r9, rbx
call qword [sym.imp.USER32.dll_DefWindowProcW]
mov qword [rsp + 0x38], rax
cmp edi, 2
je 0x14004d146
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140149190
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [r15 + 8], 0
mov rcx, qword [r14]
test rcx, rcx
je 0x14004d20a
mov rax, rcx
mov rdi, r14
mov r8, qword [rsp + 0x28]
xor edx, edx
cmp qword [rax + 0x20], r8
setb dl
cmovae rdi, rax
mov rax, qword [rax + rdx*8]
test rax, rax
jne 0x14004d165
cmp rdi, r14
je 0x14004d20a
mov rax, qword [rsp + 0x28]
cmp qword [rdi + 0x20], rax
ja 0x14004d20a
mov rdx, qword [rdi + 8]
test rdx, rdx
jne 0x14004d1f2
mov rdx, rdi
mov rax, qword [rdx + 0x10]
cmp qword [rax], rdx
mov rdx, rax
jne 0x14004d19b
lea rsi, [rdi + 0x20]
cmp qword [r13], rdi
jne 0x14004d1b5
mov qword [r13], rax
dec qword [r13 + 0x10]
mov rdx, rdi
call fcn.1400f14a0
test rsi, rsi
je 0x14004d1ff
mov rcx, qword [rdi + 0x28]
movabs rax, 0xfffffffc00000000
and rax, rcx
cmp rax, qword [0x140262688]
jne 0x14004d1e5
call fcn.140004bf0
mov rcx, rdi
call fcn.140146640
jmp 0x14004d120
mov rax, rdx
mov rdx, qword [rdx]
test rdx, rdx
je 0x14004d1a7
jmp 0x14004d1f2
ud2
int3
int3
int3
int3
mov rcx, r12
call fcn.140138cd0
jmp 0x14004d0fe
int3
int3
mov rcx, qword [r12 + 8]
call fcn.140054ba0
mov rcx, r12
call fcn.140146640
jmp 0x14004ce1d
lea rax, sym.imp.USER32.dll_DefWindowProcW
jmp 0x1402056f1
lea rax, sym.imp.USER32.dll_DestroyWindow
jmp 0x1402056f1
push rcx
push rdx
push r8
push r9
sub rsp, 0x48
movdqa xmmword [rsp], xmm0
movdqa xmmword [rsp + 0x10], xmm1
movdqa xmmword [rsp + 0x20], xmm2
movdqa xmmword [rsp + 0x30], xmm3
mov rdx, rax
lea rcx, [0x140252af0]
call fcn.140148638
movdqa xmm0, xmmword [rsp]
movdqa xmm1, xmmword [rsp + 0x10]
movdqa xmm2, xmmword [rsp + 0x20]
movdqa xmm3, xmmword [rsp + 0x30]
add rsp, 0x48
pop r9
pop r8
pop rdx
pop rcx
jmp rax