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

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + ebx + 0x10]
test eax, eax
je 0x1f01913f
push ebp
push esi
push edi
mov edi, dword [eax]
or eax, 0xffffffff
cmp dword [esp + 0x20], 0xc00000fd
jne 0x1f018f1e
mov eax, 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [esp + 0x1c]
push eax
push 0
push 1
push edi
push ebx
push edx
call fcn.1f018e10
mov eax, dword [edi + 0x4c]
mov esi, dword [edi + 0x38]
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0x1c
mov dword [esp + 0x10], esi
test eax, eax
je 0x1f018f5f
push eax
mov eax, dword [0x1f0837b4]
push 0
push eax
call ebp
mov dword [edi + 0x4c], 0
cmp dword [edi + 0xa8], 0
je 0x1f018fc7
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 0x1f018fb5
mov eax, dword [esi + 0x90]
xor ecx, ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp eax, ecx
je 0x1f018fab
mov edx, dword [0x1f0837b4]
push eax
push ecx
push edx
call ebp
mov dword [esi + 0x90], 0
add esi, 0xa4
cmp esi, ebx
jb 0x1f018f84
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov dword [edi + 0xa8], 0
mov eax, dword [edi + 0x1afc]
test eax, eax
je 0x1f018fe6
push eax
mov eax, dword [0x1f0837b4]
push 0
push eax
call ebp
mov dword [edi + 0x1afc], 0
cmp dword [esi + 0x1b28], 0
mov ebp, dword [sym.imp.KERNEL32.dll_SetEvent]
je 0x1f019017
cmp dword [edi + 0x50], 0
je 0x1f019017
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 [esi + 4], 0
jne 0x1f01903a
cmp dword [esi + 0x9c], 0
jne 0x1f01903a
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 [esi + 0xa8]
lea eax, [esi + 0xa8]
mov dword [esp + 0x1c], eax
cmp edx, 1
jne 0x1f019058
mov eax, dword [esi + 0xac]
push eax
call ebp
mov eax, dword [0x1f0837c4]
push eax
cmp eax, 0x40
jae 0x1f01906a
call section..text
jmp 0x1f019070
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1f0837c4]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, eax
lea eax, [esi + 1]
push eax
push ecx
cmp ecx, 0x40
jae 0x1f01908f
call fcn.1f001021
jmp 0x1f019091
call ebp
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + ebx + 0x10]
test ecx, ecx
je 0x1f0190c2
cmp dword [ecx], edi
jne 0x1f0190b4
mov edx, dword [eax + 4]
mov eax, dword [edx + ebx]
mov eax, dword [eax + 0x20]
lea ecx, [edx + ebx]
mov edx, dword [ecx + 0x10]
push edx
jmp 0x1f0190c0
mov ecx, dword [eax + 4]
mov edx, dword [ecx + ebx]
mov eax, dword [edx + 0x24]
add ecx, ebx
push edi
call eax
mov eax, dword [0x1f0837c4]
push esi
push eax
cmp eax, 0x40
jae 0x1f0190d5
call fcn.1f001021
jmp 0x1f0190d7
call ebp
push 0
call fcn.1f001055
mov eax, dword [esp + 0x1c]
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
mov ecx, dword [eax]
pop edi
pop esi
pop ebp
test ecx, ecx
jge 0x1f0190fa
mov dword [eax], 0
mov edx, dword [eax]
test edx, edx
jne 0x1f01913f
mov eax, dword [esp + 4]
cmp dword [eax + 0xa0], edx
je 0x1f01913f
cmp dword [eax + 0x1b2c], edx
jne 0x1f01913f
movzx ecx, byte [eax + 0xb4]
mov dword [eax + 0xa0], edx
pop ebx
add esp, 4
mov dword [esp + 0xc], ecx
lea edx, [eax + 8]
mov dword [esp + 8], edx
mov eax, dword [eax + 0xb0]
mov dword [esp + 4], eax
jmp fcn.1f03f910
pop ebx
pop ecx
ret