Function at 0x4fafcc
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.004071dc
xor eax, eax
push ebp
push 0x4fb904
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x50a170], 0
je 0x4fb01d
xor eax, eax
call fcn.004df3b8
mov byte [ebp - 0x21], 0
mov eax, dword [0x502d3c]
mov eax, dword [eax]
shr eax, 0x10
cmp eax, 0x600
mov eax, dword [0x5029a0]
setae byte [eax]
xor edx, edx
push ebp
push 0x4fb845
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x50a180], 0
je 0x4fb05b
mov dl, 1
mov eax, dword [0x50a180]
call fcn.004b15d8
cmp byte [0x50a16e], 0
je 0x4fb0c8
xor eax, eax
push ebp
push 0x4fb09b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x50a174], 0
jne 0x4fb087
mov eax, 0x4fb920
call fcn.004b20c0
jmp 0x4fb091
mov eax, dword [0x50a174]
call fcn.004b22a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fb0c8
mov eax, 0x4fb988
call fcn.004b2300
lea eax, [ebp - 0x2c]
mov ecx, dword [0x50a158]
mov edx, 0x4fb9ec
call fcn.00406904
mov eax, dword [ebp - 0x2c]
call fcn.004b2300
lea eax, [ebp - 0x30]
mov ecx, dword [0x50a15c]
mov edx, 0x4fba2c
call fcn.00406904
mov eax, dword [ebp - 0x30]
call fcn.004b2300
lea eax, [ebp - 0x38]
call fcn.0047ec50
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x4fba58
call fcn.00406904
mov eax, dword [ebp - 0x34]
call fcn.004b2300
call fcn.004df480
xor eax, eax
call fcn.004fa8f8
mov dword [0x50a164], eax
mov dl, 1
mov eax, dword [0x4f9c20]
call fcn.004b51bc
mov dword [0x502954], eax
mov ecx, dword [0x50a15c]
mov edx, dword [0x50a164]
mov eax, dword [0x502954]
call fcn.004b7de0
lea ecx, [ebp - 0x3c]
mov eax, dword [0x502954]
mov edx, dword [eax + 0x18]
mov al, 0xb7
call fcn.004ab2a8
mov edx, dword [ebp - 0x3c]
mov eax, 0x50a168
call fcn.00406448
mov eax, dword [0x502954]
test byte [eax + 0x1d], 0x20
je 0x4fb1c3
mov eax, dword [0x502a7c]
cmp byte [eax], 0
jne 0x4fb1c3
push 1
push 1
mov eax, dword [0x50a168]
call fcn.004064d4
push eax
mov eax, dword [0x502e18]
mov eax, dword [eax + 0x2fc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004dfd68
call fcn.00411820
mov eax, dword [0x502954]
test byte [eax + 0x1d], 1
je 0x4fb206
call fcn.0047fd00
test al, al
jne 0x4fb206
push 1
push 1
mov eax, dword [0x50a168]
call fcn.004064d4
push eax
mov eax, dword [0x502e18]
mov eax, dword [eax + 0x1dc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004dfd68
call fcn.00411820
mov eax, dword [0x50a164]
xor edx, edx
mov dword [0x50a164], edx
call fcn.00404098
mov al, 2
call fcn.004fa8f8
mov dword [0x50a164], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov ecx, 0x85050400
mov dx, 0x20
mov eax, dword [0x502954]
call fcn.004b5688
test al, al
jne 0x4fb24b
mov eax, 0x4fba98
call fcn.004ad24c
cmp dword [0x50a180], 0
je 0x4fb266
lea eax, [ebp - 4]
mov edx, dword [0x502ce8]
mov edx, dword [edx]
call fcn.0040532c
jmp 0x4fb271
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.004faf6c
mov eax, dword [0x502954]
cmp byte [eax + 0x10], 0
je 0x4fb299
mov eax, dword [0x502a7c]
cmp byte [eax], 0
jne 0x4fb290
mov eax, 0x4fbb30
call fcn.004ad24c
mov al, 1
call fcn.004e0258
jmp 0x4fb2a0
xor eax, eax
call fcn.004e0258
call fcn.004dd52c
cmp dword [ebp - 4], 0
je 0x4fb3a8
call fcn.004dcf08
call fcn.004dd864
mov eax, dword [0x5029b0]
mov edx, dword [0x50a158]
call fcn.00406448
mov eax, dword [0x502d7c]
mov edx, dword [0x502954]
mov edx, dword [edx + 0x14]
call fcn.00406448
movzx eax, byte [0x50a16f]
or al, byte [0x50a170]
mov edx, dword [0x502b08]
mov byte [edx], al
mov eax, dword [0x502f70]
mov edx, dword [ebp - 0x18]
call fcn.00406448
mov eax, dword [0x502c30]
mov edx, dword [ebp - 0x14]
call fcn.00406448
mov eax, dword [0x502a98]
mov edx, dword [ebp - 0x10]
call fcn.00406448
mov eax, dword [0x502b34]
mov edx, dword [ebp - 0xc]
call fcn.00406448
mov eax, dword [ebp - 8]
test eax, eax
je 0x4fb331
sub eax, 4
mov eax, dword [eax]
mov edx, eax
add edx, edx
mov eax, dword [ebp - 8]
call fcn.004faeb4
mov dl, 1
mov eax, dword [0x4f7c2c]
call fcn.004f8444
mov edx, dword [0x502b58]
mov dword [edx], eax
mov eax, 0x4dee58
mov edx, dword [0x502b58]
mov edx, dword [edx]
mov dword [edx + 0xc], eax
mov eax, 0x4df070
mov edx, dword [0x502b58]
mov edx, dword [edx]
mov dword [edx + 0x10], eax
mov eax, 0x4df07c
mov edx, dword [0x502b58]
mov edx, dword [edx]
mov dword [edx + 0x14], eax
mov eax, 0x4df088
mov edx, dword [0x502b58]
mov edx, dword [edx]
mov dword [edx + 0x18], eax
mov ecx, dword [0x502bf4]
mov ecx, dword [ecx]
mov eax, dword [0x502b58]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.004f853c
xor edx, edx
push ebp
push 0x4fb7f1
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4fb724
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x502b58]
cmp dword [eax], 0
je 0x4fb437
xor edx, edx
push ebp
push 0x4fb40b
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 [0x502b58]
mov eax, dword [eax]
mov edx, 0x4fbbc4
call fcn.004f86f8
pop dword fs:[0]
add esp, 8
jmp 0x4fb424
test al, al
jne 0x4fb437
mov eax, 0x4fbc54
call fcn.004b2300
call fcn.00411820
cmp byte [0x50a16f], 0
jne 0x4fb471
cmp byte [0x50a170], 0
jne 0x4fb471
push 0x124
push 1
push 6
mov eax, dword [0x502954]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50a168]
mov al, 0x27
call fcn.004fa004
cmp eax, 6
je 0x4fb471
call fcn.00411820
xor edx, edx
xor eax, eax
call fcn.004fa76c
jmp 0x4fb49f
push 0x31
push 1
push 2
mov eax, dword [0x502954]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50a168]
mov al, 0xbd
call fcn.004fa004
dec eax
je 0x4fb49f
call fcn.00411820
mov eax, dword [0x502954]
call fcn.004b56dc
test al, al
jne 0x4fb47c
jmp 0x4fb4c2
push 0xa
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x502e08]
mov eax, dword [eax]
call fcn.0047be7c
mov eax, dword [0x502fe8]
cmp byte [eax], 0
jne 0x4fb4af
mov eax, dword [0x5029a0]
mov byte [eax], 0
lea ecx, [ebp - 0x48]
mov eax, dword [0x502954]
mov edx, dword [eax + 0x18]
mov al, 0xa7
call fcn.004ab2a8
mov edx, dword [ebp - 0x48]
mov eax, dword [0x502e08]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.00480554
call fcn.004f9e48
xor edx, edx
mov al, 1
call fcn.004fa76c
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x28], eax
mov eax, dword [0x502954]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x24], edx
mov ecx, 0x4fa288
mov dl, 1
mov eax, dword [0x502954]
call fcn.004b64ac
mov byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x22]
mov edx, dword [0x502d30]
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, 0x4fbcbc
call fcn.004b2584
mov eax, dword [0x502954]
cmp byte [eax + 0x1c], 0
jne 0x4fb56d
mov eax, dword [0x502954]
test byte [eax + 0x1d], 8
jne 0x4fb56d
xor eax, eax
jmp 0x4fb56f
mov al, 1
mov byte [ebp - 0x23], al
mov eax, dword [0x502b58]
cmp dword [eax], 0
je 0x4fb60d
mov eax, dword [0x502b58]
mov eax, dword [eax]
mov edx, 0x4fbce8
call fcn.004f85e8
test al, al
je 0x4fb60d
cmp byte [ebp - 0x23], 0
jne 0x4fb603
xor eax, eax
push ebp
push 0x4fb5e8
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 [0x502b58]
mov eax, dword [eax]
mov edx, 0x4fbce8
call fcn.004f86f8
test al, al
je 0x4fb5de
mov byte [ebp - 0x23], 1
mov eax, 0x4fbd0c
call fcn.004b2300
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fb60d
mov eax, 0x4fbdec
call fcn.004b2300
movzx eax, byte [ebp - 0x23]
mov edx, dword [0x502d30]
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, 0x4fbea4
call fcn.004b2584
cmp byte [0x50a170], 0
jne 0x4fb668
mov eax, dword [0x502e08]
mov eax, dword [eax]
call fcn.0047be7c
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x28]
cmp eax, 0x3e8
jae 0x4fb668
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x4fb639
mov eax, dword [0x502aac]
mov eax, dword [eax]
mov edx, dword [0x502aac]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00404098
mov dl, 1
mov al, 2
call fcn.004fa76c
cmp byte [ebp - 0x23], 0
jne 0x4fb6c8
cmp byte [0x50a16f], 0
jne 0x4fb711
cmp byte [0x50a170], 0
jne 0x4fb711
push 0x10040
push 1
push 1
mov eax, dword [0x502954]
mov edx, dword [eax + 0x18]
movzx eax, byte [ebp - 0x22]
movzx eax, byte [eax + 0x502960]
mov ecx, dword [0x50a168]
call fcn.004fa004
jmp 0x4fb711
cmp byte [0x50a171], 0
jne 0x4fb701
cmp byte [0x50a170], 0
jne 0x4fb6fd
push 0x10044
push 1
push 6
mov eax, dword [0x502954]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50a168]
mov al, 0xbb
call fcn.004fa004
cmp eax, 6
jne 0x4fb701
mov byte [ebp - 0x21], 1
cmp byte [ebp - 0x21], 0
jne 0x4fb711
mov eax, 0x4fbee8
call fcn.004b2300
mov dl, 1
mov al, 3
call fcn.004fa76c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fb738
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fb7fb
xor edx, edx
push ebp
push 0x4fb773
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x502aac]
mov eax, dword [eax]
mov edx, dword [0x502aac]
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 0x4fb782
mov eax, dword [0x502b58]
cmp dword [eax], 0
je 0x4fb7de
xor eax, eax
push ebp
push 0x4fb7c5
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 [0x502b58]
mov eax, dword [eax]
mov edx, 0x4fbf44
call fcn.004f8644
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fb7de
mov eax, dword [0x502e08]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.004805e4
ret