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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, 0x521ec0
mov esi, 0x521ee0
mov edi, 0x4f1b10
cmp dword [0x4fced0], 0
jne 0x4debce
mov dword [0x4fced0], 1
xor eax, eax
mov dword [0x521ed0], eax
xor edx, edx
mov dword [0x521ec8], edx
xor ecx, ecx
mov dword [0x521ecc], ecx
cmp dword [ebp + 8], 0
je 0x4de837
mov eax, dword [0x4fcecc]
mov dword [ebx], eax
jmp 0x4de824
mov edx, dword [eax + 0x84]
cmp edx, dword [ebp + 8]
jne 0x4de81c
mov dword [0x521ec8], eax
jmp 0x4de867
mov ecx, dword [eax + 0x480]
mov dword [ebx], ecx
mov eax, dword [ebx]
test eax, eax
jne 0x4de80a
xor edx, edx
mov dword [0x4fced0], edx
jmp 0x4debce
mov ecx, dword [0x4fcecc]
mov dword [ebx], ecx
jmp 0x4deb7f
cmp dword [0x521ec8], 0
jne 0x4deb89
cmp dword [eax + 0x84], 0
je 0x4de867
mov eax, dword [eax + 0x480]
mov dword [ebx], eax
jmp 0x4deb7f
mov edx, dword [ebx]
cmp dword [edx + 0x90], 0
jne 0x4de89a
cmp dword [0x4f39b4], 0
je 0x4de884
cmp dword [0x4fe2b0], 0xffffffff
jne 0x4de89a
mov eax, dword [ebx]
mov dword [eax + 0x68], 0xffffffff
mov edx, dword [eax + 0x480]
mov dword [ebx], edx
jmp 0x4deb7f
mov eax, dword [ebx]
cmp dword [eax + 0x70], 0
jl 0x4de90a
cmp dword [eax + 0x74], 0
jl 0x4de90a
push 0x521ed8
call fcn.0040ed80
pop ecx
xor edx, edx
mov dl, byte [0x521ed9]
mov ecx, dword [ebx]
cmp edx, dword [ecx + 0x70]
jne 0x4de8fb
mov edx, dword [ebx]
mov ecx, dword [edx + 0x74]
xor eax, eax
mov al, byte [0x521ed8]
cmp ecx, eax
jg 0x4de8fb
mov edx, dword [ebx]
mov ecx, dword [edx + 0x74]
inc ecx
cmp eax, ecx
jg 0x4de8fb
mov eax, dword [ebx]
mov dword [eax + 0x70], 0xffffffff
mov dword [eax + 0x74], 0xffffffff
call sub.KERNEL32.dll_GetTickCount
mov edx, dword [ebx]
mov dword [edx + 0x80], eax
jmp 0x4de90a
mov eax, dword [ebx]
mov ecx, dword [eax + 0x480]
mov dword [ebx], ecx
jmp 0x4deb7f
cmp dword [0x521ed0], 0
je 0x4de92a
mov eax, dword [ebx]
cmp dword [eax + 0x78], 0
jne 0x4de92a
mov edx, dword [ebx]
mov ecx, dword [edx + 0x480]
mov dword [ebx], ecx
jmp 0x4deb7f
call sub.KERNEL32.dll_GetTickCount
mov dword [0x521edc], eax
mov eax, dword [ebx]
mov edx, dword [0x521edc]
sub edx, dword [eax + 0x80]
mov dword [esi], edx
cmp dword [eax + 0x84], 0
je 0x4de983
mov ecx, dword [eax + 0x64]
cmp ecx, dword [esi]
jle 0x4de961
mov eax, dword [eax + 0x480]
mov dword [ebx], eax
jmp 0x4deb7f
mov edx, dword [ebx]
mov ecx, dword [edx + 0x64]
sub dword [esi], ecx
mov eax, dword [ebx]
cmp dword [eax + 0x78], 0
je 0x4de9dd
mov edx, dword [eax + 0x64]
cmp edx, dword [esi]
jg 0x4de9dd
mov dword [0x521ecc], 1
jmp 0x4de9dd
mov eax, dword [ebx]
mov edx, dword [eax + 0x64]
shl edx, 3
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
cmp edx, dword [esi]
jle 0x4de9a5
mov ecx, dword [eax + 0x480]
mov dword [ebx], ecx
jmp 0x4deb7f
mov eax, dword [ebx]
mov edx, dword [eax + 0x64]
shl edx, 3
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
sub dword [esi], edx
mov eax, dword [ebx]
cmp dword [eax + 0x78], 0
je 0x4de9dd
mov edx, dword [eax + 0x64]
shl edx, 3
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
cmp edx, dword [esi]
jg 0x4de9dd
mov dword [0x521ecc], 1
mov ecx, dword [0x521edc]
sub ecx, dword [esi]
mov eax, dword [ebx]
mov dword [eax + 0x80], ecx
mov edx, dword [ebx]
add edx, 0x94
push esi
push edi
mov edi, edx
mov esi, 0x521ee4
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, dword [ebx]
mov edx, dword [eax + 0x88]
push edx
call fcn.004eae80
test eax, eax
jne 0x4dea3c
mov ecx, dword [ebx]
mov eax, dword [0x4fd9fc]
mov dword [ecx + 0x88], eax
mov eax, dword [ebx]
cmp dword [eax + 0x68], 0
jle 0x4dea56
dec dword [eax + 0x68]
mov eax, dword [ebx]
cmp dword [eax + 0x68], 0
jg 0x4dea56
mov dword [eax + 0x68], 0xffffffff
mov eax, dword [0x521ec8]
test eax, eax
je 0x4dea85
cmp dword [eax + 0x68], 0xffffffff
jne 0x4dea85
mov edx, dword [eax + 0x84]
push edx
mov ecx, dword [0x4fd9ec]
push ecx
call sub.USER32.dll_KillTimer
mov eax, dword [0x521ec8]
xor edx, edx
mov dword [eax + 0x84], edx
mov eax, dword [ebx]
mov dword [eax + 0x6c], 0xffffffff
mov edx, dword [eax + 0x480]
mov dword [0x521ec4], edx
mov ecx, dword [eax + 0x47c]
push ecx
call fcn.004cbf80
test eax, eax
jne 0x4deab4
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x47c], edx
mov ecx, dword [edi]
mov dword [0x521ed4], ecx
mov eax, dword [ebx]
mov edx, dword [eax + 0x47c]
mov dword [edi], edx
push 0
mov ecx, dword [eax + 0x7c]
push ecx
push 0
push 0x521ee4
mov eax, dword [eax + 0x88]
push eax
call fcn.004864e8
mov edx, dword [0x521ed4]
mov dword [edi], edx
mov eax, dword [edi]
test eax, eax
je 0x4deafb
push eax
call fcn.004cbf80
test eax, eax
jne 0x4deafb
xor edx, edx
mov dword [edi], edx
mov ecx, dword [ebx]
push ecx
call fcn.004dd830
test eax, eax
je 0x4deb58
mov eax, dword [ebx]
cmp dword [eax + 0x68], 0xffffffff
jne 0x4deb4f
cmp dword [eax + 0x8c], 0
je 0x4deb4f
mov edx, dword [ebx]
push edx
push 0
push 0x157d
call fcn.0041f178
push eax
push 0x521ee4
call sub.USER32.dll_wsprintfA
add esp, 0xc
mov ecx, dword [0x4f29d4]
push ecx
push 0x521ee4
mov eax, dword [ebx]
mov edx, dword [eax + 0x88]
push edx
call fcn.004bd330
mov ecx, dword [ebx]
xor eax, eax
mov dword [ecx + 0x6c], eax
jmp 0x4deb75
mov eax, dword [0x521ec4]
test eax, eax
je 0x4deb89
push eax
call fcn.004dd830
test eax, eax
je 0x4deb89
mov edx, dword [0x521ec4]
mov dword [ebx], edx
jmp 0x4deb7f
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x480]
mov dword [ebx], eax
mov eax, dword [ebx]
test eax, eax
jne 0x4de844
cmp dword [0x521ec8], 0
je 0x4deba5
mov edx, dword [0x521ec8]
cmp dword [edx + 0x68], 0xffffffff
jne 0x4debaa
call fcn.004dd964
jmp 0x4debaa
call fcn.004dd964
cmp dword [0x521ecc], 0
je 0x4debc6
inc dword [0x521ed0]
cmp dword [0x521ed0], 0x64
jl 0x4de7eb
xor ecx, ecx
mov dword [0x4fced0], ecx
pop edi
pop esi
pop ebx
pop ebp
ret 4