Function at 0x4f6f20
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x120], eax
xor eax, eax
push ebp
push 0x4f792f
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.005336e0
test eax, eax
je 0x4f7911
mov eax, dword [0x6690d8]
test byte [eax + 0xa9], 0x80
je 0x4f7911
mov eax, dword [0x669a80]
cmp dword [eax], 0x39999996
jge 0x4f7911
call fcn.005336e0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
lea edi, [eax + 0x7dc]
mov eax, dword [0x66be8c]
push eax
call sub.user32.dll_IsWindowEnabled
test eax, eax
je 0x4f7911
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x14d], 0
jne 0x4f7911
cmp byte [0x66be97], 0
jne 0x4f7911
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, 9
call fcn.0063af38
cmp byte [edi], 5
jne 0x4f7299
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x45b], 0
cmp byte [edi + 3], 0
je 0x4f6ffb
call fcn.0065867c
sub eax, dword [edi + 0x24]
cmp eax, 0x1388
jl 0x4f6ffb
mov dl, 1
mov eax, dword [ebp - 0x2c]
call fcn.005de328
lea edx, [ebp - 0xf8]
mov eax, dword [ebp - 0x2c]
call fcn.005c0e78
lea ecx, [ebp - 0x34]
mov edx, dword [edi + 4]
mov eax, dword [ebp - 0x2c]
call fcn.005f7ea4
cmp dword [ebp - 0x34], 0
jle 0x4f7033
mov eax, dword [ebp - 0x30]
inc eax
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi + 8], eax
jmp 0x4f7033
inc dword [edi + 4]
xor eax, eax
mov dword [edi + 8], eax
mov ebx, dword [edi + 4]
cmp ebx, dword [ebp - 0xe8]
jg 0x4f704c
mov edx, ebx
mov eax, dword [ebp - 0x2c]
call fcn.005f81c4
test al, al
jne 0x4f702b
mov eax, dword [edi + 4]
cmp eax, dword [ebp - 0xe8]
jl 0x4f7079
mov ebx, dword [edi + 4]
cmp ebx, dword [ebp - 0xe8]
jne 0x4f7156
mov edx, ebx
mov eax, dword [ebp - 0x2c]
call fcn.005b85b8
cmp eax, dword [edi + 8]
jle 0x4f7156
mov byte [ebp - 0x25], 0
cmp dword [edi + 8], 0
jne 0x4f710b
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x81c], 0
jne 0x4f710b
mov edx, dword [edi + 4]
add edx, 0x400
mov eax, dword [ebp - 0xe8]
call fcn.00652c54
mov esi, dword [edi + 4]
sub eax, esi
jl 0x4f710b
inc eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xb0]
mov eax, dword [eax + 0x1c]
mov ebx, dword [eax + esi*4]
cmp byte [edi + 3], 0
je 0x4f70cc
cmp esi, dword [edi + 0xc]
je 0x4f710b
mov ecx, dword [ebx + 8]
xor edx, edx
mov eax, ebx
call fcn.0054d69c
test al, al
je 0x4f710b
mov edx, esi
mov eax, dword [ebp - 0x2c]
call fcn.005f822c
test al, al
jne 0x4f70fe
test byte [ebx + 0x67], 0x80
je 0x4f70f4
mov byte [edi + 1], 1
test byte [ebx + 0x67], 0x40
je 0x4f70fe
mov byte [edi + 2], 1
inc dword [edi + 4]
mov byte [ebp - 0x25], 1
inc esi
dec dword [ebp - 0x38]
jne 0x4f70b2
cmp byte [ebp - 0x25], 0
jne 0x4f7156
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xb0]
mov eax, dword [eax + 0x1c]
mov edx, dword [edi + 4]
mov eax, dword [eax + edx*4]
lea ebx, [eax + 0x54]
call fcn.00529a70
mov eax, dword [eax + 4]
cmp eax, dword [ebx]
jne 0x4f7141
cmp dword [ebx + 4], 0
jle 0x4f7141
xor eax, eax
mov dword [ebx], eax
xor eax, eax
mov dword [edi + 8], eax
push 0
call fcn.005336e0
push eax
call fcn.00529a70
mov cl, 1
pop edx
call fcn.00526500
mov eax, dword [edi + 4]
cmp eax, dword [ebp - 0xe8]
jg 0x4f7183
mov ebx, dword [edi + 4]
cmp ebx, dword [ebp - 0xe8]
jne 0x4f727c
mov edx, ebx
mov eax, dword [ebp - 0x2c]
call fcn.005b85b8
cmp eax, dword [edi + 8]
jne 0x4f727c
cmp byte [edi + 3], 0
jne 0x4f727c
mov byte [edi], 2
cmp byte [edi + 1], 0
je 0x4f719b
mov byte [edi], 4
jmp 0x4f71a4
cmp byte [edi + 2], 0
je 0x4f71a4
mov byte [edi], 3
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x45a], 0
jne 0x4f7277
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x81c], 0
jne 0x4f7277
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xb0]
cmp dword [eax + 0x18], 0x8000
jge 0x4f7277
cmp byte [edi], 3
jne 0x4f71ed
call fcn.00529a70
mov eax, dword [eax + 8]
cmp dword [eax + 0x18], 0
jg 0x4f7204
cmp byte [edi], 4
jne 0x4f7277
call fcn.00529a70
mov eax, dword [eax + 8]
cmp dword [eax + 0x18], 1
jle 0x4f7277
mov al, 0x29
call fcn.0062e8b8
test al, al
jne 0x4f7220
mov eax, dword [0x6690d8]
mov al, byte [eax + 0xd6]
and al, 0x7f
test al, al
jne 0x4f7277
xor eax, eax
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x118]
mov eax, dword [ebp - 0x2c]
call fcn.005c0e78
mov esi, dword [ebp - 0x108]
cmp esi, 0
jl 0x4f7277
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xb0]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 0x64]
and eax, 0x3fffffff
add dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xa
jl 0x4f7271
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x45b], 1
mov dword [edi + 0x28], 0x7fffffff
jmp 0x4f7277
dec esi
cmp esi, 0xffffffff
jne 0x4f723e
call fcn.004fe3f4
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x459], 0
je 0x4f78fc
mov eax, dword [ebp - 0x2c]
call fcn.005de20c
jmp 0x4f78fc
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x45b], 0
je 0x4f78fc
mov eax, dword [0x669a40]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov edx, dword [0x6693c0]
cmp eax, dword [edx]
jne 0x4f78fc
cmp dword [edi + 0x28], 0
jl 0x4f7521
cmp dword [edi + 0x28], 0x7fffffff
jne 0x4f7351
mov eax, 0x1388
call fcn.006566a4
test al, al
je 0x4f7351
call fcn.00529a70
mov eax, dword [eax + 8]
mov esi, dword [eax + 0x18]
dec esi
cmp esi, 0
jl 0x4f7351
call fcn.00529a70
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1c]
mov ebx, dword [eax + esi*4]
cmp byte [ebx + 0x15], 0
jne 0x4f7330
cmp byte [ebx + 0x14], 0
jne 0x4f7314
mov eax, ebx
call fcn.0051c2d8
cmp byte [ebx + 0x15], 0
jne 0x4f7329
call fcn.00529a70
mov edx, dword [ebx + 0x18]
mov cl, 1
call fcn.00522f74
call fcn.00656698
jmp 0x4f7351
test esi, esi
jne 0x4f734b
lea edx, [ebp - 0x118]
mov eax, dword [ebp - 0x2c]
call fcn.005c0e78
mov eax, dword [ebp - 0x108]
mov dword [edi + 0x28], eax
dec esi
cmp esi, 0xffffffff
jne 0x4f72f3
call fcn.00529a70
mov eax, dword [eax + 8]
cmp dword [eax + 0x18], 0
jne 0x4f736e
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x45b], 0
jmp 0x4f78fc
cmp dword [edi + 0x28], 0x7fffffff
je 0x4f78fc
call fcn.0065867c
mov dword [ebp - 0x1c], eax
jmp 0x4f7500
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xb0]
mov eax, dword [eax + 0x1c]
mov edx, dword [edi + 0x28]
mov ebx, dword [eax + edx*4]
cmp dword [ebx + 0x68], 0
jne 0x4f73d6
call fcn.00529a70
mov eax, dword [eax + 8]
mov esi, dword [eax + 0x18]
shl esi, 2
mov eax, esi
call fcn.00401e58
mov dword [ebx + 0x68], eax
mov eax, esi
call fcn.00401e58
mov dword [ebx + 0x6c], eax
mov edx, esi
mov eax, dword [ebx + 0x68]
call fcn.00658544
mov edx, esi
mov eax, dword [ebx + 0x6c]
call fcn.00658544
call fcn.00529a70
mov eax, dword [eax + 8]
mov esi, dword [eax + 0x18]
dec esi
cmp esi, 0
jl 0x4f7500
jmp 0x4f74b7
push esi
push edi
lea esi, [ebx + 0x54]
lea edi, [ebp - 0x5c]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
call fcn.00529a70
mov eax, dword [eax + 4]
mov dword [ebx + 0x54], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebx + 0x58], eax
xor eax, eax
mov dword [ebx + 0x64], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x7c], eax
mov edx, esi
shl edx, 2
add edx, dword [ebx + 0x6c]
mov edx, dword [edx]
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x78]
add eax, 0x20
mov edx, dword [ebx + 8]
call fcn.00652c54
mov dword [ebp - 0x68], eax
call fcn.00529a70
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1c]
push dword [eax + esi*4]
call fcn.00529a70
pop edx
mov dword [eax + 0xc], edx
lea eax, [ebp - 0x7c]
push eax
call fcn.005336e0
push eax
call fcn.00529a70
mov cl, 2
pop edx
call fcn.00526500
call fcn.00529a70
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0x64]
and eax, 0x3fffffff
mov edx, esi
shl edx, 2
add edx, dword [ebp - 0x48]
add dword [edx], eax
mov eax, esi
shl eax, 2
add eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x68]
mov dword [eax], edx
mov eax, dword [ebx + 0x60]
call fcn.00401fac
push esi
push edi
lea esi, [ebp - 0x5c]
lea edi, [ebx + 0x54]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, esi
shl eax, 2
add eax, dword [ebx + 0x6c]
mov eax, dword [eax]
cmp eax, dword [ebx + 8]
jge 0x4f74d7
call fcn.0065867c
sub eax, dword [ebp - 0x1c]
cmp eax, 0xa
jl 0x4f73f0
test esi, esi
jne 0x4f74ed
mov eax, esi
shl eax, 2
add eax, dword [ebx + 0x6c]
mov eax, dword [eax]
cmp eax, dword [ebx + 8]
jne 0x4f74ed
dec dword [edi + 0x28]
call fcn.0065867c
sub eax, dword [ebp - 0x1c]
cmp eax, 0xa
jge 0x4f7500
dec esi
cmp esi, 0xffffffff
jne 0x4f74b7
cmp dword [edi + 0x28], 0
jl 0x4f7517
call fcn.0065867c
sub eax, dword [ebp - 0x1c]
cmp eax, 0xa
jl 0x4f7388
call fcn.00656698
jmp 0x4f78fc
mov eax, 0x1388
call fcn.006566a4
test al, al
je 0x4f78fc
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x45b], 0
xor eax, eax
mov dword [ebp - 0x18], eax
call fcn.0064dfa0
mov edi, eax
call fcn.00529a70
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x18]
mov eax, edi
call fcn.0064dff0
mov esi, dword [edi + 0x18]
dec esi
cmp esi, 0
jl 0x4f7572
mov eax, dword [edi + 0x1c]
xor edx, edx
mov dword [eax + esi*4], edx
dec esi
cmp esi, 0xffffffff
jne 0x4f7564
lea edx, [ebp - 0x118]
mov eax, dword [ebp - 0x2c]
call fcn.005c0e78
mov esi, dword [ebp - 0x108]
cmp esi, 0
jl 0x4f75e6
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xb0]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*4]
add eax, 0x54
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x10]
and eax, 0x3fffffff
add dword [ebp - 0x18], eax
call fcn.00529a70
mov eax, dword [eax + 8]
mov ebx, dword [eax + 0x18]
dec ebx
cmp ebx, 0
jl 0x4f75e0
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + ebx*4]
mov edx, dword [ebp - 0x3c]
mov edx, dword [edx + 0x14]
mov ecx, ebx
shl ecx, 2
add edx, ecx
add eax, dword [edx]
mov edx, dword [edi + 0x1c]
mov dword [edx + ebx*4], eax
dec ebx
cmp ebx, 0xffffffff
jne 0x4f75bf
dec esi
cmp esi, 0xffffffff
jne 0x4f758b
mov dword [ebp - 0x20], 0xffffffff
mov ebx, 0x7fffffff
mov esi, dword [edi + 0x18]
dec esi
cmp esi, 0
jl 0x4f7635
mov eax, dword [edi + 0x1c]
cmp ebx, dword [eax + esi*4]
jg 0x4f7626
mov eax, dword [edi + 0x1c]
cmp ebx, dword [eax + esi*4]
jne 0x4f762f
call fcn.00529a70
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 0x18]
mov edx, dword [0x669b94]
cmp eax, dword [edx]
jne 0x4f762f
mov eax, dword [edi + 0x1c]
mov ebx, dword [eax + esi*4]
mov dword [ebp - 0x20], esi
dec esi
cmp esi, 0xffffffff
jne 0x4f75fb
mov eax, edi
call fcn.0064e5c0
cmp dword [ebp - 0x20], 0xffffffff
je 0x4f78fc
mov eax, dword [ebp - 0x18]
sub eax, 0xa
cmp ebx, eax
jge 0x4f78fc
mov edx, 0x5a
mov eax, dword [ebp - 0x18]
call fcn.0061ec08
cmp ebx, eax
jge 0x4f78fc
xor edi, edi
lea edx, [ebp - 0x118]
mov eax, dword [ebp - 0x2c]
call fcn.005c0e78
mov esi, dword [ebp - 0x108]
cmp esi, 0
jl 0x4f7697
mov edx, esi
mov eax, dword [ebp - 0x2c]
call fcn.005b85b8
dec eax
add edi, eax
dec esi
cmp esi, 0xffffffff
jne 0x4f7684
mov eax, edi
mov ecx, 7
cdq
idiv ecx
mov ecx, 0xa
cdq
idiv ecx
cmp ebx, eax
jge 0x4f78fc
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x45a], 1
call fcn.00529a70
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x20]
mov eax, dword [eax + edx*4]
mov eax, dword [eax + 0x18]
lea edx, [ebp - 0x120]
call fcn.0062a460
mov edx, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
mov eax, 0x4f7940
call fcn.0065521c
mov eax, dword [ebp - 0x11c]
mov cl, 0x29
mov dl, 3
call fcn.0061faa0
cmp ax, 6
jne 0x4f78fc
call fcn.00542158
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
lea edx, [ebp - 0x118]
mov eax, dword [ebp - 0x2c]
call fcn.005c0e78
mov eax, dword [ebp - 0x108]
test eax, eax
jl 0x4f7805
inc eax
mov dword [ebp - 0x38], eax
xor esi, esi
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xb0]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*4]
mov edi, dword [eax + 0x48]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x24], eax
cmp byte [ebp - 9], 0
je 0x4f77f6
mov dl, 0x59
mov eax, dword [ebp - 0x2c]
call fcn.0055f6b0
xor ecx, ecx
mov edx, esi
mov eax, dword [ebp - 0x2c]
call fcn.005c0734
cmp eax, 0x400
je 0x4f778c
push ebp
xor edx, edx
mov eax, esi
call fcn.004f6e7c
pop ecx
mov eax, dword [ebp - 0x2c]
call fcn.0055f764
jmp 0x4f77f6
mov eax, dword [edi + 4]
add eax, ebx
cmp word [eax], 0
jne 0x4f77f0
add eax, 2
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov al, byte [eax]
mov edx, eax
add dl, 0xe9
sub dl, 5
jae 0x4f77bb
inc dword [ebp - 0x24]
jmp 0x4f77eb
cmp al, 0x16
jne 0x4f77eb
mov eax, dword [ebp - 0x40]
cmp dword [eax + 1], 0x400
sete al
cmp al, byte [ebp - 9]
je 0x4f77dd
push ebp
mov edx, dword [ebp - 0x24]
mov eax, esi
call fcn.004f6e7c
pop ecx
mov eax, dword [ebp - 0x40]
cmp dword [eax + 1], 0x400
sete byte [ebp - 9]
add ebx, 9
jmp 0x4f77f6
add ebx, 2
inc dword [ebp - 0x24]
cmp ebx, dword [edi + 8]
jl 0x4f7796
inc esi
dec dword [ebp - 0x38]
jne 0x4f7741
push ebp
lea edx, [ebp - 0x118]
mov eax, dword [ebp - 0x2c]
call fcn.005c0e78
mov eax, dword [ebp - 0x108]
inc eax
xor edx, edx
call fcn.004f6e7c
pop ecx
mov eax, dword [ebp - 0x2c]
call fcn.0055f7bc
mov dl, 0x27
mov eax, dword [ebp - 0x2c]
call fcn.005c642c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
call fcn.005422c0
test al, al
jne 0x4f788a
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x418], 0
lea eax, [ebp - 0xd8]
call fcn.0053e6c8
call fcn.00529a70
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x20]
mov eax, dword [eax + edx*4]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0xd8]
push eax
mov al, byte [0x4f7a7c]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
call fcn.005c99a4
call fcn.00529a70
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x20]
mov eax, dword [eax + edx*4]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 0x2c]
call fcn.005d4a78
mov eax, dword [ebp - 0x2c]
call fcn.005c64f0
mov eax, dword [ebp - 0x2c]
call fcn.005c6cec
mov edx, dword [ebp - 0x2c]
lea esi, [edx + 0x258]
lea edi, [eax + 0x28]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx + 0x300]
mov eax, dword [eax + 0x38]
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [ebp - 0x2c]
call fcn.005c6fb4
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
call fcn.005c6528
mov eax, dword [ebp - 0x2c]
call fcn.0055f7c8
mov eax, dword [ebp - 0x10]
call fcn.005426b4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, 0xa
mov edx, 9
call fcn.0063aef8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f7936
lea eax, [ebp - 0x120]
mov edx, 2
call fcn.00403298
ret