Function at 0x48b010
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
lea ebp, [esp - 0x1164]
mov eax, 0x1164
call fcn.004cc0c0
push 0xffffffffffffffff
push 0x4e949e
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x417270]
xor eax, ebp
mov dword [ebp + 0x1160], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x1178]
mov edi, dword [ebp + 0x116c]
mov ebx, dword [ebp + 0x1174]
push 0x10
mov esi, ecx
mov ecx, dword [ebp + 0x1180]
lea edx, [ebp - 0x4c]
push edx
mov dword [ebp - 0x14], eax
xor eax, eax
push 0x20
mov dword [ebp - 0x24], ecx
push edi
mov ecx, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
call fcn.00485a20
cmp eax, 0x10
jne 0x48b269
cmp word [ebp - 0x4c], 0
je 0x48b269
push 0x90
lea eax, [ebp + 0x1088]
push 0
push eax
mov dword [ebp - 4], 0
call fcn.004caf20
add esp, 0xc
push 0x90
lea ecx, [ebp + 0x1088]
push ecx
push 1
push edi
mov ecx, esi
call fcn.00485a20
cmp eax, 0x90
jne 0x48b251
xor eax, eax
mov dword [ebp - 0x3c], 0x418d24
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x2c], 1
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
cmp ebx, eax
je 0x48b129
push 0x2b000
push eax
lea ecx, [ebp - 0x3c]
call fcn.004299f0
mov eax, dword [ebp - 0x34]
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
jmp 0x48b135
mov edx, dword [ebp + 0x117c]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x14], edx
push 0x1088
lea eax, [ebp]
push 0
push eax
call fcn.004caf20
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
push ebx
push 0x1088
lea edx, [ebp]
push edx
push 0x19
push edi
mov ecx, esi
mov dword [ebp + 0x80], 0
call fcn.0048a6c0
mov edi, dword [ebp - 0x24]
mov dword [edi], eax
test eax, eax
je 0x48b249
cmp eax, dword [ebp - 0x14]
ja 0x48b249
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x48b242
lea ecx, [ebp + 0x1140]
call fcn.0046d7f0
mov eax, dword [ebp + 0x1170]
and eax, 0xf00
mov byte [ebp - 4], 2
push esi
lea ecx, [ebp + 0x1140]
cmp eax, 0x100
je 0x48b1c8
cmp eax, 0x200
je 0x48b1c1
call fcn.00466fc0
jmp 0x48b1cd
call fcn.00467220
jmp 0x48b1cd
call fcn.00466660
lea ecx, [ebp + 0x1118]
call fcn.004a1270
cmp dword [ebp + 0x1158], 0
mov byte [ebp - 4], 3
mov esi, 3
je 0x48b1fc
lea eax, [ebp + 0x1140]
push eax
lea ecx, [ebp + 0x111c]
call fcn.0046d610
push 0
push esi
lea ecx, [ebp + 0x1118]
call fcn.004a1d50
mov ecx, dword [edi]
push ecx
push ebx
lea ecx, [ebp + 0x1118]
call fcn.004a1590
lea ecx, [ebp + 0x1118]
call fcn.004a1330
lea ecx, [ebp + 0x1118]
mov byte [ebp - 4], 2
call fcn.004a12c0
lea ecx, [ebp + 0x1140]
mov byte [ebp - 4], 1
call fcn.004a5ea0
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x3c]
call fcn.0042a080
mov eax, dword [ebp - 0x18]
jmp 0x48b2a1
mov edx, dword [0x53e204]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x48b299
push 4
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x48b299
mov eax, dword [0x53e204]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi], 0x10e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1160]
xor ecx, ebp
call fcn.004cb3aa
add ebp, 0x1164
mov esp, ebp
pop ebp
ret 0x18