Function at 0x1800b17b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x970
xor edi, edi
mov rsi, rcx
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x58], 2
mov dword [rsp + 0x5c], 3
lea rdx, [rsp + 0x160]
lea ecx, [rdi + 0x20]
mov dword [rsp + 0x990], edi
mov dword [rsp + 0x50], edi
nop
mov qword [rdx], 0xffffffffffffffff
mov qword [rdx + 8], 0xffffffffffffffff
mov qword [rdx + 0x10], 0xffffffffffffffff
add rdx, 0x40
dec rcx
mov qword [rdx - 0x28], 0xffffffffffffffff
mov qword [rdx - 0x20], 0xffffffffffffffff
mov qword [rdx - 0x18], 0xffffffffffffffff
mov qword [rdx - 0x10], 0xffffffffffffffff
mov qword [rdx - 8], 0xffffffffffffffff
jne 0x1800b17f0
mov r10, qword [rsi + 0x19550]
mov r12d, dword [r10 + 0x78]
and r12d, 0xfffff
cmp r12d, 3
jae 0x1800b1861
mov eax, 1
add rsp, 0x970
pop r12
pop rdi
pop rsi
ret
mov edx, edi
test r12d, r12d
je 0x1800b189a
mov r8, qword [r10 + 0x28]
nop dword [rax]
mov r9, qword [r8]
mov rax, qword [r9 + 0xa8]
movzx ecx, byte [rax + 0x10]
shr cl, 5
test cl, 1
jne 0x1800b1850
cmp dword [r9 + 0xcc], edx
jne 0x1800b1850
inc edx
add r8, 8
cmp edx, r12d
jb 0x1800b1870
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x998], rbx
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x9a0], rbp
lea rax, [rsp + 0x50]
mov qword [rsp + 0x9a8], r13
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x160]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x990]
lea r8, [0x180028120]
mov rdx, r10
mov rcx, rsi
mov qword [rsp + 0x968], r14
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x960], r15
call fcn.18018c190
mov ebx, eax
test eax, eax
jne 0x1800b1b69
mov ecx, edi
lea rax, [rsp + 0x160]
nop dword [rax + rax]
mov rdx, qword [rax]
cmp rdx, qword [rax + 0x20]
jne 0x1800b1ba6
cmp rdx, qword [rax + 0x40]
jne 0x1800b1ba6
cmp dword [rdx + 0xcc], ecx
je 0x1800b194c
test byte [rsi + 0xcef4], 2
jne 0x1800b1ba6
inc ecx
add rax, 8
cmp ecx, 3
jb 0x1800b1920
cmp qword [rsp + 0x198], 0xffffffffffffffff
jne 0x1800b1ba6
cmp qword [rsp + 0x1b8], 0xffffffffffffffff
jne 0x1800b1ba6
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x1800b1984
mov rcx, rdi
jmp 0x1800b198d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
cmp qword [rcx + 0x30], rdi
je 0x1800b19c2
mov rbp, qword [rcx + 0x30]
test rbp, rbp
jne 0x1800b19a1
mov rbp, rdi
jmp 0x1800b19d7
mov rax, qword [rbp]
mov qword [rcx + 0x30], rax
test rax, rax
jne 0x1800b19b2
mov qword [rcx + 0x38], rdi
movabs rax, 0xfefefefefefefefe
mov qword [rbp], rax
jmp 0x1800b19d7
mov rcx, qword [rcx + 0x28]
mov edx, 0x80
lea r8d, [rdx - 0x70]
call fcn.180243b70
mov rbp, rax
test rbp, rbp
je 0x1800b1b9f
mov edx, r12d
mov r9d, r12d
mov r8d, r12d
and edx, 0xfffff
mov rcx, rbp
mov qword [rbp], 0xffffffffffffffff
or edx, 0x90100000
mov qword [rbp + 8], 0xffffffffffffffff
mov dword [rbp + 0x10], edi
mov dword [rbp + 0x20], edi
mov dword [rbp + 0x30], 0xffffffff
mov dword [rbp + 0x78], edi
mov qword [rbp + 0x18], rdi
mov word [rbp + 0x7c], di
mov qword [rbp + 0x28], rdi
mov word [rbp + 0x7e], di
mov dword [rbp + 0x38], edi
mov dword [rbp + 0x3c], edi
mov dword [rbp + 0x40], edi
mov qword [rbp + 0x48], 0xffffffffffffffff
mov dword [rbp + 0x50], edi
mov dword [rbp + 0x68], edi
mov qword [rbp + 0x70], rdi
mov byte [rsp + 0x20], dil
call fcn.180193d40
mov ebx, eax
test eax, eax
js 0x1800b1b47
mov rcx, qword [rsi + 0x19550]
lea rbx, [r12*8]
mov r13d, r12d
mov eax, dword [rcx + 0x68]
mov r8, rbx
mov dword [rbp + 0x68], eax
mov rax, qword [rcx + 0x70]
mov rcx, qword [rbp + 0x28]
mov qword [rbp + 0x70], rax
mov rdx, qword [rsi + 0x19550]
mov rdx, qword [rdx + 0x28]
call sub.msvcrt.dll_memcpy
mov rcx, qword [rbp + 0x18]
lea rdx, [rsp + 0x160]
mov r8, rbx
call sub.msvcrt.dll_memcpy
test r12d, r12d
je 0x1800b1b36
nop dword [rax + rax]
test byte [rsi + 0xcef4], 2
je 0x1800b1b0d
mov rax, qword [rsi + 0x19550]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + rdi]
or qword [rax + 0x98], 0x80
mov rax, qword [rsi + 0x19550]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + rdi]
cmp qword [rax + 0xf0], 0xffffffffffffffff
je 0x1800b1b0d
mov rax, qword [rsi + 0x19550]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + rdi]
mov rcx, qword [rax + 0xf0]
or qword [rcx + 0x98], 0x80
mov rax, qword [rsi + 0x19550]
add rdi, 8
mov rcx, qword [rax + 0x28]
mov rax, qword [rcx + rdi - 8]
or qword [rax + 0x98], 0x80
sub r13, 1
jne 0x1800b1ab0
mov rcx, qword [rsi + 0x19550]
mov rdx, rbp
call fcn.180195040
mov ebx, eax
lea rdx, [rbp + 0x18]
lea rcx, [rbp + 0x7c]
call fcn.180193c50
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x7e]
call fcn.180193c50
mov rcx, rbp
call fcn.1801979c0
mov eax, ebx
mov r14, qword [rsp + 0x968]
mov r13, qword [rsp + 0x9a8]
mov rbp, qword [rsp + 0x9a0]
mov rbx, qword [rsp + 0x998]
mov r15, qword [rsp + 0x960]
add rsp, 0x970
pop r12
pop rdi
pop rsi
ret
mov eax, 0x8007000e
jmp 0x1800b1b6b
mov eax, 1
jmp 0x1800b1b6b