Function at 0x1800888b0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov r12, rcx
xor r13d, r13d
mov qword [rbp + 0x30], r13
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x180063ddf
mov rax, qword [0x18013bb20]
call qword [rax + 0x1a0]
mov qword [r12 + 0x10], r13
mov rdi, qword [r12 + 0x40]
test rdi, rdi
je 0x180063f85
mov qword [rbp + 0x30], r13
nop word [rax + rax]
dec rdi
lea rdx, [rbp - 0x38]
lea rcx, [r12 + 0x20]
call fcn.180060ac0
mov rcx, rax
mov r8, rdi
lea rdx, [rbp - 0x20]
call fcn.18007c290
mov r8, rax
mov rax, qword [rax]
test rax, rax
jne 0x180063e30
mov rax, r13
jmp 0x180063e33
mov rax, qword [rax]
mov r8, qword [r8 + 0x10]
mov rcx, r8
shr rcx, 1
and r8d, 1
mov rdx, qword [rax + 0x10]
cmp rdx, rcx
ja 0x180063e4d
sub rcx, rdx
mov rax, qword [rax + 8]
mov rcx, qword [rax + rcx*8]
mov rbx, qword [rcx + r8*8]
mov rcx, qword [rbx + 0x88]
test rcx, rcx
je 0x180063e72
mov rax, qword [0x18013bb20]
call qword [rax + 0x1a0]
mov qword [rbx + 0x88], r13
lea rdx, [rbp - 0x20]
lea rcx, [r12 + 0x20]
call fcn.180060ac0
mov rcx, rax
mov r8, rdi
lea rdx, [rbp - 0x38]
call fcn.18007c290
mov rdx, rax
mov rax, qword [rax]
test rax, rax
jne 0x180063ea6
mov rax, r13
jmp 0x180063ea9
mov rax, qword [rax]
mov rdx, qword [rdx + 0x10]
mov rcx, rdx
shr rcx, 1
and edx, 1
mov r8, qword [rax + 0x10]
cmp r8, rcx
ja 0x180063ec2
sub rcx, r8
mov rax, qword [rax + 8]
mov rax, qword [rax + rcx*8]
mov rax, qword [rax + rdx*8]
mov rbx, qword [rax + 0x90]
test rbx, rbx
je 0x180063f01
cmp qword [rbx + 0x18], 0x10
jb 0x180063eea
mov rcx, qword [rbx]
call qword [0x18013af70]
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], r13
mov byte [rbx], 0
mov rcx, rbx
call fcn.1800343c0
lea rdx, [rbp - 0x20]
lea rcx, [r12 + 0x20]
call fcn.180060ac0
mov rcx, rax
mov r8, rdi
lea rdx, [rbp - 0x38]
call fcn.18007c290
mov rbx, rax
mov rax, qword [rax]
test rax, rax
jne 0x180063f2e
mov rax, r13
jmp 0x180063f31
mov rax, qword [rax]
mov rbx, qword [rbx + 0x10]
mov rcx, rbx
shr rcx, 1
and ebx, 1
mov rdx, qword [rax + 0x10]
cmp rdx, rcx
ja 0x180063f4a
sub rcx, rdx
mov rax, qword [rax + 8]
mov rcx, qword [rax + rcx*8]
mov rbx, qword [rcx + rbx*8]
test rbx, rbx
je 0x180063f7c
mov rcx, qword [rbx + 0x88]
test rcx, rcx
je 0x180063f74
mov rax, qword [0x18013bb20]
call qword [rax + 0x1a0]
mov rcx, rbx
call fcn.1800343c0
test rdi, rdi
jne 0x180063e00
lea rcx, [r12 + 0x20]
call fcn.18007c0b0
mov rdi, qword [r12 + 0x70]
test rdi, rdi
je 0x180064091
mov qword [rbp + 0x30], r13
dec rdi
lea rdx, [rbp - 0x20]
lea rcx, [r12 + 0x50]
call fcn.180060ac0
mov rcx, rax
mov r8, rdi
lea rdx, [rbp - 0x38]
call fcn.18007c290
mov rdx, rax
mov rax, qword [rax]
test rax, rax
jne 0x180063fd1
mov rax, r13
jmp 0x180063fd4
mov rax, qword [rax]
mov rdx, qword [rdx + 0x10]
mov rcx, rdx
shr rcx, 1
and edx, 1
mov r8, qword [rax + 0x10]
cmp r8, rcx
ja 0x180063fed
sub rcx, r8
mov rax, qword [rax + 8]
mov rcx, qword [rax + rcx*8]
mov rbx, qword [rcx + rdx*8]
mov rcx, qword [rbx]
test rcx, rcx
je 0x18006400e
mov rax, qword [0x18013bb20]
call qword [rax + 0x1a0]
mov qword [rbx], r13
lea rdx, [rbp - 0x20]
lea rcx, [r12 + 0x50]
call fcn.180060ac0
mov rcx, rax
mov r8, rdi
lea rdx, [rbp - 0x38]
call fcn.18007c290
mov rbx, rax
mov rax, qword [rax]
test rax, rax
jne 0x18006403e
mov rax, r13
jmp 0x180064041
mov rax, qword [rax]
mov rbx, qword [rbx + 0x10]
mov rcx, rbx
shr rcx, 1
and ebx, 1
mov rdx, qword [rax + 0x10]
cmp rdx, rcx
ja 0x18006405a
sub rcx, rdx
mov rax, qword [rax + 8]
mov rcx, qword [rax + rcx*8]
mov rbx, qword [rcx + rbx*8]
test rbx, rbx
je 0x180064088
mov rcx, qword [rbx]
test rcx, rcx
je 0x180064080
mov rax, qword [0x18013bb20]
call qword [rax + 0x1a0]
mov rcx, rbx
call fcn.1800343c0
test rdi, rdi
jne 0x180063fa1
lea rcx, [r12 + 0x50]
call fcn.18007c0b0
mov rdi, qword [r12 + 0xa0]
test rdi, rdi
je 0x1800641b4
mov qword [rbp + 0x30], r13
dec rdi
lea rdx, [rbp - 0x20]
lea rcx, [r12 + 0x80]
call fcn.180060ac0
mov rcx, rax
mov r8, rdi
lea rdx, [rbp - 0x38]
call fcn.18007c290
mov rdx, rax
mov rax, qword [rax]
test rax, rax
jne 0x1800640e3
mov rax, r13
jmp 0x1800640e6
mov rax, qword [rax]
mov rdx, qword [rdx + 0x10]
mov rcx, rdx
shr rcx, 1
and edx, 1
mov r8, qword [rax + 0x10]
cmp r8, rcx
ja 0x1800640ff
sub rcx, r8
mov rax, qword [rax + 8]
mov rcx, qword [rax + rcx*8]
mov rbx, qword [rcx + rdx*8]
mov rcx, qword [rbx]
test rcx, rcx
je 0x180064120
mov rax, qword [0x18013bb20]
call qword [rax + 0x1a0]
mov qword [rbx], r13
lea rdx, [rbp - 0x20]
lea rcx, [r12 + 0x80]
call fcn.180060ac0
mov rcx, rax
mov r8, rdi
lea rdx, [rbp - 0x38]
call fcn.18007c290
mov rbx, rax
mov rax, qword [rax]
test rax, rax
jne 0x180064153
mov rax, r13
jmp 0x180064156
mov rax, qword [rax]
mov rbx, qword [rbx + 0x10]
mov rcx, rbx
shr rcx, 1
and ebx, 1
mov rdx, qword [rax + 0x10]
cmp rdx, rcx
ja 0x18006416f
sub rcx, rdx
mov rax, qword [rax + 8]
mov rcx, qword [rax + rcx*8]
mov rbx, qword [rcx + rbx*8]
mov qword [rbp + 0x38], rbx
test rbx, rbx
je 0x1800641ab
lea rcx, [rbx + 8]
call fcn.18009fa80
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800641a3
mov rax, qword [0x18013bb20]
call qword [rax + 0x1a0]
mov rcx, rbx
call fcn.1800343c0
test rdi, rdi
jne 0x1800640b0
lea rcx, [r12 + 0x80]
call fcn.18007c0b0
mov rdi, qword [r12 + 0xd0]
test rdi, rdi
je 0x1800642e4
mov qword [rbp + 0x30], r13
nop word [rax + rax]
dec rdi
lea rdx, [rbp - 0x20]
lea rcx, [r12 + 0xb0]
call fcn.180060ac0
mov rcx, rax
mov r8, rdi
lea rdx, [rbp - 0x38]
call fcn.18007c290
mov rdx, rax
mov rax, qword [rax]
test rax, rax
jne 0x180064213
mov rax, r13
jmp 0x180064216
mov rax, qword [rax]
mov rdx, qword [rdx + 0x10]
mov rcx, rdx
shr rcx, 1
and edx, 1
mov r8, qword [rax + 0x10]
cmp r8, rcx
ja 0x18006422f
sub rcx, r8
mov rax, qword [rax + 8]
mov rcx, qword [rax + rcx*8]
mov rbx, qword [rcx + rdx*8]
mov rcx, qword [rbx]
test rcx, rcx
je 0x180064250
mov rax, qword [0x18013bb20]
call qword [rax + 0x1a0]
mov qword [rbx], r13
lea rdx, [rbp - 0x20]
lea rcx, [r12 + 0xb0]
call fcn.180060ac0
mov rcx, rax
mov r8, rdi
lea rdx, [rbp - 0x38]
call fcn.18007c290
mov rbx, rax
mov rax, qword [rax]
test rax, rax
jne 0x180064283
mov rax, r13
jmp 0x180064286
mov rax, qword [rax]
mov rbx, qword [rbx + 0x10]
mov rcx, rbx
shr rcx, 1
and ebx, 1
mov rdx, qword [rax + 0x10]
cmp rdx, rcx
ja 0x18006429f
sub rcx, rdx
mov rax, qword [rax + 8]
mov rcx, qword [rax + rcx*8]
mov rbx, qword [rcx + rbx*8]
mov qword [rbp + 0x38], rbx
test rbx, rbx
je 0x1800642db
lea rcx, [rbx + 8]
call fcn.18009fa80
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800642d3
mov rax, qword [0x18013bb20]
call qword [rax + 0x1a0]
mov rcx, rbx
call fcn.1800343c0
test rdi, rdi
jne 0x1800641e0
lea rcx, [r12 + 0xb0]
call fcn.18007c0b0
mov rcx, qword [r12 + 0x1f8]
test rcx, rcx
je 0x180064308
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [r12 + 0x1f8], r13
mov rcx, qword [r12 + 0x200]
test rcx, rcx
je 0x180064327
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [r12 + 0x200], r13
mov qword [rbp + 0x30], r13
mov rcx, qword [r12 + 0x18]
test rcx, rcx
je 0x18006434a
mov rax, qword [0x18013bb20]
call qword [rax + 0x1a0]
mov qword [r12 + 0x18], r13
mov rcx, qword [r12 + 0x1f0]
test rcx, rcx
je 0x180064366
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [r12 + 0x1f0], r13
mov rcx, qword [r12 + 0x1e8]
test rcx, rcx
je 0x180064385
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [r12 + 0x1e8], r13
mov rbx, qword [r12 + 0x2f0]
test rbx, rbx
je 0x1800643aa
mov rcx, rbx
call fcn.18002c140
mov rcx, rbx
call fcn.1800343c0
mov qword [r12 + 0x2f0], r13
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp 0x1800888b0
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, qword [0x1801298f8]
test rbx, rbx
jne 0x1800888ee
lea ecx, [rbx + 4]
call fcn.180034390
mov rbx, rax
test rax, rax
je 0x1800888e5
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x1800888e7
xor ebx, ebx
mov qword [0x1801298f8], rbx
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
call fcn.180088740
mov qword [rsp + 0x40], 0
mov rcx, qword [0x180138858]
mov qword [0x180138858], 0
test rcx, rcx
je 0x180088927
call qword [0x18013b070]
nop
jmp 0x180088927
add rsp, 0x30
pop rbx
ret