Function at 0x140126c90
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, 0x1c8
mov rsi, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rdi, qword [rcx + 0x168]
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140127436
mov rcx, qword [rdi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rdi + 8]
jne 0x140127436
mov rax, qword [rax + rcx]
cmp rax, rsi
jne 0x140126d5f
mov rdi, qword [rsi + 0x168]
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140126d28
mov rcx, qword [rdi]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [rdi + 8]
mov rdx, qword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
xor ebp, ebp
cmp dword [rsi], 0
sete bpl
mov r12, qword [rsi + 0x148]
mov r13, qword [rsi + 0x150]
cmp r12, r13
jne 0x140127065
mov r12, qword [rsi + 0xd8]
mov r13, qword [rsi + 0xe0]
cmp r12, r13
jne 0x140126e0d
mov r15, qword [rsi + 0x148]
test r15, r15
je 0x140126da2
mov r12, qword [rsi + 0x150]
mov rcx, r15
cmp r12, r15
jne 0x140126ffe
mov qword [rsi + 0x150], r15
mov rax, qword [rsi + 0x160]
test rax, rax
je 0x14012743d
cmp rax, rcx
jne 0x14012743d
mov byte [rcx + 0x40], 0
mov rbx, qword [rsi + 0xd8]
test rbx, rbx
je 0x140126de8
mov r14, qword [rsi + 0xe0]
mov rcx, rbx
cmp r14, rbx
jne 0x1401274c1
mov qword [rsi + 0xe0], rbx
mov rax, qword [rsi + 0xf0]
test rax, rax
je 0x140127335
cmp rax, rcx
jne 0x140127335
mov byte [rcx + 0xc0], 0
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14017e7b0
nop
add rsp, 0x1c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rsp + 0x50]
mov r15, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r8d, 0x170
mov rcx, rbx
mov dl, 0xaa
call fcn.1401808d0
mov eax, dword [rsi]
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x140], rax
mov byte [rsp + 0x118], 1
mov qword [rsp + 0x128], rax
mov qword [rsp + 0x130], rax
lea rax, [rsp + 0x118]
mov qword [rsp + 0x138], rax
lea rax, [rsp + 0x148]
mov qword [rsp + 0x190], rax
mov qword [rsp + 0x1b0], rax
mov byte [rsp + 0x188], 1
mov qword [rsp + 0x198], rax
mov qword [rsp + 0x1a0], rax
lea rax, [rsp + 0x188]
mov qword [rsp + 0x1a8], rax
mov r14, qword [0x14029f558]
cmp r14, 1
jbe 0x14012737d
mov qword [rsp + 0x1b8], r14
mov ecx, dword [0x14029bf80]
call r15
and rax, 0xfffffffffffffffc
je 0x140126eec
mov rcx, qword [r14]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [r14 + 8]
jne 0x140126eec
cmp qword [rax + rcx], 0
jne 0x140126f20
mov rdi, qword [rsp + 0x1b8]
mov ecx, dword [0x14029bf80]
call r15
and rax, 0xfffffffffffffffc
je 0x14012733f
mov rcx, qword [rdi]
shl rcx, 4
mov qword [rax + rcx], rbx
mov ecx, dword [rdi + 8]
mov rdx, qword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov r15, qword [r12]
mov ebx, dword [r12 + 8]
lea rdi, [r15 + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140127349
cmp byte [r15 + 0x40], 0
jne 0x140126fcf
mov qword [rsp + 0x28], rdi
cmp ebx, 1
jne 0x140126f58
mov byte [r15 + 0x40], 1
mov rdi, qword [r15 + 8]
mov rax, qword [r15 + 0x18]
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x30], 0x20
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], ebx
mov rax, qword [r12 + 0xc]
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x34], ebp
lea r15, [rdi + 0x18]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14012741c
movzx r14d, byte [rdi + 0x21]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp ebx, 1
je 0x140126fbb
test r14b, r14b
jne 0x140126fca
mov rax, qword [rdi + 0x10]
lea rcx, [rsp + 0x30]
call qword [case.0x1401e7f70.0]
mov rdi, qword [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lea rbx, [rsp + 0x50]
mov rcx, rbx
call fcn.140126c90
add r12, 0x18
cmp r12, r13
mov r15, qword [sym.imp.KERNEL32.dll_TlsGetValue]
je 0x140126d5f
jmp 0x140126e19
lea r14, [0x14016f690]
lea r13, [0x14026f258]
lea rbp, [fcn.140127660]
mov rdi, qword [r12 - 8]
add r12, 0xfffffffffffffff8
test rdi, rdi
je 0x140127054
lock dec dword [rdi]
jne 0x140127054
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140127039
lock dec dword [rcx + 8]
je 0x1401272c7
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14012704c
lock dec dword [rbx + 8]
je 0x140127254
mov rcx, rdi
call fcn.14017b254
cmp r12, r15
jne 0x140127013
mov rcx, qword [rsi + 0x148]
jmp 0x140126d7e
lea rdi, [rsp + 0x148]
lea r15, [rsp + 0x50]
mov eax, dword [0x14029f550]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140127300
mov r8d, 0x170
mov rcx, r15
mov dl, 0xaa
call fcn.1401808d0
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x140], rax
mov cl, 1
mov byte [rsp + 0x118], cl
mov qword [rsp + 0x128], rax
mov qword [rsp + 0x130], rax
lea rax, [rsp + 0x118]
mov qword [rsp + 0x138], rax
mov qword [rsp + 0x190], rdi
mov qword [rsp + 0x1b0], rdi
mov byte [rsp + 0x188], cl
mov qword [rsp + 0x198], rdi
mov qword [rsp + 0x1a0], rdi
lea rax, [rsp + 0x188]
mov qword [rsp + 0x1a8], rax
mov r14, qword [0x14029f558]
cmp r14, 1
jbe 0x1401273d0
mov qword [rsp + 0x1b8], r14
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140127167
mov rcx, qword [r14]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [r14 + 8]
jne 0x140127167
cmp qword [rax + rcx], 0
jne 0x14012719e
mov rbx, qword [rsp + 0x1b8]
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140127356
mov rcx, qword [rbx]
shl rcx, 4
mov qword [rax + rcx], r15
mov ecx, dword [rbx + 8]
mov rdx, qword [rbx]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov r15, qword [r12]
lea r14, [r15 + 0x38]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140127360
cmp byte [r15 + 0x40], 0
jne 0x14012722c
mov byte [r15 + 0x40], 1
mov rbx, qword [r15 + 8]
mov rax, qword [r15 + 0x18]
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x30], 0x20
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], 1
mov rax, qword [0x14029f548]
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x34], ebp
lea r15, [rbx + 0x18]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140127429
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, qword [rbx + 0x10]
lea rcx, [rsp + 0x30]
call qword [case.0x1401e7f70.0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lea r15, [rsp + 0x50]
mov rcx, r15
call fcn.140126c90
add r12, 8
cmp r12, r13
je 0x140126d48
jmp 0x140127072
mov rax, qword [rbx]
mov rax, qword [rax + 0xe0]
cmp rax, r14
jne 0x140127447
mov qword [rbx], r13
lea rcx, [rbx + 0x68]
mov rdx, qword [rbx + 0x70]
call fcn.140120290
mov rbp, qword [rbx + 0x50]
test rbp, rbp
je 0x14012729f
mov r13, r14
mov r14, qword [rbx + 0x58]
mov rcx, rbp
cmp r14, rbp
jne 0x14012748f
mov qword [rbx + 0x58], rbp
call fcn.14017b254
mov r14, r13
mov rbp, qword [rbx + 0x30]
test rbp, rbp
jne 0x14012745a
mov rcx, rbx
call fcn.14017b254
lea r13, [0x14026f258]
lea rbp, [fcn.140127660]
jmp 0x14012704c
mov rax, qword [rcx]
mov rax, qword [rax + 0xe0]
cmp rax, rbp
jne 0x1401272e5
mov edx, 1
call fcn.140127660
jmp 0x140127039
lea rdx, [fcn.14001ec40]
cmp rax, rdx
jne 0x14012736d
mov edx, 1
call fcn.14001ec40
jmp 0x140127039
lea rcx, [0x14029f550]
call fcn.14017b2bc
cmp dword [0x14029f550], 0xffffffff
jne 0x140127097
mov qword [0x14029f548], 0
lea rcx, [0x14029f550]
call fcn.14017b25c
jmp 0x140127097
call fcn.14017b254
jmp 0x140126de8
call fcn.140002990
jmp 0x140126f07
mov rcx, rdi
call fcn.1400fdfc0
jmp 0x140126f3e
call fcn.140002990
jmp 0x140127185
mov rcx, r14
call fcn.1400fdfc0
jmp 0x1401271b7
mov edx, 1
call qword [case.0x1401e7f70.0]
jmp 0x140127039
lea rcx, [0x14029f558]
call fcn.140008ab0
test al, al
je 0x1401274a9
mov qword [0x14029f568], 0
lea r14, [0x14029f560]
mov qword [0x14029f560], 0xffffffffffffffff
mov rcx, r14
xor edx, edx
call fcn.140002850
mov qword [0x14029f558], r14
lea rbx, [rsp + 0x50]
mov r15, qword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x140126ebd
lea rcx, [0x14029f558]
call fcn.140008ab0
test al, al
je 0x1401274b5
mov qword [0x14029f568], 0
lea r14, [0x14029f560]
mov qword [0x14029f560], 0xffffffffffffffff
mov rcx, r14
xor edx, edx
call fcn.140002850
mov qword [0x14029f558], r14
lea r15, [rsp + 0x50]
jmp 0x140127135
mov rcx, r15
call fcn.1400fdfc0
jmp 0x140126fa3
mov rcx, r15
call fcn.1400fdfc0
jmp 0x140127214
xor eax, eax
jmp 0x140126ced
call fcn.14017b254
jmp 0x140126da2
mov rcx, rbx
mov edx, 1
call qword [case.0x1401e7f70.0]
jmp 0x1401272bb
mov r13, r14
mov r14, qword [rbx + 0x38]
mov rcx, rbp
cmp r14, rbp
je 0x14012747e
add r14, 0xfffffffffffffff0
mov rcx, r14
call fcn.1401c6b70
cmp r14, rbp
jne 0x140127469
mov rcx, qword [rbx + 0x30]
mov qword [rbx + 0x38], rbp
call fcn.14017b254
mov r14, r13
jmp 0x1401272ac
add r14, 0xfffffffffffffff0
mov rcx, r14
call fcn.1401c6b70
cmp r14, rbp
jne 0x14012748f
mov rcx, qword [rbx + 0x50]
jmp 0x140127293
mov r14, qword [0x14029f558]
jmp 0x1401273bf
mov r14, qword [0x14029f558]
jmp 0x140127412
mov rdi, qword [r14 - 0x18]
add r14, 0xffffffffffffffe8
test rdi, rdi
je 0x1401274d3
lock dec dword [rdi]
je 0x1401274e4
cmp r14, rbx
jne 0x1401274c1
mov rcx, qword [rsi + 0xd8]
jmp 0x140126dc1
mov rcx, rdi
call fcn.140127500
mov rcx, rdi
call fcn.14017b254
jmp 0x1401274d3