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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], eax
mov ecx, 7
lea eax, [ebp - 0x20]
mov edx, dword [0x4010ac]
call fcn.004071ec
xor eax, eax
push ebp
push 0x4ffc1c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x50f184], 0
je 0x4ff335
xor eax, eax
call fcn.004e17c4
mov byte [ebp - 0x21], 0
mov eax, dword [0x507da0]
mov eax, dword [eax]
shr eax, 0x10
cmp eax, 0x600
mov eax, dword [0x5079f4]
setae byte [eax]
xor edx, edx
push ebp
push 0x4ffb5d
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x50f194], 0
je 0x4ff373
mov dl, 1
mov eax, dword [0x50f194]
call fcn.004b1d44
cmp byte [0x50f182], 0
je 0x4ff3e0
xor eax, eax
push ebp
push 0x4ff3b3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x50f188], 0
jne 0x4ff39f
mov eax, 0x4ffc38
call fcn.004b282c
jmp 0x4ff3a9
mov eax, dword [0x50f188]
call fcn.004b2a10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ff3e0
mov eax, 0x4ffca0
call fcn.004b2a6c
lea eax, [ebp - 0x2c]
mov ecx, dword [0x50f16c]
mov edx, 0x4ffd18
call fcn.00406914
mov eax, dword [ebp - 0x2c]
call fcn.004b2a6c
lea eax, [ebp - 0x30]
mov ecx, dword [0x50f170]
mov edx, 0x4ffd58
call fcn.00406914
mov eax, dword [ebp - 0x30]
call fcn.004b2a6c
lea eax, [ebp - 0x38]
call fcn.00480600
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x4ffd84
call fcn.00406914
mov eax, dword [ebp - 0x34]
call fcn.004b2a6c
call fcn.004e188c
xor eax, eax
call fcn.004fec10
mov dword [0x50f178], eax
mov dl, 1
mov eax, dword [0x4fdf38]
call fcn.004b5928
mov dword [0x5079a4], eax
mov ecx, dword [0x50f170]
mov edx, dword [0x50f178]
mov eax, dword [0x5079a4]
call fcn.004b8548
lea ecx, [ebp - 0x3c]
mov eax, dword [0x5079a4]
mov edx, dword [eax + 0x18]
mov al, 0xb7
call fcn.00483800
mov edx, dword [ebp - 0x3c]
mov eax, 0x50f17c
call fcn.00406448
mov eax, dword [0x5079a4]
test byte [eax + 0x1d], 0x20
je 0x4ff4db
mov eax, dword [0x507ad4]
cmp byte [eax], 0
jne 0x4ff4db
push 1
push 1
mov eax, dword [0x50f17c]
call fcn.004064d4
push eax
mov eax, dword [0x507e7c]
mov eax, dword [eax + 0x2fc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004e2174
call fcn.00412500
mov eax, dword [0x5079a4]
test byte [eax + 0x1d], 1
je 0x4ff51e
call fcn.004816b0
test al, al
jne 0x4ff51e
push 1
push 1
mov eax, dword [0x50f17c]
call fcn.004064d4
push eax
mov eax, dword [0x507e7c]
mov eax, dword [eax + 0x1dc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004e2174
call fcn.00412500
mov eax, dword [0x50f178]
xor edx, edx
mov dword [0x50f178], edx
call fcn.00404098
mov al, 2
call fcn.004fec10
mov dword [0x50f178], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov ecx, 0x85050900
mov dx, 0x20
mov eax, dword [0x5079a4]
call fcn.004b5df4
test al, al
jne 0x4ff563
mov eax, 0x4ffdc4
call fcn.00485f78
cmp dword [0x50f194], 0
je 0x4ff57e
lea eax, [ebp - 4]
mov edx, dword [0x507d4c]
mov edx, dword [edx]
call fcn.0040532c
jmp 0x4ff589
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.004ff284
mov eax, dword [0x5079a4]
cmp byte [eax + 0x10], 0
je 0x4ff5b1
mov eax, dword [0x507ad4]
cmp byte [eax], 0
jne 0x4ff5a8
mov eax, 0x4ffe5c
call fcn.00485f78
mov al, 1
call fcn.004e2664
jmp 0x4ff5b8
xor eax, eax
call fcn.004e2664
call fcn.004df97c
cmp dword [ebp - 4], 0
je 0x4ff6c0
call fcn.004df358
call fcn.004dfcb4
mov eax, dword [0x507a04]
mov edx, dword [0x50f16c]
call fcn.00406448
mov eax, dword [0x507de0]
mov edx, dword [0x5079a4]
mov edx, dword [edx + 0x14]
call fcn.00406448
movzx eax, byte [0x50f183]
or al, byte [0x50f184]
mov edx, dword [0x507b64]
mov byte [edx], al
mov eax, dword [0x507fd8]
mov edx, dword [ebp - 0x18]
call fcn.00406448
mov eax, dword [0x507c8c]
mov edx, dword [ebp - 0x14]
call fcn.00406448
mov eax, dword [0x507af0]
mov edx, dword [ebp - 0x10]
call fcn.00406448
mov eax, dword [0x507b90]
mov edx, dword [ebp - 0xc]
call fcn.00406448
mov eax, dword [ebp - 8]
test eax, eax
je 0x4ff649
sub eax, 4
mov eax, dword [eax]
mov edx, eax
add edx, edx
mov eax, dword [ebp - 8]
call fcn.004ff1cc
mov dl, 1
mov eax, dword [0x4faa04]
call fcn.004fb21c
mov edx, dword [0x507bb4]
mov dword [edx], eax
mov eax, 0x4e1264
mov edx, dword [0x507bb4]
mov edx, dword [edx]
mov dword [edx + 0xc], eax
mov eax, 0x4e147c
mov edx, dword [0x507bb4]
mov edx, dword [edx]
mov dword [edx + 0x10], eax
mov eax, 0x4e1488
mov edx, dword [0x507bb4]
mov edx, dword [edx]
mov dword [edx + 0x14], eax
mov eax, 0x4e1494
mov edx, dword [0x507bb4]
mov edx, dword [edx]
mov dword [edx + 0x18], eax
mov ecx, dword [0x507c50]
mov ecx, dword [ecx]
mov eax, dword [0x507bb4]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.004fb314
xor edx, edx
push ebp
push 0x4ffb09
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4ffa3c
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x507bb4]
cmp dword [eax], 0
je 0x4ff74f
xor edx, edx
push ebp
push 0x4ff723
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 1
xor eax, eax
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea ecx, [ebp - 0x44]
mov eax, dword [0x507bb4]
mov eax, dword [eax]
mov edx, 0x4ffef0
call fcn.004fb4d0
pop dword fs:[0]
add esp, 8
jmp 0x4ff73c
test al, al
jne 0x4ff74f
mov eax, 0x4fff80
call fcn.004b2a6c
call fcn.00412500
cmp byte [0x50f183], 0
jne 0x4ff789
cmp byte [0x50f184], 0
jne 0x4ff789
push 0x124
push 1
push 6
mov eax, dword [0x5079a4]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50f17c]
mov al, 0x27
call fcn.004fe31c
cmp eax, 6
je 0x4ff789
call fcn.00412500
xor edx, edx
xor eax, eax
call fcn.004fea84
jmp 0x4ff7b7
push 0x31
push 1
push 2
mov eax, dword [0x5079a4]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50f17c]
mov al, 0xbd
call fcn.004fe31c
dec eax
je 0x4ff7b7
call fcn.00412500
mov eax, dword [0x5079a4]
call fcn.004b5e48
test al, al
jne 0x4ff794
jmp 0x4ff7da
push 0xa
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x507e6c]
mov eax, dword [eax]
call fcn.0047cf8c
mov eax, dword [0x508058]
cmp byte [eax], 0
jne 0x4ff7c7
mov eax, dword [0x5079f4]
mov byte [eax], 0
lea ecx, [ebp - 0x48]
mov eax, dword [0x5079a4]
mov edx, dword [eax + 0x18]
mov al, 0xa7
call fcn.00483800
mov edx, dword [ebp - 0x48]
mov eax, dword [0x507e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.00481f04
call fcn.004fe160
xor edx, edx
mov al, 1
call fcn.004fea84
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x28], eax
mov eax, dword [0x5079a4]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x24], edx
mov ecx, 0x4fe5a0
mov dl, 1
mov eax, dword [0x5079a4]
call fcn.004b6c18
mov byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x22]
mov edx, dword [0x507d94]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea edx, [ebp - 0x44]
xor ecx, ecx
mov eax, 0x4fffe8
call fcn.004b2cf0
mov eax, dword [0x5079a4]
cmp byte [eax + 0x1c], 0
jne 0x4ff885
mov eax, dword [0x5079a4]
test byte [eax + 0x1d], 8
jne 0x4ff885
xor eax, eax
jmp 0x4ff887
mov al, 1
mov byte [ebp - 0x23], al
mov eax, dword [0x507bb4]
cmp dword [eax], 0
je 0x4ff925
mov eax, dword [0x507bb4]
mov eax, dword [eax]
mov edx, 0x500014
call fcn.004fb3c0
test al, al
je 0x4ff925
cmp byte [ebp - 0x23], 0
jne 0x4ff91b
xor eax, eax
push ebp
push 0x4ff900
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
xor eax, eax
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea ecx, [ebp - 0x44]
mov eax, dword [0x507bb4]
mov eax, dword [eax]
mov edx, 0x500014
call fcn.004fb4d0
test al, al
je 0x4ff8f6
mov byte [ebp - 0x23], 1
mov eax, 0x500038
call fcn.004b2a6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ff925
mov eax, 0x500118
call fcn.004b2a6c
movzx eax, byte [ebp - 0x23]
mov edx, dword [0x507d94]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea edx, [ebp - 0x44]
xor ecx, ecx
mov eax, 0x5001d0
call fcn.004b2cf0
cmp byte [0x50f184], 0
jne 0x4ff980
mov eax, dword [0x507e6c]
mov eax, dword [eax]
call fcn.0047cf8c
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x28]
cmp eax, 0x3e8
jae 0x4ff980
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x4ff951
mov eax, dword [0x507b04]
mov eax, dword [eax]
mov edx, dword [0x507b04]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00404098
mov dl, 1
mov al, 2
call fcn.004fea84
cmp byte [ebp - 0x23], 0
jne 0x4ff9e0
cmp byte [0x50f183], 0
jne 0x4ffa29
cmp byte [0x50f184], 0
jne 0x4ffa29
push 0x10040
push 1
push 1
mov eax, dword [0x5079a4]
mov edx, dword [eax + 0x18]
movzx eax, byte [ebp - 0x22]
movzx eax, byte [eax + 0x5079b0]
mov ecx, dword [0x50f17c]
call fcn.004fe31c
jmp 0x4ffa29
cmp byte [0x50f185], 0
jne 0x4ffa19
cmp byte [0x50f184], 0
jne 0x4ffa15
push 0x10024
push 1
push 6
mov eax, dword [0x5079a4]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50f17c]
mov al, 0xbb
call fcn.004fe31c
cmp eax, 6
jne 0x4ffa19
mov byte [ebp - 0x21], 1
cmp byte [ebp - 0x21], 0
jne 0x4ffa29
mov eax, 0x500214
call fcn.004b2a6c
mov dl, 1
mov al, 3
call fcn.004fea84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ffa50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ffb13
xor edx, edx
push ebp
push 0x4ffa8b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x507b04]
mov eax, dword [eax]
mov edx, dword [0x507b04]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00404098
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ffa9a
mov eax, dword [0x507bb4]
cmp dword [eax], 0
je 0x4ffaf6
xor eax, eax
push ebp
push 0x4ffadd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
xor eax, eax
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea ecx, [ebp - 0x44]
mov eax, dword [0x507bb4]
mov eax, dword [eax]
mov edx, 0x500270
call fcn.004fb41c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ffaf6
mov eax, dword [0x507e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.00481f94
ret