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

Disassembly:
push rbp
push rbx
push rdi
push r12
lea rbp, [rsp - 0x1e8]
sub rsp, 0x2e8
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
xor eax, eax
mov qword [rsp + 0x50], rcx
cmp dword [0x1402bff40], 0xffffffff
mov r12, rcx
mov ecx, dword [0x1402cdb18]
mov rdi, r8
mov dword [rsp + 0x24], r9d
mov ebx, edx
mov qword [rsp + 0x40], r8
mov dword [rbp - 0x60], eax
mov qword [rbp + 0x1a8], rax
mov qword [rbp + 0x1b0], rax
jae 0x1400e17bf
nop
cmp ecx, 0x40
jae 0x1400e17bf
mov rcx, qword gs:[0x30]
mov r8d, dword [0x1402cdb18]
mov rax, qword [rcx + r8*8 + 0x1480]
jmp 0x1400e17cd
nop
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r8d, dword [0x1402cdb18]
cmp dword [0x1402bff40], 0xffffffff
mov qword [rsp + 0x328], rsi
mov qword [rbp + 0x1b8], rax
jae 0x1400e1808
cmp r8d, 0x40
jae 0x1400e1808
mov rcx, qword gs:[0x30]
lea rdx, [rbp - 0x60]
mov eax, dword [0x1402cdb18]
mov qword [rcx + rax*8 + 0x1480], rdx
jmp 0x1400e1848
lea rdx, [rbp - 0x60]
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400e1848
cmp dword [0x1402bff40], 0xffffffff
jae 0x1400e1830
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
jmp 0x1400e1836
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
nop dword [rax]
test eax, eax
js 0x1400e1cf2
mov qword [rsp + 0x2e0], r13
lea eax, [rbx + 1]
mov qword [rsp + 0x2d8], r14
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x2d0], r15
mov edx, 0x421
mov dword [rsp + 0x20], eax
mov rcx, r12
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x429
mov rcx, r12
mov rbx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x1402caaf0]
mov edx, 4
mov esi, eax
mov r15, rax
mov qword [rsp + 0x38], rax
lea r8, [rsi*4]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x48], rax
mov edx, 0x409
mov r14, rax
mov rcx, r12
test rbx, rbx
je 0x1400e18e2
lea r9, [rax + 4]
lea r8d, [r15 - 1]
call qword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword ds:[rbx + 4]
mov dword [r14], ecx
jmp 0x1400e18ee
mov r9, r14
mov r8, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x1402caaf0]
lea r8, [rsi*8]
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x68], rax
mov r13, rax
test r15d, r15d
je 0x1400e19ad
lfence
mov rdi, r14
mov rbx, rax
mov r14, rsi
nop word [rax + rax]
mov r8d, dword [rdi]
lea r9, [rsp + 0x70]
mov edx, 0x407
mov rcx, r12
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x1400e1952
mov rax, qword [rbp - 0x80]
mov qword [rbx], rax
add rdi, 4
add rbx, 8
sub r14, 1
jne 0x1400e1930
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x28]
mov r8d, r15d
call fcn.1401879e0
mov rdi, qword [rsp + 0x28]
mov rbx, r14
nop
mov rcx, qword [rbx + r13]
call sym.SystemInformer.exe_PhCreateString
mov rcx, rax
call sym.SystemInformer.exe_PhAutoDereferenceObject
mov rcx, qword ds:[rdi]
lea rbx, [rbx + 8]
mov qword [rbx + rcx - 8], rax
sub rsi, 1
jne 0x1400e1980
mov rdi, qword [rsp + 0x40]
jmp 0x1400e19c1
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x28]
mov r8d, r15d
call fcn.1401879e0
xor r14d, r14d
cmp dword [rdi], 0
mov r13d, r14d
jbe 0x1400e1b38
nop dword [rax]
mov rax, qword [rdi + 8]
mov esi, r14d
mov ecx, r13d
inc r13d
mov dword [rsp + 0x30], r13d
mov rcx, qword [rax + rcx*8]
mov qword [rsp + 0x60], rcx
test r15d, r15d
je 0x1400e1b2f
lfence
mov rdi, qword [rsp + 0x28]
mov r15, qword [rsp + 0x48]
lea rax, [rdi + r13*8]
mov r13, qword [rsp + 0x38]
xor edi, edi
mov qword [rsp + 0x58], rax
mov r14d, edi
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r15]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x78], rcx
xor r8d, r8d
mov rcx, r12
mov dword [rbp - 0x80], eax
mov edx, 0x413
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], rdi
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, qword [rbp - 0x78]
test esi, esi
je 0x1400e1ab9
test rbx, rbx
jne 0x1400e1a65
call sym.SystemInformer.exe_PhReferenceEmptyString
mov rbx, rax
jmp 0x1400e1af9
mov rdx, qword [0x1402ca998]
lea rcx, [rbx + 0x12]
mov r12, qword [rbp - 0x70]
call sym.SystemInformer.exe_PhCreateObject
mov rdi, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx + rbx], ax
test r12, r12
je 0x1400e1aa5
mov rcx, qword ds:[rdi + 8]
mov r8, rbx
mov rdx, r12
call fcn.14020af00
mov rcx, rdi
call sym.SystemInformer.exe_PhAutoDereferenceObject
mov r12, qword [rsp + 0x50]
mov rbx, rax
xor edi, edi
jmp 0x1400e1af9
mov rdx, qword [0x1402ca998]
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_PhCreateObject
lea rcx, ds:[rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov word [rcx + rbx], di
mov rcx, rax
call sym.SystemInformer.exe_PhAutoDereferenceObject
mov r8, qword [rbp - 0x78]
mov rbx, rax
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rax + 8]
call fcn.14020af00
mov rax, qword [rsp + 0x58]
inc esi
mov rcx, qword [rsp + 0x60]
add r15, 4
mov rax, qword [rax]
mov qword [r14 + rax], rbx
add r14, 8
cmp esi, r13d
jb 0x1400e1a20
mov r13d, dword [rsp + 0x30]
xor r14d, r14d
mov r15, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
cmp r13d, dword [rdi]
jb 0x1400e19d0
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, qword [0x1402caaf0]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8, qword ds:[rsp + 0x68]
xor edx, edx
mov rcx, qword [0x1402caaf0]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r9d, dword [rsp + 0x24]
mov r8d, r15d
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
call fcn.140187ba0
mov ecx, dword [rbp - 0x60]
mov rsi, rax
mov r15, qword [rsp + 0x2d0]
mov r13, qword [rsp + 0x2e0]
test ecx, ecx
je 0x1400e1bc6
lea rbx, [rbp - 0x58]
mov edi, ecx
nop dword [rax]
mov rcx, qword [rbx]
mov edx, 0xffffffff
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x1400e1bbb
call fcn.140141ea0
add rbx, 8
sub rdi, 1
jne 0x1400e1ba0
mov rbx, qword [rbp + 0x1b0]
mov dword [rbp - 0x60], r14d
test rbx, rbx
je 0x1400e1c4f
mov eax, dword ds:[rbp + 0x1a8]
test eax, eax
je 0x1400e1c1c
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 0x1400e1c0b
call fcn.140141ea0
add rbx, 8
sub rdi, 1
jne 0x1400e1bf0
mov rbx, qword [rbp + 0x1b0]
cmp dword [rbp + 0x1ac], 0x100
mov dword [rbp + 0x1a8], r14d
jbe 0x1400e1c4f
mov rcx, qword [0x1402caaf0]
mov r8, rbx
xor edx, edx
mov dword [rbp + 0x1ac], r14d
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov qword [rbp + 0x1b0], r14
cmp dword [0x1402bff40], 0xffffffff
mov ecx, dword [0x1402cdb18]
mov r14, qword [rsp + 0x2d8]
jae 0x1400e1c85
cmp ecx, 0x40
jae 0x1400e1c85
mov rcx, qword gs:[0x30]
mov r8d, dword [0x1402cdb18]
mov rax, qword [rcx + r8*8 + 0x1480]
jmp 0x1400e1c92
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r8d, dword [0x1402cdb18]
lea rcx, [rbp - 0x60]
cmp rax, rcx
jne 0x1400e1cf2
mov rdx, qword [rbp + 0x1b8]
mov ecx, r8d
call fcn.140149740
test eax, eax
js 0x1400e1cf2
mov r8, qword [rbp + 0x1b0]
test r8, r8
je 0x1400e1cc9
mov rcx, qword [0x1402caaf0]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, rsi
mov rsi, qword [rsp + 0x328]
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1401e4a20
add rsp, 0x2e8
pop r12
pop rdi
pop rbx
pop rbp
ret
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3