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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x57ff45
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x150]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00559eb8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, 1
mov ecx, dword [eax]
call dword [ecx + 0x14]
test al, al
je 0x57fd51
mov eax, dword [ebp - 8]
movzx eax, word [eax]
sub ax, 0x1b
je 0x57fd35
add eax, 0xfffffffb
sub ax, 0xffe0
jae 0x57fd51
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov ebx, eax
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.004c9670
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0x24]
test al, al
jne 0x57fd17
mov eax, dword [ebp - 8]
mov word [eax], 0
jmp 0x57fd51
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov ebx, eax
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.004c9670
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
call dword [edx + 0x2c]
jmp 0x57fd51
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov ebx, eax
lea edx, [ebp - 0x38]
mov eax, ebx
call fcn.004c9670
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x28]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b8], 0
je 0x57ff15
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x2c8]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x328]
jb 0x57fd87
mov eax, dword [ebp - 4]
add eax, 0x2c4
call fcn.0040b590
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c8], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp ax, 8
je 0x57fe72
mov eax, dword [ebp - 8]
cmp word [eax], 0xd800
jb 0x57fe26
mov eax, dword [ebp - 8]
cmp word [eax], 0xdfff
ja 0x57fe26
push 1
push 0x102
push 0x102
mov eax, dword [ebp - 4]
call fcn.0055b46c
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.user32.dll_PeekMessageW
test eax, eax
je 0x57fec0
mov eax, dword [ebp - 4]
push dword [eax + 0x2c4]
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 8]
movzx edx, word [edx]
call fcn.0040c148
push dword [ebp - 0x3c]
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x24]
call fcn.0040c148
push dword [ebp - 0x40]
mov eax, dword [ebp - 4]
add eax, 0x2c4
mov edx, 3
call fcn.0040c414
mov eax, dword [ebp - 8]
mov word [eax], 0
jmp 0x57fec0
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 8]
movzx edx, word [edx]
call fcn.0040c148
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
add eax, 0x2c4
call fcn.0040c334
jmp 0x57fec0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c4]
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x57fe5e
sub esi, 4
mov esi, dword [esi]
mov eax, dword [ebp - 4]
add eax, 0x2c4
mov ecx, 1
mov edx, esi
call fcn.0040c544
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x2c4]
mov ebx, edi
test ebx, ebx
je 0x57fe86
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c4]
mov edx, ebx
call fcn.00430f90
cmp al, 2
je 0x57fe46
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c4]
test eax, eax
je 0x57feac
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 4]
add edx, 0x2c4
mov ecx, 1
xchg edx, eax
call fcn.0040c544
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c4]
test eax, eax
je 0x57fed2
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x57fedf
push ebp
call fcn.0057fb90
pop ecx
jmp 0x57fef8
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x154]
mov eax, dword [ebp - 4]
mov si, 0xffeb
call fcn.00409b78
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x150]
cmp eax, dword [ebp - 0xc]
je 0x57ff15
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
call fcn.004c9998
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57ff4c
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.0040b5f0
lea eax, [ebp - 0x38]
mov edx, dword [0x490fec]
mov ecx, 3
call fcn.0040d0e4
pop eax
jmp eax