Function at 0x5830d0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0xe0
mov r10, rcx
mov r9d, edx
mov r11d, r8d
mov qword [rsp + 0x40], 0
lea rdx, [rcx + 8]
lea rcx, [rsp + 0x48]
call fcn.00576730
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x5833b5
mov rax, qword [r10]
test rax, rax
mov qword [rsp + 0x40], rax
je 0x583400
mov rbx, qword [rax + 0x290]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rcx
lock inc dword [rcx + 8]
mov rax, qword [0x00827350]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], r11d
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x30], rax
call fcn.006eebe0
mov rax, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
mov rbx, qword [rbx + 0x428]
mov ecx, dword [0x007f4530]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xb8], rdx
mov qword [rsp + 0x90], 0
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xc8], rax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0xd0], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0xd4], eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x5831fd
cmp rbx, qword [rax]
je 0x5832f0
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x5831f0
lea rdx, [rsp + 0xb0]
mov ecx, 0x60
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x60], rdx
call fcn.004fc980
test rax, rax
mov qword [rsp + 0x68], rax
je 0x5832d4
lea rdx, [0x006d0f30]
mov qword [rax], 0
mov qword [rax + 8], 0
mov r9, qword [rsp + 0xb0]
mov dword [rax + 0x10], 0
mov dword [rax + 0x14], 0
mov r10, qword [rsp + 0xb8]
mov qword [rax + 0x28], rdx
mov rdx, qword [rsp + 0xc0]
mov qword [rax + 0x18], 0
mov qword [rax + 0x20], 0
mov dword [rax + 0x30], 0
mov qword [rax + 0x48], rdx
mov rdx, qword [rsp + 0xc8]
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r10
mov qword [rsp + 0xc8], 0
mov qword [rax + 0x50], rdx
mov edx, dword [rsp + 0xd0]
mov qword [rsp + 0xc0], 0
mov dword [rax + 0x58], edx
mov edx, dword [rsp + 0xd4]
mov dword [rax + 0x5c], edx
mov qword [rsp + 0x70], rax
lock add dword [rbx + 0x30], 1
mov rdx, rax
mov rcx, rbx
call fcn.005018a0
jmp 0x583336
cmp qword [rax + 8], 0
je 0x583202
lfence
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xc0]
add rcx, qword [rsp + 0xb8]
mov r8d, dword [rsp + 0xd4]
test al, 1
mov edx, dword [rsp + 0xd0]
je 0x583331
mov r9, qword [rcx]
mov rax, qword [r9 + rax - 1]
call rax
sfence
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x583356
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
je 0x5833f0
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x583376
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
je 0x583430
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x583393
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
je 0x583420
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x5833ac
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
je 0x5833e0
add rsp, 0xe0
pop rbx
ret
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x5833ac
mov rbx, qword [rax + 0x290]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
jmp 0x58312c
call fcn.00576830
nop
add rsp, 0xe0
pop rbx
ret
call fcn.00576830
jmp 0x583356
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x5833ac
call fcn.00576830
jmp 0x5833ac
call fcn.00576830
jmp 0x583393
call fcn.00576830
jmp 0x583376