Function at 0x1800b30f0
Capabilities:
Get thread local storage value

Disassembly:
mov byte [rsp + 0x10], dl
mov r11, rsp
push rbx
push rbp
push rdi
push r12
push r13
sub rsp, 0x970
movzx ebx, dl
mov rdx, qword [rcx + 0x19550]
xor ebp, ebp
mov r13d, dword [rdx + 0x78]
mov byte [rsp + 0x40], bl
lea rax, [rsp + 0x50]
and r13d, 0xfffff
lea r9, [rsp + 0x60]
lea r8, [0x18001cab8]
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], rax
lea rax, [r11 - 0x838]
mov qword [rsp + 0x28], rax
lea rax, [r11 + 8]
mov r12, rcx
mov rdi, rbp
mov dword [r11 + 8], ebp
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x58], 2
mov dword [rsp + 0x5c], 3
call fcn.18018c190
test eax, eax
je 0x1800b31de
mov rdx, qword [r12 + 0x19550]
mov byte [rsp + 0x40], bl
mov dword [rsp + 0x38], r13d
lea rcx, [rsp + 0x50]
lea r9, [rsp + 0x60]
lea r8, [0x18001cb28]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x160]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x9a0]
mov qword [rsp + 0x20], rcx
mov rcx, r12
call fcn.18018c190
test eax, eax
je 0x1800b31de
lea eax, [rbp + 1]
add rsp, 0x970
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
mov qword [rsp + 0x968], r14
mov qword [rsp + 0x960], r15
lea r15, [rsp + 0x160]
mov qword [rsp + 0x9b0], rsi
mov r14d, ebp
mov r8d, ebp
test r13d, r13d
je 0x1800b32bc
movzx r11d, byte [r12 + 0xcef7]
mov r9, r15
lea r10, [rsp + 0x1c0]
shr r11b, 4
and r11b, 1
nop dword [rax]
mov rcx, qword [r9]
mov rdx, qword [r10]
test r11b, r11b
je 0x1800b3259
mov eax, dword [rdx + 0xf8]
xor eax, dword [rcx + 0xf8]
cmp eax, 0x400
jne 0x1800b32bc
cmp qword [rdx + 0xf0], rcx
jne 0x1800b32bc
jmp 0x1800b32a8
mov rax, qword [rdx + 0xa8]
cmp qword [rcx + 0xa8], rax
jne 0x1800b32bc
mov rax, qword [rdx + 0xc0]
cmp qword [rcx + 0xc0], rax
jne 0x1800b32bc
mov eax, dword [rdx + 0xc8]
cmp dword [rcx + 0xc8], eax
jne 0x1800b32bc
mov eax, dword [rdx + 0xcc]
cmp dword [rcx + 0xcc], eax
jne 0x1800b32bc
mov eax, dword [rdx + 0xf8]
xor eax, dword [rcx + 0xf8]
cmp eax, 0x400
jne 0x1800b32bc
inc r8d
add r10, 8
add r9, 8
cmp r8d, r13d
jb 0x1800b3230
cmp r8d, r13d
jne 0x1800b3686
mov ecx, dword [0x18025e63c]
mov rsi, qword [r12 + 0x19550]
test ecx, ecx
jns 0x1800b32dc
mov rcx, rbp
jmp 0x1800b32e5
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
cmp qword [rcx + 0x30], 0
je 0x1800b3319
mov rbx, qword [rcx + 0x30]
test rbx, rbx
jne 0x1800b32fa
mov rbx, rbp
jmp 0x1800b332e
mov rax, qword [rbx]
mov qword [rcx + 0x30], rax
test rax, rax
jne 0x1800b330a
mov qword [rcx + 0x38], rbp
movabs rax, 0xfefefefefefefefe
mov qword [rbx], rax
jmp 0x1800b332e
mov rcx, qword [rcx + 0x28]
mov edx, 0x80
lea r8d, [rdx - 0x70]
call fcn.180243b70
mov rbx, rax
test rbx, rbx
je 0x1800b3858
mov edx, r13d
lea r8d, [r13 + r13*2]
mov r9d, r13d
and edx, 0xfffff
mov rcx, rbx
mov qword [rbx], 0xffffffffffffffff
or edx, 0x90000000
mov qword [rbx + 8], 0xffffffffffffffff
mov dword [rbx + 0x10], ebp
mov dword [rbx + 0x20], ebp
mov dword [rbx + 0x30], 0xffffffff
mov dword [rbx + 0x78], ebp
mov qword [rbx + 0x18], rbp
mov word [rbx + 0x7c], bp
mov qword [rbx + 0x28], rbp
mov word [rbx + 0x7e], bp
mov dword [rbx + 0x38], ebp
mov dword [rbx + 0x3c], ebp
mov dword [rbx + 0x40], ebp
mov qword [rbx + 0x48], 0xffffffffffffffff
mov dword [rbx + 0x50], ebp
mov dword [rbx + 0x68], ebp
mov qword [rbx + 0x70], rbp
mov byte [rsp + 0x20], 0
call fcn.180193d40
mov ebp, eax
test eax, eax
js 0x1800b33c6
test rsi, rsi
je 0x1800b33be
mov eax, dword [rsi + 0x68]
mov dword [rbx + 0x68], eax
mov rax, qword [rsi + 0x70]
mov qword [rbx + 0x70], rax
mov rdi, rbx
jmp 0x1800b34cc
cmp word [rbx + 0x7c], 0
je 0x1800b3423
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x1800b33df
xor r9d, r9d
mov rax, r9
jmp 0x1800b33e8
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r9d, r9d
movzx ecx, word [rbx + 0x7c]
cmp ecx, dword [rax + 0x250]
ja 0x1800b3418
mov r8, qword [rbx + 0x18]
dec ecx
movsxd rdx, ecx
shl rdx, 5
add rdx, qword [rax + 0x248]
test r8, r8
je 0x1800b3418
mov rax, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r8
mov word [rbx + 0x7c], r9w
mov qword [rbx + 0x18], r9
jmp 0x1800b3426
xor r9d, r9d
cmp word [rbx + 0x7e], 0
je 0x1800b347e
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x1800b343c
mov rax, r9
jmp 0x1800b3445
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r9d, r9d
movzx ecx, word [rbx + 0x7e]
cmp ecx, dword [rax + 0x250]
ja 0x1800b3475
mov r8, qword [rbx + 0x28]
dec ecx
movsxd rdx, ecx
shl rdx, 5
add rdx, qword [rax + 0x248]
test r8, r8
je 0x1800b3475
mov rax, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r8
mov word [rbx + 0x7e], r9w
mov qword [rbx + 0x28], r9
mov ecx, dword [0x18025e63c]
test ecx, ecx
js 0x1800b34c4
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
je 0x1800b34c4
mov edx, 0xfe
mov rcx, rbx
lea r8d, [rdx - 0x7e]
call fcn.18024adb8
mov qword [rbx], 0
mov rax, qword [rsi + 0x38]
test rax, rax
je 0x1800b34bc
mov qword [rax], rbx
jmp 0x1800b34c0
mov qword [rsi + 0x30], rbx
mov qword [rsi + 0x38], rbx
test ebp, ebp
jne 0x1800b385d
mov rdx, qword [r12 + 0x19550]
mov rcx, qword [rdi + 0x28]
lea rbx, [r13*8]
mov rdx, qword [rdx + 0x28]
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov rcx, qword [rdi + 0x18]
lea rdx, [rsp + 0x1a0]
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov rax, qword [rdi + 0x18]
mov r11d, 4
sub r11d, r14d
lea rcx, [rbx + rax]
mov r8, rbx
lea rdx, [rsp + r11*8 + 0x160]
call sub.msvcrt.dll_memcpy
mov rax, qword [rdi + 0x18]
lea r11d, [r13 + r13]
lea rdx, [rsp + 0x1c0]
lea rcx, [rax + r11*8]
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov rcx, qword [rdi + 0x18]
mov r11, qword [rdi + 0x28]
mov rsi, qword [rcx]
mov rbx, qword [r11]
movsxd rax, r13d
add rax, rax
mov rdx, qword [rcx + rax*8]
mov rcx, qword [rbx + 0xa8]
cmp rcx, qword [rsi + 0xa8]
jne 0x1800b3574
mov eax, dword [rsi + 0xc8]
cmp dword [rbx + 0xc8], eax
je 0x1800b3595
cmp rcx, qword [rdx + 0xa8]
jne 0x1800b358b
mov eax, dword [rdx + 0xc8]
cmp dword [rbx + 0xc8], eax
je 0x1800b3595
cmp rcx, qword [r12 + 0xd078]
je 0x1800b35a0
test byte [r12 + 0xcef7], 0x10
je 0x1800b35ce
mov rax, qword [r12]
xor r8d, r8d
mov rdx, rdi
mov rcx, r12
call qword [rax + 0x98]
test al, al
jne 0x1800b35ce
mov rax, qword [rbx + 0xa8]
movzx ecx, byte [rax + 0x10]
shr cl, 5
test cl, 1
je 0x1800b36c4
cmp word [rdi + 0x7c], 0
je 0x1800b3628
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x1800b35e6
xor ebp, ebp
mov rax, rbp
jmp 0x1800b35ee
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebp, ebp
movzx ecx, word [rdi + 0x7c]
cmp ecx, dword [rax + 0x250]
ja 0x1800b361e
mov r8, qword [rdi + 0x18]
dec ecx
movsxd rdx, ecx
shl rdx, 5
add rdx, qword [rax + 0x248]
test r8, r8
je 0x1800b361e
mov rax, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r8
mov word [rdi + 0x7c], bp
mov qword [rdi + 0x18], rbp
jmp 0x1800b362a
xor ebp, ebp
cmp word [rdi + 0x7e], 0
je 0x1800b367e
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x1800b3640
mov rax, rbp
jmp 0x1800b3646
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx ecx, word [rdi + 0x7e]
cmp ecx, dword [rax + 0x250]
ja 0x1800b3676
mov r8, qword [rdi + 0x28]
dec ecx
movsxd rdx, ecx
shl rdx, 5
add rdx, qword [rax + 0x248]
test r8, r8
je 0x1800b3676
mov rax, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r8
mov word [rdi + 0x7e], bp
mov qword [rdi + 0x28], rbp
mov rcx, rdi
call fcn.1801979c0
add r14d, 4
add r15, 0x20
cmp r14d, 8
jb 0x1800b3201
mov eax, 1
mov rsi, qword [rsp + 0x9b0]
mov r14, qword [rsp + 0x968]
mov r15, qword [rsp + 0x960]
add rsp, 0x970
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
test byte [r12 + 0xcef7], 0x10
je 0x1800b3748
test byte [rsi + 0xf8], 1
jne 0x1800b3748
movsd xmm0, qword [rsi + 0x158]
comisd xmm0, xmmword [0x1800685c8]
jb 0x1800b3706
comisd xmm0, xmmword [0x1800685e8]
jb 0x1800b3706
movsd xmm0, qword [0x180068590]
comisd xmm0, xmmword [rsi + 0x160]
jae 0x1800b3748
mov edx, 1
mov rcx, rdi
call fcn.1800c5dc0
mov rdx, qword [r12 + 0x19550]
test rdx, rdx
je 0x1800b3729
mov rdx, qword [rdx + 0x70]
test rdx, rdx
jne 0x1800b372e
xor eax, eax
mov rdx, rax
lea r9, [0x18003ccb8]
mov r8d, 0x125f
mov rcx, r12
call fcn.18019df60
jmp 0x1800b3698
cmp byte [rsp + 0x9a8], 0
jne 0x1800b3819
mov eax, dword [rsp + 0x9a0]
test eax, eax
je 0x1800b3789
lea rcx, [rsp + 0x60]
mov rdx, rax
xor r8d, r8d
nop dword [rax]
mov rax, qword [rcx]
add rcx, 8
sub rdx, 1
mov dword [rax + 0x78], r8d
mov dword [rax + 0x10], r8d
mov dword [rax + 0x20], r8d
jne 0x1800b3770
mov rcx, qword [r12 + 0x19550]
mov rax, qword [rcx]
mov ebx, dword [rcx + 0x30]
mov qword [rdi], rax
mov rax, qword [rcx]
test rax, rax
je 0x1800b37a8
mov qword [rax + 8], rdi
jmp 0x1800b37ad
mov qword [r12 + 0x20], rdi
mov qword [rdi + 8], rcx
mov rax, qword [rcx + 8]
mov qword [rcx], rdi
test rax, rax
je 0x1800b37c2
mov qword [rax], rdi
jmp 0x1800b37c7
mov qword [r12 + 0x18], rdi
mov rdx, qword [rcx]
test rdx, rdx
je 0x1800b37d9
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
jmp 0x1800b37e2
mov rax, qword [rcx + 8]
mov qword [r12 + 0x20], rax
mov edx, 1
mov qword [rcx], 0xffffffffffffffff
mov qword [rcx + 8], 0xffffffffffffffff
call fcn.1800c5dc0
cmp dword [rdi + 0x30], 0xffffffff
jne 0x1800b380a
mov dword [rdi + 0x30], ebx
or dword [r12 + 0x28], 6
mov rcx, r12
call fcn.1801b3770
xor eax, eax
jmp 0x1800b369d
mov rcx, qword [r12 + 0x19550]
mov rdx, rdi
call fcn.180195040
lea rdx, [rdi + 0x18]
lea rcx, [rdi + 0x7c]
mov ebx, eax
call fcn.180193c50
lea rdx, [rdi + 0x28]
lea rcx, [rdi + 0x7e]
call fcn.180193c50
mov rcx, rdi
call fcn.1801979c0
test ebx, ebx
jns 0x1800b3812
mov eax, ebx
jmp 0x1800b369d
mov ebp, 0x8007000e
mov eax, ebp
jmp 0x1800b369d