Function at 0x6bb180
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0xc0
mov rax, qword [rdx]
mov qword [rsp + 0x70], rax
mov rax, qword [rdx + 8]
mov rbx, rdx
mov rdi, rcx
lea rsi, [rsp + 0x70]
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x78], rax
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0x80], rax
mov rax, qword [rdx + 0x18]
mov qword [rsp + 0x88], rax
mov rax, qword [rdx + 0x20]
lea rdx, [rsi + 0x28]
mov qword [rsp + 0x90], rax
lea rax, [rbx + 0x28]
cmp rdx, rax
je 0x6bb228
mov rax, qword [rbx + 0x28]
test rax, rax
je 0x6bb228
test al, 1
mov qword [rsp + 0x98], rax
je 0x6bb480
mov rax, qword [rbx + 0x30]
mov qword [rsp + 0xa0], rax
mov rax, qword [rbx + 0x38]
mov qword [rsp + 0xa8], rax
mov rax, qword [rbx + 0x40]
mov qword [rsp + 0xb0], rax
mov qword [rbx + 0x28], 0
mov rbx, qword [rdi + 0x10]
mov ecx, dword [0x007f4530]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x6bb24d
cmp rbx, qword [rax]
je 0x6bb374
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x6bb240
mov rdx, rsi
mov ecx, pe_nt_image_headers64
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x30], rsi
call fcn.004fc980
test rax, rax
mov rdi, rax
mov qword [rsp + 0x38], rax
je 0x6bb35a
mov qword [rax + 0x20], 0
lea rax, [0x006d6530]
mov qword [rdi], 0
lea rdx, [rsi + 0x28]
mov qword [rdi + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rdi + 8], 0
mov dword [rdi + 0x10], 0
mov dword [rdi + 0x14], 0
mov qword [rdi + 0x18], 0
mov qword [rdi + 0x38], rax
mov rax, qword [rsp + 0x78]
mov dword [rdi + 0x30], 0
mov qword [rdi + 0x60], 0
mov qword [rdi + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rdi + 0x48], rax
mov rax, qword [rsp + 0x88]
mov qword [rdi + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rdi + 0x58], rax
lea rax, [rdi + 0x60]
cmp rdx, rax
je 0x6bb35a
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x6bb35a
test al, 1
mov qword [rdi + 0x60], rax
je 0x6bb499
mov rax, qword [rsp + 0xa0]
mov qword [rdi + 0x68], rax
mov rax, qword [rsp + 0xa8]
mov qword [rdi + 0x70], rax
mov rax, qword [rsp + 0xb0]
mov qword [rdi + 0x78], rax
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x40], rdi
lock add dword [rbx + 0x30], 1
mov rdx, rdi
mov rcx, rbx
call fcn.005018a0
jmp 0x6bb426
cmp qword [rax + 8], 0
je 0x6bb252
lfence
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x50], 0
mov rdi, qword [rsp + 0x70]
test rax, rax
je 0x6bb3d1
test al, 1
mov qword [rsp + 0x50], rax
je 0x6bb460
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x68], rax
lea rbx, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
mov r9, qword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call rdi
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x6bb423
test al, 1
jne 0x6bb423
and rax, 0xfffffffffffffffe
mov rax, qword [rax]
test rax, rax
je 0x6bb423
lea rcx, [rbx + 8]
mov r8d, 2
mov rdx, rcx
call rax
sfence
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x6bb453
test al, 1
jne 0x6bb453
and rax, 0xfffffffffffffffe
mov rax, qword [rax]
test rax, rax
je 0x6bb453
lea rcx, [rsi + 0x30]
mov r8d, 2
mov rdx, rcx
call rax
nop
add rsp, 0xc0
pop rbx
pop rsi
pop rdi
ret
lea rbx, [rsp + 0x50]
and rax, 0xfffffffffffffffe
xor r8d, r8d
lea rdx, [rbx + 8]
lea rcx, [rsi + 0x30]
call qword [rax]
jmp 0x6bb3d6
lea rdx, [rsi + 0x30]
and rax, 0xfffffffffffffffe
mov r8d, 1
lea rcx, [rbx + 0x30]
call qword [rax]
jmp 0x6bb220
lea rdx, [rdi + 0x68]
and rax, 0xfffffffffffffffe
mov r8d, 1
lea rcx, [rsi + 0x30]
call qword [rax]
jmp 0x6bb34e