Function at 0x4fec14
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 0x4ff54c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x50e184], 0
je 0x4fec65
xor eax, eax
call fcn.004e10f4
mov byte [ebp - 0x21], 0
mov eax, dword [0x506da0]
mov eax, dword [eax]
shr eax, 0x10
cmp eax, 0x600
mov eax, dword [0x5069f4]
setae byte [eax]
xor edx, edx
push ebp
push 0x4ff48d
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x50e194], 0
je 0x4feca3
mov dl, 1
mov eax, dword [0x50e194]
call fcn.004b1674
cmp byte [0x50e182], 0
je 0x4fed10
xor eax, eax
push ebp
push 0x4fece3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x50e188], 0
jne 0x4feccf
mov eax, 0x4ff568
call fcn.004b215c
jmp 0x4fecd9
mov eax, dword [0x50e188]
call fcn.004b2340
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fed10
mov eax, 0x4ff5d0
call fcn.004b239c
lea eax, [ebp - 0x2c]
mov ecx, dword [0x50e16c]
mov edx, 0x4ff648
call fcn.00406914
mov eax, dword [ebp - 0x2c]
call fcn.004b239c
lea eax, [ebp - 0x30]
mov ecx, dword [0x50e170]
mov edx, 0x4ff688
call fcn.00406914
mov eax, dword [ebp - 0x30]
call fcn.004b239c
lea eax, [ebp - 0x38]
call fcn.0047ff30
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x4ff6b4
call fcn.00406914
mov eax, dword [ebp - 0x34]
call fcn.004b239c
call fcn.004e11bc
xor eax, eax
call fcn.004fe540
mov dword [0x50e178], eax
mov dl, 1
mov eax, dword [0x4fd868]
call fcn.004b5258
mov dword [0x5069a4], eax
mov ecx, dword [0x50e170]
mov edx, dword [0x50e178]
mov eax, dword [0x5069a4]
call fcn.004b7e78
lea ecx, [ebp - 0x3c]
mov eax, dword [0x5069a4]
mov edx, dword [eax + 0x18]
mov al, 0xb7
call fcn.00483130
mov edx, dword [ebp - 0x3c]
mov eax, 0x50e17c
call fcn.00406448
mov eax, dword [0x5069a4]
test byte [eax + 0x1d], 0x20
je 0x4fee0b
mov eax, dword [0x506ad4]
cmp byte [eax], 0
jne 0x4fee0b
push 1
push 1
mov eax, dword [0x50e17c]
call fcn.004064d4
push eax
mov eax, dword [0x506e7c]
mov eax, dword [eax + 0x2fc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004e1aa4
call fcn.00411e30
mov eax, dword [0x5069a4]
test byte [eax + 0x1d], 1
je 0x4fee4e
call fcn.00480fe0
test al, al
jne 0x4fee4e
push 1
push 1
mov eax, dword [0x50e17c]
call fcn.004064d4
push eax
mov eax, dword [0x506e7c]
mov eax, dword [eax + 0x1dc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004e1aa4
call fcn.00411e30
mov eax, dword [0x50e178]
xor edx, edx
mov dword [0x50e178], edx
call fcn.00404098
mov al, 2
call fcn.004fe540
mov dword [0x50e178], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov ecx, 0x85050900
mov dx, 0x20
mov eax, dword [0x5069a4]
call fcn.004b5724
test al, al
jne 0x4fee93
mov eax, 0x4ff6f4
call fcn.004858a8
cmp dword [0x50e194], 0
je 0x4feeae
lea eax, [ebp - 4]
mov edx, dword [0x506d4c]
mov edx, dword [edx]
call fcn.0040532c
jmp 0x4feeb9
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.004febb4
mov eax, dword [0x5069a4]
cmp byte [eax + 0x10], 0
je 0x4feee1
mov eax, dword [0x506ad4]
cmp byte [eax], 0
jne 0x4feed8
mov eax, 0x4ff78c
call fcn.004858a8
mov al, 1
call fcn.004e1f94
jmp 0x4feee8
xor eax, eax
call fcn.004e1f94
call fcn.004df2ac
cmp dword [ebp - 4], 0
je 0x4feff0
call fcn.004dec88
call fcn.004df5e4
mov eax, dword [0x506a04]
mov edx, dword [0x50e16c]
call fcn.00406448
mov eax, dword [0x506de0]
mov edx, dword [0x5069a4]
mov edx, dword [edx + 0x14]
call fcn.00406448
movzx eax, byte [0x50e183]
or al, byte [0x50e184]
mov edx, dword [0x506b64]
mov byte [edx], al
mov eax, dword [0x506fd8]
mov edx, dword [ebp - 0x18]
call fcn.00406448
mov eax, dword [0x506c8c]
mov edx, dword [ebp - 0x14]
call fcn.00406448
mov eax, dword [0x506af0]
mov edx, dword [ebp - 0x10]
call fcn.00406448
mov eax, dword [0x506b90]
mov edx, dword [ebp - 0xc]
call fcn.00406448
mov eax, dword [ebp - 8]
test eax, eax
je 0x4fef79
sub eax, 4
mov eax, dword [eax]
mov edx, eax
add edx, edx
mov eax, dword [ebp - 8]
call fcn.004feafc
mov dl, 1
mov eax, dword [0x4fa334]
call fcn.004fab4c
mov edx, dword [0x506bb4]
mov dword [edx], eax
mov eax, 0x4e0b94
mov edx, dword [0x506bb4]
mov edx, dword [edx]
mov dword [edx + 0xc], eax
mov eax, 0x4e0dac
mov edx, dword [0x506bb4]
mov edx, dword [edx]
mov dword [edx + 0x10], eax
mov eax, 0x4e0db8
mov edx, dword [0x506bb4]
mov edx, dword [edx]
mov dword [edx + 0x14], eax
mov eax, 0x4e0dc4
mov edx, dword [0x506bb4]
mov edx, dword [edx]
mov dword [edx + 0x18], eax
mov ecx, dword [0x506c50]
mov ecx, dword [ecx]
mov eax, dword [0x506bb4]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.004fac44
xor edx, edx
push ebp
push 0x4ff439
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4ff36c
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x506bb4]
cmp dword [eax], 0
je 0x4ff07f
xor edx, edx
push ebp
push 0x4ff053
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 [0x506bb4]
mov eax, dword [eax]
mov edx, 0x4ff820
call fcn.004fae00
pop dword fs:[0]
add esp, 8
jmp 0x4ff06c
test al, al
jne 0x4ff07f
mov eax, 0x4ff8b0
call fcn.004b239c
call fcn.00411e30
cmp byte [0x50e183], 0
jne 0x4ff0b9
cmp byte [0x50e184], 0
jne 0x4ff0b9
push 0x124
push 1
push 6
mov eax, dword [0x5069a4]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50e17c]
mov al, 0x27
call fcn.004fdc4c
cmp eax, 6
je 0x4ff0b9
call fcn.00411e30
xor edx, edx
xor eax, eax
call fcn.004fe3b4
jmp 0x4ff0e7
push 0x31
push 1
push 2
mov eax, dword [0x5069a4]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50e17c]
mov al, 0xbd
call fcn.004fdc4c
dec eax
je 0x4ff0e7
call fcn.00411e30
mov eax, dword [0x5069a4]
call fcn.004b5778
test al, al
jne 0x4ff0c4
jmp 0x4ff10a
push 0xa
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x506e6c]
mov eax, dword [eax]
call fcn.0047c8bc
mov eax, dword [0x507058]
cmp byte [eax], 0
jne 0x4ff0f7
mov eax, dword [0x5069f4]
mov byte [eax], 0
lea ecx, [ebp - 0x48]
mov eax, dword [0x5069a4]
mov edx, dword [eax + 0x18]
mov al, 0xa7
call fcn.00483130
mov edx, dword [ebp - 0x48]
mov eax, dword [0x506e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.00481834
call fcn.004fda90
xor edx, edx
mov al, 1
call fcn.004fe3b4
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x28], eax
mov eax, dword [0x5069a4]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x24], edx
mov ecx, 0x4fded0
mov dl, 1
mov eax, dword [0x5069a4]
call fcn.004b6548
mov byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x22]
mov edx, dword [0x506d94]
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, 0x4ff918
call fcn.004b2620
mov eax, dword [0x5069a4]
cmp byte [eax + 0x1c], 0
jne 0x4ff1b5
mov eax, dword [0x5069a4]
test byte [eax + 0x1d], 8
jne 0x4ff1b5
xor eax, eax
jmp 0x4ff1b7
mov al, 1
mov byte [ebp - 0x23], al
mov eax, dword [0x506bb4]
cmp dword [eax], 0
je 0x4ff255
mov eax, dword [0x506bb4]
mov eax, dword [eax]
mov edx, 0x4ff944
call fcn.004facf0
test al, al
je 0x4ff255
cmp byte [ebp - 0x23], 0
jne 0x4ff24b
xor eax, eax
push ebp
push 0x4ff230
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 [0x506bb4]
mov eax, dword [eax]
mov edx, 0x4ff944
call fcn.004fae00
test al, al
je 0x4ff226
mov byte [ebp - 0x23], 1
mov eax, 0x4ff968
call fcn.004b239c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ff255
mov eax, 0x4ffa48
call fcn.004b239c
movzx eax, byte [ebp - 0x23]
mov edx, dword [0x506d94]
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, 0x4ffb00
call fcn.004b2620
cmp byte [0x50e184], 0
jne 0x4ff2b0
mov eax, dword [0x506e6c]
mov eax, dword [eax]
call fcn.0047c8bc
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x28]
cmp eax, 0x3e8
jae 0x4ff2b0
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x4ff281
mov eax, dword [0x506b04]
mov eax, dword [eax]
mov edx, dword [0x506b04]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00404098
mov dl, 1
mov al, 2
call fcn.004fe3b4
cmp byte [ebp - 0x23], 0
jne 0x4ff310
cmp byte [0x50e183], 0
jne 0x4ff359
cmp byte [0x50e184], 0
jne 0x4ff359
push 0x10040
push 1
push 1
mov eax, dword [0x5069a4]
mov edx, dword [eax + 0x18]
movzx eax, byte [ebp - 0x22]
movzx eax, byte [eax + 0x5069b0]
mov ecx, dword [0x50e17c]
call fcn.004fdc4c
jmp 0x4ff359
cmp byte [0x50e185], 0
jne 0x4ff349
cmp byte [0x50e184], 0
jne 0x4ff345
push 0x10024
push 1
push 6
mov eax, dword [0x5069a4]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50e17c]
mov al, 0xbb
call fcn.004fdc4c
cmp eax, 6
jne 0x4ff349
mov byte [ebp - 0x21], 1
cmp byte [ebp - 0x21], 0
jne 0x4ff359
mov eax, 0x4ffb44
call fcn.004b239c
mov dl, 1
mov al, 3
call fcn.004fe3b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ff380
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ff443
xor edx, edx
push ebp
push 0x4ff3bb
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x506b04]
mov eax, dword [eax]
mov edx, dword [0x506b04]
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 0x4ff3ca
mov eax, dword [0x506bb4]
cmp dword [eax], 0
je 0x4ff426
xor eax, eax
push ebp
push 0x4ff40d
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 [0x506bb4]
mov eax, dword [eax]
mov edx, 0x4ffba0
call fcn.004fad4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ff426
mov eax, dword [0x506e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.004818c4
ret