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

Disassembly:
mov eax, dword [0x1f0837c0]
sub esp, 0x214
push ebp
push eax
cmp eax, 0x40
jae 0x1f019bff
call section..text
mov ebp, eax
mov dword [esp + 4], ebp
jmp 0x1f019c0b
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 4], eax
mov ebp, eax
test ebp, ebp
je 0x1f019f9e
mov eax, dword [0x1f0837c4]
push esi
push eax
cmp eax, 0x40
jae 0x1f019c2c
call section..text
mov esi, eax
mov dword [esp + 0x10], esi
jmp 0x1f019c38
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x10], eax
mov esi, eax
mov ecx, dword [0x1f0837c4]
lea eax, [esi + 1]
push eax
push ecx
cmp ecx, 0x40
jae 0x1f019c4f
call fcn.1f001021
jmp 0x1f019c55
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1f0837cc]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
push edi
push 1
push 0
add ecx, eax
call fcn.1f02db10
mov edi, dword [ebp + 4]
mov dword [esp + 0x10], edi
test edi, edi
je 0x1f019f31
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov eax, dword [eax + edi + 0x10]
test eax, eax
je 0x1f019f31
push ebx
lea esp, [esp]
mov esi, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x1e00
push esi
call ebx
test eax, eax
jne 0x1f019f1b
mov ecx, dword [esi + 0x38]
push 0x1b78
push ecx
call ebx
test eax, eax
jne 0x1f019f1b
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0
push esi
push edi
push ebp
call fcn.1f018e10
push esi
call fcn.1f0141a0
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 0x1b08]
add esp, 0x20
test ecx, ecx
je 0x1f019d1a
mov eax, dword [eax + 0x1b04]
test eax, eax
je 0x1f019d1a
cmp dword [ebp + 0x74], 0
mov edx, str._by_break_dialog
jne 0x1f019d00
mov edx, str.__you_may_need_DontHookReturnAddress_option_for_this_function
push edx
push eax
push ecx
push str.Thread_terminated_during_the_call_of__s_in__s_s
lea edx, [esp + 0x2c]
push 0x104
push edx
call fcn.1f03ea51
add esp, 0x18
lea eax, [esp + 0x1c]
push eax
push 2
call fcn.1f029250
mov eax, dword [esi + 0x4c]
mov ebp, dword [esi + 0x38]
test eax, eax
je 0x1f019d47
mov ecx, dword [0x1f0837b4]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x4c], 0
cmp dword [esi + 0xa8], 0
je 0x1f019dae
mov edx, dword [esi + 0x38]
movzx ebx, byte [edx + 0xb5]
imul ebx, ebx, 0xa4
lea edi, [esi + 0xb0]
add ebx, edi
cmp edi, ebx
jae 0x1f019da4
lea esp, [esp]
mov eax, dword [edi + 0x90]
xor ecx, ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
cmp eax, ecx
je 0x1f019d9a
push eax
mov eax, dword [0x1f0837b4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi + 0x90], 0
add edi, 0xa4
cmp edi, ebx
jb 0x1f019d70
mov dword [esi + 0xa8], 0
mov eax, dword [esi + 0x1afc]
test eax, eax
je 0x1f019dd2
mov ecx, dword [0x1f0837b4]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x1afc], 0
cmp dword [ebp + 0x1b28], 0
je 0x1f019e01
cmp dword [esi + 0x50], 0
je 0x1f019e01
mov edx, dword [esi + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x50]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 4], 0
jne 0x1f019e24
cmp dword [ebp + 0x9c], 0
jne 0x1f019e24
mov edx, dword [esi + 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp + 0xa8]
lea ebx, [ebp + 0xa8]
cmp eax, 1
jne 0x1f019e42
mov ecx, dword [ebp + 0xac]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x1f0837c4]
push eax
cmp eax, 0x40
jae 0x1f019e54
call section..text
jmp 0x1f019e5a
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1f0837c4]
mov edi, eax
lea eax, [edi + 1]
push eax
push ecx
cmp ecx, 0x40
jae 0x1f019e73
call fcn.1f001021
jmp 0x1f019e79
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + edx + 0x10]
test ecx, ecx
je 0x1f019ea7
mov eax, dword [eax + 4]
cmp dword [ecx], esi
lea ecx, [eax + edx]
mov edx, dword [ecx]
jne 0x1f019ea1
mov eax, dword [ecx + 0x10]
mov edx, dword [edx + 0x20]
push eax
call edx
jmp 0x1f019ea7
mov eax, dword [edx + 0x24]
push esi
call eax
mov eax, dword [0x1f0837c4]
push edi
push eax
cmp eax, 0x40
jae 0x1f019eba
call fcn.1f001021
jmp 0x1f019ec0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
call fcn.1f001055
mov ecx, ebx
or edx, 0xffffffff
lock xadd dword [ecx], edx
mov eax, dword [ebx]
test eax, eax
jge 0x1f019edc
mov dword [ebx], 0
mov ecx, dword [ebx]
test ecx, ecx
jne 0x1f019f13
cmp dword [ebp + 0xa0], ecx
je 0x1f019f13
cmp dword [ebp + 0x1b2c], ecx
jne 0x1f019f13
movzx edx, byte [ebp + 0xb4]
push edx
lea eax, [ebp + 8]
mov dword [ebp + 0xa0], ecx
mov ecx, dword [ebp + 0xb0]
push eax
push ecx
call fcn.1f03f910
add esp, 0xc
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov eax, dword [eax + edi + 0x10]
test eax, eax
jne 0x1f019c90
mov esi, dword [esp + 0x18]
pop ebx
mov eax, dword [0x1f0837cc]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
lea ecx, [edx + eax]
mov eax, dword [ecx]
mov edx, dword [eax + 0x34]
push 1
push ebp
call edx
mov eax, dword [0x1f0837cc]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call fcn.1f02db80
mov eax, dword [0x1f0837c4]
pop edi
push esi
push eax
cmp eax, 0x40
jae 0x1f019f6d
call fcn.1f001021
jmp 0x1f019f73
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1f0837c0]
pop esi
push 0
push eax
cmp eax, 0x40
jae 0x1f019f88
call fcn.1f001021
jmp 0x1f019f8e
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, ebp
call fcn.1f01dca0
push ebp
call fcn.1f03e97c
add esp, 4
pop ebp
add esp, 0x214
ret