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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x56b12d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x45c]
cmp byte [eax + 0x268], 0
je 0x56b10f
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov edx, dword [edx + 0x460]
cmp byte [edx + 0x268], 0
je 0x56b10f
mov edx, dword [ebp + 8]
cmp byte [eax + 0x1e7], 0
jne 0x56ae71
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
jmp 0x56ae76
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x460]
cmp byte [eax + 0x1e7], 0
jne 0x56ae93
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
jmp 0x56ae98
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], 0
jne 0x56aea8
cmp dword [ebp - 0x14], 0
je 0x56b10f
mov byte [ebp - 0x19], 0
mov dword [ebp - 0xc], 0x2710
xor ecx, ecx
push ebp
push 0x56b105
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov esi, 2
lea eax, [ebp - 0x18]
mov edx, dword [eax]
test edx, edx
je 0x56aed6
mov byte [edx + 0x330], 1
add eax, 4
dec esi
jne 0x56aec9
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x10], eax
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x10]
cmp eax, 0x7d0
jbe 0x56af15
cmp byte [ebp - 0x19], 0
jne 0x56af15
mov byte [ebp - 0x19], 1
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [0x5c16ec]
mov edx, 0x56b144
call fcn.00574690
mov esi, 2
lea ebx, [ebp - 0x18]
cmp dword [ebx], 0
je 0x56b006
mov eax, dword [ebx]
cmp byte [eax + 0x268], 0
je 0x56af3a
cmp dword [eax + 0x334], 0
jne 0x56af43
xor eax, eax
mov dword [ebx], eax
jmp 0x56b006
lea eax, [ebp - 4]
mov edi, dword [ebx]
mov edx, dword [edi + 0x224]
call fcn.00403d34
movsx eax, word [edi + 0x1e4]
mov dword [ebp - 8], eax
push 0
push 1
lea eax, [ebp - 0x20]
push eax
mov eax, edi
xor ecx, ecx
mov dl, 1
call fcn.004d82f0
mov edx, dword [ebx]
movsx edx, word [edx + 0x1e4]
cmp edx, dword [ebp - 8]
je 0x56b006
mov eax, dword [ebx]
mov ax, word [eax + 0x1e4]
cmp ax, 0xc8
je 0x56af97
cmp ax, 0x1f4
jne 0x56b006
mov eax, dword [ebx]
dec dword [eax + 0x334]
mov eax, dword [ebx]
cmp word [eax + 0x1e4], 0x1f4
jne 0x56afdd
mov eax, dword [ebx]
mov edx, dword [eax + 0x224]
mov eax, 0x56b180
call fcn.00404200
test eax, eax
jg 0x56afd3
mov edx, dword [ebp - 4]
mov eax, 0x56b180
call fcn.00404200
test eax, eax
jle 0x56afdd
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x334], edx
mov eax, dword [ebx]
add eax, 0x224
mov edx, dword [ebp - 4]
call fcn.00403cf0
mov eax, dword [ebx]
mov dx, word [ebp - 8]
mov word [eax + 0x1e4], dx
cmp dword [eax + 0x334], 0
jne 0x56b006
xor eax, eax
mov dword [ebx], eax
add ebx, 4
dec esi
jne 0x56af1d
cmp dword [ebp - 0x18], 0
jne 0x56b01c
cmp dword [ebp - 0x14], 0
je 0x56b057
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x45c]
cmp byte [eax + 0x268], 0
je 0x56b057
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x460]
cmp byte [eax + 0x268], 0
je 0x56b057
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jbe 0x56aee4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56b10f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x45c]
cmp dword [eax + 0x334], 0
jg 0x56b08e
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x460]
cmp dword [eax + 0x334], 0
jle 0x56b0a8
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [0x5c16ec]
mov edx, 0x56b190
call fcn.00574690
jmp 0x56b0c6
cmp byte [ebp - 0x19], 0
je 0x56b0c6
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [0x5c16ec]
mov edx, 0x56b1c8
call fcn.00574690
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x45c]
cmp byte [eax + 0x330], 0
je 0x56b0e5
mov edx, dword [ebp + 8]
mov byte [eax + 0x330], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x460]
cmp byte [eax + 0x330], 0
je 0x56b104
mov edx, dword [ebp + 8]
mov byte [eax + 0x330], 0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56b134
lea eax, [ebp - 0x20]
call fcn.00403c9c
lea eax, [ebp - 4]
call fcn.00403c9c
ret