Function at 0x4f74c0
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 [0x401094]
call fcn.004059c8
xor eax, eax
push ebp
push 0x4f7e76
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x507148], 0
je 0x4f7511
xor eax, eax
call fcn.004ddd50
mov byte [ebp - 0x21], 0
mov eax, dword [0x500204]
mov eax, dword [eax]
shr eax, 0x10
cmp eax, 0x600
mov eax, dword [0x4ffe44]
setae byte [eax]
xor edx, edx
push ebp
push 0x4f7dba
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x507158], 0
je 0x4f754f
mov dl, 1
mov eax, dword [0x507158]
call fcn.004b587c
cmp byte [0x507146], 0
je 0x4f75bc
xor eax, eax
push ebp
push 0x4f758f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x50714c], 0
jne 0x4f757b
mov eax, 0x4f7e8c
call fcn.004b6264
jmp 0x4f7585
mov eax, dword [0x50714c]
call fcn.004b641c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f75bc
mov eax, 0x4f7ec8
call fcn.004b6478
lea eax, [ebp - 0x2c]
mov ecx, dword [0x507130]
mov edx, 0x4f7efc
call fcn.00405188
mov eax, dword [ebp - 0x2c]
call fcn.004b6478
lea eax, [ebp - 0x30]
mov ecx, dword [0x507134]
mov edx, 0x4f7f20
call fcn.00405188
mov eax, dword [ebp - 0x30]
call fcn.004b6478
lea eax, [ebp - 0x38]
call fcn.0046fca8
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x4f7f38
call fcn.00405188
mov eax, dword [ebp - 0x34]
call fcn.004b6478
call fcn.004dddfc
xor eax, eax
call fcn.004f6e70
mov dword [0x50713c], eax
mov dl, 1
mov eax, dword [0x4f6374]
call fcn.004b8e90
mov dword [0x4ffe00], eax
mov ecx, dword [0x507134]
mov edx, dword [0x50713c]
mov eax, dword [0x4ffe00]
call fcn.004bb4c4
lea ecx, [ebp - 0x3c]
mov eax, dword [0x4ffe00]
mov edx, dword [eax + 0x18]
mov al, 0xab
call fcn.004b10a8
mov edx, dword [ebp - 0x3c]
mov eax, 0x507140
call fcn.00404ec4
mov eax, dword [0x4ffe00]
test byte [eax + 0x1d], 0x20
je 0x4f76b7
mov eax, dword [0x4fff2c]
cmp byte [eax], 0
jne 0x4f76b7
push 1
push 1
mov eax, dword [0x507140]
call fcn.00405300
push eax
mov eax, dword [0x5002dc]
mov eax, dword [eax + 0x2cc]
call fcn.00405300
mov ecx, 0x30
pop edx
call fcn.004de4f4
call fcn.0040da98
mov eax, dword [0x4ffe00]
test byte [eax + 0x1d], 1
je 0x4f76fa
call fcn.00470c28
test al, al
jne 0x4f76fa
push 1
push 1
mov eax, dword [0x507140]
call fcn.00405300
push eax
mov eax, dword [0x5002dc]
mov eax, dword [eax + 0x1bc]
call fcn.00405300
mov ecx, 0x30
pop edx
call fcn.004de4f4
call fcn.0040da98
mov eax, 0x50713c
call fcn.0040f6cc
mov al, 2
call fcn.004f6e70
mov dword [0x50713c], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov ecx, 0x5030800
mov dx, 0x20
mov eax, dword [0x4ffe00]
call fcn.004b9390
test al, al
jne 0x4f7737
mov eax, 0x4f7f5c
call fcn.004b2440
cmp dword [0x507158], 0
je 0x4f7752
lea eax, [ebp - 4]
mov edx, dword [0x5001b0]
mov edx, dword [edx]
call fcn.00404f08
jmp 0x4f775d
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.004f7474
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4f7769
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x20
je 0x4f7778
mov eax, 0x4f7fac
call fcn.004b2440
mov edx, 0x507160
mov eax, dword [ebp - 0x1c]
mov ecx, 0x20
call fcn.00403108
mov eax, dword [0x4ffefc]
mov dword [eax], 0x507160
mov eax, dword [0x4ffe00]
cmp byte [eax + 0x10], 0
je 0x4f77bd
mov eax, dword [0x4fff2c]
cmp byte [eax], 0
jne 0x4f77b4
mov eax, 0x4f7fd4
call fcn.004b2440
mov al, 1
call fcn.004de964
jmp 0x4f77c4
xor eax, eax
call fcn.004de964
call fcn.004dc604
cmp dword [ebp - 4], 0
je 0x4f78ca
call fcn.004dc194
call fcn.004dc91c
mov eax, dword [0x4ffe54]
mov edx, dword [0x507130]
call fcn.00404ec4
mov eax, dword [0x500244]
mov edx, dword [0x4ffe00]
mov edx, dword [edx + 0x14]
call fcn.00404ec4
movzx eax, byte [0x507147]
or al, byte [0x507148]
mov edx, dword [0x4fffbc]
mov byte [edx], al
mov eax, dword [0x500454]
mov edx, dword [ebp - 0x18]
call fcn.00404ec4
mov eax, dword [0x5000f8]
mov edx, dword [ebp - 0x14]
call fcn.00404ec4
mov eax, dword [0x4fff48]
mov edx, dword [ebp - 0x10]
call fcn.00404ec4
mov eax, dword [0x4fffec]
mov edx, dword [ebp - 0xc]
call fcn.00404ec4
mov eax, dword [ebp - 8]
test eax, eax
je 0x4f7855
sub eax, 4
mov eax, dword [eax]
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.004f73bc
mov dl, 1
mov eax, dword [0x4f47b4]
call fcn.004f4e08
mov edx, dword [0x500018]
mov dword [edx], eax
mov eax, 0x4dd7e0
mov edx, dword [0x500018]
mov edx, dword [edx]
mov dword [edx + 0xc], eax
mov eax, 0x4dd9cc
mov edx, dword [0x500018]
mov edx, dword [edx]
mov dword [edx + 0x10], eax
mov eax, 0x4dd9d8
mov edx, dword [0x500018]
mov edx, dword [edx]
mov dword [edx + 0x14], eax
mov eax, 0x4dd9e4
mov edx, dword [0x500018]
mov edx, dword [edx]
mov dword [edx + 0x18], eax
mov ecx, dword [0x5000b4]
mov ecx, dword [ecx]
mov eax, dword [0x500018]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.004f4ed4
xor edx, edx
push ebp
push 0x4f7d7a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4f7cbc
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x500018]
cmp dword [eax], 0
je 0x4f7959
xor edx, edx
push ebp
push 0x4f792d
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], 0xb
lea ecx, [ebp - 0x44]
mov eax, dword [0x500018]
mov eax, dword [eax]
mov edx, 0x4f8020
call fcn.004f506c
pop dword fs:[0]
add esp, 8
jmp 0x4f7946
test al, al
jne 0x4f7959
mov eax, 0x4f8078
call fcn.004b6478
call fcn.0040da98
xor ebx, ebx
mov eax, dword [0x500018]
cmp dword [eax], 0
je 0x4f79ce
xor eax, eax
push ebp
push 0x4f79a1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push ebx
xor eax, eax
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
lea ecx, [ebp - 0x44]
mov eax, dword [0x500018]
mov eax, dword [eax]
mov edx, 0x4f80b0
call fcn.004f513c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f79ba
cmp ebx, 2
jne 0x4f79ce
mov eax, 0x4f8104
call fcn.004b6478
call fcn.0040da98
cmp byte [0x507147], 0
jne 0x4f7a0c
cmp byte [0x507148], 0
jne 0x4f7a0c
test ebx, ebx
jne 0x4f7a0c
push 0x124
push 1
push 6
mov eax, dword [0x4ffe00]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x507140]
mov al, 0x22
call fcn.004f66b8
cmp eax, 6
je 0x4f7a0c
call fcn.0040da98
xor edx, edx
xor eax, eax
call fcn.004f6d50
jmp 0x4f7a3a
push 0x31
push 1
push 2
mov eax, dword [0x4ffe00]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x507140]
mov al, 0xb1
call fcn.004f66b8
dec eax
je 0x4f7a3a
call fcn.0040da98
mov eax, dword [0x4ffe00]
call fcn.004b93e4
test al, al
jne 0x4f7a17
jmp 0x4f7a69
push 0
push 0
mov eax, dword [0x507140]
call fcn.00405300
mov edx, eax
mov eax, 0x4f812c
mov ecx, 0x10
call fcn.004de4f4
mov eax, dword [0x5004d4]
cmp byte [eax], 0
jne 0x4f7a4a
mov eax, dword [0x4ffe44]
mov byte [eax], 0
lea ecx, [ebp - 0x48]
mov eax, dword [0x4ffe00]
mov edx, dword [eax + 0x18]
mov al, 0xb5
call fcn.004b10a8
mov edx, dword [ebp - 0x48]
mov eax, dword [0x5002cc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
call fcn.004712b4
call fcn.004f6540
xor edx, edx
mov al, 1
call fcn.004f6d50
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x28], eax
mov eax, dword [0x4ffe00]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x24], edx
mov ecx, 0x4f6930
mov dl, 1
mov eax, dword [0x4ffe00]
call fcn.004b9eac
mov byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x22]
mov edx, dword [0x5001f8]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
lea edx, [ebp - 0x44]
xor ecx, ecx
mov eax, 0x4f8190
call fcn.004b66a4
mov eax, dword [0x4ffe00]
cmp byte [eax + 0x1c], 0
jne 0x4f7b11
mov eax, dword [0x4ffe00]
test byte [eax + 0x1d], 8
jne 0x4f7b11
xor eax, eax
jmp 0x4f7b13
mov al, 1
mov byte [ebp - 0x23], al
mov eax, dword [0x500018]
cmp dword [eax], 0
je 0x4f7bb1
mov eax, dword [0x500018]
mov eax, dword [eax]
mov edx, 0x4f81a8
call fcn.004f4f5c
test al, al
je 0x4f7bb1
cmp byte [ebp - 0x23], 0
jne 0x4f7ba7
xor eax, eax
push ebp
push 0x4f7b8c
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], 0xb
lea ecx, [ebp - 0x44]
mov eax, dword [0x500018]
mov eax, dword [eax]
mov edx, 0x4f81a8
call fcn.004f506c
test al, al
je 0x4f7b82
mov byte [ebp - 0x23], 1
mov eax, 0x4f81c8
call fcn.004b6478
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f7bb1
mov eax, 0x4f8240
call fcn.004b6478
movzx eax, byte [ebp - 0x23]
mov edx, dword [0x5001f8]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
lea edx, [ebp - 0x44]
xor ecx, ecx
mov eax, 0x4f82a0
call fcn.004b66a4
cmp byte [0x507148], 0
jne 0x4f7c0c
mov eax, dword [0x5002cc]
mov eax, dword [eax]
call fcn.0046cdb0
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x28]
cmp eax, 0x3e8
jae 0x4f7c0c
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x4f7bdd
mov eax, dword [0x4fff5c]
call fcn.0040f6cc
mov dl, 1
mov al, 2
call fcn.004f6d50
cmp byte [ebp - 0x23], 0
jne 0x4f7c60
cmp byte [0x507147], 0
jne 0x4f7ca9
cmp byte [0x507148], 0
jne 0x4f7ca9
push 0x10040
push 1
push 1
mov eax, dword [0x4ffe00]
mov edx, dword [eax + 0x18]
movzx eax, byte [ebp - 0x22]
movzx eax, byte [eax + 0x4ffe0c]
mov ecx, dword [0x507140]
call fcn.004f66b8
jmp 0x4f7ca9
cmp byte [0x507149], 0
jne 0x4f7c99
cmp byte [0x507148], 0
jne 0x4f7c95
push 0x10044
push 1
push 6
mov eax, dword [0x4ffe00]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x507140]
mov al, 0xaf
call fcn.004f66b8
cmp eax, 6
jne 0x4f7c99
mov byte [ebp - 0x21], 1
cmp byte [ebp - 0x21], 0
jne 0x4f7ca9
mov eax, 0x4f82c4
call fcn.004b6478
mov dl, 1
mov al, 3
call fcn.004f6d50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f7cd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f7d84
xor eax, eax
push ebp
push 0x4f7cff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4fff5c]
call fcn.0040f6cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f7d0e
mov eax, dword [0x500018]
cmp dword [eax], 0
je 0x4f7d6a
xor eax, eax
push ebp
push 0x4f7d51
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], 0xb
lea ecx, [ebp - 0x44]
mov eax, dword [0x500018]
mov eax, dword [eax]
mov edx, 0x4f82f4
call fcn.004f4fb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f7d6a
mov eax, dword [0x5002cc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
call fcn.00471368
ret