Function at 0x1801ff470
Capabilities:
Get thread local storage value

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push r12
push r13
push r15
sub rsp, 0xb0
mov r13d, dword [rdx + 0x78]
movzx r10d, r9b
mov r11, r8
and r13d, 0xfffff
mov r9, rdx
mov r15, rcx
mov dword [rsp + 0x44], r13d
mov dword [rsp + 0x4c], r13d
test r10b, r10b
je 0x1801ff4c6
mov rax, qword [rdx + 0x18]
mov rcx, qword [rax]
mov qword [rsp + 0x50], rcx
jmp 0x1801ff4d8
mov rax, qword [rdx + 0x18]
lea ecx, [r13 + r13]
mov rax, qword [rax + rcx*8]
mov qword [rsp + 0x50], rax
mov rax, qword [rdx + 0x28]
xor r12d, r12d
mov rax, qword [rax]
mov r8d, r12d
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x68], rax
mov rax, qword [r11 + 0x30]
test rax, rax
je 0x1801ff51c
nop dword [rax + rax]
mov ecx, dword [rax + 0xc8]
cmp ecx, r8d
jb 0x1801ff50f
lea r8d, [rcx + 1]
mov rax, qword [rax]
test rax, rax
jne 0x1801ff500
mov dword [rsp + 0x48], r8d
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0x98], rsi
mov ecx, r12d
mov qword [rsp + 0x90], rdi
movsxd rax, r13d
mov qword [rsp + 0x88], r14
mov dword [rsp + 0x40], ecx
test r13d, r13d
je 0x1801ff9a5
shl rax, 3
mov rbp, r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x58], rax
test r10b, r10b
je 0x1801ff583
mov rax, qword [r9 + 0x18]
mov ecx, r13d
lea rdx, [rax + rcx*8]
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
jmp 0x1801ff587
mov rdx, qword [r9 + 0x18]
add rbp, rdx
cmp qword [rbp], 0xffffffffffffffff
je 0x1801ff97f
mov edi, r12d
mov r14, r12
mov esi, ecx
cmp ecx, r13d
jae 0x1801ff5de
mov rbx, rbp
mov r8, qword [rbx]
cmp r8, 0xffffffffffffffff
je 0x1801ff5c8
mov rdx, qword [rbp]
mov rcx, r15
call fcn.1801ff210
test al, al
je 0x1801ff5c8
inc edi
inc r14
cmp edi, 4
jae 0x1801ff5d3
inc esi
add rbx, 8
cmp esi, r13d
jb 0x1801ff5a5
mov r9, qword [rsp + 0xd8]
xor r12d, r12d
mov eax, dword [r9 + 0x78]
lea rdx, [rsp + 0x60]
mov rcx, r15
and eax, 0xfff00000
mov r8d, eax
xor r8d, edi
and r8d, 0xfffff
xor r8d, eax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xffffffff
mov dword [rsp + 0x20], 0xffffffff
call fcn.18019f360
test eax, eax
js 0x1801ff9a8
mov eax, dword [rsp + 0x40]
mov r15, qword [rbp]
mov esi, r12d
mov rbx, r12
mov r12d, eax
cmp eax, r13d
jae 0x1801ff728
mov r13, qword [rsp + 0x58]
mov eax, dword [rsp + 0x44]
lea rdi, [r14*8]
nop word [rax + rax]
mov r8, qword [rbp]
cmp r8, 0xffffffffffffffff
je 0x1801ff70f
mov rcx, qword [rsp + 0xd0]
mov rdx, r15
call fcn.1801ff210
test al, al
je 0x1801ff70b
cmp byte [rsp + 0xe8], 0
je 0x1801ff6b0
mov rax, qword [rbp]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rdx + 0x18]
mov qword [rdi + rcx], rax
mov rax, qword [rdx + 0x18]
mov rcx, qword [rsp + 0x50]
mov qword [rax + rbx*8], rcx
jmp 0x1801ff6eb
mov rdx, qword [rsp + 0x60]
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax + 0x18]
mov rcx, qword [rdx + 0x18]
mov rax, qword [r13 + rax]
mov qword [rdi + rcx], rax
mov rcx, qword [rdx + 0x18]
mov rax, qword [rbp]
mov qword [rcx + rbx*8], rax
mov rax, qword [rdx + 0x18]
mov rdx, qword [rsp + 0x50]
lea rcx, [rbx + r14*2]
mov qword [rax + rcx*8], rdx
dec dword [rsp + 0x4c]
inc esi
inc rbx
add rdi, 8
mov qword [rbp], 0xffffffffffffffff
cmp esi, 4
jae 0x1801ff723
mov eax, dword [rsp + 0x44]
jmp 0x1801ff70f
mov eax, dword [rsp + 0x44]
inc r12d
add r13, 8
add rbp, 8
cmp r12d, eax
jb 0x1801ff660
mov r13d, dword [rsp + 0x44]
cmp dword [rsp + 0x4c], 0
je 0x1801ff94a
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x1801ff745
xor r12d, r12d
mov rcx, r12
jmp 0x1801ff751
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r12d, r12d
mov rcx, rax
cmp qword [rcx + 0x18], 0
je 0x1801ff785
mov rbx, qword [rcx + 0x18]
test rbx, rbx
jne 0x1801ff766
mov rbx, r12
jmp 0x1801ff79c
mov rax, qword [rbx]
mov qword [rcx + 0x18], rax
test rax, rax
jne 0x1801ff776
mov qword [rcx + 0x20], r12
movabs rax, 0xfefefefefefefefe
mov qword [rbx], rax
jmp 0x1801ff79c
mov rcx, qword [rcx + 0x10]
mov edx, 0x188
mov r8d, 0x10
call fcn.180243b70
mov rbx, rax
test rbx, rbx
je 0x1801ff8c3
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0xe0]
xor r9d, r9d
mov rcx, rbx
mov qword [rbx], r12
mov qword [rbx + 8], r12
mov qword [rbx + 0x78], r12
mov qword [rbx + 0x80], r12
mov qword [rbx + 0x88], r12
mov qword [rbx + 0x90], r12
mov dword [rbx + 0xa0], 0xffffffff
mov qword [rbx + 0xa8], 0xffffffffffffffff
mov qword [rbx + 0x40], r12
call fcn.1801992b0
mov esi, eax
test eax, eax
js 0x1801ff85a
call fcn.18019c4f0
test al, al
je 0x1801ff810
or qword [rbx + 0x98], 0x20000
mov rax, qword [rbx + 0xa8]
mov rcx, qword [rax + 0x10]
test cl, 0x10
je 0x1801ff82f
bt rcx, 0x15
jae 0x1801ff82f
or qword [rbx + 0x98], 0x10
mov r15, qword [rsp + 0xd0]
mov esi, r12d
mov rdx, rbx
mov eax, dword [r15 + 0x10]
mov qword [rsp + 0x50], rbx
mov dword [rbx + 0xa0], eax
inc dword [r15 + 0x10]
or dword [r15 + 0x28], 4
jmp 0x1801ff8d5
call fcn.1801991c0
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x1801ff86e
mov rdi, r12
jmp 0x1801ff877
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov edx, 0xfe
mov r8d, 0x188
mov rcx, rbx
call fcn.18024adb8
mov qword [rbx], r12
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x1801ff8ac
mov r15, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0x50]
mov qword [rax], rbx
mov qword [rdi + 0x20], rbx
jmp 0x1801ff8d5
mov r15, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0x50]
mov qword [rdi + 0x18], rbx
mov qword [rdi + 0x20], rbx
jmp 0x1801ff8d5
mov r15, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0x50]
mov esi, 0x8007000e
mov r8d, dword [rsp + 0x48]
inc r8d
mov dword [rsp + 0x48], r8d
test esi, esi
js 0x1801ff9de
mov rcx, qword [rsp + 0x60]
mov r9, qword [rsp + 0xd8]
mov r10b, byte [rsp + 0xe8]
mov rax, qword [rcx + 0x28]
mov qword [rax], rdx
mov rax, qword [rcx + 0x28]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rax]
mov rax, qword [rdx + 0xd0]
mov qword [rcx + 0xd0], rax
movzx eax, byte [rdx + 0xd8]
mov byte [rcx + 0xd8], al
mov eax, dword [rdx + 0x48]
mov dword [rcx + 0x48], eax
mov eax, dword [rdx + 0x4c]
mov dword [rcx + 0x4c], eax
mov eax, dword [rdx + 0x50]
mov dword [rcx + 0x50], eax
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
jmp 0x1801ff97f
mov rcx, qword [rsp + 0x60]
mov r15, qword [rsp + 0xd0]
mov r9, qword [rsp + 0xd8]
mov rax, qword [rcx + 0x28]
mov rcx, qword [rsp + 0x68]
mov r10b, byte [rsp + 0xe8]
mov qword [rax], rcx
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
xor r12d, r12d
mov rbp, qword [rsp + 0x70]
inc ecx
add rax, 8
add rbp, 8
mov dword [rsp + 0x40], ecx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x70], rbp
cmp ecx, r13d
jb 0x1801ff568
mov eax, r12d
mov r14, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xa8]
add rsp, 0xb0
pop r15
pop r13
pop r12
ret
mov eax, esi
jmp 0x1801ff9a8