Function at 0x5be890
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
push esi
push edi
push 0
push 1
push 0
push 0
push 0
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x2c]
push 0
call fcn.005dcf70
mov edi, dword [ebp + 8]
mov ecx, edi
push dword [edi + 0x24]
mov esi, dword [edi]
call fcn.005c60f0
push eax
mov ecx, edi
call fcn.005c60b0
push eax
push esi
lea ecx, [esp + 0x58]
call fcn.005c6060
mov eax, dword [edi]
mov eax, dword [eax + 0x30]
cmp dword [eax + 0x7c], 0
je 0x5be907
mov ecx, dword [edi + 4]
push 0
call fcn.00597b70
mov ecx, dword [ebp + 0xc]
mov esi, eax
push ecx
mov ecx, esi
mov dword [esp + 0x10], esi
call fcn.00598060
push 0
mov ecx, esi
call fcn.00598440
jmp 0x5be93e
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0xb0
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, 0xb0
push 0
mov word [eax + 4], cx
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.00596880
mov esi, eax
mov dword [esp + 0xc], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x14], eax
test eax, eax
je 0x5be952
mov ecx, eax
call fcn.0045c0c0
mov ecx, dword [edi]
push esi
call fcn.00596360
mov eax, dword [esi]
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x26], 2
jne 0x5be977
push eax
mov ecx, esi
call fcn.00598ff0
mov ecx, dword [esi + 0x5c]
push 0
push eax
call fcn.0046b890
mov ecx, dword [esi + 0x58]
shl eax, 7
mov ecx, dword [ecx]
add eax, ecx
cmp byte [eax + 0x7d], 0
je 0x5be99a
mov eax, dword [eax + 0x5c]
shl eax, 7
add eax, ecx
movss xmm1, dword [eax + 0x40]
ucomiss xmm1, dword [0x718814]
lahf
test ah, 0x44
jnp 0x5bea52
movss xmm0, dword [0x718824]
mov eax, dword [ebp + 0x14]
divss xmm0, xmm1
push 0
push ecx
mov ecx, esi
movss dword [eax], xmm0
mov eax, dword [esp + 0x18]
movss xmm0, dword [eax + 0x3c]
lea eax, [esp + 0x20]
movss dword [esp], xmm0
push 0
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00598090
mov eax, dword [esp + 0x18]
mov esi, dword [ebp + 0x10]
push 0
push ecx
movsx edi, word [eax + 0x14]
mov ecx, dword [esp + 0x14]
add edi, eax
mov eax, dword [ebp + 0x14]
movaps xmm0, xmmword [edi]
movaps xmmword [esp + 0x28], xmm0
movaps xmm0, xmmword [edi + 0x10]
movaps xmmword [esi + 0x10], xmm0
movss xmm0, dword [eax]
lea eax, [esp + 0x20]
movss dword [esp], xmm0
push 0
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00598090
movaps xmm0, xmmword [edi + 0x10]
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x10]
movaps xmmword [esp + 0x30], xmm0
movaps xmm0, xmmword [esp + 0x20]
subps xmm0, xmmword [edi]
push eax
push esi
movaps xmmword [esi], xmm0
call fcn.005be560
mov esi, dword [esp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
call dword [eax + 0x1c]
push dword [esp + 0x14]
mov ecx, dword [edi]
call fcn.00596360
mov ecx, esi
call fcn.0045c160
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5bea7f
mov ecx, eax
call fcn.0045c160
cmp byte [esp + 0x1c], 0
je 0x5beaa2
push dword [0x884adc]
mov esi, dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
push dword [eax + 0x2c]
call fcn.00460680
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10