Function at 0x1401090c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
xor edi, edi
mov r13, rcx
mov ecx, dword [0x140244804]
mov dword [rsp + 0x50], edi
mov qword [rbp + 0x158], rdi
mov qword [rbp + 0x160], rdi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x140244804]
lea rdx, [rsp + 0x50]
mov qword [rbp + 0x168], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1401094c6
nop
call qword [sym.imp.USER32.dll_GetFocus]
mov rsi, qword [r13 + 8]
mov r12, rax
test rsi, rsi
je 0x14010917f
mov edx, 0xfffffff0
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
bt rax, 0x1e
jae 0x140109162
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetParent]
mov rsi, rax
test rax, rax
jne 0x140109132
nop
jmp 0x14010917f
call qword [sym.imp.USER32.dll_GetDesktopWindow]
cmp rsi, rax
je 0x14010917c
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_EnableWindow]
test eax, eax
je 0x14010917f
mov rsi, rdi
or dword [r13 + 4], 0x400
mov rcx, r13
call qword [sym.imp.COMCTL32.dll_PropertySheetW]
mov r15, rax
test rax, rax
jne 0x1401091c3
test rsi, rsi
je 0x1401091a9
lea edx, [rax + 1]
mov rcx, rsi
call qword [sym.imp.USER32.dll_EnableWindow]
xor al, al
mov rsi, qword [rsp + 0x2b8]
add rsp, 0x270
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret
mov qword [rsp + 0x2a0], rbx
lea rcx, [rsp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x2b0], r14
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
mov r14d, eax
test eax, eax
je 0x140109350
cmp r14d, 0xffffffff
je 0x14010935a
cmp dword [rsp + 0x28], 0x100
jne 0x14010921d
mov r9, qword [rsp + 0x38]
mov edx, 0x100
mov r8, qword [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.USER32.dll_SendMessageW]
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, 0x475
mov rcx, r15
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x140109251
lea rcx, ds:[rsp + 0x20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140109286
lea rbx, [rsp + 0x58]
mov edi, eax
mov rcx, qword [rbx]
mov eax, 0xffffffff
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14010927b
call fcn.1400fbcc0
add rbx, 8
sub rdi, 1
jne 0x140109260
mov rbx, qword [rbp + 0x160]
mov dword [rsp + 0x50], edi
test rbx, rbx
je 0x14010930d
mov eax, dword ds:[rbp + 0x158]
test eax, eax
je 0x1401092dc
mov edi, eax
nop word [rax + rax]
mov rcx, qword [rbx]
mov eax, 0xffffffff
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1401092cb
call fcn.1400fbcc0
add rbx, 8
sub rdi, 1
jne 0x1401092b0
mov rbx, qword [rbp + 0x160]
cmp dword [rbp + 0x15c], 0x100
mov dword [rbp + 0x158], edi
jbe 0x14010930d
mov rcx, qword [0x140241998]
mov r8, rbx
xor edx, edx
mov dword [rbp + 0x15c], edi
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov qword [rbp + 0x160], rdi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x476
mov rcx, r15
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x14010934b
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
mov r14d, eax
test eax, eax
jne 0x1401091f1
jmp 0x140109350
test r14d, r14d
jne 0x14010935a
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.USER32.dll_PostQuitMessage]
cmp qword [r13 + 8], 0
mov r14, qword [rsp + 0x2b0]
je 0x14010937e
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, r15
jne 0x14010937e
mov rcx, qword [r13 + 8]
call qword [sym.imp.USER32.dll_SetActiveWindow]
nop
test rsi, rsi
je 0x140109393
mov edx, 1
mov rcx, rsi
call qword [sym.imp.USER32.dll_EnableWindow]
test r12, r12
je 0x1401093b3
mov rcx, r12
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1401093b3
mov rcx, r12
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, r15
call qword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1401093f5
lea rbx, [rsp + 0x58]
mov edi, eax
nop dword [rax + rax]
mov rcx, qword [rbx]
mov eax, 0xffffffff
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1401093eb
call fcn.1400fbcc0
add rbx, 8
sub rdi, 1
jne 0x1401093d0
mov rbx, qword [rbp + 0x160]
mov dword [rsp + 0x50], edi
test rbx, rbx
je 0x14010946e
mov eax, dword [rbp + 0x158]
test eax, eax
je 0x14010943d
mov edi, eax
mov rcx, qword [rbx]
mov eax, 0xffffffff
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14010942c
call fcn.1400fbcc0
add rbx, 8
sub rdi, 1
jne 0x140109411
mov rbx, qword [rbp + 0x160]
cmp dword [rbp + 0x15c], 0x100
mov dword [rbp + 0x158], edi
jbe 0x14010946e
mov rcx, qword [0x140241998]
mov r8, rbx
xor edx, edx
mov dword [rbp + 0x15c], edi
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov qword [rbp + 0x160], rdi
mov ecx, dword [0x140244804]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x2a0]
lea rcx, [rsp + 0x50]
cmp rax, rcx
jne 0x1401094c6
mov rdx, qword [rbp + 0x168]
mov ecx, dword [0x140244804]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test eax, eax
je 0x1401094c6
mov r8, qword [rbp + 0x160]
test r8, r8
je 0x1401094bf
mov rcx, qword [0x140241998]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov al, 1
jmp 0x1401091ab
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3