Function at 0x14007cfd0
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x14033f038]
xor rax, rsp
mov qword [rsp + 0x58], rax
test rcx, rcx
je 0x14007d7d9
mov rsi, rcx
mov r14d, dword [rcx + 0xc]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
mov dl, byte [rcx + 2]
mov rcx, r14
call fcn.140055740
movzx eax, ax
lea r12, [rax + rax*4]
lea r15, [rsi + r12*8]
add r15, 0x48
lea rbx, [rsi + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14007d7c3
mov rax, qword [r15]
mov rdi, qword [rax]
test rdi, rdi
je 0x14007d751
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
je 0x14007d7bc
lea rdx, [rsi + r12*8]
bswap rcx
mov r14d, dword [rdx + 0x60]
mov rdx, rcx
xor rdx, rdi
cmp rdx, 0x1fffff
ja 0x14007d7dc
mov edx, ecx
and edx, 0x1fc000
je 0x14007d7dc
prefetcht0 byte [rcx]
mov qword [rax], rcx
mov ecx, dword [rax + 0x18]
lea edx, [rcx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [rax + 0x18], ecx
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0x1498]
mov qword [rsi + 0x1498], rax
mov rcx, qword [rsi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rsi + 0x14a0], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor ebx, ebx
mov dword [rdi], ebx
mov byte [rdi + 4], 0
mov qword [rdi + 0x78], rbx
mov dword [rdi + 0x80], ebx
mov byte [rdi + 0x81], 0
mov dword [rdi + 0x90], ebx
mov qword [rdi + 0x88], rbx
mov byte [rdi + 0x91], 0
mov dword [rdi + 0xa0], ebx
mov qword [rdi + 0x98], rbx
mov byte [rdi + 0xa1], 0
mov dword [rdi + 0xb0], ebx
mov qword [rdi + 0xa8], rbx
mov byte [rdi + 0xb1], 0
mov dword [rdi + 0xc0], ebx
mov qword [rdi + 0xb8], rbx
mov byte [rdi + 0xc1], 0
mov dword [rdi + 0xd0], ebx
mov qword [rdi + 0xc8], rbx
mov byte [rdi + 0xd1], 0
mov dword [rdi + 0xe0], ebx
mov qword [rdi + 0xd8], rbx
mov byte [rdi + 0xe1], 0
mov dword [rdi + 0xf0], ebx
mov qword [rdi + 0xe8], rbx
mov byte [rdi + 0xf1], 0
mov dword [rdi + 0x100], ebx
mov qword [rdi + 0xf8], rbx
mov byte [rdi + 0x101], 0
mov dword [rdi + 0x110], ebx
mov qword [rdi + 0x108], rbx
mov byte [rdi + 0x111], 0
mov dword [rdi + 0x120], ebx
mov qword [rdi + 0x118], rbx
mov byte [rdi + 0x121], 0
mov dword [rdi + 0x130], ebx
mov qword [rdi + 0x128], rbx
mov byte [rdi + 0x131], 0
mov dword [rdi + 0x140], ebx
mov qword [rdi + 0x138], rbx
mov byte [rdi + 0x141], 0
mov dword [rdi + 0x150], ebx
mov qword [rdi + 0x148], rbx
mov byte [rdi + 0x151], 0
mov dword [rdi + 0x160], ebx
mov qword [rdi + 0x158], rbx
mov byte [rdi + 0x161], 0
mov dword [rdi + 0x170], ebx
mov qword [rdi + 0x168], rbx
mov byte [rdi + 0x171], 0
mov dword [rdi + 0x180], ebx
mov qword [rdi + 0x178], rbx
mov byte [rdi + 0x181], 0
mov dword [rdi + 0x190], ebx
mov qword [rdi + 0x188], rbx
mov byte [rdi + 0x191], 0
mov dword [rdi + 0x1a0], ebx
mov qword [rdi + 0x198], rbx
mov byte [rdi + 0x1a1], 0
mov dword [rdi + 0x1b0], ebx
mov qword [rdi + 0x1a8], rbx
mov byte [rdi + 0x1b1], 0
mov dword [rdi + 0x1c0], ebx
mov qword [rdi + 0x1b8], rbx
mov byte [rdi + 0x1c1], 0
mov dword [rdi + 0x1d0], ebx
mov qword [rdi + 0x1c8], rbx
mov byte [rdi + 0x1d1], 0
mov dword [rdi + 0x1e0], ebx
mov qword [rdi + 0x1d8], rbx
mov byte [rdi + 0x1e1], 0
mov dword [rdi + 0x1f0], ebx
mov qword [rdi + 0x1e8], rbx
mov byte [rdi + 0x1f1], 0
mov dword [rdi + 0x200], ebx
mov qword [rdi + 0x1f8], rbx
mov byte [rdi + 0x201], 0
mov dword [rdi + 0x210], ebx
mov qword [rdi + 0x208], rbx
mov byte [rdi + 0x211], 0
mov dword [rdi + 0x220], ebx
mov qword [rdi + 0x218], rbx
mov byte [rdi + 0x221], 0
mov dword [rdi + 0x230], ebx
mov qword [rdi + 0x228], rbx
mov byte [rdi + 0x231], 0
mov dword [rdi + 0x240], ebx
mov qword [rdi + 0x238], rbx
mov byte [rdi + 0x241], 0
mov dword [rdi + 0x250], ebx
mov qword [rdi + 0x248], rbx
mov byte [rdi + 0x251], 0
mov dword [rdi + 0x260], ebx
mov qword [rdi + 0x258], rbx
mov byte [rdi + 0x261], 0
mov dword [rdi + 0x270], ebx
mov qword [rdi + 0x268], rbx
mov byte [rdi + 0x271], 0
mov dword [rdi + 0x280], ebx
mov qword [rdi + 0x278], rbx
mov byte [rdi + 0x281], 0
mov dword [rdi + 0x290], ebx
mov qword [rdi + 0x288], rbx
mov byte [rdi + 0x291], 0
mov dword [rdi + 0x2a0], ebx
mov qword [rdi + 0x298], rbx
mov byte [rdi + 0x2a1], 0
mov dword [rdi + 0x2b0], ebx
mov qword [rdi + 0x2a8], rbx
mov byte [rdi + 0x2b1], 0
mov dword [rdi + 0x2c0], ebx
mov qword [rdi + 0x2b8], rbx
mov byte [rdi + 0x2c1], 0
mov dword [rdi + 0x2d0], ebx
mov qword [rdi + 0x2c8], rbx
mov byte [rdi + 0x2d1], 0
mov dword [rdi + 0x2e0], ebx
mov qword [rdi + 0x2d8], rbx
mov byte [rdi + 0x2e1], 0
mov dword [rdi + 0x2f0], ebx
mov qword [rdi + 0x2e8], rbx
mov byte [rdi + 0x2f1], 0
mov dword [rdi + 0x300], ebx
mov qword [rdi + 0x2f8], rbx
mov byte [rdi + 0x301], 0
mov dword [rdi + 0x310], ebx
mov qword [rdi + 0x308], rbx
mov byte [rdi + 0x311], 0
mov dword [rdi + 0x320], ebx
mov qword [rdi + 0x318], rbx
mov byte [rdi + 0x321], 0
mov dword [rdi + 0x330], ebx
mov qword [rdi + 0x328], rbx
mov byte [rdi + 0x331], 0
mov dword [rdi + 0x340], ebx
mov qword [rdi + 0x338], rbx
mov byte [rdi + 0x341], 0
mov dword [rdi + 0x350], ebx
mov qword [rdi + 0x348], rbx
mov byte [rdi + 0x351], 0
mov dword [rdi + 0x360], ebx
mov qword [rdi + 0x358], rbx
mov byte [rdi + 0x361], 0
mov dword [rdi + 0x370], ebx
mov qword [rdi + 0x368], rbx
mov byte [rdi + 0x371], 0
mov dword [rdi + 0x380], ebx
mov qword [rdi + 0x378], rbx
mov byte [rdi + 0x381], 0
mov dword [rdi + 0x390], ebx
mov qword [rdi + 0x388], rbx
mov byte [rdi + 0x391], 0
mov dword [rdi + 0x3a0], ebx
mov qword [rdi + 0x398], rbx
mov byte [rdi + 0x3a1], 0
mov dword [rdi + 0x3b0], ebx
mov qword [rdi + 0x3a8], rbx
mov byte [rdi + 0x3b1], 0
mov dword [rdi + 0x3c0], ebx
mov qword [rdi + 0x3b8], rbx
mov byte [rdi + 0x3c1], 0
mov dword [rdi + 0x3d0], ebx
mov qword [rdi + 0x3c8], rbx
mov byte [rdi + 0x3d1], 0
mov dword [rdi + 0x3e0], ebx
mov qword [rdi + 0x3d8], rbx
mov byte [rdi + 0x3e1], 0
mov dword [rdi + 0x3f0], ebx
mov qword [rdi + 0x3e8], rbx
mov byte [rdi + 0x3f1], 0
mov dword [rdi + 0x400], ebx
mov qword [rdi + 0x3f8], rbx
mov byte [rdi + 0x401], 0
mov dword [rdi + 0x410], ebx
mov qword [rdi + 0x408], rbx
mov byte [rdi + 0x411], 0
mov dword [rdi + 0x420], ebx
mov qword [rdi + 0x418], rbx
mov byte [rdi + 0x421], 0
mov dword [rdi + 0x430], ebx
mov qword [rdi + 0x428], rbx
mov byte [rdi + 0x431], 0
mov dword [rdi + 0x440], ebx
mov qword [rdi + 0x438], rbx
mov byte [rdi + 0x441], 0
mov dword [rdi + 0x450], ebx
mov qword [rdi + 0x448], rbx
mov byte [rdi + 0x451], 0
mov dword [rdi + 0x460], ebx
mov qword [rdi + 0x458], rbx
mov byte [rdi + 0x461], 0
mov dword [rdi + 0x470], ebx
mov qword [rdi + 0x468], rbx
mov byte [rdi + 0x471], 0
mov dword [rdi + 0x480], ebx
mov qword [rdi + 0x478], rbx
mov byte [rdi + 0x481], 0
mov dword [rdi + 0x490], ebx
mov qword [rdi + 0x488], rbx
mov byte [rdi + 0x491], 0
mov dword [rdi + 0x4a0], ebx
mov qword [rdi + 0x498], rbx
mov byte [rdi + 0x4a1], 0
mov dword [rdi + 0x4b0], ebx
mov qword [rdi + 0x4a8], rbx
mov byte [rdi + 0x4b1], 0
mov dword [rdi + 0x4c0], ebx
mov qword [rdi + 0x4b8], rbx
mov byte [rdi + 0x4c1], 0
mov dword [rdi + 0x4d0], ebx
mov qword [rdi + 0x4c8], rbx
mov byte [rdi + 0x4d1], 0
mov dword [rdi + 0x4e0], ebx
mov qword [rdi + 0x4d8], rbx
mov byte [rdi + 0x4e1], 0
mov dword [rdi + 0x4f0], ebx
mov qword [rdi + 0x4e8], rbx
mov byte [rdi + 0x4f1], 0
mov qword [rdi + 0x4f8], rsi
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [rdi + 0x500], eax
xorps xmm6, xmm6
movups xmmword [rdi + 0x508], xmm6
mov rcx, rdi
call fcn.14007d830
movups xmmword [rdi + 0x48], xmm6
movups xmmword [rdi + 0x38], xmm6
movups xmmword [rdi + 0x28], xmm6
movups xmmword [rdi + 0x18], xmm6
movups xmmword [rdi + 8], xmm6
lea rax, [rdi + 0x82]
add rsi, 0x48
lea rcx, [0x140359060]
nop word [rax + rax]
mov qword [rax - 0xa], 0
mov byte [rax - 2], 0
movzx edx, byte [rbx + rcx]
mov byte [rax - 1], dl
movzx edx, word [rsi + 0x18]
mov word [rax], dx
cmp qword [rsi], 0
je 0x14007d7d0
inc rbx
add rax, 0x10
add rsi, 0x28
cmp rbx, 0x48
jne 0x14007d6d0
mov ecx, dword [0x140359058]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14034fed0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x120], rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140171860
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, r14
call fcn.140133b40
test rax, rax
je 0x14007d80d
mov rdi, rax
mov rcx, rax
and rcx, 0xffffffffffe00000
mov rdx, rax
shr rdx, 9
and edx, 0xfe0
lea rax, [rdx + rcx]
movzx ecx, byte [rdx + rcx + 0x101e]
and ecx, 0x3f
shl rcx, 5
sub rax, rcx
add rax, 0x1000
jmp 0x14007d0a5
xor ecx, ecx
jmp 0x14007d08b
mov rcx, rbx
call fcn.14004f6b0
jmp 0x14007d03c
mov byte [rax - 1], 0
jmp 0x14007d6f4
int3
movaps xmm0, xmmword [0x140301d60]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov r8, qword [rdi]
lea rdx, str.first
mov rcx, rsi
call fcn.1401b1e30
mov rcx, rsi
call fcn.14004a330
mov rcx, r14
call fcn.1401b1df0
xor edi, edi
jmp 0x14007d0cf