Function at 0x1f0190b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + esi + 0x10]
test eax, eax
je 0x1f0192da
push ebx
push ebp
push edi
mov edi, dword [eax]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [esp + 0x1c]
push eax
push 0
push 0
push edi
push esi
push edx
call fcn.1f018d70
mov eax, dword [edi + 0x4c]
mov ebx, dword [edi + 0x38]
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0x1c
mov dword [esp + 0x10], ebx
test eax, eax
je 0x1f01910e
push eax
mov eax, dword [0x1f0837b4]
push 0
push eax
call ebp
mov dword [edi + 0x4c], 0
cmp dword [edi + 0xa8], 0
je 0x1f019176
mov ecx, dword [edi + 0x38]
movzx ebx, byte [ecx + 0xb5]
imul ebx, ebx, 0xa4
lea esi, [edi + 0xb0]
add ebx, esi
cmp esi, ebx
jae 0x1f019164
mov eax, dword [esi + 0x90]
xor ecx, ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp eax, ecx
je 0x1f01915a
mov edx, dword [0x1f0837b4]
push eax
push ecx
push edx
call ebp
mov dword [esi + 0x90], 0
add esi, 0xa4
cmp esi, ebx
jb 0x1f019133
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
mov dword [edi + 0xa8], 0
mov eax, dword [edi + 0x1afc]
test eax, eax
je 0x1f019195
push eax
mov eax, dword [0x1f0837b4]
push 0
push eax
call ebp
mov dword [edi + 0x1afc], 0
cmp dword [ebx + 0x1b28], 0
mov ebp, dword [sym.imp.KERNEL32.dll_SetEvent]
je 0x1f0191c6
cmp dword [edi + 0x50], 0
je 0x1f0191c6
mov ecx, dword [edi + 0x54]
push ecx
call ebp
mov edx, dword [edi + 0x50]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 4], 0
jne 0x1f0191e9
cmp dword [ebx + 0x9c], 0
jne 0x1f0191e9
mov ecx, dword [edi + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [ebx + 0xa8]
cmp edx, 1
jne 0x1f0191fd
mov eax, dword [ebx + 0xac]
push eax
call ebp
mov eax, dword [0x1f0837c4]
push eax
cmp eax, 0x40
jae 0x1f01920f
call section..text
jmp 0x1f019215
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1f0837c4]
mov ebp, eax
lea eax, [ebp + 1]
push eax
push ecx
cmp ecx, 0x40
jae 0x1f01922e
call fcn.1f001021
jmp 0x1f019234
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + esi + 0x10]
test ecx, ecx
je 0x1f019265
cmp dword [ecx], edi
jne 0x1f019257
mov edx, dword [eax + 4]
mov eax, dword [edx + esi]
mov eax, dword [eax + 0x20]
lea ecx, [edx + esi]
mov edx, dword [ecx + 0x10]
push edx
jmp 0x1f019263
mov ecx, dword [eax + 4]
mov edx, dword [ecx + esi]
mov eax, dword [edx + 0x24]
add ecx, esi
push edi
call eax
mov eax, dword [0x1f0837c4]
push ebp
push eax
cmp eax, 0x40
jae 0x1f019278
call fcn.1f001021
jmp 0x1f01927e
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
call fcn.1f001055
lea eax, [ebx + 0xa8]
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
mov ecx, dword [eax]
test ecx, ecx
jge 0x1f0192a0
mov dword [eax], 0
mov edx, dword [eax]
test edx, edx
jne 0x1f0192d7
cmp dword [ebx + 0xa0], edx
je 0x1f0192d7
cmp dword [ebx + 0x1b2c], edx
jne 0x1f0192d7
movzx eax, byte [ebx + 0xb4]
push eax
lea ecx, [ebx + 8]
mov dword [ebx + 0xa0], edx
mov edx, dword [ebx + 0xb0]
push ecx
push edx
call fcn.1f03f7a0
add esp, 0xc
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret