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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
push esi
push edi
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x564e5a
mov dword [esi], 0x78c734
rdtsc
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
movss xmm1, dword [0x718824]
movss xmm2, dword [ebp + 0x44]
mov eax, dword [ebp + 0xc]
subss xmm1, xmm2
movss xmm0, dword [ebp + 0x3c]
mov edx, dword [ebp + 0x28]
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x34], eax
xor eax, eax
movss dword [esp + 0x2c], xmm1
mov dword [esp + 0x1c], eax
movaps xmmword [esp + 0x40], xmm0
mov esi, dword [ebp + 0x24]
test eax, eax
jne 0x564f02
comiss xmm2, xmm0
jb 0x564ed3
mov ecx, dword [ebp + 8]
movzx eax, word [ecx + 4]
push eax
movzx eax, word [ecx + 2]
push edx
push eax
push esi
mov esi, dword [ebp + 0x18]
push esi
push edi
call fcn.0057e200
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
jmp 0x564f60
comiss xmm0, xmm1
jae 0x5650c6
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0x34]
movzx eax, word [ecx + 4]
push eax
movzx eax, word [ecx + 2]
push edx
push eax
push esi
mov esi, dword [ebp + 0x2c]
push edi
push esi
call fcn.0057e200
mov dword [esp + 0x2c], 0
jmp 0x564f54
comiss xmm2, xmm0
jae 0x5650c6
comiss xmm0, xmm1
mov ecx, dword [ebp + 8]
movzx eax, word [ecx + 4]
push eax
movzx eax, word [ecx + 2]
push edx
push eax
push esi
jb 0x564f3f
mov esi, dword [ebp + 0x18]
push esi
push edi
call fcn.0057e200
mov dword [esp + 0x2c], 1
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
jmp 0x564f60
mov edi, dword [ebp + 0x38]
mov esi, dword [ebp + 0x30]
push edi
push esi
call fcn.0057e200
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov edx, dword [ebp + 8]
add esp, 0x18
movzx edi, word [edx + 0x22]
movzx eax, word [edx + 0xc]
movzx esi, word [edx + 0x10]
movzx ecx, word [edx + 0x1e]
add esi, eax
push esi
lea eax, [edi + edx]
mov dword [esp + 0x1c], ecx
push eax
lea eax, [ecx + edx]
push eax
push dword [esp + 0x14]
call fcn.005651d0
mov eax, dword [esp + 0x28]
lea ecx, [eax + esi*2]
lea esi, [edi + esi*4]
mov dword [esp + 0x28], ecx
mov edi, dword [ebp + 8]
movzx eax, word [edi + 0xe]
push eax
lea eax, [esi + edi]
push eax
lea eax, [ecx + edi]
push eax
push dword [esp + 0x28]
call fcn.00565270
movzx ecx, word [edi + 0xe]
movzx eax, word [edi + 0x12]
push eax
lea eax, [ecx + ecx*2]
lea eax, [eax*2 + 0xf]
add eax, esi
and eax, 0xfffffff0
add eax, edi
push eax
mov eax, dword [esp + 0x40]
lea eax, [eax + ecx*2]
add eax, edi
push eax
push dword [esp + 0x3c]
call fcn.005651d0
movzx eax, word [edi + 0x20]
movzx ecx, word [edi + 0x26]
movzx edx, word [edi + 0x24]
movzx esi, word [edi + 0x18]
mov dword [esp + 0x48], eax
movzx eax, word [edi + 0x14]
mov edi, dword [esp + 0x44]
add esi, eax
mov eax, dword [ebp + 8]
add eax, ecx
mov dword [esp + 0x50], ecx
mov ecx, dword [ebp + 8]
mov edi, dword [esp + edi*4 + 0x60]
push esi
push edi
push eax
lea eax, [edx + ecx]
mov dword [esp + 0x64], edx
push eax
mov eax, dword [esp + 0x58]
add eax, ecx
mov dword [esp + 0x64], esi
push eax
push dword [esp + 0x4c]
call fcn.00565260
mov edx, dword [ebp + 8]
add esp, 0x48
mov ecx, dword [esp + 0x18]
add esi, esi
add ecx, esi
mov dword [esp + 0x18], ecx
movzx eax, word [edx + 0x16]
push eax
lea eax, [edi + esi]
push eax
lea eax, [ecx + edx]
push eax
push dword [esp + 0x18]
call fcn.00565270
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x34]
movzx ecx, word [eax + 0x16]
movzx eax, word [eax + 0x1a]
add ecx, ecx
push eax
lea eax, [edi + ecx*2]
add eax, ecx
add eax, esi
mov esi, dword [ebp + 8]
push eax
mov eax, dword [esp + 0x38]
lea eax, [eax + edx*4]
add eax, 0xf
and eax, 0xfffffff0
add eax, esi
push eax
mov eax, dword [esp + 0x44]
lea eax, [eax + edx*4]
add eax, 0xf
and eax, 0xfffffff0
add eax, esi
push eax
mov eax, dword [esp + 0x38]
add eax, ecx
add eax, esi
push eax
push dword [esp + 0x34]
call fcn.00565260
movaps xmm0, xmmword [esp + 0x68]
add esp, 0x28
movss xmm1, dword [esp + 0x2c]
movss xmm2, dword [ebp + 0x44]
mov edi, dword [ebp + 0x14]
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 0x28]
jmp 0x5650c9
mov esi, dword [ebp + 8]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, 2
jl 0x564e95
comiss xmm2, xmm0
jae 0x565137
comiss xmm0, xmm1
jae 0x565137
xor eax, eax
shufps xmm0, xmm0, 0
cmp byte [ebp + 0x40], al
movaps xmmword [esp + 0x40], xmm0
setne al
movaps xmmword [esp + 0x30], xmm0
push eax
movzx eax, word [esi + 2]
push 0
push eax
lea eax, [esp + 0x3c]
push eax
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push edi
call fcn.0056fd20
movzx eax, word [esi + 4]
movaps xmm0, xmmword [esp + 0x5c]
push 0
push eax
lea eax, [esp + 0x64]
movaps xmmword [esp + 0x64], xmm0
push eax
push dword [ebp + 0x38]
push dword [ebp + 0x34]
push dword [ebp + 0x18]
call fcn.0056fc90
add esp, 0x34
xor eax, eax
lea edx, [esi + 0x28]
xor ecx, ecx
cmp ax, word [esi + 2]
jae 0x565167
mov edi, dword [ebp + 0x1c]
nop word [eax + eax]
movzx eax, byte [ecx + edx]
mov eax, dword [eax*4 + 0x8752b8]
mov dword [edi + ecx*4], eax
inc ecx
movzx eax, word [esi + 2]
cmp ecx, eax
jl 0x565150
movzx eax, word [esi + 2]
xor ecx, ecx
add edx, eax
xor eax, eax
cmp ax, word [esi + 4]
jae 0x565197
mov edi, dword [ebp + 0x20]
nop word [eax + eax]
movzx eax, byte [ecx + edx]
mov eax, dword [eax*4 + 0x8752b8]
mov dword [edi + ecx*4], eax
inc ecx
movzx eax, word [esi + 4]
cmp ecx, eax
jl 0x565180
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x5651c6
mov dword [esi], 0x77f5ec
rdtsc
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret