Function at 0x4facfc
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 0x4fb634
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x50a170], 0
je 0x4fad4d
xor eax, eax
call fcn.004df0e8
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 0x4fb575
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x50a180], 0
je 0x4fad8b
mov dl, 1
mov eax, dword [0x50a180]
call fcn.004b1498
cmp byte [0x50a16e], 0
je 0x4fadf8
xor eax, eax
push ebp
push 0x4fadcb
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x50a174], 0
jne 0x4fadb7
mov eax, 0x4fb650
call fcn.004b1f80
jmp 0x4fadc1
mov eax, dword [0x50a174]
call fcn.004b2164
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fadf8
mov eax, 0x4fb6b8
call fcn.004b21c0
lea eax, [ebp - 0x2c]
mov ecx, dword [0x50a158]
mov edx, 0x4fb71c
call fcn.00406904
mov eax, dword [ebp - 0x2c]
call fcn.004b21c0
lea eax, [ebp - 0x30]
mov ecx, dword [0x50a15c]
mov edx, 0x4fb75c
call fcn.00406904
mov eax, dword [ebp - 0x30]
call fcn.004b21c0
lea eax, [ebp - 0x38]
call fcn.0047ec50
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x4fb788
call fcn.00406904
mov eax, dword [ebp - 0x34]
call fcn.004b21c0
call fcn.004df1b0
xor eax, eax
call fcn.004fa628
mov dword [0x50a164], eax
mov dl, 1
mov eax, dword [0x4f9950]
call fcn.004b507c
mov dword [0x502954], eax
mov ecx, dword [0x50a15c]
mov edx, dword [0x50a164]
mov eax, dword [0x502954]
call fcn.004b7ca0
lea ecx, [ebp - 0x3c]
mov eax, dword [0x502954]
mov edx, dword [eax + 0x18]
mov al, 0xb7
call fcn.004ab168
mov edx, dword [ebp - 0x3c]
mov eax, 0x50a168
call fcn.00406448
mov eax, dword [0x502954]
test byte [eax + 0x1d], 0x20
je 0x4faef3
mov eax, dword [0x502a7c]
cmp byte [eax], 0
jne 0x4faef3
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.004dfa98
call fcn.00411820
mov eax, dword [0x502954]
test byte [eax + 0x1d], 1
je 0x4faf36
call fcn.0047fd00
test al, al
jne 0x4faf36
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.004dfa98
call fcn.00411820
mov eax, dword [0x50a164]
xor edx, edx
mov dword [0x50a164], edx
call fcn.00404098
mov al, 2
call fcn.004fa628
mov dword [0x50a164], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov ecx, 0x85050300
mov dx, 0x20
mov eax, dword [0x502954]
call fcn.004b5548
test al, al
jne 0x4faf7b
mov eax, 0x4fb7c8
call fcn.004ad10c
cmp dword [0x50a180], 0
je 0x4faf96
lea eax, [ebp - 4]
mov edx, dword [0x502ce8]
mov edx, dword [edx]
call fcn.0040532c
jmp 0x4fafa1
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.004fac9c
mov eax, dword [0x502954]
cmp byte [eax + 0x10], 0
je 0x4fafc9
mov eax, dword [0x502a7c]
cmp byte [eax], 0
jne 0x4fafc0
mov eax, 0x4fb860
call fcn.004ad10c
mov al, 1
call fcn.004dff88
jmp 0x4fafd0
xor eax, eax
call fcn.004dff88
call fcn.004dd25c
cmp dword [ebp - 4], 0
je 0x4fb0d8
call fcn.004dcc38
call fcn.004dd594
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 0x4fb061
sub eax, 4
mov eax, dword [eax]
mov edx, eax
add edx, edx
mov eax, dword [ebp - 8]
call fcn.004fabe4
mov dl, 1
mov eax, dword [0x4f795c]
call fcn.004f8174
mov edx, dword [0x502b58]
mov dword [edx], eax
mov eax, 0x4deb88
mov edx, dword [0x502b58]
mov edx, dword [edx]
mov dword [edx + 0xc], eax
mov eax, 0x4deda0
mov edx, dword [0x502b58]
mov edx, dword [edx]
mov dword [edx + 0x10], eax
mov eax, 0x4dedac
mov edx, dword [0x502b58]
mov edx, dword [edx]
mov dword [edx + 0x14], eax
mov eax, 0x4dedb8
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.004f826c
xor edx, edx
push ebp
push 0x4fb521
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4fb454
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x502b58]
cmp dword [eax], 0
je 0x4fb167
xor edx, edx
push ebp
push 0x4fb13b
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, 0x4fb8f4
call fcn.004f8428
pop dword fs:[0]
add esp, 8
jmp 0x4fb154
test al, al
jne 0x4fb167
mov eax, 0x4fb984
call fcn.004b21c0
call fcn.00411820
cmp byte [0x50a16f], 0
jne 0x4fb1a1
cmp byte [0x50a170], 0
jne 0x4fb1a1
push 0x124
push 1
push 6
mov eax, dword [0x502954]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50a168]
mov al, 0x27
call fcn.004f9d34
cmp eax, 6
je 0x4fb1a1
call fcn.00411820
xor edx, edx
xor eax, eax
call fcn.004fa49c
jmp 0x4fb1cf
push 0x31
push 1
push 2
mov eax, dword [0x502954]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50a168]
mov al, 0xbd
call fcn.004f9d34
dec eax
je 0x4fb1cf
call fcn.00411820
mov eax, dword [0x502954]
call fcn.004b559c
test al, al
jne 0x4fb1ac
jmp 0x4fb1f2
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 0x4fb1df
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.004ab168
mov edx, dword [ebp - 0x48]
mov eax, dword [0x502e08]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.00480554
call fcn.004f9b78
xor edx, edx
mov al, 1
call fcn.004fa49c
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, 0x4f9fb8
mov dl, 1
mov eax, dword [0x502954]
call fcn.004b636c
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, 0x4fb9ec
call fcn.004b2444
mov eax, dword [0x502954]
cmp byte [eax + 0x1c], 0
jne 0x4fb29d
mov eax, dword [0x502954]
test byte [eax + 0x1d], 8
jne 0x4fb29d
xor eax, eax
jmp 0x4fb29f
mov al, 1
mov byte [ebp - 0x23], al
mov eax, dword [0x502b58]
cmp dword [eax], 0
je 0x4fb33d
mov eax, dword [0x502b58]
mov eax, dword [eax]
mov edx, 0x4fba18
call fcn.004f8318
test al, al
je 0x4fb33d
cmp byte [ebp - 0x23], 0
jne 0x4fb333
xor eax, eax
push ebp
push 0x4fb318
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, 0x4fba18
call fcn.004f8428
test al, al
je 0x4fb30e
mov byte [ebp - 0x23], 1
mov eax, 0x4fba3c
call fcn.004b21c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fb33d
mov eax, 0x4fbb1c
call fcn.004b21c0
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, 0x4fbbd4
call fcn.004b2444
cmp byte [0x50a170], 0
jne 0x4fb398
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 0x4fb398
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x4fb369
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.004fa49c
cmp byte [ebp - 0x23], 0
jne 0x4fb3f8
cmp byte [0x50a16f], 0
jne 0x4fb441
cmp byte [0x50a170], 0
jne 0x4fb441
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.004f9d34
jmp 0x4fb441
cmp byte [0x50a171], 0
jne 0x4fb431
cmp byte [0x50a170], 0
jne 0x4fb42d
push 0x10044
push 1
push 6
mov eax, dword [0x502954]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50a168]
mov al, 0xbb
call fcn.004f9d34
cmp eax, 6
jne 0x4fb431
mov byte [ebp - 0x21], 1
cmp byte [ebp - 0x21], 0
jne 0x4fb441
mov eax, 0x4fbc18
call fcn.004b21c0
mov dl, 1
mov al, 3
call fcn.004fa49c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fb468
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fb52b
xor edx, edx
push ebp
push 0x4fb4a3
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 0x4fb4b2
mov eax, dword [0x502b58]
cmp dword [eax], 0
je 0x4fb50e
xor eax, eax
push ebp
push 0x4fb4f5
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, 0x4fbc74
call fcn.004f8374
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fb50e
mov eax, dword [0x502e08]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.004805e4
ret