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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c506b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x72cec4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.004fb590
push dword [0x72ca74]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4fae33
cmp byte [ebp + 8], al
je 0x4fae33
push 0x50
call fcn.00596a0c
add esp, 4
mov dword [ebp - 0x1c], eax
push 1
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.004f9b00
mov ebx, eax
push ebx
push dword [0x72ca74]
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 8
mov dword [ebp - 4], 1
call fcn.00596a0c
add esp, 4
mov dword [ebp - 0x18], eax
push ebx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004f99c0
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.004fa3c0
mov byte [ebx + 0x4e], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x38], eax
mov eax, dword [0x7301c8]
nop
test eax, eax
jne 0x4fae47
mov eax, dword [ebx + 0x34]
nop
mov dword [0x7301c8], 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], 0x7303f0
mov edx, 0x7303f0
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4faea0
mov ecx, edx
call fcn.004f8c80
mov byte [ebp - 0x20], 1
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x7303f4]
jne 0x4faef4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov eax, 1
mov edx, 0x7303f0
lock cmpxchg dword [edx], ecx
cmp eax, 1
je 0x4fae33
mov ecx, edx
call fcn.004f8e20
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 [0x730408]
mov ecx, 0x730400
call fcn.004fabf0
mov eax, dword [0x730400]
test eax, eax
je 0x4faf1b
mov eax, dword [eax]
cmp eax, 1
jle 0x4faf2b
push 0
push 0
push 0
mov ecx, 0x730400
call fcn.00481900
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
push eax
mov ecx, 0x73040c
call fcn.00477880
cmp dword [0x7303f4], 0
jne 0x4faf92
cmp dword [0x730418], 0
jne 0x4faf74
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x730418], eax
mov ecx, 0x730400
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0
call fcn.004fabf0
push 0x7303f4
push 0
push 0
push 0x4fb1e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
jmp 0x4faeba
push dword [0x730418]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4faec0