Function at 0x5acd50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xf8
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x5ad214
call fcn.005cca00
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x5ad214
cmp byte [edi + 0x58], 0
je 0x5ad120
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x2c]
movzx ecx, word [edi + 0x48]
mov dword [esp + 0xc], eax
movzx esi, word [eax + 0x1c]
test cx, cx
js 0x5ad10f
cmp cx, si
jge 0x5ad10f
movzx eax, word [edi + 0x4a]
test ax, ax
js 0x5ad10f
cmp ax, si
jge 0x5ad10f
movzx edx, word [edi + 0x4c]
test dx, dx
js 0x5ad10f
cmp dx, si
jge 0x5ad10f
cmp cx, ax
je 0x5ad10f
cmp ax, dx
je 0x5ad10f
cmp dx, cx
je 0x5ad10f
mov eax, dword [esp + 0x1c]
push dword [0x884adc]
mov eax, dword [eax + 0x14]
mov dword [esp + 0xc], eax
mov esi, dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
lea eax, [esi + esi*2]
shl eax, 4
add eax, 0x7f
and eax, 0xffffff80
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
lea esi, [eax + ecx]
cmp eax, dword [edx + 8]
jg 0x5ace43
cmp esi, dword [edx + 0x10]
ja 0x5ace43
mov dword [edx + 0xc], esi
jmp 0x5ace51
push eax
mov ecx, edx
call fcn.0046a3c0
mov ecx, eax
mov dword [esp + 0x18], eax
push ecx
push dword [esp + 0xc]
push dword [ebp + 0xc]
call fcn.005df220
mov esi, dword [esp + 0x18]
add esp, 0xc
push dword [0x884adc]
mov esi, dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
lea eax, [esi + esi*2]
shl eax, 4
add eax, 0x7f
and eax, 0xffffff80
mov esi, dword [ecx + 0xc]
mov dword [esp + 0x2c], eax
mov dword [esp + 8], esi
lea edx, [eax + esi]
cmp eax, dword [ecx + 8]
jg 0x5ace9f
cmp edx, dword [ecx + 0x10]
ja 0x5ace9f
mov dword [ecx + 0xc], edx
jmp 0x5aceab
push eax
call fcn.0046a3c0
mov esi, eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc]
push esi
push dword [eax + 0x24]
push dword [eax + 0xc]
push dword [eax + 0x1c]
call fcn.0057e2a0
mov eax, dword [esp + 0x2c]
push 2
push esi
mov esi, dword [esp + 0x24]
push dword [esi + 0x24]
push dword [esp + 0x34]
push dword [eax + 0x1c]
call fcn.00569220
mov esi, dword [esi + 0x1c]
add esp, 0x24
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [esi + esi*2]
mov edx, eax
shl ecx, 4
add ecx, 0x7f
and ecx, 0xffffff80
mov eax, dword [edx + 0xc]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], eax
lea esi, [ecx + eax]
cmp ecx, dword [edx + 8]
jg 0x5acf15
cmp esi, dword [edx + 0x10]
ja 0x5acf15
mov dword [edx + 0xc], esi
jmp 0x5acf21
push ecx
mov ecx, edx
call fcn.0046a3c0
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
push 0x884c20
push eax
call fcn.0058a320
mov esi, dword [esp + 0xc]
push dword [0x884adc]
mov esi, dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
lea eax, [esi + esi*2]
shl eax, 4
add eax, 0x7f
and eax, 0xffffff80
mov esi, dword [ecx + 0xc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], esi
lea edx, [eax + esi]
cmp eax, dword [ecx + 8]
jg 0x5acf6e
cmp edx, dword [ecx + 0x10]
ja 0x5acf6e
mov dword [ecx + 0xc], edx
jmp 0x5acf7a
push eax
call fcn.0046a3c0
mov esi, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
push ecx
mov dword [esp], 0x3f800000
push esi
push dword [esp + 0x1c]
push dword [eax + 0x1c]
push 0
call fcn.005ce9c0
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xb4]
add esp, 0x14
mov eax, dword [eax + 0x24]
add eax, 0x20
push eax
movzx eax, word [edi + 0x4c]
push eax
movzx eax, word [edi + 0x4a]
push eax
movzx eax, word [edi + 0x48]
push eax
call fcn.00703360
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0xd4]
push eax
push esi
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0xac]
push esi
call fcn.007034e0
mov ecx, dword [ebp + 0xc]
movaps xmm0, xmmword [esp + 0x70]
mov eax, dword [ecx]
movsx ecx, word [eax + 0x14]
movaps xmmword [ecx + eax], xmm0
movaps xmm0, xmmword [esp + 0x80]
movaps xmmword [ecx + eax + 0x10], xmm0
movaps xmm0, xmmword [esp + 0x90]
movaps xmmword [ecx + eax + 0x20], xmm0
lea ecx, [esp + 0xa0]
call fcn.005ad220
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x24]
mov edx, eax
lea eax, [ecx + 0xf]
and eax, 0xfffffff0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
cmp ecx, dword [edx + 8]
jg 0x5ad04f
mov ecx, dword [esp + 8]
add ecx, eax
cmp ecx, dword [edx + 0xc]
jne 0x5ad04f
cmp dword [edx + 0x14], eax
je 0x5ad04f
mov dword [edx + 0xc], eax
jmp 0x5ad05b
push dword [esp + 8]
mov ecx, edx
push eax
call fcn.0046a590
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x28]
lea edx, [ecx + 0xf]
and edx, 0xfffffff0
mov dword [esp + 8], edx
mov edx, dword [esp + 0x14]
cmp ecx, dword [eax + 8]
jg 0x5ad093
mov ecx, dword [esp + 8]
add ecx, edx
cmp ecx, dword [eax + 0xc]
jne 0x5ad093
cmp dword [eax + 0x14], edx
je 0x5ad093
mov dword [eax + 0xc], edx
jmp 0x5ad09f
push dword [esp + 8]
mov ecx, eax
push edx
call fcn.0046a590
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x2c]
lea edx, [ecx + 0xf]
and edx, 0xfffffff0
cmp ecx, dword [eax + 8]
jg 0x5ad0cc
lea ecx, [edx + esi]
cmp ecx, dword [eax + 0xc]
jne 0x5ad0cc
cmp dword [eax + 0x14], esi
je 0x5ad0cc
mov dword [eax + 0xc], esi
jmp 0x5ad0d5
push edx
push esi
mov ecx, eax
call fcn.0046a590
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
lea esi, [ecx + 0xf]
and esi, 0xfffffff0
cmp ecx, dword [eax + 8]
jg 0x5ad106
lea ecx, [esi + edx]
cmp ecx, dword [eax + 0xc]
jne 0x5ad106
cmp dword [eax + 0x14], edx
je 0x5ad106
mov dword [eax + 0xc], edx
jmp 0x5ad10f
push esi
push edx
mov ecx, eax
call fcn.0046a590
mov esi, dword [ebp + 8]
mov byte [edi + 0x58], 0
cmp byte [edi + 0x58], 0
jne 0x5ad214
movaps xmm1, xmmword [edi + 0x30]
movaps xmm0, xmm1
subps xmm0, xmmword [0x719320]
andps xmm0, xmmword [0x719140]
cmpleps xmm0, xmmword [0x719d90]
movmskps eax, xmm0
and eax, 0xf
cmp al, 0xf
je 0x5ad159
movss xmm0, dword [edi + 0x44]
comiss xmm0, dword [edi + 0x50]
jb 0x5ad159
movaps xmmword [esp + 0x30], xmm1
jmp 0x5ad179
movss xmm0, dword [edi + 0x40]
mov ecx, esi
movss dword [esp + 0x20], xmm0
call fcn.005c60d0
movaps xmm0, xmmword [eax]
movaps xmmword [esp + 0x30], xmm0
movss xmm0, dword [esp + 0x20]
movss xmm2, dword [edi + 0x50]
comiss xmm0, xmm2
movss xmm3, dword [0x718824]
movaps xmm1, xmm3
jbe 0x5ad1a3
movss xmm1, dword [edi + 0x54]
subss xmm0, xmm2
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x5ad1a3
movaps xmm1, xmm3
mov eax, dword [ebp + 0xc]
sub esp, 8
movaps xmm0, xmmword [0x7195b0]
movaps xmmword [esp + 0x58], xmm0
mov ecx, dword [eax]
mov dword [esp + 4], 0x3b8efa35
movss dword [esp], xmm1
movsx eax, word [ecx + 0x14]
movaps xmm0, xmmword [eax + ecx + 0x10]
lea eax, [esp + 0x68]
push eax
mov eax, dword [esi]
movaps xmmword [esp + 0x4c], xmm0
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x24]
add eax, 0x20
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.005c3b00
mov eax, dword [ebp + 0xc]
add esp, 0x1c
movaps xmm0, xmmword [esp + 0x60]
mov ecx, dword [eax]
movsx eax, word [ecx + 0x14]
movaps xmmword [eax + ecx + 0x10], xmm0
mov dword [edi + 0x54], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8