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

Disassembly:
push 0xffffffffffffffff
push 0x4aaf74
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ecx, 0x4eb358
call fcn.00418750
mov ebx, dword [eax + 4]
add eax, 4
inc ebx
mov dword [eax], ebx
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ebx
push ebp
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0
call fcn.00426ab0
mov ecx, 0x4eb358
mov dword [esp + 0x30], eax
call fcn.00418750
mov ecx, dword [esp + 0x10]
xor esi, esi
mov dword [eax + 0xb4], ecx
mov eax, dword [0x4eb358]
cmp eax, 0xffffffff
je 0x417df7
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x417df2
push 0xb8
call fcn.0048b346
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x20], 1
je 0x417d8d
mov ecx, eax
call fcn.00418520
mov esi, eax
jmp 0x417d8f
xor esi, esi
mov edx, dword [0x4eb358]
push esi
push edx
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x417dbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push 0x4cb060
push eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov edi, eax
push 0x4eb360
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4eb35c]
push 0x4eb360
mov dword [edi + 4], ecx
mov dword [0x4eb35c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4eb358]
mov dl, byte [esi + 0xb0]
and dl, 1
cmp dl, 1
je 0x417f9f
cmp dword [ebp], 0x64
jae 0x417e18
cmp dword [ebx], 0x64
jb 0x417f9f
or ebx, 0xffffffff
xor edi, edi
cmp eax, ebx
je 0x417ebf
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x417ebf
push 0xb8
call fcn.0048b346
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x20], 2
je 0x417e5b
mov ecx, eax
call fcn.00418520
mov edi, eax
jmp 0x417e5d
xor edi, edi
mov eax, dword [0x4eb358]
push edi
push eax
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x417e8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x2c]
push 0x4cb060
push ecx
mov dword [esp + 0x34], eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov esi, eax
push 0x4eb360
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x4eb35c]
push 0x4eb360
mov dword [esi + 4], edx
mov dword [0x4eb35c], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x30]
mov dword [edi + 0xb4], ebx
test eax, eax
je 0x417ed4
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x4eb358]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x20], ebx
je 0x417f83
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x417f83
push 0xb8
call fcn.0048b346
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x20], 3
je 0x417f20
mov ecx, eax
call fcn.00418520
mov edi, eax
jmp 0x417f22
xor edi, edi
mov eax, dword [0x4eb358]
push edi
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x417f50
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x30]
push 0x4cb060
push ecx
mov dword [esp + 0x38], eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov esi, eax
push 0x4eb360
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x4eb35c]
push 0x4eb360
mov dword [esi + 4], edx
mov dword [0x4eb35c], 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, 0xffffffff
mov dword [esp + 0x20], 0xffffffff
je 0x418052
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x418052
push 0xb8
call fcn.0048b346
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov dword [esp + 0x20], 4
je 0x417feb
mov ecx, eax
call fcn.00418520
mov edi, eax
jmp 0x417fed
xor edi, edi
mov eax, dword [0x4eb358]
push edi
push eax
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x41801f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x2c]
push 0x4cb060
push ecx
mov dword [esp + 0x34], eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov esi, eax
push 0x4eb360
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x4eb35c]
push 0x4eb360
mov dword [esi + 4], edx
mov dword [0x4eb35c], 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