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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x56f569
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x78], 0
jne 0x56f546
mov eax, dword [0x5d32c4]
mov eax, dword [eax]
mov edx, ebx
call fcn.005b5030
test al, al
je 0x56f546
mov eax, dword [0x5d34c0]
cmp ebx, dword [eax]
je 0x56f546
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov edx, ebx
call fcn.00536154
test al, al
jne 0x56f546
cmp byte [ebx + 0x57], 0
jne 0x56f546
mov eax, dword [0x5d3260]
cmp byte [eax + 0x35], 0
je 0x56f282
lea eax, [ebp - 0xc]
mov edx, dword [0x5d3260]
add edx, 0x35
call fcn.00404678
mov eax, dword [ebp - 0xc]
mov edx, dword [0x5d3cbc]
mov edx, dword [edx]
call fcn.00404820
jne 0x56f282
mov byte [ebp - 1], 0
mov eax, dword [0x5d3cbc]
cmp dword [eax + 0xc], 0
je 0x56f21d
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3250]
sub eax, dword [edx]
cmp eax, 0x3e8
jbe 0x56f219
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3250]
mov dword [edx], eax
mov eax, dword [0x5d3cbc]
mov eax, dword [eax + 0xc]
call fcn.005c8fd0
mov byte [ebp - 1], al
jmp 0x56f21d
mov byte [ebp - 1], 1
cmp byte [ebp - 1], 0
jne 0x56f282
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3250]
sub eax, dword [edx]
cmp eax, 0x3e8
jbe 0x56f282
xor eax, eax
mov dword [ebp - 8], eax
mov esi, dword [0x5d3d10]
cmp byte [esi], 0
je 0x56f276
cmp byte [esi + 0xf], 5
je 0x56f253
cmp byte [esi + 0xf], 6
jne 0x56f276
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3250]
mov dword [edx], eax
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov ecx, 1
mov edx, dword [ebp - 8]
call fcn.00548400
jmp 0x56f282
inc dword [ebp - 8]
add esi, 0x35
cmp dword [ebp - 8], 0x2e
jne 0x56f242
cmp byte [ebx + 0x65], 0
jne 0x56f360
mov eax, dword [0x5d3cf8]
cmp byte [eax], 0
je 0x56f360
movzx eax, word [ebx + 0x122]
push eax
push 1
movzx ecx, word [ebx + 0x120]
mov eax, dword [0x5d3eb8]
mov eax, dword [eax]
mov edx, dword [eax + 0x7c]
mov eax, dword [0x5d3370]
mov eax, dword [eax]
call fcn.005c1024
test eax, eax
jne 0x56f360
xor eax, eax
mov al, byte [ebx + 0x80]
lea eax, [eax + eax*2]
mov dword [ebp - 8], eax
mov eax, dword [0x5d34ec]
mov edx, dword [ebp - 8]
cmp byte [eax + edx + 1], 0
ja 0x56f2f5
mov eax, dword [0x5d34ec]
mov edx, dword [ebp - 8]
cmp byte [eax + edx + 2], 0
jbe 0x56f360
mov dword [ebx + 0x108], 0xffffffff
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x10c], eax
mov dword [ebx + 0x104], 0xffffffff
push 0x56f580
push dword [ebx + 0x11c]
push 0x56f590
mov eax, dword [0x5d3b60]
mov edx, 3
call fcn.00404794
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
xor edx, edx
call fcn.005cf318
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d32d4]
mov dword [edx], eax
mov eax, dword [0x5d3e24]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5d3a08]
xor edx, edx
mov dword [eax], edx
cmp byte [ebx + 0x65], 0
je 0x56f370
cmp byte [ebx + 0x56], 0
je 0x56f3f0
mov eax, dword [0x5d3d80]
cmp byte [eax], 0
jne 0x56f3f0
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
cmp dword [eax + 0xa0c], 0
jne 0x56f3f0
mov eax, dword [0x5d3c78]
cmp dword [eax], 0
je 0x56f46a
mov eax, dword [0x5d37d8]
cmp byte [eax], 0
je 0x56f46a
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
add eax, 0xa04
mov edx, dword [0x5d3c78]
mov edx, dword [edx]
call fcn.00404468
mov eax, dword [0x5d35d0]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov dword [eax + 0xa08], 1
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3a64]
mov dword [edx], eax
mov eax, dword [0x5d3d80]
mov byte [eax], 1
jmp 0x56f46a
cmp byte [ebx + 0x54], 0
je 0x56f46a
mov eax, dword [0x5d3d80]
cmp byte [eax], 0
jne 0x56f46a
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
cmp dword [eax + 0xa0c], 1
jne 0x56f46a
mov eax, dword [0x5d34b8]
cmp dword [eax], 0
je 0x56f46a
mov eax, dword [0x5d3a84]
cmp byte [eax], 0
je 0x56f46a
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
add eax, 0xa04
mov edx, dword [0x5d34b8]
mov edx, dword [edx]
call fcn.00404468
mov eax, dword [0x5d35d0]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
xor edx, edx
mov dword [eax + 0xa08], edx
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3a64]
mov dword [edx], eax
mov eax, dword [0x5d3d80]
mov byte [eax], 1
cmp byte [ebx + 0x65], 0x32
jne 0x56f47e
mov edx, ebx
mov eax, edi
call fcn.0056f8c8
jmp 0x56f553
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x4c]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov eax, dword [0x5d37c0]
imul eax, dword [eax], 0x3e8
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x56f4b2
cmp eax, dword [esp]
pop edx
pop eax
jae 0x56f50d
jmp 0x56f4b6
pop edx
pop eax
jge 0x56f50d
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx + 0xf8]
mov edx, dword [0x5d37c0]
imul edx, dword [edx], 0x3e8
cmp eax, edx
jbe 0x56f50d
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx + 0xfc]
mov edx, dword [0x5d37c0]
imul edx, dword [edx], 0x3e8
cmp eax, edx
jbe 0x56f50d
cmp byte [ebx + 0x54], 0
je 0x56f50d
mov byte [ebx + 0xd], 1
push 1
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov cl, 1
mov edx, 0x56f5ac
call fcn.0054f04c
jmp 0x56f553
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
mov al, byte [eax + 0x69]
test al, al
jne 0x56f526
mov edx, ebx
mov eax, edi
call fcn.0056f8c8
jmp 0x56f553
mov edx, dword [0x5d34c0]
cmp al, 1
jne 0x56f53b
mov edx, ebx
mov eax, edi
call fcn.0056dd98
jmp 0x56f553
mov edx, ebx
mov eax, edi
call fcn.0056e87c
jmp 0x56f553
push 1
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.00574724
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56f570
lea eax, [ebp - 0xc]
call fcn.00404414
ret