Function at 0x491500
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rsi
xor edx, edx
mov r8d, 0x98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x4914b6
lea rax, [0x006dfce0]
mov dword [rbx + 8], 0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov dword [rbx + 0x20], 0
xor r9d, r9d
mov qword [rbx], rax
lea rax, [rbx + 0x30]
mov qword [rbx + 0x28], 0
mov qword [rbx + 0x30], 0
mov qword [rbx + 0x38], 0
xor r8d, r8d
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x48], rax
mov edx, 1
mov qword [rbx + 0x50], 0
mov qword [rbx + 0x58], 0
xor ecx, ecx
mov qword [rbx + 0x60], 0
mov qword [rbx + 0x68], 0
mov qword [rbx + 0x70], 0
mov qword [rbx + 0x78], 0
mov qword [rbx + 0x80], 0
mov r13, qword [sym.imp.KERNEL32.dll_CreateEventA]
call r13
test rax, rax
je 0x4913e0
mov qword [rbx + 0x88], rax
lea rax, [0x006940c8]
lea rsi, [0x0072dbc8]
add dword [rbx + 8], 1
mov byte [rbx + 0x90], 0
lea r14, [rsp + 0x58]
mov qword [rbx], rax
movabs rax, 0x7f0725e3c15730e2
mov rbp, rsi
mov qword [rsp + 0x40], rax
mov eax, esi
mov rdi, qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
shr al, 4
mov byte [rsp + 0x48], 0
lea r15d, [rax + 0x41]
mov rax, rsi
mov qword [rsp + 0x50], 0
sar rax, 8
mov byte [rsp + 0x58], 0
and eax, 0xf
add eax, 0x41
mov byte [rsp + 0x2c], al
mov rax, rsi
sar rax, 0xc
and eax, 0xf
add eax, 0x41
mov byte [rsp + 0x2d], al
mov rax, rsi
sar rax, 0x10
and eax, 0xf
add eax, 0x41
mov byte [rsp + 0x2e], al
mov rax, rsi
sar rax, 0x14
and eax, 0xf
add eax, 0x41
mov byte [rsp + 0x2f], al
mov rax, rsi
sar rax, 0x18
and eax, 0xf
add eax, 0x41
mov byte [rsp + 0x30], al
mov rax, rsi
sar rax, 0x1c
and eax, 0xf
add eax, 0x41
mov byte [rsp + 0x31], al
mov rax, rsi
sar rax, 0x20
and eax, 0xf
add eax, 0x41
mov byte [rsp + 0x32], al
mov rax, rsi
sar rax, 0x24
and eax, 0xf
add eax, 0x41
mov byte [rsp + 0x33], al
mov rax, rsi
sar rax, 0x28
and eax, 0xf
add eax, 0x41
mov byte [rsp + 0x34], al
mov rax, rsi
sar rax, 0x2c
and eax, 0xf
add eax, 0x41
mov byte [rsp + 0x35], al
mov rax, rsi
sar rax, 0x30
sar rbp, 0x38
and eax, 0xf
and ebp, 0xf
add eax, 0x41
add ebp, 0x41
mov byte [rsp + 0x36], al
mov rax, rsi
sar rax, 0x34
and eax, 0xf
add eax, 0x41
mov byte [rsp + 0x37], al
mov rax, rsi
shr rax, 0x3c
mov r12, rax
add r12d, 0x41
mov eax, dword [0x0072dbc8]
cmp eax, dword [rsp + 0x40]
je 0x490c47
mov edx, dword [rsp + 0x44]
xor eax, eax
lock cmpxchg dword [0x0072dbc8], edx
test eax, eax
jne 0x490ca0
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x490cf0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResetEvent]
call fcn.004923a0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp byte [rsp + 0x48], 0
mov dword [0x006750f0], eax
je 0x491150
mov eax, dword [rsp + 0x40]
xchg dword [0x0072dbc8], eax
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x491162
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x490c5c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x006750f0]
cmp ecx, 0xffffffff
je 0x491140
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [0x006750f0]
cmp ecx, 0xffffffff
je 0x491140
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rsp + 0x48], 0
jne 0x490ce0
lock add dword [0x0072dbcc], 1
mov byte [rsp + 0x48], 1
mov eax, dword [0x0072dbc8]
cmp eax, dword [rsp + 0x40]
je 0x490c47
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x490d32
xor r8d, r8d
mov edx, 0xffffffff
call rdi
jmp 0x490bd1
mov rcx, qword [rsp + 0x50]
jmp 0x490cca
cmp byte [rsp + 0x58], 0
je 0x490da5
xor edx, edx
mov ecx, 0x100002
lea r8, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_OpenEventA]
mov rcx, qword [rsp + 0x50]
mov rdi, rax
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x490d70
test rdi, rdi
mov qword [rsp + 0x50], rdi
je 0x490c0a
jmp 0x490c01
cmp byte [rsp + 0x58], 0
je 0x490f71
mov r9, r14
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call r13
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x490d90
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
jmp 0x490bd1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
mov qword [rsp + 0x50], rdi
je 0x490c0a
jmp 0x490c01
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
jmp 0x490bd1
movabs rax, 0x437b5c6c61636f4c
movabs rdx, 0x2d32453033373531
mov ecx, 0x6761
mov qword [rsp + 0x58], rax
movabs rax, 0x3563342d43353431
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rax
movabs rax, 0x3234463335374342
movabs rdx, 0x332d353030422d65
mov qword [rsp + 0x78], rax
mov eax, esi
mov qword [rsp + 0x70], rdx
and eax, 0xf
movabs rdx, 0x636e6f2d7d353734
mov word [rsp + 0x8c], cx
add eax, 0x41
mov qword [rsp + 0x80], rdx
mov dword [rsp + 0x88], 0x6c662d65
mov byte [rsp + 0x8e], al
movzx eax, byte [rsp + 0x2c]
mov byte [rsp + 0x8f], r15b
mov byte [rsp + 0x90], al
movzx eax, byte [rsp + 0x2d]
mov byte [rsp + 0x91], al
movzx eax, byte [rsp + 0x2e]
mov byte [rsp + 0x92], al
movzx eax, byte [rsp + 0x2f]
mov byte [rsp + 0x93], al
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x94], al
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x95], al
movzx eax, byte [rsp + 0x32]
mov byte [rsp + 0x96], al
movzx eax, byte [rsp + 0x33]
mov byte [rsp + 0x97], al
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x98], al
movzx eax, byte [rsp + 0x35]
mov byte [rsp + 0x99], al
movzx eax, byte [rsp + 0x36]
mov byte [rsp + 0x9a], al
movzx eax, byte [rsp + 0x37]
mov byte [rsp + 0x9c], bpl
mov byte [rsp + 0x9d], r12b
mov byte [rsp + 0x9e], 0
mov byte [rsp + 0x9b], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov byte [rsp + 0xa6], 0
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0x9e], dl
mov edx, eax
shr dl, 4
add edx, 0x41
mov byte [rsp + 0x9f], dl
mov edx, eax
shr edx, 8
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0xa0], dl
mov edx, eax
shr edx, 0xc
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0xa1], dl
mov edx, eax
shr edx, 0x10
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0xa2], dl
mov edx, eax
shr edx, 0x14
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0xa3], dl
mov edx, eax
shr eax, 0x1c
shr edx, 0x18
add eax, 0x41
and edx, 0xf
mov byte [rsp + 0xa5], al
add edx, 0x41
mov byte [rsp + 0xa4], dl
jmp 0x490cfb
movabs rax, 0x437b5c6c61636f4c
movabs rdx, 0x2d32453033373531
mov dword [rsp + 0x88], 0x6c662d65
mov qword [rsp + 0x58], rax
movabs rax, 0x3563342d43353431
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rax
movabs rax, 0x3234463335374342
movabs rdx, 0x332d353030422d65
mov qword [rsp + 0x78], rax
mov eax, 0x6761
mov qword [rsp + 0x70], rdx
mov word [rsp + 0x8c], ax
mov eax, esi
movabs rdx, 0x636e6f2d7d353734
and eax, 0xf
mov qword [rsp + 0x80], rdx
mov byte [rsp + 0x8f], r15b
add eax, 0x41
mov byte [rsp + 0x8e], al
movzx eax, byte [rsp + 0x2c]
mov byte [rsp + 0x90], al
movzx eax, byte [rsp + 0x2d]
mov byte [rsp + 0x91], al
movzx eax, byte [rsp + 0x2e]
mov byte [rsp + 0x92], al
movzx eax, byte [rsp + 0x2f]
mov byte [rsp + 0x93], al
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x94], al
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x95], al
movzx eax, byte [rsp + 0x32]
mov byte [rsp + 0x96], al
movzx eax, byte [rsp + 0x33]
mov byte [rsp + 0x97], al
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x98], al
movzx eax, byte [rsp + 0x35]
mov byte [rsp + 0x99], al
movzx eax, byte [rsp + 0x36]
mov byte [rsp + 0x9a], al
movzx eax, byte [rsp + 0x37]
mov byte [rsp + 0x9c], bpl
mov byte [rsp + 0x9d], r12b
mov byte [rsp + 0x9e], 0
mov byte [rsp + 0x9b], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov byte [rsp + 0xa6], 0
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0x9e], dl
mov edx, eax
shr dl, 4
add edx, 0x41
mov byte [rsp + 0x9f], dl
mov edx, eax
shr edx, 8
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0xa0], dl
mov edx, eax
shr edx, 0xc
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0xa1], dl
mov edx, eax
shr edx, 0x10
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0xa2], dl
mov edx, eax
shr edx, 0x14
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0xa3], dl
mov edx, eax
shr eax, 0x1c
shr edx, 0x18
add eax, 0x41
and edx, 0xf
mov byte [rsp + 0xa5], al
add edx, 0x41
mov byte [rsp + 0xa4], dl
jmp 0x490d3d
xor eax, eax
jmp 0x490c89
lock add dword [0x0072dbcc], 1
mov byte [rsp + 0x48], 1
jmp 0x490c26
mov eax, dword [0x0072dbcc]
cmp eax, 1
jle 0x490c5c
cmp byte [rsp + 0x58], 0
jne 0x491343
movabs rax, 0x437b5c6c61636f4c
movabs rdx, 0x2d32453033373531
mov dword [rsp + 0x88], 0x6c662d65
mov qword [rsp + 0x58], rax
movabs rax, 0x3563342d43353431
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rax
movabs rax, 0x3234463335374342
movabs rdx, 0x332d353030422d65
mov qword [rsp + 0x78], rax
mov eax, esi
mov qword [rsp + 0x70], rdx
and eax, 0xf
movabs rdx, 0x636e6f2d7d353734
mov byte [rsp + 0x8f], r15b
add eax, 0x41
mov qword [rsp + 0x80], rdx
mov edx, 0x6761
mov byte [rsp + 0x8e], al
movzx eax, byte [rsp + 0x2c]
mov word [rsp + 0x8c], dx
mov byte [rsp + 0x90], al
movzx eax, byte [rsp + 0x2d]
mov byte [rsp + 0x91], al
movzx eax, byte [rsp + 0x2e]
mov byte [rsp + 0x92], al
movzx eax, byte [rsp + 0x2f]
mov byte [rsp + 0x93], al
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x94], al
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x95], al
movzx eax, byte [rsp + 0x32]
mov byte [rsp + 0x96], al
movzx eax, byte [rsp + 0x33]
mov byte [rsp + 0x97], al
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x98], al
movzx eax, byte [rsp + 0x35]
mov byte [rsp + 0x99], al
movzx eax, byte [rsp + 0x36]
mov byte [rsp + 0x9a], al
movzx eax, byte [rsp + 0x37]
mov byte [rsp + 0x9c], bpl
mov byte [rsp + 0x9d], r12b
mov byte [rsp + 0x9e], 0
mov byte [rsp + 0x9b], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov byte [rsp + 0xa6], 0
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0x9e], dl
mov edx, eax
shr dl, 4
add edx, 0x41
mov byte [rsp + 0x9f], dl
mov edx, eax
shr edx, 8
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0xa0], dl
mov edx, eax
shr edx, 0xc
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0xa1], dl
mov edx, eax
shr edx, 0x10
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0xa2], dl
mov edx, eax
shr edx, 0x14
and edx, 0xf
add edx, 0x41
mov byte [rsp + 0xa3], dl
mov edx, eax
shr eax, 0x1c
shr edx, 0x18
add eax, 0x41
and edx, 0xf
mov byte [rsp + 0xa5], al
add edx, 0x41
mov byte [rsp + 0xa4], dl
xor ecx, ecx
xor r8d, r8d
lea r9, [rsp + 0x58]
mov edx, 1
call r13
mov rcx, qword [rsp + 0x50]
mov rdi, rax
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x49136d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
mov qword [rsp + 0x50], rdi
je 0x490c5c
jmp 0x490c3e
mov rcx, rax
call fcn.00670770
mov rcx, rbx
call fcn.00674600
call fcn.00670ea0
mov rsi, rax
mov rcx, qword [rsp + 0x50]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x4913ad
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
jmp 0x491380
lea rbp, [rsp + 0x40]
lea rdx, str.boost::thread_resource_error
mov rcx, rbp
call fcn.0062a170
lea rax, [0x006d1320]
mov rcx, rbp
mov dword [rsp + 0x50], 0xb
mov byte [rsp + 0x54], 1
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0x30]
mov byte [rsp + 0x70], 0
mov qword [rsp + 0x60], rax
lea rax, [0x006dfbf0]
mov qword [rsp + 0x40], rax
call fcn.005b2080
mov rsi, rax
call fcn.00670990
jmp 0x491398
mov rax, qword [0x006d0ea0]
add rax, 0x10
mov qword [rsp + 0x40], rax
call fcn.0048f620
mov rbx, rax
call fcn.00670990
mov rcx, rbx
call fcn.0058e700
lea rcx, [rsp + 0x40]
mov rbx, rax
call fcn.0065c6c0
mov rcx, rbx
call fcn.0058e700
nop
nop dword [rax + rax]
nop word cs:[rax + rax]
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x006750f0]
cmp ecx, 0xffffffff
je 0x491554
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x491554
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x49155e
mov rdx, qword [rbx + 0x18]
mov qword [rax], rsi
mov qword [rax + 8], rdx
mov qword [rbx + 0x18], rax
add rsp, 0x38
pop rbx
pop rsi
ret
call fcn.004909b0
mov rbx, rax
jmp 0x491522
mov rax, qword [0x006d0ea0]
add rax, 0x10
mov qword [rsp + 0x28], rax
call fcn.0048f620
lea rcx, [rsp + 0x28]
mov rbx, rax
call fcn.0065c6c0
mov rcx, rbx
call fcn.0058e700
nop
nop dword [rax]