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

Disassembly:
sub esp, 0x1c
cmp dword [0x1f083700], 0
je 0x1f01d769
mov eax, dword [0x1f0837c4]
push eax
cmp eax, 0x40
jae 0x1f01d482
call section..text
jmp 0x1f01d488
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 0x1f01d4a6
call fcn.1f001021
jmp 0x1f01d4ac
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.1f02db10
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 0x1f01d73a
push ebx
push edi
jmp 0x1f01d4e2
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 0x1f01d501
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 0x1f01d6d5
mov eax, dword [esi + 0xa8]
test eax, eax
jle 0x1f01d6d5
mov eax, dword [0x1f0837cc]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
push 1
push 0
add ecx, eax
call fcn.1f02db10
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 0x1f01d6c9
jmp 0x1f01d564
mov edi, dword [esp + 0x14]
mov ebp, dword [edi]
mov eax, dword [ebp + 4]
test eax, eax
je 0x1f01d6b1
mov edx, dword [eax]
mov ecx, dword [edx + 4]
cmp dword [ecx + eax + 0xc], 0
je 0x1f01d6b1
mov esi, dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
je 0x1f01d6b1
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1f01d6b1
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 0x1f01d697
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 0x1f01d673
cmp dword [esi + 0x1d2c], 0
jne 0x1f01d67c
mov dword [esi + 0x1d28], 1
cmp dword [eax + 0x1b74], 0
jne 0x1f01d632
mov eax, dword [edi + 4]
test eax, eax
je 0x1f01d61c
mov eax, dword [eax]
mov ecx, dword [esi + 0x30]
cmp ecx, dword [eax + 0x30]
jne 0x1f01d61c
mov edx, dword [esi + 0x34]
mov dword [eax + 0x34], edx
push esi
call fcn.1f0141a0
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x40]
push eax
push ecx
call fcn.1f01a180
add esp, 0xc
mov edx, dword [esp + 0x20]
cmp dword [edx + 8], 0
jne 0x1f01d649
cmp dword [esi + 0xa8], 0
jne 0x1f01d649
xor eax, eax
jmp 0x1f01d64e
mov eax, 1
mov ecx, dword [ebp + 0x18]
push 0xffffffffffffffff
push ecx
push eax
push 0
push esi
push ebx
push ebp
call fcn.1f018e10
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 0x1f01d5c7
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1f01d5b0
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 0x1f01d560
mov eax, dword [0x1f0837cc]
mov ebp, dword [esp + 0x18]
mov edx, dword [eax]
mov ecx, dword [edx + 4]
add ecx, eax
call fcn.1f02db80
mov eax, dword [0x1f083700]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call fcn.1f02db80
mov edx, dword [ebx]
push edx
call fcn.1f00d960
mov eax, dword [0x1f083700]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
push 0
push 0
add ecx, eax
call fcn.1f02db10
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 0x1f01d4e0
mov esi, dword [esp + 0x1c]
pop edi
pop ebx
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call fcn.1f02db80
mov eax, dword [0x1f0837c4]
pop ebp
push esi
push eax
cmp eax, 0x40
jae 0x1f01d762
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