Function at 0x44f080
Capabilities:
Get number of processors
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4b5704
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.00456150
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ebx
xor edi, edi
push ebp
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], edi
call fcn.00456300
mov ecx, 0x4f8020
mov dword [esp + 0x30], eax
call fcn.0044fa70
mov ecx, dword [esp + 0x10]
or esi, 0xffffffff
mov dword [eax + 0xb4], ecx
mov eax, dword [0x4f8020]
cmp eax, esi
je 0x44f195
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x44f190
push 0xb8
call fcn.004a64f5
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x20], 1
je 0x44f121
mov ecx, eax
call fcn.0044f840
mov edi, eax
jmp 0x44f123
xor edi, edi
mov edx, dword [0x4f8020]
push edi
push edx
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
jne 0x44f153
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push 0x4d6d10
push eax
call fcn.0048c884
push 8
call fcn.004a64f5
add esp, 4
mov esi, eax
push 0x4f8028
mov dword [esi], edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ecx, dword [0x4f8024]
push 0x4f8028
mov dword [esi + 4], ecx
mov dword [0x4f8024], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [0x4f8020]
or esi, 0xffffffff
jmp 0x44f195
mov eax, dword [0x4f8020]
mov dl, byte [edi + 0xb0]
and dl, 1
cmp dl, 1
je 0x44f33d
cmp dword [ebp], 0x64
jae 0x44f1b6
cmp dword [ebx], 0x64
jb 0x44f33d
xor edi, edi
cmp eax, esi
je 0x44f25d
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x44f25d
push 0xb8
call fcn.004a64f5
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x20], 2
je 0x44f1f6
mov ecx, eax
call fcn.0044f840
mov edi, eax
jmp 0x44f1f8
xor edi, edi
mov eax, dword [0x4f8020]
push edi
push eax
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
jne 0x44f227
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x2c]
push 0x4d6d10
push ecx
mov dword [esp + 0x34], eax
call fcn.0048c884
push 8
call fcn.004a64f5
add esp, 4
mov esi, eax
push 0x4f8028
mov dword [esi], edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [0x4f8024]
push 0x4f8028
mov dword [esi + 4], edx
mov dword [0x4f8024], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
or esi, 0xffffffff
mov eax, dword [esp + 0x30]
mov dword [edi + 0xb4], esi
test eax, eax
je 0x44f272
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [0x4f8020]
xor edi, edi
cmp eax, esi
mov dword [esp + 0x20], esi
je 0x44f321
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x44f321
push 0xb8
call fcn.004a64f5
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x20], 3
je 0x44f2be
mov ecx, eax
call fcn.0044f840
mov edi, eax
jmp 0x44f2c0
xor edi, edi
mov eax, dword [0x4f8020]
push edi
push eax
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
jne 0x44f2ee
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x30]
push 0x4d6d10
push ecx
mov dword [esp + 0x38], eax
call fcn.0048c884
push 8
call fcn.004a64f5
add esp, 4
mov esi, eax
push 0x4f8028
mov dword [esi], edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [0x4f8024]
push 0x4f8028
mov dword [esi + 4], edx
mov dword [0x4f8024], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [edi + 4]
dec eax
mov dword [edi + 4], eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
xor edi, edi
cmp eax, esi
mov dword [esp + 0x20], esi
je 0x44f3e7
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x44f3e7
push 0xb8
call fcn.004a64f5
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov dword [esp + 0x20], 4
je 0x44f384
mov ecx, eax
call fcn.0044f840
mov edi, eax
jmp 0x44f386
xor edi, edi
mov eax, dword [0x4f8020]
push edi
push eax
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
jne 0x44f3b4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x2c]
push 0x4d6d10
push ecx
mov dword [esp + 0x34], eax
call fcn.0048c884
push 8
call fcn.004a64f5
add esp, 4
mov esi, eax
push 0x4f8028
mov dword [esi], edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [0x4f8024]
push 0x4f8028
mov dword [esi + 4], edx
mov dword [0x4f8024], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x18]
dec eax
mov dword [edi + 4], eax
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret