Function at 0x4f2dc0
Capabilities:
Create thread
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd04b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x71c56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.004f35f0
push dword [0x71c11c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4f2e93
cmp byte [ebp + 8], al
je 0x4f2e93
push 0x50
call fcn.0058ea0c
add esp, 4
mov dword [ebp - 0x1c], eax
push 1
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.004f1b60
mov ebx, eax
push ebx
push dword [0x71c11c]
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 8
mov dword [ebp - 4], 1
call fcn.0058ea0c
add esp, 4
mov dword [ebp - 0x18], eax
push ebx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004f1a20
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
nop
nop
mov ecx, ebx
mov dword [ebx + 0x34], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004f2420
mov byte [ebx + 0x4e], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x38], eax
mov eax, dword [0x71f888]
nop
test eax, eax
jne 0x4f2ea7
mov eax, dword [ebx + 0x34]
nop
mov dword [0x71f888], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x14], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edi, dword [ebx + 0x34]
nop
mov esi, dword [ebp - 0x14]
mov ecx, 1
mov dword [ebp - 0x24], 0x71fab0
mov edx, 0x71fab0
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4f2f00
mov ecx, edx
call fcn.004f0cc0
mov byte [ebp - 0x20], 1
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x71fab4]
jne 0x4f2f54
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov eax, 1
mov edx, 0x71fab0
lock cmpxchg dword [edx], ecx
cmp eax, 1
je 0x4f2e93
mov ecx, edx
call fcn.004f0e60
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push eax
push dword [0x71fac8]
mov ecx, 0x71fac0
call fcn.004f2c50
mov eax, dword [0x71fac0]
test eax, eax
je 0x4f2f7b
mov eax, dword [eax]
cmp eax, 1
jle 0x4f2f8b
push 0
push 0
push 0
mov ecx, 0x71fac0
call fcn.00479950
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
push eax
mov ecx, 0x71facc
call fcn.0046f8e0
cmp dword [0x71fab4], 0
jne 0x4f2ff2
cmp dword [0x71fad8], 0
jne 0x4f2fd4
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x71fad8], eax
mov ecx, 0x71fac0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0
call fcn.004f2c50
push 0x71fab4
push 0
push 0
push 0x4f3240
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
jmp 0x4f2f1a
push dword [0x71fad8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4f2f20