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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c36bb
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x72b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.004f9c70
push dword [0x72abcc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4f9513
cmp byte [ebp + 8], al
je 0x4f9513
push 0x50
call fcn.0059506c
add esp, 4
mov dword [ebp - 0x1c], eax
push 1
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.004f81e0
mov ebx, eax
push ebx
push dword [0x72abcc]
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 8
mov dword [ebp - 4], 1
call fcn.0059506c
add esp, 4
mov dword [ebp - 0x18], eax
push ebx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004f80a0
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.004f8aa0
mov byte [ebx + 0x4e], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x38], eax
mov eax, dword [0x72e348]
nop
test eax, eax
jne 0x4f9527
mov eax, dword [ebx + 0x34]
nop
mov dword [0x72e348], 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], 0x72e570
mov edx, 0x72e570
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4f9580
mov ecx, edx
call fcn.004f7360
mov byte [ebp - 0x20], 1
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x72e574]
jne 0x4f95d4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov eax, 1
mov edx, 0x72e570
lock cmpxchg dword [edx], ecx
cmp eax, 1
je 0x4f9513
mov ecx, edx
call fcn.004f7500
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 [0x72e588]
mov ecx, 0x72e580
call fcn.004f92d0
mov eax, dword [0x72e580]
test eax, eax
je 0x4f95fb
mov eax, dword [eax]
cmp eax, 1
jle 0x4f960b
push 0
push 0
push 0
mov ecx, 0x72e580
call fcn.00480000
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
push eax
mov ecx, 0x72e58c
call fcn.00475f90
cmp dword [0x72e574], 0
jne 0x4f9672
cmp dword [0x72e598], 0
jne 0x4f9654
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x72e598], eax
mov ecx, 0x72e580
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0
call fcn.004f92d0
push 0x72e574
push 0
push 0
push 0x4f98c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
jmp 0x4f959a
push dword [0x72e598]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4f95a0