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

Disassembly:
mov dword ss:[rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push r12
lea rbp, [rsp - 0x1e8]
sub rsp, 0x2e8
xor eax, eax
mov r12, rcx
cmp dword [0x1402bbf68], 0xffffffff
mov ecx, dword [0x1402c8d98]
mov dword [rbp - 0x70], eax
mov qword [rbp + 0x198], rax
mov qword [rbp + 0x1a0], rax
jae 0x140189da2
cmp ecx, 0x40
jae 0x140189da2
mov rcx, qword gs:[0x30]
mov r8d, dword [0x1402c8d98]
mov rax, qword [rcx + r8*8 + 0x1480]
jmp 0x140189daf
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r8d, dword [0x1402c8d98]
cmp dword [0x1402bbf68], 0xffffffff
mov qword [rsp + 0x2e0], rbx
mov qword [rbp + 0x1a8], rax
jae 0x140189dea
cmp r8d, 0x40
jae 0x140189dea
mov rcx, qword gs:[0x30]
lea rdx, [rbp - 0x70]
mov eax, dword [0x1402c8d98]
mov qword [rcx + rax*8 + 0x1480], rdx
jmp 0x140189e28
lea rdx, [rbp - 0x70]
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140189e28
cmp dword [0x1402bbf68], 0xffffffff
jae 0x140189e12
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
jmp 0x140189e18
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.SystemInformer.exe_Ordinal_1343
nop
test eax, eax
js 0x14018a2bc
mov qword ss:[rsp + 0x2d8], rsi
xor r9d, r9d
mov qword [rsp + 0x2d0], rdi
xor r8d, r8d
mov qword [rsp + 0x2c8], r13
mov edx, 0x411
mov qword [rsp + 0x2c0], r14
mov rcx, r12
mov qword [rsp + 0x2b8], r15
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x421
mov rcx, r12
mov r14, rax
lea esi, [rax + 1]
mov dword [rbp + 0x210], esi
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 [0x1402c6140]
mov edx, 4
mov r13d, eax
mov r15, rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], r13
lea r8, [r13*4]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x48], rax
mov edx, 0x409
mov rdi, rax
mov rcx, r12
test rbx, rbx
je 0x140189ef4
lea r9, [rax + 4]
lea r8d, [r15 - 1]
call qword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [rbx + 4]
mov ebx, r13d
mov dword [rdi], ecx
jmp 0x140189f06
mov r9, rdi
mov r8, r13
mov rbx, r13
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x1402c6140]
lea r8, ds:[rbx*8]
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x40], rax
test r15d, r15d
je 0x140189fbe
lfence
mov rbx, rax
mov rsi, r13
nop dword [rax]
mov r8d, dword [rdi]
lea r9, [rsp + 0x58]
mov edx, 0x407
mov rcx, r12
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x140189f63
mov rax, qword [rsp + 0x68]
mov qword [rbx], rax
add rdi, 4
add rbx, 8
sub rsi, 1
jne 0x140189f40
mov edx, dword ds:[rbp + 0x210]
lea rcx, [rsp + 0x28]
mov r8d, r15d
call fcn.140189120
mov rsi, qword [rsp + 0x28]
mov rdi, r13
mov r13, qword [rsp + 0x40]
xor ebx, ebx
mov rcx, qword [rbx + r13]
call sym.SystemInformer.exe_Ordinal_1329
mov rcx, rax
call sym.SystemInformer.exe_Ordinal_1238
mov rcx, qword [rsi]
lea rbx, [rbx + 8]
mov qword [rbx + rcx - 8], rax
sub rdi, 1
jne 0x140189f94
mov rbx, qword [rsp + 0x20]
jmp 0x140189fd2
mov r8d, r15d
lea rcx, [rsp + 0x28]
mov edx, esi
call fcn.140189120
mov rsi, qword [rsp + 0x28]
test r14d, r14d
je 0x14018a1bd
lfence
mov r13, qword [rsp + 0x28]
xor ecx, ecx
mov r14d, r14d
add r13, 8
mov qword [rsp + 0x38], rcx
mov qword [rbp + 0x218], r14
nop dword [rax + rax]
mov r8, rcx
xor r9d, r9d
mov rcx, r12
mov edx, 0x412
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword ds:[rsp + 0x50], rax
test rax, rax
je 0x14018a0ff
test r15d, r15d
je 0x14018a191
lfence
mov rsi, qword [rsp + 0x48]
xor ecx, ecx
mov edi, ecx
mov r15, rbx
jmp 0x14018a052
xor ecx, ecx
mov qword [rsp + 0x60], rax
lea r9, [rsp + 0x58]
mov eax, dword [rsi]
xor r8d, r8d
mov qword [rsp + 0x70], rcx
mov edx, 0x413
mov qword [rsp + 0x78], rcx
mov rcx, r12
mov dword [rsp + 0x68], eax
call qword [sym.imp.USER32.dll_SendMessageW]
mov r14, qword [rsp + 0x70]
mov rdx, qword [0x1402c5ff0]
mov r12, qword [rsp + 0x78]
lea rcx, [r14 + 0x12]
call sym.SystemInformer.exe_Ordinal_1240
mov rbx, rax
lea rcx, [rax + 0x10]
mov qword [rax], r14
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx + r14], ax
test r12, r12
je 0x14018a0c5
mov rcx, qword ds:[rbx + 8]
mov r8, r14
mov rdx, r12
call fcn.14020c7e0
mov rcx, rbx
call sym.SystemInformer.exe_Ordinal_1238
mov rcx, qword [r13]
add rsi, 4
mov r12, qword [rbp + 0x200]
mov qword [rdi + rcx], rax
add rdi, 8
mov rax, qword [rsp + 0x50]
sub r15, 1
jne 0x14018a050
mov r14, qword [rbp + 0x218]
jmp 0x14018a18c
nop
test r15d, r15d
je 0x14018a191
xor r15d, r15d
mov rsi, rbx
mov edi, r15d
mov rbx, qword [0x1402c91f0]
test rbx, rbx
jne 0x14018a16e
mov rdx, qword [0x1402c5ff0]
mov ecx, 0x12
call sym.SystemInformer.exe_Ordinal_1240
mov rdx, rax
lea rcx, [rax + 0x10]
mov qword [rax], r15
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx], r15w
lock cmpxchg qword [0x1402c91f0], rdx
mov rbx, rax
jne 0x14018a156
mov rbx, rdx
jmp 0x14018a16e
lea rcx, [rdx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14018a16e
call fcn.140143da0
lock inc dword [rbx - 8]
mov rcx, rbx
call sym.SystemInformer.exe_Ordinal_1238
mov rcx, qword [r13]
mov qword [rdi + rcx], rax
add rdi, 8
sub rsi, 1
jne 0x14018a112
mov r15, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
add r13, 8
mov rbx, qword [rsp + 0x20]
inc rcx
sub r14, 1
mov qword [rsp + 0x38], rcx
mov qword [rbp + 0x218], r14
jne 0x14018a000
mov rsi, qword [rsp + 0x28]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, qword [0x1402c6140]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8, qword ds:[rsp + 0x48]
xor edx, edx
mov rcx, qword [0x1402c6140]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r9d, dword [rbp + 0x208]
mov r8d, r15d
mov edx, dword [rbp + 0x210]
mov rcx, rsi
call fcn.1401892c0
lea rcx, [rbp - 0x70]
mov rbx, rax
call sym.SystemInformer.exe_Ordinal_1247
cmp dword [0x1402bbf68], 0xffffffff
mov ecx, dword [0x1402c8d98]
mov r15, qword ss:[rsp + 0x2b8]
mov r14, qword [rsp + 0x2c0]
mov r13, qword [rsp + 0x2c8]
mov rdi, qword [rsp + 0x2d0]
mov rsi, qword [rsp + 0x2d8]
jae 0x14018a262
cmp ecx, 0x40
jae 0x14018a262
mov rdx, qword gs:[0x30]
mov r8d, dword [0x1402c8d98]
mov rax, qword [rdx + r8*8 + 0x1480]
jmp 0x14018a26f
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r8d, dword [0x1402c8d98]
lea rcx, [rbp - 0x70]
cmp rax, rcx
jne 0x14018a2bc
mov rdx, qword [rbp + 0x1a8]
mov ecx, r8d
call fcn.14014b8e0
test eax, eax
js 0x14018a2bc
mov r8, qword [rbp + 0x1a0]
test r8, r8
je 0x14018a2a6
mov rcx, qword [0x1402c6140]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, rbx
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2e8
pop r12
pop rbp
ret
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3