Function at 0x6fffb5c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov eax, dword [esp + 0x80]
mov ebx, dword [eax]
call fcn.6fff5340
test eax, eax
mov esi, eax
je 0x6fffb5e7
mov eax, dword [eax + 0x18]
cmp eax, 3
je 0x6fffb8e0
lea eax, [ebx + 4]
lea esi, [esp + 0x40]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], eax
mov edx, esi
xchg dword [eax], edx
test edx, edx
je 0x6fffb642
mov dword [edx + 4], esi
lea ecx, [edx + 0xc]
xor eax, eax
mov edx, 0xffffffff
lock cmpxchg dword [ecx], edx
test eax, eax
je 0x6fffb633
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
sub esp, 4
lea ebp, [esp + 0x48]
xor edi, edi
lock xadd dword [ebp], edi
test edi, edi
je 0x6fffb690
mov eax, dword [ebx]
mov ecx, dword [esp + 0x40]
lea ebp, [esp + 0x44]
xor edx, edx
lea edi, [eax - 1]
mov dword [ebx], edi
lock xadd dword [ebp], edx
test edx, edx
mov eax, edx
je 0x6fffb840
lea edx, [eax + 8]
mov ecx, 0xffffffff
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x6fffb680
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
sub esp, 4
test edi, edi
js 0x6fffb6e0
xor eax, eax
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, eax
sub esp, 0x10
mov eax, edi
lock cmpxchg dword [ebp], edx
test eax, eax
je 0x6fffb990
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x6fffb642
mov esi, dword [0x70ea49d8]
mov dword [esp + 0x34], 0x6ffee400
mov dword [esp + 0x38], ebx
test esi, esi
je 0x6fffbb5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [0x70ea49d8]
sub esp, 4
lea eax, [esp + 0x34]
mov dword [esp], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 4], eax
call fcn.6fff4d10
mov eax, dword [ebx + 8]
mov dword [esp + 0x2c], eax
call fcn.6fff5340
test eax, eax
mov ebx, eax
je 0x6fffba70
mov edx, dword [eax + 0x8c]
test edx, edx
jne 0x6fffb830
mov edx, dword [ebx + 0x24]
mov eax, 2
test edx, edx
mov dword [esp + 0x30], edx
je 0x6fffb830
lea edx, [esp + 0x2c]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub esp, 0x10
test eax, eax
je 0x6fffb870
cmp eax, 1
jne 0x6fffb9b1
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
lea edx, [ebx + 0x20]
lea edi, [esp + 0x50]
mov dword [esp + 0x50], edx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov eax, edi
xchg dword [edx], eax
test eax, eax
je 0x6fffb812
mov dword [eax + 4], edi
lea edx, [eax + 0xc]
mov ecx, 0xffffffff
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x6fffb7ff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
sub esp, 4
lea ebp, [esp + 0x58]
xor esi, esi
lock xadd dword [ebp], esi
test esi, esi
je 0x6fffbb16
mov eax, dword [ebx + 0x18]
cmp eax, 3
jbe 0x6fffbb88
mov dword [esp], edi
mov esi, 0x16
call fcn.6ffee390
jmp 0x6fffb9c3
mov eax, 1
jmp 0x6fffb770
mov eax, esi
lock cmpxchg dword [ecx], edx
cmp esi, eax
je 0x6fffb680
lea eax, [esp + 0x4c]
lock xadd dword [eax], edx
test edx, edx
je 0x6fffba65
xor eax, eax
lock xadd dword [ebp], eax
jmp 0x6fffb662
mov ebx, dword [0x70ea49d8]
test ebx, ebx
je 0x6fffb684
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
test ebx, ebx
je 0x6fffb684
mov eax, dword [ebx + 8]
mov dword [esp + 4], eax
mov eax, dword [0x70ea49d8]
mov dword [esp], eax
call fcn.6fff4d10
test esi, esi
je 0x6fffb684
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
mov eax, 0xffffffff
jmp 0x6fffb686
lea eax, [esi + 0x20]
lea edi, [esp + 0x50]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], eax
mov edx, edi
xchg dword [eax], edx
test edx, edx
je 0x6fffb93e
mov dword [edx + 4], edi
xor eax, eax
add edx, 0xc
mov ecx, 0xffffffff
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x6fffb92c
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
sub esp, 4
lea edx, [esp + 0x58]
xor ebp, ebp
lock xadd dword [edx], ebp
test ebp, ebp
je 0x6fffba14
cmp dword [esi + 0x8c], 1
jne 0x6fffbbad
mov ecx, dword [esp + 0x50]
lea esi, [esp + 0x54]
xor edx, edx
lock xadd dword [esi], edx
test edx, edx
mov eax, edx
je 0x6fffbad0
lea edx, [eax + 8]
mov ecx, 0xffffffff
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x6fffb5e7
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
sub esp, 4
jmp 0x6fffb5e7
mov dword [esp], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
mov edx, dword [esp + 0x1c]
jmp 0x6fffb6c9
cmp eax, 0x102
mov esi, 0x8a
mov eax, 0x16
cmovne esi, eax
mov ebx, dword [0x70ea49d8]
test ebx, ebx
je 0x6fffb8c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
test ebx, ebx
je 0x6fffb8c8
mov eax, dword [ebx]
test eax, eax
je 0x6fffb8ac
mov edx, dword [ebx + 4]
mov dword [esp], edx
call eax
jmp 0x6fffb8ac
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
sub esp, 0x10
mov ecx, eax
mov eax, ebp
mov edx, dword [esp + 0x1c]
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x6fffbaf5
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x6fffb93e
call fcn.6ffee320
jmp 0x6fffb85e
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp], 1
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub esp, 0x10
test eax, eax
je 0x6fffb870
cmp eax, 1
jne 0x6fffb9b1
mov eax, dword [esp + 0x30]
mov esi, 0x16
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
sub esp, 4
jmp 0x6fffb9c3
mov eax, edi
lock cmpxchg dword [ecx], edx
cmp edi, eax
je 0x6fffb5e7
lea eax, [esp + 0x5c]
lock xadd dword [eax], edx
test edx, edx
je 0x6fffbb63
xor eax, eax
lock xadd dword [esi], eax
jmp 0x6fffb963
mov dword [esp], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
mov ecx, dword [esp + 0x1c]
jmp 0x6fffba54
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, eax
sub esp, 0x10
mov eax, esi
lock cmpxchg dword [ebp], edx
test eax, eax
je 0x6fffbb6a
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x6fffb812
xor edi, edi
jmp 0x6fffb724
call fcn.6ffee320
jmp 0x6fffbaea
mov dword [esp], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
mov edx, dword [esp + 0x1c]
jmp 0x6fffbb4b
mov dword [ebx + 0x18], 4
mov dword [ebx + 0x8c], 1
mov dword [esp], edi
call fcn.6ffee390
mov dword [esp], 2
call fcn.6fff9be0
mov eax, dword [esi + 0x24]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push ecx
mov dword [esi + 0x18], 4
mov dword [esi + 0x8c], 1
mov dword [esp], edi
call fcn.6ffee390
mov dword [esp], 2
call fcn.6fff9be0
nop