Function at 0x460760
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1dc1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
xor edx, edx
nop dword [eax + eax]
mov ecx, edx
mov eax, 1
shr ecx, 2
shl eax, cl
mov dword [edx*4 + 0x53ea20], eax
inc edx
cmp edx, 0x80
jl 0x460780
push esi
push edi
call fcn.00465300
push 0x100
mov byte [0x53ecc9], 1
call fcn.004a60b4
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0
test esi, esi
je 0x460926
mov dword [esi], vtable.GlobalAllocator.0
mov ecx, 0x53ec5c
mov dword [esi + 0x50], 0xffffffff
call fcn.00463890
mov dword [esi + 0x54], eax
mov byte [esi + 0x58], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xb8], 0
mov dword [esi + 0xbc], 0
mov dword [esi + 0xc0], 0
lea eax, [esi + 0xc8]
mov byte [ebp - 4], 5
push eax
mov byte [esi + 0xc4], 1
call edi
mov dword [esi + 0xe0], 0
mov dword [esi + 0xe4], 0
mov dword [esi + 0xe8], 0
mov dword [esi + 0xf4], 0
mov dword [esi + 0xf8], 0
mov dword [esi + 0xfc], 0
push 0x30
lea eax, [esi + 0x5c]
mov byte [ebp - 4], 8
push 0
push eax
call fcn.004a7d50
movsd xmm0, qword [0x4dc588]
add esp, 0xc
mov dword [esi + 0x28], 0
mov ecx, esi
mov dword [esi + 0x38], 0
mov dword [esi + 0x30], 0x2800000
mov dword [esi + 0x34], 0x2800000
mov dword [esi + 0x3c], 0x100000
mov dword [esi + 0x2c], 0
mov dword [esi + 0x40], 0
movsd qword [esi + 0x48], xmm0
mov dword [esi + 0xec], 0
mov dword [esi + 0xf0], 0
call fcn.00463930
jmp 0x460928
xor esi, esi
push 0xc
mov dword [ebp - 4], 0xffffffff
mov dword [0x53ea14], esi
call fcn.004a60b4
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x46095c
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
jmp 0x46095e
xor eax, eax
push 0x1c
mov dword [0x53ed74], eax
call fcn.004a60b4
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 9
test esi, esi
je 0x460988
lea ecx, [esi + 4]
mov byte [esi], 1
push ecx
call edi
jmp 0x46098a
xor esi, esi
push 0x1c
mov dword [ebp - 4], 0xffffffff
mov dword [0x53ed70], esi
call fcn.004a60b4
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xa
test esi, esi
je 0x4609bc
lea ecx, [esi + 4]
mov byte [esi], 1
push ecx
call edi
jmp 0x4609be
xor esi, esi
push 0x58
mov dword [ebp - 4], 0xffffffff
mov dword [0x53ed48], esi
mov dword [0x53eccc], 0x4058c0
call fcn.004a60b4
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xb
test eax, eax
je 0x4609f8
push 0
mov ecx, eax
call fcn.0045e680
jmp 0x4609fa
xor eax, eax
push eax
push dword [0x53ecb4]
mov dword [ebp - 4], 0xffffffff
mov dword [0x53ea18], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x53ecb8]
mov esi, dword fs:[eax]
test esi, esi
jne 0x460a4d
push str.Bad_local_allocator___requesting_memory_from_unregistered_thread_
push 2
call fcn.004a995b
add esp, 4
push eax
call fcn.00450d70
add esp, 8
cmp byte [0x53ee00], 0
jne 0x460a4d
mov byte [0x53ee00], 1
mov dword [0], esi
mov ecx, esi
call fcn.0045fc30
lea eax, [ebp - 0x10]
push eax
call fcn.0045c8c0
mov ecx, dword [0x53ea18]
add esp, 4
call fcn.00402d70
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret