Function at 0x1f019b40
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 0x1f019b5f
call section..text
mov ebp, eax
mov dword [esp + 4], ebp
jmp 0x1f019b6b
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 4], eax
mov ebp, eax
test ebp, ebp
je 0x1f019efe
mov eax, dword [0x1f0837c4]
push esi
push eax
cmp eax, 0x40
jae 0x1f019b8c
call section..text
mov esi, eax
mov dword [esp + 0x10], esi
jmp 0x1f019b98
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 0x1f019baf
call fcn.1f001021
jmp 0x1f019bb5
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.1f02da00
mov edi, dword [ebp + 4]
mov dword [esp + 0x10], edi
test edi, edi
je 0x1f019e91
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov eax, dword [eax + edi + 0x10]
test eax, eax
je 0x1f019e91
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 0x1f019e7b
mov ecx, dword [esi + 0x38]
push 0x1b78
push ecx
call ebx
test eax, eax
jne 0x1f019e7b
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0
push esi
push edi
push ebp
call fcn.1f018d70
push esi
call fcn.1f014100
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 0x1b08]
add esp, 0x20
test ecx, ecx
je 0x1f019c7a
mov eax, dword [eax + 0x1b04]
test eax, eax
je 0x1f019c7a
cmp dword [ebp + 0x74], 0
mov edx, str._by_break_dialog
jne 0x1f019c60
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.1f03e8e1
add esp, 0x18
lea eax, [esp + 0x1c]
push eax
push 2
call fcn.1f0291c0
mov eax, dword [esi + 0x4c]
mov ebp, dword [esi + 0x38]
test eax, eax
je 0x1f019ca7
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 0x1f019d0e
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 0x1f019d04
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 0x1f019cfa
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 0x1f019cd0
mov dword [esi + 0xa8], 0
mov eax, dword [esi + 0x1afc]
test eax, eax
je 0x1f019d32
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 0x1f019d61
cmp dword [esi + 0x50], 0
je 0x1f019d61
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 0x1f019d84
cmp dword [ebp + 0x9c], 0
jne 0x1f019d84
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 0x1f019da2
mov ecx, dword [ebp + 0xac]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x1f0837c4]
push eax
cmp eax, 0x40
jae 0x1f019db4
call section..text
jmp 0x1f019dba
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 0x1f019dd3
call fcn.1f001021
jmp 0x1f019dd9
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 0x1f019e07
mov eax, dword [eax + 4]
cmp dword [ecx], esi
lea ecx, [eax + edx]
mov edx, dword [ecx]
jne 0x1f019e01
mov eax, dword [ecx + 0x10]
mov edx, dword [edx + 0x20]
push eax
call edx
jmp 0x1f019e07
mov eax, dword [edx + 0x24]
push esi
call eax
mov eax, dword [0x1f0837c4]
push edi
push eax
cmp eax, 0x40
jae 0x1f019e1a
call fcn.1f001021
jmp 0x1f019e20
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 0x1f019e3c
mov dword [ebx], 0
mov ecx, dword [ebx]
test ecx, ecx
jne 0x1f019e73
cmp dword [ebp + 0xa0], ecx
je 0x1f019e73
cmp dword [ebp + 0x1b2c], ecx
jne 0x1f019e73
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.1f03f7a0
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 0x1f019bf0
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.1f02da70
mov eax, dword [0x1f0837c4]
pop edi
push esi
push eax
cmp eax, 0x40
jae 0x1f019ecd
call fcn.1f001021
jmp 0x1f019ed3
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1f0837c0]
pop esi
push 0
push eax
cmp eax, 0x40
jae 0x1f019ee8
call fcn.1f001021
jmp 0x1f019eee
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, ebp
call fcn.1f01dc10
push ebp
call fcn.1f03e80c
add esp, 4
pop ebp
add esp, 0x214
ret