Function at 0x140047af0
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 [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [0x1402c5d50]
mov ecx, dword [0x1402c2670]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140047cf6
mov ecx, dword [0x1402c1858]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140047eeb
mov rcx, qword [0x1402c5d40]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402c5d48]
jne 0x140047eeb
add rax, rcx
cmp qword [rax], 0
je 0x140047eeb
mov ecx, dword [0x1402c1858]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140047cb6
mov rcx, qword [0x1402c5d40]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402c5d48]
jne 0x140047cb6
add rax, rcx
mov r13, qword [rax]
lea r14, [r13 + 8]
mov rcx, qword [r13 + 8]
test rcx, rcx
je 0x140047cbe
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 0x140047bc8
cmp rax, r14
je 0x140047cbe
cmp qword [rax + 0x20], rdi
ja 0x140047cbe
mov r15, qword [rax + 0x28]
test r15, r15
je 0x140047faf
mov qword [rsp + 0x38], 0
mov r12, qword [r15]
test r12, r12
je 0x140047f96
mov eax, 1
lock xadd dword [r12], eax
test eax, eax
jle 0x140047f99
mov qword [rsp + 0x28], rdi
cmp eax, 0x7fffffff
je 0x140047f9c
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 [0x1402a3ee8]
mov ebp, eax
lock dec dword [r12]
je 0x140047fa2
test bpl, bpl
mov rcx, qword [rsp + 0x28]
jne 0x140047c87
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 0x140047e25
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140191d70
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 0x140047bb4
cmp esi, 1
je case.default.0x140047cef
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140191d70
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]
lea rcx, [0x1402c5d50]
call fcn.14018f720
cmp dword [0x1402c5d50], 0xffffffff
jne 0x140047b3f
mov qword [0x1402c5d48], 0
lea rcx, [0x1402c5d40]
mov qword [0x1402c5d40], 0xffffffffffffffff
lea rdx, [0x14004ab30]
call fcn.14002d040
lea rcx, [0x1402c5d50]
call fcn.14018f6b4
jmp 0x140047b3f
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 0x140047df8
mov ecx, 0x30
call fcn.14018f5a8
mov r12, rax
add rax, 0x20
je 0x140047fb5
mov qword [rax], rdi
movabs rax, 0xfffffffc00000000
and rax, r15
cmp rax, qword [0x1402b5708]
jne 0x140047da6
mov rcx, r15
call fcn.1400fd430
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 0x140047dce
mov qword [r13], rax
mov r12, qword [rbx]
mov rcx, qword [r13 + 8]
mov rdx, r12
call fcn.14013f5a0
inc qword [r13 + 0x10]
test r15, r15
mov rbx, qword [rsp + 0x28]
mov rbp, rsi
mov esi, dword [rsp + 0x34]
jne 0x140047bfe
jmp 0x140047cc7
mov rbp, rax
cmp qword [rax + 0x20], rdi
ja 0x140047e19
jae 0x140047fb2
mov rax, qword [rbp + 8]
test rax, rax
jne 0x140047df8
lea rbx, [rbp + 8]
jmp 0x140047d6e
mov rax, qword [rbp]
mov rbx, rbp
jmp 0x140047d65
mov qword [r15 + 8], 0
mov rcx, qword [r14]
test rcx, rcx
je 0x140047f9f
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 0x140047e44
cmp rdi, r14
je 0x140047f9f
mov rax, qword [rsp + 0x28]
cmp qword [rdi + 0x20], rax
ja 0x140047f9f
mov rdx, qword [rdi + 8]
test rdx, rdx
jne 0x140047ed9
mov rdx, rdi
mov rax, qword [rdx + 0x10]
cmp qword [rax], rdx
mov rdx, rax
jne 0x140047e7e
lea rsi, [rdi + 0x20]
cmp qword [r13], rdi
jne 0x140047e98
mov qword [r13], rax
dec qword [r13 + 0x10]
mov rdx, rdi
call fcn.14013f1b0
test rsi, rsi
je 0x140047fc8
mov rcx, qword [rdi + 0x28]
movabs rax, 0xfffffffc00000000
and rax, rcx
cmp rax, qword [0x1402b5708]
jne 0x140047ecc
call fcn.1400fd6f0
mov rcx, rdi
call fcn.14018f5a0
jmp 0x140047c90
mov rax, rdx
mov rdx, qword [rdx]
test rdx, rdx
je 0x140047e8a
jmp 0x140047ed9
xor r12d, r12d
jmp 0x140047f36
mov ecx, Ordinal_26
call fcn.14018f5a8
mov r15, rax
add rax, 8
xorps xmm0, xmm0
movups xmmword [r15 + 8], xmm0
mov qword [r15], rax
mov ecx, dword [0x1402c1858]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140047ee6
mov rcx, qword [0x1402c5d40]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402c5d48]
jne 0x140047ee6
add rax, rcx
mov r12, qword [rax]
mov ecx, dword [0x1402c1858]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
jne 0x140047f52
test r15, r15
je 0x140047f76
call fcn.1400136a0
mov rcx, qword [0x1402c5d40]
shl rcx, 4
mov qword [rax + rcx], r15
mov ecx, dword [0x1402c5d48]
mov rdx, qword [0x1402c5d40]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
test r12, r12
je 0x140047b7d
mov rcx, qword [r12 + 8]
call fcn.14004ab60
mov rcx, r12
call fcn.14018f5a0
jmp 0x140047b7d
int3
int3
int3
int3
mov rcx, r12
call fcn.14017f1a0
jmp 0x140047c6a
int3
int3
lea rcx, [0x1402742d5]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.1401ceaf0
lea rcx, [0x1402742d5]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.1401ceaf0
int3
lea rax, sym.imp.USER32.dll_DefWindowProcW
jmp 0x1402603d4
lea rax, sym.imp.USER32.dll_DestroyWindow
jmp 0x1402603d4
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, [0x1402a4058]
call fcn.1401912e8
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