Function at 0x10007e00
Capabilities:
Get thread local storage value

Disassembly:
or ecx, 0xffffffff
test ebx, ebx
je 0x10007d50
dec dword [ebx + 0x10]
jne 0x10007d1a
cmp dword [ebx + 0x14], 0
jne 0x1002043e
xor edx, edx
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x18], eax
test edx, edx
jne 0x10020452
cmp dword [0x10066330], 0
lea edx, [ebx + 4]
je 0x1001eb51
mov eax, ecx
lock xadd dword [edx], eax
dec eax
test eax, eax
je 0x1002046d
mov dword [ebp - 0x18], 0
test edi, edi
je 0x10007d81
dec dword [edi + 8]
lea eax, [edi + 4]
cmp dword [0x10066330], 0
je 0x1001eb60
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
je 0x10020486
add edi, 0xc
cmp dword [edi + 0x18], 0
jne 0x1002049c
mov eax, dword [ebp - 8]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10002e40
mov esp, ebp
pop ebp
ret 0x10
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10064870]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push dword [0x10064010]
xor ebx, ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100204c7
cmp dword [eax + 0x1078], ebx
je 0x100204c7
push esi
push dword [0x10064010]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10007fdd
mov esi, dword [eax + 0x1078]
test esi, esi
je 0x1002038f
xor ebx, ebx
push edi
xor edi, edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
test esi, esi
je 0x100204b5
test byte [esi + 0x2c], 2
jne 0x100204b5
cmp dword [esi + 0x24], ebx
lea eax, [esi + 0xc]
jne 0x1002039a
lea ecx, [esi + 4]
cmp dword [0x10066330], ebx
je 0x100203b2
mov eax, 1
lock xadd dword [ecx], eax
inc dword [esi + 8]
mov eax, dword [ebp + 8]
test eax, eax
je 0x1001eb47
mov eax, dword [eax]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x10067390]
mov ecx, dword [ebp + 8]
call edi
test al, 2
je 0x10007fce
mov edi, dword [ebp + 8]
cmp esi, dword [edi + 0x10]
jne 0x100203c1
jmp 0x1001eada
push dword [0x10064010]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1001eb33
mov ecx, dword [eax + 0x1078]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x100203d4
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x100203e6
test byte [ecx + 0x2c], 2
jne 0x100203e6
cmp dword [ecx + 0x24], 0
lea eax, [ecx + 0xc]
mov edi, ecx
mov dword [ebp - 0x14], edi
jne 0x100203f9
cmp dword [0x10066330], 0
lea ebx, [ecx + 4]
je 0x10020418
mov eax, 1
lock xadd dword [ebx], eax
inc dword [ecx + 8]
mov ebx, edx
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x18], ebx
lea eax, [ecx + 1]
mov dword [edx + 0x10], eax
test ecx, ecx
jne 0x10007f58
mov dword [edx + 0x14], ecx
mov eax, dword [edx + 0x18]
mov dword [edx + 0x18], 1
add edx, 4
cmp dword [0x10066330], 0
mov dword [ebp - 0x10], eax
je 0x10020424
mov eax, 1
lock xadd dword [edx], eax
mov edx, dword [ebp + 0x10]
movzx eax, dl
cmp eax, edx
jne 0x1001eb47
cmp dword [ebp + 0xc], 0
jne 0x1001eb47
cmp dword [esi + 0x28], 0
jne 0x1001eb3d
mov ecx, dword [ebp + 8]
push dword [ebp + 0x14]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0xc], eax
cmp eax, 0x10007ff0
jne 0x1001eb02
jmp 0x10007fd6
mov ecx, dword [ebp + 8]
call dword [ebp - 0xc]
mov dword [ebp - 8], 1
jmp 0x1001eb0f
mov edi, dword [ebp - 0x14]
jmp 0x1001eb47
call fcn.10016da7
jmp 0x10007fc2
xor esi, esi
jmp 0x10007e5b
mov eax, dword [edi]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0xc], eax
cmp eax, fcn.10003f90
je 0x1001eb1b
cmp eax, fcn.10003470
je 0x1001eb27
mov ecx, eax
call dword [0x10067390]
mov ecx, edi
call dword [ebp - 0xc]
jmp 0x10007ed8
mov ecx, eax
call dword [0x10067390]
jmp 0x10007fbc
mov ecx, esi
call fcn.1001f0a0
jmp 0x10007d04
mov ecx, edi
call fcn.10003f90
jmp 0x10007ed8
mov ecx, edi
call fcn.10003470
jmp 0x10007ed8
xor ecx, ecx
mov dword [ebp - 0xc], ecx
jmp 0x100203de
push 0x8004001f
jmp 0x10020433
push 0x80070057
jmp 0x10020433
dec dword [edx]
mov eax, dword [edx]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
jmp 0x10007d41
dec dword [eax]
mov ecx, dword [eax]
mov edi, dword [ebp - 0x14]
jmp 0x10007d6c
mov dword [0], ebx
jmp 0x10007e5b
cmp dword [0x10066330], ebx
je 0x10007e87
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
jmp 0x10007e87
inc dword [ecx]
mov eax, dword [ecx]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
jmp 0x10007e9f
push 0x8004001e
call dword [sym.imp.kernel32.dll_SetLastError]
mov edi, dword [ebp - 0x14]
jmp 0x1001eb0f
mov dword [0], 0
test ecx, ecx
jne 0x10007f00
push 0x80070057
call dword [sym.imp.kernel32.dll_SetLastError]
mov edi, dword [ebp - 0x14]
jmp 0x1001eb0f
cmp dword [0x10066330], 0
je 0x10007f27
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
jmp 0x10007f27
inc dword [ebx]
mov eax, dword [ebx]
mov edi, dword [ebp - 0x14]
jmp 0x10007f40
inc dword [edx]
mov eax, dword [edx]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
jmp 0x10007f7e
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x1001eb0f
cmp dword [ebx + 0x18], 0
je 0x10007d1a
mov edx, 1
jmp 0x10007d1c
cmp dword [ebx + 8], 0
lea eax, [ebx + 8]
je 0x10007d2a
push eax
call fcn.10016da7
or ecx, 0xffffffff
jmp 0x10007d2a
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10067390]
mov ecx, ebx
call esi
or ecx, 0xffffffff
jmp 0x10007d49
mov edx, dword [edi]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x10067390]
mov ecx, edi
call esi
jmp 0x10007d81
cmp dword [0x10066330], 0
je 0x10007d81
push edi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x10007d81
push 0x80070057
call dword [sym.imp.kernel32.dll_SetLastError]
xor eax, eax
jmp 0x10007d84
push 0x80040014
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, ebx
jmp 0x10007d86