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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4df68c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4df644
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10], 7
jbe 0x4df496
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4df671
mov dword [ebp - 0x28], 1
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x284]
cmp eax, 0xea60
jbe 0x4df4cc
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x284], eax
mov eax, dword [ebp - 4]
mov si, 0xfff3
call fcn.00403fe4
mov dword [ebp - 0x28], 2
mov eax, dword [ebp - 4]
call fcn.004df1c8
mov byte [ebp - 0x1d], al
mov dword [ebp - 0x28], 3
mov eax, dword [ebp - 4]
cmp dword [eax + 0x180], 0
je 0x4df539
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd4]
add eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0xcc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe4]
add eax, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0xd0]
push eax
mov al, byte [ebp + 0xc]
push eax
mov al, byte [ebp - 0x1d]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x180]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004def00
mov dword [ebp - 0x28], 4
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov si, 0xfff2
call fcn.00403fe4
mov dword [ebp - 0x28], 5
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004df240
mov dword [ebp - 0x28], 6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x12c], 0
je 0x4df633
mov eax, dword [ebp - 4]
cmp dword [eax + 0x15c], 0
jle 0x4df633
xor eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x148]
dec edx
lea ecx, [ebp - 0x48]
mov ah, 0x20
call fcn.004038ac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x144]
cmp eax, 0xff
ja 0x4df5c0
bt dword [ebp - 0x48], eax
jae 0x4df633
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15c]
dec eax
xor edx, edx
call fcn.004d7204
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x144]
add dword [ebp - 0x10], eax
cmp dword [ebp - 0x24], 0
je 0x4df601
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
call fcn.0047fdb8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4df633
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add ecx, dword [eax + 0xd0]
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0xcc]
mov eax, dword [ebp - 8]
call fcn.00481744
mov dword [ebp - 0x28], 7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4df671
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4df693
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.00404c10
ret