Function at 0x586de0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x58722c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
sub eax, 0x34
jae 0x587084
mov eax, dword [0x5abf74]
cmp byte [eax], 0
je 0x586e42
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5ab858]
sub eax, dword [edx]
cmp eax, 0x1388
jbe 0x586e42
mov eax, dword [0x5abe30]
mov byte [eax], 0
mov eax, dword [0x5abf74]
cmp byte [eax], 0
jne 0x587209
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac240]
cmp byte [edx + eax*8], 0
je 0x587209
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac240]
cmp byte [edx + eax*8 + 0xf], 3
jbe 0x586e90
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac240]
cmp byte [edx + eax*8 + 0xf], 0x3c
jne 0x587209
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac240]
mov ecx, dword [0x5abf74]
lea esi, [edx + eax*8]
mov edi, ecx
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac240]
mov byte [edx + eax*8], 0
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac240]
cmp byte [edx + eax*8 + 0xf], 4
jne 0x587019
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac240]
cmp byte [edx + eax*8 + 0x10], 0x64
jae 0x587019
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac240]
cmp byte [edx + eax*8 + 0x10], 0x32
jae 0x586f90
mov edx, 0x58723c
lea eax, [ebp - 0x2c]
call fcn.004030ac
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac240]
lea edx, [edx + eax*8]
lea eax, [ebp - 0x2c]
mov cl, 0x1c
call fcn.0040307c
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x50]
call fcn.004030ac
mov edx, 0x58724c
lea eax, [ebp - 0x50]
mov cl, 0x20
call fcn.0040307c
lea edx, [ebp - 0x50]
lea eax, [ebp - 0xc]
call fcn.004049ec
mov edx, dword [ebp - 0xc]
mov eax, dword [0x5ac3a0]
mov eax, dword [eax]
mov cx, word [0x587254]
call fcn.0051bde4
cmp eax, 6
je 0x587019
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac240]
mov ecx, dword [0x5abf74]
lea edi, [edx + eax*8]
mov esi, ecx
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
jmp 0x587209
mov edx, 0x58723c
lea eax, [ebp - 0x2c]
call fcn.004030ac
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac240]
lea edx, [edx + eax*8]
lea eax, [ebp - 0x2c]
mov cl, 0x1c
call fcn.0040307c
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x50]
call fcn.004030ac
mov edx, 0x58724c
lea eax, [ebp - 0x50]
mov cl, 0x20
call fcn.0040307c
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x54]
call fcn.004049ec
mov edx, dword [ebp - 0x54]
mov eax, dword [0x5ac3a0]
mov eax, dword [eax]
mov cx, word [0x587254]
call fcn.0051bde4
cmp eax, 6
je 0x587019
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac240]
mov ecx, dword [0x5abf74]
lea edi, [edx + eax*8]
mov esi, ecx
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
jmp 0x587209
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5ab858]
mov dword [edx], eax
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 8]
lea edx, [edx + edx*8]
mov ecx, dword [0x5ac240]
lea edx, [ecx + edx*8]
call fcn.004049ec
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac240]
mov edx, dword [edx + eax*8 + 0x40]
mov eax, dword [ebp - 4]
call fcn.0058d734
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac240]
movzx edx, byte [edx + eax*8 + 0x10]
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov ecx, dword [0x5ac240]
movzx eax, byte [ecx + eax*8 + 0xf]
call fcn.00502cd0
jmp 0x587209
cmp dword [ebp - 8], 0xffffffff
jne 0x587209
mov eax, dword [0x5ac090]
cmp byte [eax], 0
je 0x587209
mov eax, dword [0x5ac090]
mov byte [eax], 0
mov eax, dword [0x5abf7c]
mov edx, dword [0x5abf74]
lea esi, [eax + 8]
mov edi, edx
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x5abf7c]
mov byte [eax + 8], 0
mov eax, dword [0x5abf74]
cmp byte [eax + 0xf], 4
jne 0x5871c2
mov eax, dword [0x5abf74]
cmp byte [eax + 0x10], 0x64
jae 0x5871c2
mov eax, dword [0x5abf74]
cmp byte [eax + 0x10], 0x32
jae 0x587159
mov edx, 0x58723c
lea eax, [ebp - 0x2c]
call fcn.004030ac
mov edx, dword [0x5abf74]
lea eax, [ebp - 0x2c]
mov cl, 0x1c
call fcn.0040307c
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x50]
call fcn.004030ac
mov edx, 0x58724c
lea eax, [ebp - 0x50]
mov cl, 0x20
call fcn.0040307c
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x5c]
call fcn.004049ec
mov edx, dword [ebp - 0x5c]
mov eax, dword [0x5ac3a0]
mov eax, dword [eax]
mov cx, word [0x587254]
call fcn.0051bde4
cmp eax, 6
je 0x5871c2
mov eax, dword [0x5abf74]
call fcn.00506698
jmp 0x587209
mov edx, 0x58723c
lea eax, [ebp - 0x2c]
call fcn.004030ac
mov edx, dword [0x5abf74]
lea eax, [ebp - 0x2c]
mov cl, 0x1c
call fcn.0040307c
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x50]
call fcn.004030ac
mov edx, 0x58724c
lea eax, [ebp - 0x50]
mov cl, 0x20
call fcn.0040307c
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x60]
call fcn.004049ec
mov edx, dword [ebp - 0x60]
mov eax, dword [0x5ac3a0]
mov eax, dword [eax]
mov cx, word [0x587254]
call fcn.0051bde4
cmp eax, 6
je 0x5871c2
mov eax, dword [0x5abf74]
call fcn.00506698
jmp 0x587209
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5ab858]
mov dword [edx], eax
lea eax, [ebp - 0x64]
mov edx, dword [0x5abf74]
call fcn.004049ec
mov ecx, dword [ebp - 0x64]
mov edx, dword [0x5abf74]
mov edx, dword [edx + 0x40]
mov eax, dword [ebp - 4]
call fcn.0058d734
mov edx, dword [0x5abf74]
movzx edx, byte [edx + 0x10]
mov eax, dword [0x5abf74]
movzx eax, byte [eax + 0xf]
call fcn.00502cd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x587233
lea eax, [ebp - 0x64]
mov edx, 5
call fcn.004047ac
lea eax, [ebp - 0xc]
call fcn.00404788
ret