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

Disassembly:
push ebp
lea ebp, [esp - 0x46c]
sub esp, 0x46c
push 0xffffffffffffffff
push 0x4e95f1
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x417270]
xor eax, ebp
mov dword [ebp + 0x468], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [0x53e204]
mov eax, dword [ebp + 0x474]
mov edi, dword [ebp + 0x47c]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x480]
push edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x48c029
push 4
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x48c029
mov eax, dword [0x53e204]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 4
lea ecx, [ebp - 0x24]
push ecx
mov dword [esi], ebx
call fcn.0049ef30
test al, al
je 0x48c045
mov esi, dword [ebp - 0x24]
cmp esi, 0xffff
jbe 0x48c054
mov ecx, dword [ebp - 0x14]
push 0x72
call fcn.0047e020
jmp 0x48c294
cmp edi, ebx
jne 0x48c118
cmp dword [ebp + 0x484], ebx
je 0x48c124
push 0x90
lea edx, [ebp + 0x24c]
push ebx
push edx
call fcn.004caf20
add esp, 0xc
push 0x90
lea eax, [ebp + 0x24c]
push eax
push 1
push esi
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.00485a20
cmp eax, 0x90
jne 0x48c294
mov eax, 2
cmp edi, ebx
jne 0x48c0af
mov eax, 0x1002
push eax
lea ecx, [ebp + 0x38c]
call fcn.0048b440
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
cmp edi, ebx
jne 0x48c133
call fcn.00466a60
push eax
lea ecx, [ebp + 0x448]
call fcn.0046dff0
push ebx
lea ecx, [ebp + 0x448]
push ecx
lea ecx, [ebp + 0x38c]
mov byte [ebp - 4], 2
call fcn.004a7ae0
lea ecx, [ebp + 0x448]
mov byte [ebp - 4], 1
call fcn.004a5ea0
mov edx, dword [ebp + 0x484]
mov eax, dword [ebp - 0x18]
push edx
push eax
lea ecx, [ebp + 0x38c]
call fcn.004a6000
jmp 0x48c1c5
cmp dword [ebp + 0x484], ebx
je 0x48c068
mov ecx, dword [ebp - 0x14]
push 0x69
call fcn.0047e020
jmp 0x48c294
lea ecx, [ebp + 0x448]
call fcn.0046d7f0
mov eax, dword [ebp + 0x478]
and eax, 0xf00
mov byte [ebp - 4], 3
push edi
lea ecx, [ebp + 0x448]
cmp eax, 0x100
je 0x48c170
cmp eax, 0x200
je 0x48c169
call fcn.00466fc0
jmp 0x48c175
call fcn.00467220
jmp 0x48c175
call fcn.00466660
lea ecx, [ebp + 0x448]
call fcn.0046d790
cmp al, bl
jne 0x48c1a4
push 0xdc
mov ecx, esi
call fcn.0047e020
lea ecx, [ebp + 0x448]
mov byte [ebp - 4], 1
call fcn.004a5ea0
jmp 0x48c282
lea ecx, [ebp + 0x448]
push ecx
lea ecx, [ebp + 0x38c]
call fcn.004a7bd0
lea ecx, [ebp + 0x448]
mov byte [ebp - 4], 1
call fcn.004a5ea0
push 0xb0
lea edx, [ebp + 0x2dc]
push ebx
push edx
mov dword [ebp - 4], ebx
call fcn.004caf20
mov ecx, 0x24
lea esi, [ebp + 0x24c]
lea edi, [ebp + 0x2fc]
mov dword [ebp + 0x2dc], 0x10100
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp + 0x250]
mov ecx, dword [ebp + 0x24e]
push eax
push ecx
lea ecx, [ebp + 0x38c]
call fcn.004a6a90
test al, al
je 0x48c460
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp + 0x2f4]
push eax
lea ecx, [ebp + 0x2e8]
push ecx
lea edx, [ebp + 0x2e4]
push edx
lea eax, [ebp + 0x2e0]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp + 0x38c]
mov byte [ebp - 4], 5
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1c], ebx
call fcn.004a8930
mov dword [ebp - 0x34], eax
mov ecx, edi
cmp eax, ebx
jne 0x48c2bd
push 0xdc
call fcn.0047e020
lea ecx, [ebp + 0x38c]
call fcn.004a7930
lea ecx, [ebp + 0x38c]
mov dword [ebp - 4], 0xffffffff
call fcn.0048b4b0
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 + 0x468]
xor ecx, ebp
call fcn.004cb3aa
add ebp, 0x46c
mov esp, ebp
pop ebp
ret 0x14
push ebx
lea eax, [ebp + 0x2dc]
push eax
push 2
call fcn.004850e0
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
jne 0x48c336
cmp dword [ebp + 0x2e4], ebx
je 0x48c32e
call fcn.0046d0b0
push ebx
xor ecx, ecx
lea edx, [ebp + 0x2dc]
push edx
mov word [ebp + 0x2f4], cx
push 2
mov ecx, edi
mov dword [ebp - 0x30], eax
mov dword [ebp + 0x2dc], 0x110100
mov dword [ebp + 0x2e4], ebx
call fcn.004850e0
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
jne 0x48c324
mov eax, dword [ebp - 0x30]
push eax
call fcn.004691c0
add esp, 4
mov dword [ebp + 0x2dc], 0x10100
cmp esi, ebx
je 0x48c3fc
cmp dword [ebp - 0x1c], ebx
je 0x48c398
push 0x24c
lea ecx, [ebp]
push ebx
push ecx
call fcn.004caf20
push 0x24c
lea edx, [ebp]
push edx
push 5
push esi
call fcn.0046cc40
add esp, 0x1c
cmp eax, ebx
je 0x48c398
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x1c]
je 0x48c398
push esi
mov ecx, edi
call fcn.004811f0
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x1c]
mov ecx, edi
jbe 0x48c38e
push 0xe5
call fcn.0047e020
mov byte [ebp - 4], bl
jmp 0x48c203
push 0xe4
jmp 0x48c272
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
push ebx
push ebx
push edx
push eax
push ecx
push esi
mov ecx, edi
call fcn.00486160
cmp eax, ebx
jne 0x48c3e5
mov edx, dword [0x53e204]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebx
je 0x48c3c5
mov ebx, dword [eax]
lea ecx, [ebp + 0x38c]
call fcn.004a7930
push esi
mov ecx, edi
call fcn.004811f0
push ebx
mov ecx, edi
call fcn.0047e020
jmp 0x48c282
push esi
mov ecx, edi
call fcn.004811f0
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], ebx
jmp 0x48c200
mov eax, dword [0x53e204]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebx
jne 0x48c410
xor esi, esi
jmp 0x48c412
mov esi, dword [eax]
lea ecx, [ebp + 0x38c]
call fcn.004a7930
push ebx
mov ecx, edi
call fcn.004811f0
push esi
mov ecx, edi
call fcn.0047e020
jmp 0x48c282
mov esi, dword [ebp - 0x18]
cmp esi, ebx
jne 0x48c473
push 0xc9
mov ecx, edi
call fcn.0047e020
lea ecx, [ebp + 0x38c]
mov dword [ebp - 4], 0xffffffff
call fcn.0048b4b0
mov eax, esi
jmp 0x48c296