Function at 0x1000fc370
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xc88]
sub rsp, 0xd60
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rbp + 0xc50], rax
mov rbx, rcx
mov dword [rbp], 0
xor edx, edx
mov r8d, 0xc4c
lea rcx, [rbp + 4]
call sub.MSVCR100.dll_memset
xor r12d, r12d
xor r13d, r13d
lea r8, [rbx + 0x150]
lea rdx, [rbx + 0x128]
lea r9d, [r12 + 1]
lea rcx, [rbp - 0x30]
call fcn.1000c6d70
nop
lea r8, [rbx + 0x1a8]
lea rdx, [rbx + 0x180]
lea r9d, [r12 + 1]
lea rcx, [rbp - 0x58]
call fcn.1000c6d70
nop
xor eax, eax
mov dword [rsp + 0x28], eax
lea r14, [rbp - 0x30]
lea rcx, [rbp - 0x58]
test eax, eax
cmovne r14, rcx
mov qword [rsp + 0x68], r14
xor r15d, r15d
xor ebx, ebx
test r15, r15
jne 0x1000fc435
mov rbx, qword [r14]
jmp 0x1000fc52f
mov rcx, qword [r14]
test rcx, rcx
je 0x1000fc52f
cmp rcx, qword [r14 + 8]
je 0x1000fc506
mov rdi, qword [r14 + 0x10]
call fcn.100064800
mov edx, eax
xor eax, eax
lock cmpxchg dword [rdi + 0x10], edx
mov ecx, ebx
sete cl
test ecx, ecx
jne 0x1000fc46f
lea rcx, [rdi + 0x10]
call fcn.100057bf0
mov rbx, qword [r15 + 0x10]
cmp rbx, rdi
je 0x1000fc483
test rbx, rbx
je 0x1000fc483
add rbx, 0xfffffffffffffff8
jmp 0x1000fc485
xor ebx, ebx
test rbx, rbx
je 0x1000fc4d8
nop word [rax + rax]
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x1000fc4bd
nop word [rax + rax]
lea edx, [rcx + 1]
mov eax, ecx
lock cmpxchg dword [rbx + 0x18], edx
cmp ecx, eax
je 0x1000fc4b9
pause
mov ecx, dword [rbx + 0x18]
test ecx, ecx
jne 0x1000fc4a0
jmp 0x1000fc4bd
test edx, edx
jne 0x1000fc4d8
mov rbx, qword [rbx + 0x10]
cmp rbx, rdi
je 0x1000fc4d1
test rbx, rbx
je 0x1000fc4d1
add rbx, 0xfffffffffffffff8
jmp 0x1000fc4d3
xor ebx, ebx
test rbx, rbx
jne 0x1000fc490
mov dword [rdi + 0x10], 0
mov qword [r14], rbx
or eax, 0xffffffff
lock xadd dword [r15 + 0x18], eax
dec eax
jne 0x1000fc52f
cmp qword [r15 + 0x10], 0
je 0x1000fc501
lea rcx, [r15 + 8]
call fcn.1000c8220
jmp 0x1000fc52f
mov rcx, r15
jmp 0x1000fc52a
mov qword [r14], rbx
add rcx, 8
or eax, 0xffffffff
lock xadd dword [rcx + 0x10], eax
dec eax
jne 0x1000fc52f
cmp qword [rcx + 8], rbx
je 0x1000fc526
call fcn.1000c8220
jmp 0x1000fc52f
add rcx, 0xfffffffffffffff8
call fcn.1000d8230
mov qword [rsp + 0x70], rbx
test rbx, rbx
je 0x1000fcbb2
xor r14d, r14d
mov esi, r14d
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r14
lea rdi, [rbx + 0x28]
mov qword [rsp + 0x40], rdi
mov rcx, rdi
call fcn.1000d2f40
mov rbx, rax
mov qword [rsp + 0x30], rax
mov rcx, rdi
call fcn.1000d2ff0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov r15d, 0x200
mov rbx, r14
test rsi, rsi
jne 0x1000fc59a
mov rbx, qword [rsp + 0x30]
jmp 0x1000fc972
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1000fc972
cmp rax, qword [rsp + 0x38]
je 0x1000fc8a9
lea r14, [rdi + 0x10]
call fcn.100064800
mov edx, eax
xor eax, eax
lock cmpxchg dword [r14], edx
mov ecx, 0
sete cl
test ecx, ecx
jne 0x1000fc5d9
mov rcx, r14
call fcn.100057bf0
lea rdi, [rsi + 0x10]
mov rbx, qword [rdi + 8]
cmp rbx, qword [rsp + 0x40]
je 0x1000fc5f3
test rbx, rbx
je 0x1000fc5f3
add rbx, 0xfffffffffffffff0
jmp 0x1000fc5f5
xor ebx, ebx
test rbx, rbx
je 0x1000fc64a
nop word [rax + rax]
mov ecx, dword [rbx + 0x20]
test ecx, ecx
je 0x1000fc62d
nop word [rax + rax]
lea edx, [rcx + 1]
mov eax, ecx
lock cmpxchg dword [rbx + 0x20], edx
cmp ecx, eax
je 0x1000fc629
pause
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jne 0x1000fc610
jmp 0x1000fc62d
test edx, edx
jne 0x1000fc64a
mov rbx, qword [rbx + 0x18]
cmp rbx, qword [rsp + 0x40]
je 0x1000fc643
test rbx, rbx
je 0x1000fc643
add rbx, 0xfffffffffffffff0
jmp 0x1000fc645
xor ebx, ebx
test rbx, rbx
jne 0x1000fc600
mov dword [r14], 0
mov qword [rsp + 0x30], rbx
or eax, 0xffffffff
lock xadd dword [rdi + 0x10], eax
dec eax
jne 0x1000fc96f
cmp qword [rdi + 8], 0
je 0x1000fc67a
mov rcx, rdi
call fcn.1000585a0
jmp 0x1000fc96f
add rdi, 0xfffffffffffffff0
mov eax, dword [rdi + 0xb0]
cmp eax, 2
jne 0x1000fc6d9
mov rsi, qword [rdi + 0xa0]
call fcn.100064800
mov edx, eax
xor eax, eax
lock cmpxchg dword [rsi + 0xf80], edx
mov r14d, 0
mov ecx, r14d
sete cl
test ecx, ecx
jne 0x1000fc6bd
lea rcx, [rsi + 0xf80]
call fcn.100057ac0
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rax + 8], rcx
mov qword [rcx], rax
mov qword [rdi + 8], r14
mov qword [rdi], r14
mov dword [rsi + 0xf80], r14d
call fcn.100068a00
mov r14, rax
mov rcx, qword gs:[0x30]
lea rsi, [rcx + rax]
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1000fc706
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rsi, rsi
je 0x1000fc7e5
cmp qword [rsi + 0xe8], rsi
jne 0x1000fc7e5
call fcn.100068a00
mov rsi, rax
mov rcx, qword gs:[0x30]
lea r14, [rcx + rax]
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1000fc748
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov rax, qword [r14 + 0xd8]
test rax, rax
je 0x1000fc7e5
cmp qword [rax + 0x1e8], rdi
jne 0x1000fc7e5
test rdi, rdi
je 0x1000fc778
add rdi, 0xfffffffffffffff8
mov qword [rsp + 0x20], rdi
xor r14d, r14d
jmp 0x1000fc783
xor r14d, r14d
mov edi, r14d
mov qword [rsp + 0x20], r14
lea rax, [0x100002a88]
mov qword [rdi], rax
lea rsi, [rdi + 8]
mov qword [rsp + 0x20], rsi
mov rdi, qword [rsi + 0xa8]
test rdi, rdi
je 0x1000fc972
call fcn.10006bca0
test eax, eax
je 0x1000fc7b3
lock dec dword [rdi + 0x70]
mov rcx, qword [rsi + 0xa8]
or eax, 0xffffffff
lock xadd dword [rcx + 0x10], eax
dec eax
jne 0x1000fc972
cmp qword [rcx + 8], 0
je 0x1000fc7db
call fcn.100058ef0
jmp 0x1000fc972
call fcn.1000ed9d0
jmp 0x1000fc972
test rdi, rdi
je 0x1000fc7f3
add rdi, 0xfffffffffffffff8
xor r14d, r14d
jmp 0x1000fc7f9
xor r14d, r14d
mov edi, r14d
mov qword [rsp + 0x20], rdi
test rdi, rdi
je 0x1000fc972
lea rax, [0x100002a88]
mov qword [rdi], rax
lea r14, [rdi + 8]
mov qword [rsp + 0x20], r14
mov rsi, qword [r14 + 0xa8]
test rsi, rsi
je 0x1000fc859
call fcn.10006bca0
test eax, eax
je 0x1000fc833
lock dec dword [rsi + 0x70]
mov rcx, qword [r14 + 0xa8]
or eax, 0xffffffff
lock xadd dword [rcx + 0x10], eax
dec eax
jne 0x1000fc859
cmp qword [rcx + 8], 0
je 0x1000fc854
call fcn.100058ef0
jmp 0x1000fc859
call fcn.1000ed9d0
mov rax, rdi
and rax, 0xffffffffffffe000
je 0x1000fc86f
cmp word [rax + 4], r15w
jne 0x1000fc86f
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x10]
dec rcx
not rcx
and rcx, rdi
je 0x1000fc88d
cmp word [rcx + 4], r15w
jne 0x1000fc88d
mov rcx, qword [rcx + 0x28]
mov rcx, qword [rcx + 8]
test byte [rcx + 0x28], 8
jne 0x1000fc96f
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 0x28]
jmp 0x1000fc96f
mov rdi, qword [rsp + 0x30]
mov qword [rsp + 0x30], r14
or eax, 0xffffffff
lock xadd dword [rdi + 0x20], eax
dec eax
jne 0x1000fc972
cmp qword [rdi + 0x18], 0
je 0x1000fc8d8
lea rcx, [rdi + 0x10]
call fcn.1000585a0
jmp 0x1000fc972
mov eax, dword [rdi + 0xb0]
cmp eax, 2
jne 0x1000fc92d
mov rsi, qword [rdi + 0xa0]
call fcn.100064800
mov edx, eax
xor eax, eax
lock cmpxchg dword [rsi + 0xf80], edx
mov ecx, r14d
sete cl
test ecx, ecx
jne 0x1000fc911
lea rcx, [rsi + 0xf80]
call fcn.100057ac0
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rax + 8], rcx
mov qword [rcx], rax
mov qword [rdi + 8], r14
mov qword [rdi], r14
mov dword [rsi + 0xf80], r14d
call fcn.100058010
test rax, rax
je 0x1000fc955
cmp qword [rax + 0x1e8], rdi
jne 0x1000fc955
test rdi, rdi
lea rcx, [rdi - 8]
jne 0x1000fc94c
mov rcx, r14
xor edx, edx
call fcn.100058e50
jmp 0x1000fc972
test rdi, rdi
je 0x1000fc972
lea rcx, [rdi - 8]
test rcx, rcx
je 0x1000fc972
mov edx, 1
call fcn.100058e50
jmp 0x1000fc972
xor r14d, r14d
mov rsi, rbx
test rbx, rbx
je 0x1000fca17
mov eax, dword [rbx + 0xb0]
cmp eax, 1
je 0x1000fc993
mov rdi, qword [rsp + 0x40]
jmp 0x1000fc588
mov dword [rsp + 0x78], 0x400000
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x68], r14
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x60], r14d
xor r9d, r9d
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.1000fc220
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1000fc9df
cmp dword [rsp + 0x60], 0
je 0x1000fc9df
mov dword [rcx], r14d
test eax, eax
jne 0x1000fca0a
movzx r8d, word [rsp + 0x78]
lea rcx, [r8*8]
mov eax, dword [rsp + 0x78]
mov dword [rbp + rcx + 4], eax
inc dword [rbp + rcx]
mov edx, dword [rbp + rcx]
cmp edx, dword [rbp + r12*8]
cmova r12d, r8d
inc r13d
mov rdi, qword [rsp + 0x40]
jmp 0x1000fc588
mov rax, qword [rsp + 0x30]
test rax, rax
mov r15, qword [rsp + 0x70]
je 0x1000fcae3
lea rbx, [rax + 0x10]
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
dec eax
jne 0x1000fcade
cmp qword [rbx + 8], 0
je 0x1000fca52
mov rcx, rbx
call fcn.1000585a0
jmp 0x1000fcade
add rbx, 0xfffffffffffffff0
mov eax, dword [rbx + 0xb0]
cmp eax, 2
jne 0x1000fcaa3
mov rdi, qword [rbx + 0xa0]
call fcn.100064800
mov edx, eax
xor eax, eax
lock cmpxchg dword [rdi + 0xf80], edx
je 0x1000fca87
lea rcx, [rdi + 0xf80]
call fcn.100057ac0
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rax + 8], rcx
mov qword [rcx], rax
mov qword [rbx + 8], r14
mov qword [rbx], r14
mov dword [rdi + 0xf80], r14d
call fcn.100058010
test rax, rax
je 0x1000fcac6
cmp qword [rax + 0x1e8], rbx
jne 0x1000fcac6
test rbx, rbx
lea rcx, [rbx - 8]
jne 0x1000fcac2
mov rcx, r14
xor edx, edx
jmp 0x1000fcad9
test rbx, rbx
je 0x1000fcade
lea rcx, [rbx - 8]
test rcx, rcx
je 0x1000fcade
mov edx, 1
call fcn.100058e50
mov qword [rsp + 0x30], r14
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x1000fcba3
or eax, 0xffffffff
lock xadd dword [rbx + 0x20], eax
dec eax
jne 0x1000fcb9e
cmp qword [rbx + 0x18], 0
je 0x1000fcb16
lea rcx, [rbx + 0x10]
call fcn.1000585a0
jmp 0x1000fcb9e
mov eax, dword [rbx + 0xb0]
cmp eax, 2
jne 0x1000fcb63
mov rdi, qword [rbx + 0xa0]
call fcn.100064800
mov edx, eax
xor eax, eax
lock cmpxchg dword [rdi + 0xf80], edx
je 0x1000fcb47
lea rcx, [rdi + 0xf80]
call fcn.100057ac0
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rax + 8], rcx
mov qword [rcx], rax
mov qword [rbx + 8], r14
mov qword [rbx], r14
mov dword [rdi + 0xf80], r14d
call fcn.100058010
test rax, rax
je 0x1000fcb86
cmp qword [rax + 0x1e8], rbx
jne 0x1000fcb86
test rbx, rbx
lea rcx, [rbx - 8]
jne 0x1000fcb82
mov rcx, r14
xor edx, edx
jmp 0x1000fcb99
test rbx, rbx
je 0x1000fcb9e
lea rcx, [rbx - 8]
test rcx, rcx
je 0x1000fcb9e
mov edx, 1
call fcn.100058e50
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
mov r14, qword [rsp + 0x68]
jmp 0x1000fc426
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
cmp eax, 2
jb 0x1000fc410
mov ebx, 0x400189
test r13d, r13d
je 0x1000fcbec
lea rcx, [r12*8]
mov eax, dword [rbp + rcx]
imul eax, eax, 0x64
xor edx, edx
div r13d
cmp eax, 0x32
jbe 0x1000fcbec
mov ebx, dword [rbp + rcx + 4]
lea rcx, [rbp - 0x58]
call fcn.1000cde00
nop
lea rcx, [rbp - 0x30]
call fcn.1000cde00
mov eax, ebx
mov rcx, qword [rbp + 0xc50]
xor rcx, rsp
call fcn.10005f420
lea r11, [rsp + 0xd60]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret