Function at 0x54e070
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
push esi
push edi
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 0x14]
imul ecx, edi, 0x3000
mov edx, dword [eax + 0xc]
mov dword [esp + 0x14], edx
add ecx, 0x7f
and ecx, 0xffffff80
lea esi, [edx + ecx]
cmp ecx, dword [eax + 8]
jg 0x54e0b2
cmp esi, dword [eax + 0x10]
ja 0x54e0b2
mov dword [eax + 0xc], esi
jmp 0x54e0c0
push ecx
mov ecx, eax
call fcn.0046a3c0
mov edx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 8], 0
test edi, edi
jle 0x54e1ea
movaps xmm1, xmmword [0x787580]
lea esi, [edx + 0x134]
mov edx, dword [ebp + 0x10]
sub dword [ebp + 0x1c], edx
nop word [eax + eax]
mov eax, dword [edx]
lea ecx, [esi - 0x134]
mov dword [esi - 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax + edx]
mov dword [esi], eax
mov eax, dword [edx]
mov edx, dword [ebp + 0x18]
movaps xmm0, xmmword [edx]
movaps xmmword [ecx], xmm0
movaps xmm0, xmmword [edx + 0x10]
movaps xmmword [esi - 0x124], xmm0
movaps xmm0, xmmword [edx + 0x20]
movaps xmmword [esi - 0x114], xmm0
movaps xmm0, xmmword [edx + 0x30]
mov edx, dword [ebp + 0xc]
movaps xmmword [esi - 0x104], xmm0
mov dword [esi - 0xdc], eax
lea eax, [esi - 0xc4]
mov dword [esi - 0xd4], eax
lea eax, [esi - 0x84]
mov dword [esi - 0xd0], eax
lea eax, [esi - 0x44]
mov dword [esi - 0xcc], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x74]
mov dword [esi - 0xe0], edx
push eax
movaps xmmword [esi - 0xf4], xmm1
mov dword [esi - 0xe4], 0x322bcc76
mov dword [esi - 0xd8], 0
mov dword [esi - 0xc8], 0
call fcn.0054e670
cmp eax, 1
jne 0x54e19f
dec edi
jmp 0x54e1c6
mov ecx, dword [esp + 0x10]
add esi, 0x3000
lea eax, [ecx + 0xf0]
push eax
lea eax, [ecx + 0xb0]
push eax
lea eax, [ecx + 0x70]
add ecx, 0x140
push eax
call fcn.0054f490
mov eax, dword [esp + 8]
mov edx, dword [ebp + 0x10]
inc eax
movaps xmm1, xmmword [0x787580]
add edx, 4
mov dword [esp + 8], eax
mov dword [ebp + 0x10], edx
cmp eax, edi
jl 0x54e0f0
mov dword [ebp + 0x14], edi
cmp edi, 2
jle 0x54e1f8
mov dword [ebp + 0x14], 2
jmp 0x54e1fe
jl 0x54e2cd
mov esi, dword [esp + 0x14]
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
lea eax, [esi + 0x5ff0]
lea ecx, [esi + 0x2ff0]
lea edx, [esi + 0x3140]
push eax
push ecx
lea eax, [esp + 0x38]
push eax
push edx
lea eax, [esi + 0x140]
push eax
call fcn.006759f0
xor al, al
xor ecx, ecx
add esp, 0x14
mov byte [esp + 0xf], al
mov dword [esp + 8], ecx
test edi, edi
jle 0x54e374
lea eax, [esp + 0x20]
lea edx, [esi + 0x148]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
cmp dword [eax], 2
je 0x54e334
mov esi, dword [edx]
cmp esi, 0x37
jl 0x54e334
mov eax, esi
lea edi, [edx - 8]
shl eax, 6
add eax, 0x20
add edi, eax
lea eax, [esi + 1]
mov dword [edx], eax
lea esi, [edx - 0x148]
push edi
mov ecx, esi
mov dword [edi + 0x30], 0
push dword [edx + 0x2ea8]
call fcn.0054f130
push dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push edi
push dword [ecx + 0x2ea8]
lea eax, [ecx - 8]
mov ecx, esi
push eax
call fcn.0054f030
cmp eax, 1
mov eax, dword [esp + 0x10]
jne 0x54e324
cmp dword [eax], 3
jne 0x54e329
mov dword [esp + 8], 1
imul esi, dword [esp + 0x1c], 0x3000
push dword [0x884adc]
add esi, 0x7f
and esi, 0xffffff80
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x14]
lea edi, [esi + 0xf]
and edi, 0xfffffff0
cmp esi, dword [eax + 8]
jg 0x54e484
lea ecx, [edi + edx]
cmp ecx, dword [eax + 0xc]
jne 0x54e484
cmp dword [eax + 0x14], edx
je 0x54e484
mov dword [eax + 0xc], edx
mov eax, dword [esp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esp + 0xf], 1
mov edi, dword [ebp + 0x14]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x18]
inc ecx
add edx, 0x3000
add eax, 4
mov dword [esp + 8], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
cmp ecx, edi
jl 0x54e264
mov esi, dword [esp + 0x14]
mov al, byte [esp + 0xf]
test al, al
lea eax, [esi + 0x5ff0]
lea ecx, [esi + 0x2ff0]
lea edx, [esi + 0x3140]
jne 0x54e227
movaps xmm0, xmmword [esp + 0x30]
movaps xmm1, xmm0
shufps xmm0, xmm0, 0xff
xorps xmm1, xmmword [0x719130]
xorps xmm0, xmmword [0x719730]
test edi, edi
jle 0x54e477
mov eax, dword [ebp + 0xc]
lea edx, [esi + 0x134]
movaps xmm2, xmm1
mov dword [esp + 8], edx
shufps xmm2, xmm1, 0x55
movaps xmmword [esp + 0x40], xmm2
movaps xmm2, xmm1
subss xmm0, dword [eax + 0x10]
shufps xmm2, xmm1, 0
shufps xmm1, xmm1, 0xaa
movaps xmmword [esp + 0x20], xmm2
movaps xmmword [esp + 0x50], xmm1
movaps xmmword [esp + 0x60], xmm0
nop
lea eax, [esp + 0x70]
lea esi, [edx + 0xc]
push eax
push dword [esi + 0x2eb0]
lea ecx, [edx - 0x134]
push esi
call fcn.0054eef0
mov ecx, dword [ebp + 8]
movaps xmm1, xmmword [esp + 0x20]
movaps xmm0, xmmword [esp + 0x40]
mov edx, dword [esp + 8]
mulps xmm0, xmmword [ecx + 0x10]
mulps xmm1, xmmword [ecx]
mov eax, dword [edx]
addps xmm1, xmm0
movaps xmm0, xmmword [esp + 0x50]
mulps xmm0, xmmword [ecx + 0x20]
addps xmm1, xmm0
movaps xmmword [eax + 0x10], xmm1
movaps xmm1, xmmword [esp + 0x80]
mov eax, dword [esi - 0x10]
movaps xmm2, xmm1
shufps xmm2, xmm1, 0x55
movaps xmm0, xmm1
mulps xmm2, xmmword [ecx + 0x10]
movss xmm3, dword [eax + 0x10]
mov eax, dword [edx]
shufps xmm0, xmm1, 0
mulps xmm0, xmmword [ecx]
shufps xmm1, xmm1, 0xaa
mulps xmm1, xmmword [ecx + 0x20]
addps xmm2, xmm0
movss xmm0, dword [esp + 0x60]
subss xmm0, xmm3
addps xmm1, xmmword [ecx + 0x30]
addps xmm2, xmm1
movaps xmmword [eax], xmm2
mov eax, dword [edx]
add edx, 0x3000
mov dword [esp + 8], edx
movss dword [eax + 0x1c], xmm0
sub edi, 1
jne 0x54e3d0
mov dword [esp + 8], 0
jmp 0x54e2d5
push edi
push edx
mov ecx, eax
call fcn.0046a590
mov eax, dword [esp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret