Function at 0x1400720d0
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, 0x78
mov ebx, dword [rsp + 0xe8]
mov rax, qword [0x140162028]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp byte [r8], 0
je 0x1400723aa
mov r14, r9
mov rdi, r8
mov r13d, edx
mov rsi, rcx
mov ecx, dword [0x140163d10]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140072140
movsxd rcx, dword [rsi + 0x308]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 0x30c]
jne 0x140072140
cmp qword [rax + rcx], 0
jne 0x1400723aa
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, ebx
jne 0x14007222c
mov rax, qword [0x14016a358]
cmp rax, 1
jbe 0x1400723bd
mov eax, dword [0x14016a350]
mov ecx, dword [0x1401653f4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400724b0
mov ecx, dword [0x140163d10]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400724a2
movsxd rcx, dword [0x14016a348]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x14016a34c]
jne 0x1400724a2
mov rbx, qword [rax + rcx]
test rbx, rbx
je 0x1400723b1
mov qword [rsp + 0x60], rbx
mov eax, dword [0x140169d48]
mov ecx, dword [0x1401653f4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400724e6
mov rbp, qword [0x140169d40]
mov ecx, dword [0x140163d10]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400724a9
movsxd rcx, dword [rbp]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rbp + 4]
jne 0x1400724a9
mov rax, qword [rax + rcx]
test rbx, rbx
je 0x14007222c
cmp rbx, rax
jne 0x140072258
mov sil, 1
test byte [rdi], 8
jne 0x14007254b
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400f0560
mov eax, esi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rbx], 0
je 0x14007222c
mov r15, qword [0x140169d40]
mov ecx, dword [0x140163d10]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140072541
movsxd rcx, dword [r15]
shl rcx, 4
mov qword [rax + rcx], rbx
mov ecx, dword [r15 + 4]
movsxd rdx, dword [r15]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
lea r15, [rsi + 0x10]
mov rcx, r15
call fcn.14007ae30
mov r10, qword [rsi + 0x110]
add rsi, 0x108
test r10, r10
je 0x140072381
movsxd r8, dword [rsp + 0xe8]
mov rax, r10
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, r10
sub rax, rcx
movabs rcx, 0x3333333333333333
mov rdx, rax
and rdx, rcx
shr rax, 2
and rax, rcx
add rax, rdx
mov rcx, rax
shr rcx, 4
add rcx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rcx
movabs r11, 0x101010101010101
imul r11, rax
shr r11, 0x38
cmp r11, 1
jbe 0x1400723f0
mov r9, r8
cmp r10, r8
ja 0x140072338
mov rax, r8
xor edx, edx
div r10
mov r9, rdx
mov rax, qword [rsi]
mov rax, qword [rax + r9*8]
test rax, rax
je 0x140072381
mov rcx, qword [rax]
test rcx, rcx
je 0x140072381
lea r12, [r10 - 1]
mov rax, qword [rcx + 8]
cmp rax, r8
je 0x1400723fc
cmp r11d, 1
jbe 0x14007249a
cmp rax, r10
jb 0x140072374
xor edx, edx
div r10
mov rax, rdx
cmp rax, r9
jne 0x140072381
mov rcx, qword [rcx]
test rcx, rcx
jne 0x140072350
lea rdx, [rsp + 0xe8]
mov rcx, rsi
call fcn.1400725a0
mov rcx, rax
mov rdx, rbx
call fcn.14005a448
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x14007222c
xor esi, esi
jmp 0x140072238
lea rbx, [0x14013d502]
jmp 0x1400721c2
lea rcx, [0x14016a358]
call fcn.140063590
test al, al
je 0x140072535
call fcn.1400d96c0
lea rcx, [0x14016a358]
mov rdx, rax
xor r8d, r8d
xor r9d, r9d
call fcn.140063630
jmp 0x14007215f
lea r9, [r10 - 1]
and r9, r8
jmp 0x140072338
cmp dword [rcx + 0x10], r8d
jne 0x140072379
lea rax, [0x140132f50]
lea r8, [rsp + 0x38]
mov qword [r8], rax
mov qword [r8 + 8], 1
lea r12, [rcx + 0x18]
movzx eax, byte [rcx + 0x2f]
test al, al
mov rbp, qword [rcx + 0x18]
cmovns rbp, r12
lea rdx, [rsp + 0x28]
mov qword [rdx], rbp
cmovs rax, qword [rcx + 0x20]
mov qword [rdx + 8], rax
mov dword [rsp + 0x20], 1
lea rbx, [rsp + 0x48]
mov rcx, rbx
xor r9d, r9d
call fcn.14006af00
mov rdx, qword [rbx]
mov rbx, qword [rbx + 8]
lea rsi, [rsp + 0x68]
lea r9, [rsp + 0x60]
mov rcx, rsi
mov r8, rbx
call fcn.140039444
cmp qword [rsi], rbx
je 0x140072573
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14007239c
mov qword [rsp + 0x50], rcx
call fcn.1400ef7cc
jmp 0x14007239c
and rax, r12
jmp 0x140072374
xor ebx, ebx
jmp 0x1400721b9
xor eax, eax
jmp 0x140072222
lea rcx, [0x14016a350]
call fcn.1400ef8f0
cmp dword [0x14016a350], 0xffffffff
jne 0x140072184
lea rcx, [0x14016a348]
call fcn.1400d96b0
lea rcx, [0x14016a350]
call fcn.1400ef988
jmp 0x140072184
lea rcx, [0x140169d48]
call fcn.1400ef8f0
cmp dword [0x140169d48], 0xffffffff
jne 0x1400721ec
mov ecx, 8
call fcn.1400ef770
mov r15, rax
mov qword [rax], 0
mov rcx, rax
xor edx, edx
call fcn.14006eb30
mov qword [0x140169d40], r15
lea rcx, [0x140169d48]
call fcn.1400ef988
jmp 0x1400721ec
mov rax, qword [0x14016a358]
jmp 0x14007215f
call fcn.14006e9c0
jmp 0x14007227a
mov rax, qword [rsp + 0xf0]
mov r9, qword [rsp + 0xe0]
mov qword [rsp + 0x20], rax
mov ecx, r13d
mov rdx, rdi
mov r8, r14
call fcn.1400d81f0
jmp 0x140072238
mov rax, qword [rsp + 0x48]
cmp rax, qword [rsp + 0x50]
je 0x140072589
mov rcx, r12
mov dl, 0x2c
call fcn.14005a358
mov rdx, qword [rsp + 0x60]
mov rcx, r12
call fcn.14005a0ce
jmp 0x14007247d