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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x57c0c1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
inc dword [ebp - 0x1c]
mov byte [ebp - 0x15], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc4], 2
jne 0x57bb97
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1a4], 0
jne 0x57baf8
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x1a4], eax
xor ecx, ecx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x19b], 0
je 0x57bb44
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x1a4]
mov ecx, 0x3e8
xor edx, edx
div ecx
mov ecx, eax
test ecx, ecx
jne 0x57bb28
mov ecx, 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x188]
xor edx, edx
div ecx
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x1a0]
ja 0x57c0ab
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov al, byte [eax + 0x19b]
mov edx, dword [ebp - 4]
cmp al, byte [edx + 0x19b]
jne 0x57bb60
cmp ecx, 0x1b
jbe 0x57bb97
mov edx, dword [ebp - 4]
mov byte [edx + 0x19b], al
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x1a4], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x188], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x1a0]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1a0], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x146], 0
jne 0x57c0a1
xor edx, edx
push ebp
push 0x57c09a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x146], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
test eax, eax
je 0x57bbd8
mov edx, dword [ebp - 4]
cmp byte [edx + 0x1ad], 0
je 0x57bbe2
call fcn.00403720
jmp 0x57c0ab
mov edx, dword [ebp - 4]
cmp byte [edx + 0xc4], 2
jne 0x57bc14
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xb4]
mov eax, dword [eax + 0xb0]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0xa8]
adc edx, dword [ecx + 0xac]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x57bc42
push 0
push 0
call fcn.00413894
mov eax, dword [ebp - 4]
mov dword [eax + 0xb0], 0
mov dword [eax + 0xb4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc4], 2
jne 0x57bc6a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
call fcn.004138a8
cmp edx, dword [ebp - 0xc]
jne 0x57bc68
cmp eax, dword [ebp - 0x10]
ja 0x57bc96
jmp 0x57bc6a
jg 0x57bc96
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc4], 2
je 0x57c082
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
call fcn.004138a8
cmp edx, 0
jne 0x57bc90
cmp eax, 0
je 0x57c082
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc4], 2
jne 0x57be79
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1f4]
mov eax, dword [eax + 0x1f0]
mov ecx, dword [ebp - 4]
cmp edx, dword [ecx + 0x1fc]
jne 0x57bcc6
cmp eax, dword [ecx + 0x1f8]
je 0x57bdc0
mov eax, dword [ebp - 4]
push dword [eax + 0x1fc]
push dword [eax + 0x1f8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
call fcn.00413894
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
call fcn.00413870
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1f0], eax
mov dword [ecx + 0x1f4], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe8], 0
je 0x57bd1e
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe0], 0
jne 0x57bd2b
mov edx, 0x2000
mov eax, dword [ebp - 4]
call fcn.005778e0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xe0]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xe8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0xe4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe4], 0
jne 0x57bdc0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xe0]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xe8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
mov eax, dword [eax + 4]
call fcn.004091ac
inc eax
jne 0x57bdc0
mov ecx, 0x57c0d8
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.0057c374
mov eax, dword [ebp - 4]
call fcn.00579958
mov cl, 1
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0057c0e8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov byte [eax + 0x168], 2
call fcn.00403720
jmp 0x57c0ab
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xe4]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xe8]
mov eax, dword [ebp - 4]
call fcn.0057b3b0
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x57be55
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.0057c278
mov eax, dword [ebp - 4]
call fcn.0057c270
cmp eax, 0x2733
jne 0x57be55
call sub.kernel32.dll_GetTickCount
sub eax, dword [0x5856f0]
cmp eax, 0x2bc
jbe 0x57be55
call sub.kernel32.dll_GetTickCount
mov dword [0x5856f0], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xe4]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xe8]
mov eax, dword [ebp - 4]
call fcn.0057b3b0
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x57be55
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.0057c278
call fcn.00403720
jmp 0x57c0ab
cmp ebx, 0xffffffff
je 0x57bed3
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xe4], edx
mov eax, ebx
cdq
mov ecx, dword [ebp - 4]
add dword [ecx + 0x1f8], eax
adc dword [ecx + 0x1fc], edx
jmp 0x57bed3
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe8], 0
je 0x57be91
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe0], 0
jne 0x57be9e
mov edx, 0x2000
mov eax, dword [ebp - 4]
call fcn.005778e0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xe0]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xe8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xe8]
mov ecx, eax
mov eax, dword [ebp - 4]
call fcn.0057b3b0
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x57beec
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.0057c278
jmp 0x57c082
mov eax, ebx
cdq
mov ecx, dword [ebp - 4]
add dword [ecx + 0xa8], eax
adc dword [ecx + 0xac], edx
mov eax, dword [ebp - 4]
add dword [eax + 0x188], ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
call fcn.004138a8
push edx
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xb4]
mov eax, dword [eax + 0xb0]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0xa8]
adc edx, dword [ecx + 0xac]
cmp edx, dword [esp + 4]
jne 0x57bf44
cmp eax, dword [esp]
pop edx
pop eax
jb 0x57bf88
jmp 0x57bf48
pop edx
pop eax
jl 0x57bf88
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc4], 2
je 0x57bf79
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
call fcn.00414028
mov eax, dword [ebp - 4]
mov dword [eax + 0xa8], 0
mov dword [eax + 0xac], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x144], 1
jmp 0x57c053
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc4], 2
je 0x57c02d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
call fcn.004138a8
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.004041b8
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
call fcn.00413894
mov eax, dword [ebp - 0x14]
call fcn.00403e88
push eax
lea eax, [ebp - 0x14]
call fcn.00404058
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
pop ecx
mov esi, dword [eax]
call dword [esi + 8]
lea eax, [ebp - 0x14]
mov ecx, ebx
mov edx, 1
call fcn.004040cc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
call fcn.00414028
mov eax, dword [ebp - 0x14]
call fcn.00403e88
push eax
lea eax, [ebp - 0x14]
call fcn.00404058
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
pop ecx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov byte [eax + 0x146], 0
cmp dword [ebp - 0x1c], 0x14
jge 0x57c039
mov byte [ebp - 0x15], 1
jmp 0x57c053
mov eax, dword [ebp - 4]
push eax
push 0
push 0x467
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e0]
push eax
call sub.user32.dll_PostMessageA
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xc4]
cmp al, 2
jne 0x57c082
mov edx, dword [ebp - 4]
cmp word [edx + 0x122], 0
je 0x57c082
push ebx
mov ecx, eax
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x124]
call dword [ebx + 0x120]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57c0a1
mov eax, dword [ebp - 4]
mov byte [eax + 0x146], 0
ret
cmp byte [ebp - 0x15], 0
jne 0x57bac7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57c0c8
lea eax, [ebp - 0x14]
call fcn.00403c0c
ret