Function at 0x1f0194a0
Capabilities:
Get thread local storage value
Set thread local storage value
Suspend thread
Terminate process

Disassembly:
mov eax, dword [0x1f0837c0]
sub esp, 8
push eax
cmp eax, 0x40
jae 0x1f0194b5
call section..text
jmp 0x1f0194bb
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ebp
mov ebp, eax
mov dword [esp + 4], eax
test ebp, ebp
je 0x1f0197bc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, 0xff450020
mov dword [ecx], 1
cmp eax, 4
ja case.default.0x1f0194e6
jmp dword [eax*4 + 0x1f0197c4]
push edi
call fcn.1f033f20
mov edi, dword [ebp + 4]
mov dword [esp + 0xc], edi
test edi, edi
je 0x1f01976a
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0x10]
test eax, eax
je 0x1f01976a
push ebx
push esi
jmp 0x1f019524
mov ebp, dword [esp + 0x10]
mov esi, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x1e00
push esi
call ebx
test eax, eax
jne 0x1f019757
mov edx, dword [esi + 0x38]
push 0x1b78
push edx
call ebx
test eax, eax
jne 0x1f019757
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0
push esi
push edi
push ebp
call fcn.1f018d70
mov eax, dword [esi + 0x4c]
mov ebp, dword [esi + 0x38]
add esp, 0x1c
test eax, eax
je 0x1f019587
push eax
mov eax, dword [0x1f0837b4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x4c], 0
cmp dword [esi + 0xa8], 0
je 0x1f0195ef
mov ecx, dword [esi + 0x38]
movzx ebx, byte [ecx + 0xb5]
imul ebx, ebx, 0xa4
lea edi, [esi + 0xb0]
add ebx, edi
cmp edi, ebx
jae 0x1f0195e5
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 0x1f0195db
mov edx, dword [0x1f0837b4]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi + 0x90], 0
add edi, 0xa4
cmp edi, ebx
jb 0x1f0195b0
mov dword [esi + 0xa8], 0
mov eax, dword [esi + 0x1afc]
test eax, eax
je 0x1f019612
push eax
mov eax, dword [0x1f0837b4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x1afc], 0
cmp dword [ebp + 0x1b28], 0
je 0x1f019641
cmp dword [esi + 0x50], 0
je 0x1f019641
mov ecx, dword [esi + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0x50]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 4], 0
jne 0x1f019664
cmp dword [ebp + 0x9c], 0
jne 0x1f019664
mov ecx, dword [esi + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [ebp + 0xa8]
lea ebx, [ebp + 0xa8]
cmp edx, 1
jne 0x1f019682
mov eax, dword [ebp + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x1f0837c4]
push eax
cmp eax, 0x40
jae 0x1f019694
call section..text
jmp 0x1f01969a
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 0x1f0196b3
call fcn.1f001021
jmp 0x1f0196b9
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 0x1f0196e7
mov eax, dword [eax + 4]
cmp dword [ecx], esi
lea ecx, [eax + edx]
mov edx, dword [ecx]
jne 0x1f0196e1
mov eax, dword [ecx + 0x10]
mov edx, dword [edx + 0x20]
push eax
call edx
jmp 0x1f0196e7
mov eax, dword [edx + 0x24]
push esi
call eax
mov eax, dword [0x1f0837c4]
push edi
push eax
cmp eax, 0x40
jae 0x1f0196fa
call fcn.1f001021
jmp 0x1f019700
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 0x1f01971c
mov dword [ebx], 0
mov ecx, dword [ebx]
test ecx, ecx
jne 0x1f019753
cmp dword [ebp + 0xa0], ecx
je 0x1f019753
cmp dword [ebp + 0x1b2c], ecx
jne 0x1f019753
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 edx, dword [edi]
mov eax, dword [edx + 4]
mov eax, dword [eax + edi + 0x10]
test eax, eax
jne 0x1f019520
pop esi
pop ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop ebp
add esp, 8
ret
push 0
mov dword [ebp + 0x74], 1
call dword [sym.imp.KERNEL32.dll_ExitThread]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
pop ebp
add esp, 8
ret
mov dword [ecx], 2
pop ebp
add esp, 8
ret
mov dword [ecx], 3
pop ebp
add esp, 8
ret
mov dword [ecx], 1
pop ebp
add esp, 8
ret