Function at 0x6fffbbe0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
mov edi, 0xffffffff
push esi
push ebx
sub esp, 0x6c
mov ebp, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
mov dword [esp + 0x20], 0
mov ebx, dword [eax]
call fcn.6fffa3d0
test ebp, ebp
je 0x6fffbca0
mov esi, 0x3e8
mov eax, esi
imul dword [ebp]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x1c], edx
mov dword [esp + 8], 0xf4240
mov dword [esp + 0xc], 0
cdq
add eax, 0x7a120
adc edx, 0
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.703e0860
mov edi, eax
add edi, dword [esp + 0x18]
mov ebp, edx
adc ebp, dword [esp + 0x1c]
lea eax, [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 0x18], edi
xor edi, edi
mov dword [esp + 0x1c], ebp
call dword [sym.imp.msvcrt.dll__ftime64]
mov eax, esi
movzx esi, word [esp + 0x58]
mul dword [esp + 0x50]
imul ebp, dword [esp + 0x54], 0x3e8
mov ecx, edx
add ecx, ebp
add eax, esi
mov edx, ecx
adc edx, edi
cmp dword [esp + 0x1c], edx
jge 0x6fffbd55
xor edi, edi
mov esi, esi
lea edi, [edi]
lea edx, [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], edx
mov eax, esi
xchg dword [edx], eax
test eax, eax
je 0x6fffbcfa
mov dword [eax + 4], esi
lea edx, [eax + 0xc]
mov ecx, 0xffffffff
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x6fffbcec
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
sub esp, 4
lea edx, [esp + 0x48]
xor ebp, ebp
lock xadd dword [edx], ebp
test ebp, ebp
je 0x6fffbd70
mov eax, dword [ebx]
xor edx, edx
lea ebp, [eax - 1]
mov eax, dword [esp + 0x40]
mov dword [ebx], ebp
mov ecx, eax
lea eax, [esp + 0x44]
lock xadd dword [eax], edx
test edx, edx
mov eax, edx
je 0x6fffbdd0
lea edx, [eax + 8]
mov ecx, 0xffffffff
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x6fffbd39
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
sub esp, 4
test ebp, ebp
js 0x6fffbe00
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x6fffc0c0
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
jle 0x6fffbdc1
mov edi, dword [esp + 0x18]
sub edi, eax
mov eax, 0xfffffffe
cmp edi, 0xffffffff
cmove edi, eax
jmp 0x6fffbca0
mov dword [esp + 0x18], 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 + 0x18]
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x6fffbfa0
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x6fffbcfa
cmp dword [esp + 0x18], eax
ja 0x6fffbd57
xor edi, edi
jmp 0x6fffbca0
mov eax, esi
lock cmpxchg dword [ecx], edx
cmp esi, eax
je 0x6fffbd39
lea eax, [esp + 0x4c]
lock xadd dword [eax], edx
test edx, edx
je 0x6fffc040
xor eax, eax
lea ecx, [esp + 0x44]
lock xadd dword [ecx], eax
jmp 0x6fffbd1b
lea eax, [esp + 0x20]
mov esi, dword [0x70ea49d8]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], 0x6ffee560
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
test esi, esi
mov dword [esp + 0x38], eax
je 0x6fffc123
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebp, eax
mov edx, dword [esp + 0x18]
mov dword [esp], edx
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], ebp
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 0x6fffc060
mov edx, dword [eax + 0x8c]
test edx, edx
jne 0x6fffbf90
mov edx, dword [ebx + 0x24]
mov eax, 2
test edx, edx
mov dword [esp + 0x30], edx
je 0x6fffbf90
lea edx, [esp + 0x2c]
mov dword [esp + 0xc], edi
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 0x6fffc050
cmp eax, 1
jne 0x6fffbfc1
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
lea eax, [ebx + 0x20]
lea esi, [esp + 0x50]
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov edx, esi
xchg dword [eax], edx
test edx, edx
je 0x6fffbf44
mov dword [edx + 4], esi
xor eax, eax
add edx, 0xc
mov ecx, 0xffffffff
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x6fffbf31
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
sub esp, 4
lea ebp, [esp + 0x58]
xor edi, edi
lock xadd dword [ebp], edi
test edi, edi
je 0x6fffc0d6
mov eax, dword [ebx + 0x18]
cmp eax, 3
jbe 0x6fffc174
mov edi, dword [esp + 0x50]
lea ebx, [esp + 0x54]
xor ecx, ecx
lock xadd dword [ebx], ecx
test ecx, ecx
mov edx, ecx
je 0x6fffc12a
add edx, 8
xor eax, eax
mov ecx, 0xffffffff
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x6fffbf86
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
sub esp, 4
mov ebx, 0x16
jmp 0x6fffbfd3
mov eax, 1
jmp 0x6fffbea6
mov dword [esp], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
mov ecx, dword [esp + 0x18]
jmp 0x6fffbdb0
cmp eax, 0x102
mov ebx, 0x16
mov eax, 0x8a
cmove ebx, eax
mov esi, dword [0x70ea49d8]
mov dword [esp + 0x20], ebx
test esi, esi
je 0x6fffc11c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
test esi, esi
je 0x6fffbd41
test ebx, ebx
je 0x6fffc023
mov eax, dword [esi]
test eax, eax
je 0x6fffc023
mov edx, dword [esi + 4]
mov dword [esp], edx
call eax
mov eax, dword [esi + 8]
mov dword [esp + 4], eax
mov eax, dword [0x70ea49d8]
mov dword [esp], eax
call fcn.6fff4d10
jmp 0x6fffbd41
call fcn.6ffee320
jmp 0x6fffbdee
xor ebx, ebx
jmp 0x6fffbfd3
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp], 1
xor ebx, ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub esp, 0x10
test eax, eax
je 0x6fffbfd3
cmp eax, 1
jne 0x6fffbfc1
mov eax, dword [esp + 0x30]
mov bl, 0x16
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
sub esp, 4
jmp 0x6fffbfd3
call dword [sym.imp.msvcrt.dll__errno]
mov edx, dword [esp + 0x20]
mov dword [eax], edx
mov eax, 0xffffffff
jmp 0x6fffbd4d
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 0x6fffc14f
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x6fffbf44
mov eax, ebx
jmp 0x6fffbd45
xor ebp, ebp
jmp 0x6fffbe5a
mov eax, esi
lock cmpxchg dword [edi], ecx
cmp esi, eax
je 0x6fffbf86
lea eax, [esp + 0x5c]
lock xadd dword [eax], ecx
test ecx, ecx
je 0x6fffc16d
xor edx, edx
lock xadd dword [ebx], edx
jmp 0x6fffbf68
mov dword [esp], edx
mov dword [esp + 0x18], edx
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
mov edx, dword [esp + 0x18]
jmp 0x6fffc10b
call fcn.6ffee320
jmp 0x6fffc144
mov dword [ebx + 0x18], 4
mov dword [ebx + 0x8c], 1
mov dword [esp], esi
call fcn.6ffee390
mov dword [esp], 2
call fcn.6fff9be0
lea esi, [esi]