Function at 0x100c7690
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, ecx
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push dword [ecx + 0x1c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [esi + 0x18], 0
mov ebx, dword [0x101ce5f0]
cmp ebx, 1
ja 0x100c7704
push 0x101ce5f0
call fcn.10065310
add esp, 4
test al, al
je 0x100c76fe
mov dword [0x101ce5f8], 0
mov dword [0x101ce5f4], 0xffffffff
mov ebx, 0x101ce5f4
mov ecx, 0x101ce5f4
push 0
call fcn.1007a5a0
mov dword [0x101ce5f0], ebx
jmp 0x100c7704
mov ebx, dword [0x101ce5f0]
lea edi, [ebp + 8]
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x100c772a
mov ecx, dword [ebx]
mov dword [eax + ecx*8], 0
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [eax + ecx*8 + 4], edx
mov eax, dword [edi + 8]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x100c7740
mov dword [edi + 4], 0
jmp 0x100c7762
cmp dword [edi + 0xc], 0
je 0x100c7775
lea eax, [edi + 0xc]
mov dword [ebp - 0x18], 2
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
push eax
call fcn.100c78b0
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x24], eax
test ecx, ecx
je 0x100c77e6
push 1
call fcn.100c8060
jmp 0x100c77e6
push 0x18
call fcn.10145ba4
add esp, 4
mov dword [eax], 1
mov dword [eax + 4], 0x100c8230
mov dword [eax + 8], 0x100c8250
mov dword [eax + 0xc], 0x100639c0
mov ecx, dword [edi]
mov dword [eax + 0x14], ecx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov ebx, edi
mov edx, edi
push eax
call fcn.100c7920
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x24], eax
test ecx, ecx
je 0x100c77c9
push 1
call fcn.100c8060
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x100c77e4
lock dec dword [edi]
jne 0x100c77e4
mov ecx, dword [edi + 8]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov edi, ebx
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebx, esi
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x100c7899
mov dword [ebp - 0x20], esi
cmp byte [edi + 0x18], 0
mov esi, dword [edi]
mov eax, dword [edi + 0x14]
je 0x100c7823
lea ecx, [ebx + 0x10]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edi + 0x10]
mov edx, ebx
push esi
push eax
push dword [ebp - 0x1c]
jmp 0x100c782c
mov ecx, dword [edi + 0x10]
mov edx, ebx
push esi
push eax
push 0
call fcn.10083dd0
add esp, 0xc
mov byte [ebp - 0x1c], al
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp byte [ebp - 0x1c], 0
je 0x100c7851
movzx eax, byte [edi + 0x18]
mov byte [ebx + 8], al
mov bl, 1
jmp 0x100c7853
xor ebx, ebx
mov esi, dword [edi + 0xc]
test esi, esi
je 0x100c786e
lock dec dword [esi]
jne 0x100c786e
mov ecx, dword [esi + 8]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov ecx, dword [edi + 4]
mov dword [edi + 4], 0
test ecx, ecx
je 0x100c7883
push 1
call fcn.100c8060
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101465a3
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
mov ecx, esi
call fcn.10083990
jmp 0x100c7803