Function at 0x4fe728
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 0x4ff080
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x50d180], 0
je 0x4fe779
xor eax, eax
call fcn.004e1c6c
mov byte [ebp - 0x21], 0
mov eax, dword [0x505d90]
mov eax, dword [eax]
shr eax, 0x10
cmp eax, 0x600
mov eax, dword [0x5059ec]
setae byte [eax]
xor edx, edx
push ebp
push 0x4fefc1
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x50d190], 0
je 0x4fe7b7
mov dl, 1
mov eax, dword [0x50d190]
call fcn.004b220c
cmp byte [0x50d17e], 0
je 0x4fe824
xor eax, eax
push ebp
push 0x4fe7f7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x50d184], 0
jne 0x4fe7e3
mov eax, 0x4ff09c
call fcn.004b2cf4
jmp 0x4fe7ed
mov eax, dword [0x50d184]
call fcn.004b2ed8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fe824
mov eax, 0x4ff104
call fcn.004b2f34
lea eax, [ebp - 0x2c]
mov ecx, dword [0x50d168]
mov edx, 0x4ff168
call fcn.00406914
mov eax, dword [ebp - 0x2c]
call fcn.004b2f34
lea eax, [ebp - 0x30]
mov ecx, dword [0x50d16c]
mov edx, 0x4ff1a8
call fcn.00406914
mov eax, dword [ebp - 0x30]
call fcn.004b2f34
lea eax, [ebp - 0x38]
call fcn.0047f214
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x4ff1d4
call fcn.00406914
mov eax, dword [ebp - 0x34]
call fcn.004b2f34
call fcn.004e1d34
xor eax, eax
call fcn.004fe054
mov dword [0x50d174], eax
mov dl, 1
mov eax, dword [0x4fd37c]
call fcn.004b5df0
mov dword [0x50599c], eax
mov ecx, dword [0x50d16c]
mov edx, dword [0x50d174]
mov eax, dword [0x50599c]
call fcn.004b8a14
lea ecx, [ebp - 0x3c]
mov eax, dword [0x50599c]
mov edx, dword [eax + 0x18]
mov al, 0xb7
call fcn.004abea8
mov edx, dword [ebp - 0x3c]
mov eax, 0x50d178
call fcn.00406448
mov eax, dword [0x50599c]
test byte [eax + 0x1d], 0x20
je 0x4fe91f
mov eax, dword [0x505acc]
cmp byte [eax], 0
jne 0x4fe91f
push 1
push 1
mov eax, dword [0x50d178]
call fcn.004064d4
push eax
mov eax, dword [0x505e6c]
mov eax, dword [eax + 0x2fc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004e261c
call fcn.0041198c
mov eax, dword [0x50599c]
test byte [eax + 0x1d], 1
je 0x4fe962
call fcn.004802c4
test al, al
jne 0x4fe962
push 1
push 1
mov eax, dword [0x50d178]
call fcn.004064d4
push eax
mov eax, dword [0x505e6c]
mov eax, dword [eax + 0x1dc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004e261c
call fcn.0041198c
mov eax, dword [0x50d174]
xor edx, edx
mov dword [0x50d174], edx
call fcn.00404098
mov al, 2
call fcn.004fe054
mov dword [0x50d174], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov ecx, 0x85060100
mov dx, 0x20
mov eax, dword [0x50599c]
call fcn.004b62bc
test al, al
jne 0x4fe9a7
mov eax, 0x4ff214
call fcn.004ade4c
cmp dword [0x50d190], 0
je 0x4fe9c2
lea eax, [ebp - 4]
mov edx, dword [0x505d3c]
mov edx, dword [edx]
call fcn.0040532c
jmp 0x4fe9cd
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.004fe6c8
mov eax, dword [0x50599c]
cmp byte [eax + 0x10], 0
je 0x4fe9f5
mov eax, dword [0x505acc]
cmp byte [eax], 0
jne 0x4fe9ec
mov eax, 0x4ff2ac
call fcn.004ade4c
mov al, 1
call fcn.004e2b0c
jmp 0x4fe9fc
xor eax, eax
call fcn.004e2b0c
call fcn.004dfe14
cmp dword [ebp - 4], 0
je 0x4feb24
call fcn.004df7f0
call fcn.004e014c
mov eax, dword [0x5059fc]
mov edx, dword [0x50d168]
call fcn.00406448
mov eax, dword [0x505dd0]
mov edx, dword [0x50599c]
mov edx, dword [edx + 0x14]
call fcn.00406448
movzx eax, byte [0x50d17f]
or al, byte [0x50d180]
mov edx, dword [0x505b58]
mov byte [edx], al
mov eax, dword [0x505fc8]
mov edx, dword [ebp - 0x18]
call fcn.00406448
mov eax, dword [0x505c84]
mov edx, dword [ebp - 0x14]
call fcn.00406448
mov eax, dword [0x505ae4]
mov edx, dword [ebp - 0x10]
call fcn.00406448
mov eax, dword [0x505b84]
mov edx, dword [ebp - 0xc]
call fcn.00406448
mov eax, dword [ebp - 8]
test eax, eax
je 0x4fea8d
sub eax, 4
mov eax, dword [eax]
mov edx, eax
add edx, edx
mov eax, dword [ebp - 8]
call fcn.004fe610
mov dl, 1
mov eax, dword [0x4fafb4]
call fcn.004fbb58
mov edx, dword [0x505ba8]
mov dword [edx], eax
mov eax, 0x4e16fc
mov edx, dword [0x505ba8]
mov edx, dword [edx]
mov dword [edx + 0xc], eax
mov eax, 0x4e1704
mov edx, dword [0x505ba8]
mov edx, dword [edx]
mov dword [edx + 0x10], eax
mov eax, 0x4e170c
mov edx, dword [0x505ba8]
mov edx, dword [edx]
mov dword [edx + 0x14], eax
mov eax, 0x4e1924
mov edx, dword [0x505ba8]
mov edx, dword [edx]
mov dword [edx + 0x18], eax
mov eax, 0x4e1930
mov edx, dword [0x505ba8]
mov edx, dword [edx]
mov dword [edx + 0x1c], eax
mov eax, 0x4e193c
mov edx, dword [0x505ba8]
mov edx, dword [edx]
mov dword [edx + 0x20], eax
mov ecx, dword [0x505c48]
mov ecx, dword [ecx]
mov eax, dword [0x505ba8]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.004fbc50
xor edx, edx
push ebp
push 0x4fef6d
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4feea0
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x505ba8]
cmp dword [eax], 0
je 0x4febb3
xor edx, edx
push ebp
push 0x4feb87
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 [0x505ba8]
mov eax, dword [eax]
mov edx, 0x4ff340
call fcn.004fbe0c
pop dword fs:[0]
add esp, 8
jmp 0x4feba0
test al, al
jne 0x4febb3
mov eax, 0x4ff3d0
call fcn.004b2f34
call fcn.0041198c
cmp byte [0x50d17f], 0
jne 0x4febed
cmp byte [0x50d180], 0
jne 0x4febed
push 0x124
push 1
push 6
mov eax, dword [0x50599c]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50d178]
mov al, 0x27
call fcn.004fd760
cmp eax, 6
je 0x4febed
call fcn.0041198c
xor edx, edx
xor eax, eax
call fcn.004fdec8
jmp 0x4fec1b
push 0x31
push 1
push 2
mov eax, dword [0x50599c]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50d178]
mov al, 0xbd
call fcn.004fd760
dec eax
je 0x4fec1b
call fcn.0041198c
mov eax, dword [0x50599c]
call fcn.004b6310
test al, al
jne 0x4febf8
jmp 0x4fec3e
push 0xa
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x505e5c]
mov eax, dword [eax]
call fcn.0047c440
mov eax, dword [0x506044]
cmp byte [eax], 0
jne 0x4fec2b
mov eax, dword [0x5059ec]
mov byte [eax], 0
lea ecx, [ebp - 0x48]
mov eax, dword [0x50599c]
mov edx, dword [eax + 0x18]
mov al, 0xa7
call fcn.004abea8
mov edx, dword [ebp - 0x48]
mov eax, dword [0x505e5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.00480b18
call fcn.004fd5a4
xor edx, edx
mov al, 1
call fcn.004fdec8
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x28], eax
mov eax, dword [0x50599c]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x24], edx
mov ecx, 0x4fd9e4
mov dl, 1
mov eax, dword [0x50599c]
call fcn.004b70e0
mov byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x22]
mov edx, dword [0x505d84]
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, 0x4ff438
call fcn.004b31b8
mov eax, dword [0x50599c]
cmp byte [eax + 0x1c], 0
jne 0x4fece9
mov eax, dword [0x50599c]
test byte [eax + 0x1d], 8
jne 0x4fece9
xor eax, eax
jmp 0x4feceb
mov al, 1
mov byte [ebp - 0x23], al
mov eax, dword [0x505ba8]
cmp dword [eax], 0
je 0x4fed89
mov eax, dword [0x505ba8]
mov eax, dword [eax]
mov edx, 0x4ff464
call fcn.004fbcfc
test al, al
je 0x4fed89
cmp byte [ebp - 0x23], 0
jne 0x4fed7f
xor eax, eax
push ebp
push 0x4fed64
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 [0x505ba8]
mov eax, dword [eax]
mov edx, 0x4ff464
call fcn.004fbe0c
test al, al
je 0x4fed5a
mov byte [ebp - 0x23], 1
mov eax, 0x4ff488
call fcn.004b2f34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fed89
mov eax, 0x4ff568
call fcn.004b2f34
movzx eax, byte [ebp - 0x23]
mov edx, dword [0x505d84]
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, 0x4ff620
call fcn.004b31b8
cmp byte [0x50d180], 0
jne 0x4fede4
mov eax, dword [0x505e5c]
mov eax, dword [eax]
call fcn.0047c440
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x28]
cmp eax, 0x3e8
jae 0x4fede4
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x4fedb5
mov eax, dword [0x505af8]
mov eax, dword [eax]
mov edx, dword [0x505af8]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00404098
mov dl, 1
mov al, 2
call fcn.004fdec8
cmp byte [ebp - 0x23], 0
jne 0x4fee44
cmp byte [0x50d17f], 0
jne 0x4fee8d
cmp byte [0x50d180], 0
jne 0x4fee8d
push 0x10040
push 1
push 1
mov eax, dword [0x50599c]
mov edx, dword [eax + 0x18]
movzx eax, byte [ebp - 0x22]
movzx eax, byte [eax + 0x5059a8]
mov ecx, dword [0x50d178]
call fcn.004fd760
jmp 0x4fee8d
cmp byte [0x50d181], 0
jne 0x4fee7d
cmp byte [0x50d180], 0
jne 0x4fee79
push 0x10024
push 1
push 6
mov eax, dword [0x50599c]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50d178]
mov al, 0xbb
call fcn.004fd760
cmp eax, 6
jne 0x4fee7d
mov byte [ebp - 0x21], 1
cmp byte [ebp - 0x21], 0
jne 0x4fee8d
mov eax, 0x4ff664
call fcn.004b2f34
mov dl, 1
mov al, 3
call fcn.004fdec8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4feeb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fef77
xor edx, edx
push ebp
push 0x4feeef
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x505af8]
mov eax, dword [eax]
mov edx, dword [0x505af8]
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 0x4feefe
mov eax, dword [0x505ba8]
cmp dword [eax], 0
je 0x4fef5a
xor eax, eax
push ebp
push 0x4fef41
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 [0x505ba8]
mov eax, dword [eax]
mov edx, 0x4ff6c0
call fcn.004fbd58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fef5a
mov eax, dword [0x505e5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.00480ba8
ret