Function at 0x1f019150
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 0x1f01937a
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.1f018e10
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 0x1f0191ae
push eax
mov eax, dword [0x1f0837b4]
push 0
push eax
call ebp
mov dword [edi + 0x4c], 0
cmp dword [edi + 0xa8], 0
je 0x1f019216
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 0x1f019204
mov eax, dword [esi + 0x90]
xor ecx, ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp eax, ecx
je 0x1f0191fa
mov edx, dword [0x1f0837b4]
push eax
push ecx
push edx
call ebp
mov dword [esi + 0x90], 0
add esi, 0xa4
cmp esi, ebx
jb 0x1f0191d3
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
mov dword [edi + 0xa8], 0
mov eax, dword [edi + 0x1afc]
test eax, eax
je 0x1f019235
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 0x1f019266
cmp dword [edi + 0x50], 0
je 0x1f019266
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 0x1f019289
cmp dword [ebx + 0x9c], 0
jne 0x1f019289
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 0x1f01929d
mov eax, dword [ebx + 0xac]
push eax
call ebp
mov eax, dword [0x1f0837c4]
push eax
cmp eax, 0x40
jae 0x1f0192af
call section..text
jmp 0x1f0192b5
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 0x1f0192ce
call fcn.1f001021
jmp 0x1f0192d4
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 0x1f019305
cmp dword [ecx], edi
jne 0x1f0192f7
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 0x1f019303
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 0x1f019318
call fcn.1f001021
jmp 0x1f01931e
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 0x1f019340
mov dword [eax], 0
mov edx, dword [eax]
test edx, edx
jne 0x1f019377
cmp dword [ebx + 0xa0], edx
je 0x1f019377
cmp dword [ebx + 0x1b2c], edx
jne 0x1f019377
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.1f03f910
add esp, 0xc
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret