Function at 0x48ae50
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x20
mov eax, dword [0x6c24b8]
push ebx
push ebp
push esi
push edi
xor esi, esi
xor edi, edi
push eax
xor ebx, ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
cmp ebp, esi
je 0x48b2c5
mov ecx, dword [ebp + 0x4558]
mov edx, dword [ebp + 0x455c]
mov dword [esp + 0x28], ecx
xor ecx, ecx
mov cx, word [ebp + 0x45d4]
lea eax, [ebp + 0x8f7c]
dec ecx
mov dword [esp + 0x2c], edx
mov dword [ebp + 0x16830], eax
mov dword [ebp + 0x16934], ecx
call fcn.0048b2e0
cmp dword [esp + 0x2c], esi
jl 0x48b2bb
jg 0x48aed6
cmp dword [esp + 0x28], esi
jbe 0x48b2bb
cmp dword [ebp], esi
jne 0x48b2bb
mov al, byte [ebx + ebp + 0x16834]
test al, al
mov eax, dword [ebp + 0x14fa0]
jne 0x48af3a
cmp eax, 8
jge 0x48aefe
push ebp
call fcn.00486930
add esp, 4
mov eax, dword [0x683518]
mov ecx, dword [ebp + 0x14f9c]
xor edx, edx
and eax, 0xffff
mov dx, word [ebp + 0x14f9c]
and edx, eax
mov eax, dword [ebp + 0x14fa0]
shr ecx, 8
add eax, 0xfffffff8
mov dword [esp + 0x14], edx
mov dword [ebp + 0x14f9c], ecx
mov dword [ebp + 0x14fa0], eax
jmp 0x48b030
cmp eax, 1
jge 0x48af48
push ebp
call fcn.00486930
add esp, 4
mov edx, dword [ebp + 0x14f9c]
xor eax, eax
mov ax, word [ebp + 0x14f9c]
xor ecx, ecx
mov cx, word [0x68350a]
and eax, ecx
mov ecx, dword [ebp + 0x14fa0]
shr edx, 1
dec ecx
cmp eax, esi
mov dword [ebp + 0x14f9c], edx
mov dword [ebp + 0x14fa0], ecx
je 0x48afc8
cmp ecx, 8
jge 0x48af89
push ebp
call fcn.00486930
add esp, 4
mov edx, dword [0x683518]
mov ecx, dword [ebp + 0x14f9c]
xor eax, eax
and edx, 0xffff
mov ax, word [ebp + 0x14f9c]
and eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14fa0]
mov edx, dword [esp + 0x14]
shr ecx, 8
add eax, 0xfffffff8
mov dword [ebp + 0x14f9c], ecx
mov dword [ebp + 0x14fa0], eax
jmp 0x48b030
xor eax, eax
mov al, byte [ebx + ebp + 0x16834]
mov esi, dword [eax*4 + 0x6839bc]
cmp esi, ecx
jle 0x48afe5
push ebp
call fcn.00486930
add esp, 4
mov edx, dword [ebp + 0x14f9c]
xor eax, eax
mov ax, word [esi*2 + 0x683508]
xor ecx, ecx
mov cx, word [ebp + 0x14f9c]
and eax, ecx
mov ecx, esi
shr edx, cl
mov ecx, dword [ebp + 0x14fa0]
sub ecx, esi
mov dword [ebp + 0x14fa0], ecx
mov ecx, dword [ebp + 0x16830]
shl ebx, 6
add ebx, ecx
xor ecx, ecx
mov dword [ebp + 0x14f9c], edx
xor esi, esi
mov cl, byte [ebx + eax]
mov dword [esp + 0x14], ecx
mov edx, ecx
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x48b03d
jmp dword [eax*4 + 0x48b2d0]
cmp edx, 0x90
je 0x48b0b4
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
or eax, 0xffffffff
add ebx, eax
adc ecx, eax
mov eax, dword [ebp + 0x54]
cmp eax, esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ecx
je 0x48b07f
cmp dword [ebp + 0x5c], esi
je 0x48b07f
cmp dword [ebp + 0x14f98], esi
ja 0x48b07f
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov byte [edi + ebp + 0x4f7c], dl
inc edi
cmp edi, 0x4000
mov dword [esp + 0x10], edi
jne case.default.0x48b03d
push ebp
push edi
call fcn.004884f0
mov edx, dword [esp + 0x1c]
add esp, 8
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], esi
mov edi, esi
jmp case.default.0x48b03d
mov dword [esp + 0x18], 1
jmp case.default.0x48b03d
cmp edx, esi
je 0x48b0f1
mov eax, dword [ebp + 0x16934]
xor ecx, ecx
mov dword [esp + 0x24], edx
mov esi, dword [eax*4 + 0x683980]
mov eax, esi
and eax, edx
cmp eax, esi
mov dword [esp + 0x1c], eax
setne cl
add ecx, 2
mov dword [esp + 0x18], ecx
jmp 0x48b29f
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
or eax, 0xffffffff
add ebx, eax
adc ecx, eax
mov eax, dword [ebp + 0x54]
cmp eax, esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ecx
je 0x48b124
cmp dword [ebp + 0x5c], esi
je 0x48b124
cmp dword [ebp + 0x14f98], esi
ja 0x48b124
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov byte [edi + ebp + 0x4f7c], 0x90
inc edi
cmp edi, 0x4000
mov dword [esp + 0x10], edi
jne 0x48b151
push ebp
push edi
call fcn.004884f0
mov edx, dword [esp + 0x1c]
add esp, 8
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], esi
mov edi, esi
mov dword [esp + 0x18], esi
jmp case.default.0x48b03d
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 3
add eax, edx
mov dword [esp + 0x1c], eax
jmp case.default.0x48b03d
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
lea esi, [eax + 3]
mov eax, dword [ebp + 0x16934]
shl eax, 2
mov ecx, dword [eax + 0x683994]
sar ebx, cl
mov ecx, dword [eax + 0x6839a8]
mov eax, dword [esp + 0x28]
and ebx, ecx
shl ebx, 8
mov ecx, ebx
mov ebx, edi
sub ebx, ecx
mov ecx, 0
sub ebx, edx
mov edx, dword [esp + 0x2c]
dec ebx
sub eax, esi
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x54]
sbb edx, ecx
cmp eax, ecx
mov dword [esp + 0x2c], edx
je 0x48b1d6
cmp dword [ebp + 0x5c], ecx
je 0x48b1d6
cmp dword [ebp + 0x14f98], ecx
ja 0x48b1d6
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
and ebx, 0x3fff
cmp ebx, edi
mov eax, ebx
ja 0x48b1e4
mov eax, edi
mov edx, 0x4000
sub edx, eax
cmp edx, esi
jbe 0x48b1f1
mov edx, esi
mov eax, dword [esp + 0x20]
sub esi, edx
cmp eax, ecx
mov dword [esp + 0x18], esi
je 0x48b21e
cmp edi, ebx
ja 0x48b21e
mov ecx, edx
xor eax, eax
mov esi, ecx
lea edi, [edi + ebp + 0x4f7c]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x48b25d
mov eax, edi
sub eax, ebx
cmp eax, edx
jae 0x48b23f
mov cl, byte [ebx + ebp + 0x4f7c]
mov byte [edi + ebp + 0x4f7c], cl
inc edi
inc ebx
dec edx
jne 0x48b226
mov dword [esp + 0x10], edi
jmp 0x48b26f
mov ecx, edx
lea esi, [ebx + ebp + 0x4f7c]
mov eax, ecx
lea edi, [edi + ebp + 0x4f7c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
add ecx, edx
add ebx, edx
mov dword [esp + 0x10], ecx
mov edi, ecx
cmp edi, 0x4000
jne 0x48b28d
push ebp
push edi
call fcn.004884f0
add esp, 8
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
mov edi, eax
xor ecx, ecx
cmp esi, ecx
jne 0x48b1d6
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
xor esi, esi
mov eax, dword [esp + 0x2c]
mov ebx, edx
cmp eax, esi
jg 0x48aed6
jl 0x48b2bb
cmp dword [esp + 0x28], esi
ja 0x48aed6
push ebp
push edi
call fcn.004884f0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret