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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50419d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x567470], 0
je 0x504182
mov eax, dword [0x567470]
movzx eax, word [eax + 0x66]
mov dword [ebp - 0x10], eax
mov eax, dword [0x567470]
movzx eax, word [eax + 0x68]
mov dword [ebp - 0xc], eax
cmp byte [0x581160], 1
jne 0x503ff6
mov eax, dword [0x567470]
cmp byte [eax + 0x16], 2
jne 0x503ff6
mov eax, dword [ebp - 0x10]
cdq
push edx
push eax
mov eax, dword [0x5810e9]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x503f6b
cmp eax, dword [esp]
pop edx
pop eax
jb 0x503ff6
jmp 0x503f73
pop edx
pop eax
jl 0x503ff6
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [0x568e10]
imul edx, dword [0x5810ed], 0x3e8
cmp eax, edx
jbe 0x503ff6
mov eax, dword [0x568e0c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x503ff6
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
mov edx, dword [ebp - 8]
mov eax, dword [0x568e0c]
call fcn.00419164
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp word [eax + 8], 2
jne 0x503fee
mov eax, dword [0x567470]
movzx eax, word [eax + 0xa]
push eax
push 2
push 0
mov eax, dword [0x567470]
movzx ecx, word [eax + 8]
mov edx, 0xbc9
mov eax, dword [ebp - 4]
call fcn.00508160
call sub.kernel32.dll_GetTickCount_1
mov dword [0x568e10], eax
jmp 0x503ff6
inc dword [ebp - 8]
dec dword [ebp - 0x18]
jne 0x503fa4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp byte [eax + 0x58097a], 0
je 0x504098
mov eax, dword [ebp - 0x10]
cdq
push edx
push eax
imul eax, dword [ebp - 8], 0x2b
mov eax, dword [eax + 0x5809a1]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x50402c
cmp eax, dword [esp]
pop edx
pop eax
jb 0x504098
jmp 0x504030
pop edx
pop eax
jl 0x504098
imul eax, dword [ebp - 8], 0x2b
cmp dword [eax + 0x5809a5], 2
jae 0x50404b
imul eax, dword [ebp - 8], 0x2b
mov dword [eax + 0x5809a5], 2
call sub.kernel32.dll_GetTickCount_1
imul edx, dword [ebp - 8], 0x2b
sub eax, dword [edx + 0x5809a9]
imul edx, dword [ebp - 8], 0x2b
imul edx, dword [edx + 0x5809a5], 0x3e8
cmp eax, edx
jbe 0x504098
lea eax, [ebp - 0x1c]
imul edx, dword [ebp - 8], 0x2b
add edx, 0x580982
call fcn.00405294
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00503d4c
call sub.kernel32.dll_GetTickCount_1
imul edx, dword [ebp - 8], 0x2b
mov dword [edx + 0x5809a9], eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 5
jne 0x503ffb
mov dword [ebp - 8], 5
mov eax, dword [ebp - 8]
cmp byte [eax + 0x58097a], 0
je 0x50412a
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
imul eax, dword [ebp - 8], 0x2b
mov eax, dword [eax + 0x5809a1]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x5040d9
cmp eax, dword [esp]
pop edx
pop eax
jb 0x50412a
jmp 0x5040dd
pop edx
pop eax
jl 0x50412a
call sub.kernel32.dll_GetTickCount_1
imul edx, dword [ebp - 8], 0x2b
sub eax, dword [edx + 0x5809a9]
imul edx, dword [ebp - 8], 0x2b
imul edx, dword [edx + 0x5809a5], 0x3e8
cmp eax, edx
jbe 0x50412a
lea eax, [ebp - 0x20]
imul edx, dword [ebp - 8], 0x2b
add edx, 0x580982
call fcn.00405294
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00503d4c
call sub.kernel32.dll_GetTickCount_1
imul edx, dword [ebp - 8], 0x2b
mov dword [edx + 0x5809a9], eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 7
jne 0x5040ac
cmp byte [0x580981], 0
je 0x504182
cmp byte [0x580c17], 1
jae 0x504150
mov byte [0x580c17], 2
movzx eax, word [0x5674f8]
xor edx, edx
mov dl, byte [0x580c17]
inc edx
imul edx, edx, 0x3e8
cmp eax, edx
ja 0x504182
lea eax, [ebp - 0x24]
mov edx, 0x580cbc
call fcn.00405294
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00503d4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5041a4
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00405054
ret