Function at 0x5e7140
Capabilities:
Execute anti-debugging instructions
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push dword [0x884c50]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 0xc]
jae 0x5e7178
mov dword [esi], str.TtBGSGamebryoSequenceGenerator::update
rdtsc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [ebx + 4], eax
movss xmm0, dword [edi + 0x40]
movss xmm1, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
addss xmm0, xmm1
movss dword [edi + 0x40], xmm0
mov eax, dword [ebx]
mov esi, dword [eax + 0x30]
test esi, esi
je 0x5e71bc
cmp byte [edi + 0x44], 0
je 0x5e71bc
mov ecx, dword [0x8d4e14]
test ecx, ecx
je 0x5e71b8
mov edx, dword [ecx]
lea eax, [edi + 0x34]
push eax
push ecx
movss dword [esp], xmm1
push edi
push esi
call dword [edx + 4]
mov byte [edi + 0x44], 0
mov ecx, dword [0x8d4e14]
mov dword [ebp - 4], 0x7f7fffff
test ecx, ecx
je 0x5e7367
mov eax, dword [ecx]
lea edx, [ebp - 4]
push edx
push edi
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x5e7367
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x5e71f9
mov eax, dword [ebx]
mov esi, dword [eax + 0x44]
test esi, esi
je 0x5e7367
mov bl, byte [edi + 0x45]
movss xmm0, dword [edi + 0x40]
movss xmm2, dword [ebp - 4]
movss dword [ebp + 8], xmm0
test bl, bl
je 0x5e7243
subss xmm0, dword [ebp + 0xc]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0xc], xmm0
fld qword [ebp - 0xc]
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0xc], xmm0
fld qword [ebp - 0xc]
call fcn.0062daca
movss xmm0, dword [ebp + 8]
movss xmm2, dword [ebp - 4]
fstp dword [ebp + 0xc]
movss xmm1, dword [ebp + 0xc]
jmp 0x5e724b
movaps xmm1, xmm0
subss xmm1, dword [ebp + 0xc]
movss dword [ebp - 8], xmm1
test bl, bl
je 0x5e727c
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x14], xmm0
fld qword [ebp - 0x14]
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x14], xmm0
fld qword [ebp - 0x14]
call fcn.0062daca
fstp dword [ebp + 0xc]
movss xmm0, dword [ebp + 0xc]
movss dword [ebp + 8], xmm0
xor eax, eax
mov dword [ebp + 0xc], eax
cmp dword [edi + 0x38], eax
jle 0x5e7367
movss xmm2, dword [ebp - 8]
xor ebx, ebx
comiss xmm0, xmm2
jbe 0x5e72ac
mov eax, dword [edi + 0x34]
add eax, ebx
movss xmm1, dword [eax]
comiss xmm1, xmm2
jb 0x5e72a9
comiss xmm0, xmm1
ja 0x5e72cc
mov eax, dword [ebp + 0xc]
comiss xmm2, xmm0
jbe 0x5e7357
mov eax, dword [edi + 0x34]
add eax, ebx
movss xmm1, dword [eax]
comiss xmm1, xmm2
jae 0x5e72cc
comiss xmm0, xmm1
jbe 0x5e7354
mov ecx, dword [eax + 4]
mov edx, dword [esi + 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
test edx, edx
je 0x5e7302
cmp byte [esi + 0x18], 0
je 0x5e72ee
test ecx, ecx
js 0x5e7302
mov eax, dword [edx + 8]
mov ecx, dword [eax + ecx*4]
jmp 0x5e7302
test ecx, ecx
js 0x5e7302
lea eax, [ecx + 1]
push 0xffffffffffffffff
push eax
lea ecx, [edx + 0x14]
call fcn.0046b890
mov ecx, eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x18], ecx
cmp dword [esi + 0x10], eax
jl 0x5e731f
mov ecx, esi
test eax, eax
jne 0x5e7317
push 8
jmp 0x5e731a
add eax, eax
push eax
call fcn.005a1a20
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 4]
jne 0x5e732e
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0xc]
movq xmm0, qword [ebp - 0x18]
movss xmm2, dword [ebp - 8]
lea ecx, [eax + eax*2]
mov eax, dword [esi]
movq qword [eax + ecx*4], xmm0
movss xmm0, dword [ebp + 8]
mov dword [eax + ecx*4 + 8], edi
inc dword [esi + 0xc]
inc dword [esi + 0x10]
mov eax, dword [ebp + 0xc]
inc eax
add ebx, 0xc
mov dword [ebp + 0xc], eax
cmp eax, dword [edi + 0x38]
jl 0x5e7291
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x5e7394
mov dword [esi], 0x77f5ec
rdtsc
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8