Function at 0x1f01d3d0
Capabilities:
Get thread local storage value
Resume thread
Set thread local storage value
Suspend thread

Disassembly:
sub esp, 0x1c
cmp dword [0x1f083700], 0
je 0x1f01d6d9
mov eax, dword [0x1f0837c4]
push eax
cmp eax, 0x40
jae 0x1f01d3f2
call section..text
jmp 0x1f01d3f8
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1f0837c4]
push esi
mov esi, eax
mov dword [esp + 0x10], eax
lea eax, [esi + 1]
push eax
push ecx
cmp ecx, 0x40
jae 0x1f01d416
call fcn.1f001021
jmp 0x1f01d41c
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1f083700]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
push ebp
push 0
push 1
add ecx, eax
call fcn.1f02da00
mov eax, dword [0x1f083700]
mov edx, dword [eax]
mov ecx, dword [edx + 4]
mov ebp, dword [ecx + eax + 0x24]
mov dword [esp + 0x10], ebp
test ebp, ebp
je 0x1f01d6aa
push ebx
push edi
jmp 0x1f01d452
mov ebp, ecx
mov ebx, dword [ebp]
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 4]
cmp eax, 0xc8
jae 0x1f01d471
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebx]
mov esi, dword [edx]
push 0x1b78
push esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1f01d645
mov eax, dword [esi + 0xa8]
test eax, eax
jle 0x1f01d645
mov eax, dword [0x1f0837cc]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
push 1
push 0
add ecx, eax
call fcn.1f02da00
mov eax, dword [0x1f0837cc]
mov edx, dword [eax]
mov ecx, dword [edx + 4]
mov edi, dword [ecx + eax + 0x24]
mov dword [esp + 0x14], edi
test edi, edi
je 0x1f01d639
jmp 0x1f01d4d4
mov edi, dword [esp + 0x14]
mov ebp, dword [edi]
mov eax, dword [ebp + 4]
test eax, eax
je 0x1f01d621
mov edx, dword [eax]
mov ecx, dword [edx + 4]
cmp dword [ecx + eax + 0xc], 0
je 0x1f01d621
mov esi, dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
je 0x1f01d621
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1f01d621
lea esp, [esp]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ebx, dword [ebp + 4]
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov edi, dword [ecx + ebx + 0x10]
test edi, edi
je 0x1f01d607
mov esi, dword [edi]
mov eax, dword [esi + 0x38]
mov edx, dword [edi + 8]
mov dword [esp + 0x28], edx
cmp eax, dword [esp + 0x24]
jne 0x1f01d5e3
cmp dword [esi + 0x1d2c], 0
jne 0x1f01d5ec
mov dword [esi + 0x1d28], 1
cmp dword [eax + 0x1b74], 0
jne 0x1f01d5a2
mov eax, dword [edi + 4]
test eax, eax
je 0x1f01d58c
mov eax, dword [eax]
mov ecx, dword [esi + 0x30]
cmp ecx, dword [eax + 0x30]
jne 0x1f01d58c
mov edx, dword [esi + 0x34]
mov dword [eax + 0x34], edx
push esi
call fcn.1f014100
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x40]
push eax
push ecx
call fcn.1f01a0f0
add esp, 0xc
mov edx, dword [esp + 0x20]
cmp dword [edx + 8], 0
jne 0x1f01d5b9
cmp dword [esi + 0xa8], 0
jne 0x1f01d5b9
xor eax, eax
jmp 0x1f01d5be
mov eax, 1
mov ecx, dword [ebp + 0x18]
push 0xffffffffffffffff
push ecx
push eax
push 0
push esi
push ebx
push ebp
call fcn.1f018d70
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov edx, dword [eax + ebx]
lea ecx, [eax + ebx]
mov eax, dword [edx + 0x20]
add esp, 0x1c
push edi
call eax
mov edi, dword [esp + 0x28]
jmp 0x1f01d537
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1f01d520
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov edi, dword [edi + 4]
mov dword [esp + 0x14], edi
test edi, edi
jne 0x1f01d4d0
mov eax, dword [0x1f0837cc]
mov ebp, dword [esp + 0x18]
mov edx, dword [eax]
mov ecx, dword [edx + 4]
add ecx, eax
call fcn.1f02da70
mov eax, dword [0x1f083700]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call fcn.1f02da70
mov edx, dword [ebx]
push edx
call fcn.1f00dcf0
mov eax, dword [0x1f083700]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
push 0
push 0
add ecx, eax
call fcn.1f02da00
mov eax, dword [0x1f083700]
mov edx, dword [eax]
mov ecx, dword [edx + 4]
mov edx, dword [ecx + eax]
add ecx, eax
mov eax, dword [edx + 0x30]
push 1
push ebp
call eax
mov eax, dword [0x1f083700]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 0x24]
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x1f01d450
mov esi, dword [esp + 0x1c]
pop edi
pop ebx
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call fcn.1f02da70
mov eax, dword [0x1f0837c4]
pop ebp
push esi
push eax
cmp eax, 0x40
jae 0x1f01d6d2
call fcn.1f001021
pop esi
mov eax, 1
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
mov eax, 1
add esp, 0x1c
ret