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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x124], eax
xor eax, eax
push ebp
push 0x4fb3be
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.005397f4
test eax, eax
je 0x4fb3a0
mov eax, dword [0x672428]
test byte [eax + 0xb5], 0x80
je 0x4fb3a0
mov eax, dword [0x672890]
cmp dword [eax], 0x39999996
jge 0x4fb3a0
call fcn.005397f4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
lea edi, [eax + 0x7d4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0064a424
push eax
call sub.user32.dll_IsWindowEnabled
test eax, eax
je 0x4fb3a0
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x145], 0
jne 0x4fb3a0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp byte [eax + 0x277], 0
jne 0x4fb3a0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, 9
call fcn.00641994
cmp byte [edi], 5
jne 0x4fad0a
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x453], 0
cmp byte [edi + 3], 0
je 0x4faa67
call fcn.00660e34
sub eax, dword [edi + 0x24]
cmp eax, 0x1388
jl 0x4faa67
mov dl, 1
mov eax, dword [ebp - 0x2c]
call fcn.005e6c34
lea edx, [ebp - 0xfc]
mov eax, dword [ebp - 0x2c]
call fcn.005c8dfc
lea ecx, [ebp - 0x34]
mov edx, dword [edi + 4]
mov eax, dword [ebp - 0x2c]
call fcn.00600fe0
cmp dword [ebp - 0x34], 0
jle 0x4faa9f
mov eax, dword [ebp - 0x30]
inc eax
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi + 8], eax
jmp 0x4faa9f
inc dword [edi + 4]
xor eax, eax
mov dword [edi + 8], eax
mov ebx, dword [edi + 4]
cmp ebx, dword [ebp - 0xec]
jg 0x4faab8
mov edx, ebx
mov eax, dword [ebp - 0x2c]
call fcn.00601328
test al, al
jne 0x4faa97
mov eax, dword [edi + 4]
cmp eax, dword [ebp - 0xec]
jl 0x4faae5
mov ebx, dword [edi + 4]
cmp ebx, dword [ebp - 0xec]
jne 0x4fabc2
mov edx, ebx
mov eax, dword [ebp - 0x2c]
call fcn.005c0358
cmp eax, dword [edi + 8]
jle 0x4fabc2
mov byte [ebp - 0x25], 0
cmp dword [edi + 8], 0
jne 0x4fab77
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x814], 0
jne 0x4fab77
mov edx, dword [edi + 4]
add edx, 0x400
mov eax, dword [ebp - 0xec]
call fcn.0065b28c
mov esi, dword [edi + 4]
sub eax, esi
jl 0x4fab77
inc eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xa8]
mov eax, dword [eax + 0x1c]
mov ebx, dword [eax + esi*4]
cmp byte [edi + 3], 0
je 0x4fab38
cmp esi, dword [edi + 0xc]
je 0x4fab77
mov ecx, dword [ebx + 8]
xor edx, edx
mov eax, ebx
call fcn.00553758
test al, al
je 0x4fab77
mov edx, esi
mov eax, dword [ebp - 0x2c]
call fcn.006013b4
test al, al
jne 0x4fab6a
test byte [ebx + 0x67], 0x80
je 0x4fab60
mov byte [edi + 1], 1
test byte [ebx + 0x67], 0x40
je 0x4fab6a
mov byte [edi + 2], 1
inc dword [edi + 4]
mov byte [ebp - 0x25], 1
inc esi
dec dword [ebp - 0x38]
jne 0x4fab1e
cmp byte [ebp - 0x25], 0
jne 0x4fabc2
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xa8]
mov eax, dword [eax + 0x1c]
mov edx, dword [edi + 4]
mov eax, dword [eax + edx*4]
lea ebx, [eax + 0x54]
call fcn.0052ddf4
mov eax, dword [eax + 4]
cmp eax, dword [ebx]
jne 0x4fabad
cmp dword [ebx + 4], 0
jle 0x4fabad
xor eax, eax
mov dword [ebx], eax
xor eax, eax
mov dword [edi + 8], eax
push 0
call fcn.005397f4
push eax
call fcn.0052ddf4
mov cl, 1
pop edx
call fcn.0052a83c
mov eax, dword [edi + 4]
cmp eax, dword [ebp - 0xec]
jg 0x4fabef
mov ebx, dword [edi + 4]
cmp ebx, dword [ebp - 0xec]
jne 0x4faced
mov edx, ebx
mov eax, dword [ebp - 0x2c]
call fcn.005c0358
cmp eax, dword [edi + 8]
jne 0x4faced
cmp byte [edi + 3], 0
jne 0x4faced
cmp byte [edi + 1], 0
je 0x4fac04
mov byte [edi], 4
jmp 0x4fac12
cmp byte [edi + 2], 0
je 0x4fac0f
mov byte [edi], 3
jmp 0x4fac12
mov byte [edi], 2
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x452], 0
jne 0x4face8
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x814], 0
jne 0x4face8
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xa8]
cmp dword [eax + 0x18], 0x8000
jge 0x4face8
cmp byte [edi], 3
jne 0x4fac5b
call fcn.0052ddf4
mov eax, dword [eax + 8]
cmp dword [eax + 0x18], 0
jg 0x4fac72
cmp byte [edi], 4
jne 0x4face8
call fcn.0052ddf4
mov eax, dword [eax + 8]
cmp dword [eax + 0x18], 1
jle 0x4face8
mov eax, dword [0x672428]
mov eax, dword [eax + 0x71]
mov eax, dword [eax + 4]
mov bl, byte [eax + 0x32]
test bl, 0x80
je 0x4fac91
mov eax, dword [0x672428]
and bl, 0x7f
test bl, bl
jne 0x4face8
xor eax, eax
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x2c]
call fcn.005c8dfc
mov esi, dword [ebp - 0x10c]
cmp esi, 0
jl 0x4face8
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xa8]
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 0x4face2
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x453], 1
mov dword [edi + 0x28], 0x7fffffff
jmp 0x4face8
dec esi
cmp esi, 0xffffffff
jne 0x4facaf
call fcn.00501d7c
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x451], 0
je 0x4fb38b
mov eax, dword [ebp - 0x2c]
call fcn.005e6b20
jmp 0x4fb38b
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x453], 0
je 0x4fb38b
mov eax, dword [0x672858]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov edx, dword [0x6722cc]
cmp eax, dword [edx]
jne 0x4fb38b
cmp dword [edi + 0x28], 0
jl 0x4faf92
cmp dword [edi + 0x28], 0x7fffffff
jne 0x4fadc2
mov eax, 0x1388
call fcn.0065ed7c
test al, al
je 0x4fadc2
call fcn.0052ddf4
mov eax, dword [eax + 8]
mov esi, dword [eax + 0x18]
dec esi
cmp esi, 0
jl 0x4fadc2
call fcn.0052ddf4
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1c]
mov ebx, dword [eax + esi*4]
cmp byte [ebx + 0x15], 0
jne 0x4fada1
cmp byte [ebx + 0x14], 0
jne 0x4fad85
mov eax, ebx
call fcn.0052032c
cmp byte [ebx + 0x15], 0
jne 0x4fad9a
call fcn.0052ddf4
mov edx, dword [ebx + 0x18]
mov cl, 1
call fcn.005271f0
call fcn.0065ed70
jmp 0x4fadc2
test esi, esi
jne 0x4fadbc
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x2c]
call fcn.005c8dfc
mov eax, dword [ebp - 0x10c]
mov dword [edi + 0x28], eax
dec esi
cmp esi, 0xffffffff
jne 0x4fad64
call fcn.0052ddf4
mov eax, dword [eax + 8]
cmp dword [eax + 0x18], 0
jne 0x4faddf
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x453], 0
jmp 0x4fb38b
cmp dword [edi + 0x28], 0x7fffffff
je 0x4fb38b
call fcn.00660e34
mov dword [ebp - 0x1c], eax
jmp 0x4faf71
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xa8]
mov eax, dword [eax + 0x1c]
mov edx, dword [edi + 0x28]
mov ebx, dword [eax + edx*4]
cmp dword [ebx + 0x68], 0
jne 0x4fae47
call fcn.0052ddf4
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.00660d08
mov edx, esi
mov eax, dword [ebx + 0x6c]
call fcn.00660d08
call fcn.0052ddf4
mov eax, dword [eax + 8]
mov esi, dword [eax + 0x18]
dec esi
cmp esi, 0
jl 0x4faf71
jmp 0x4faf28
push esi
push edi
lea esi, [ebx + 0x54]
lea edi, [ebp - 0x60]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
call fcn.0052ddf4
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 - 0x80], eax
mov edx, esi
shl edx, 2
add edx, dword [ebx + 0x6c]
mov edx, dword [edx]
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x7c]
add eax, 0x20
mov edx, dword [ebx + 8]
call fcn.0065b28c
mov dword [ebp - 0x6c], eax
call fcn.0052ddf4
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1c]
push dword [eax + esi*4]
call fcn.0052ddf4
pop edx
mov dword [eax + 0xc], edx
lea eax, [ebp - 0x80]
push eax
call fcn.005397f4
push eax
call fcn.0052ddf4
mov cl, 2
pop edx
call fcn.0052a83c
call fcn.0052ddf4
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 - 0x4c]
add dword [edx], eax
mov eax, esi
shl eax, 2
add eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x6c]
mov dword [eax], edx
mov eax, dword [ebx + 0x60]
call fcn.00401fac
push esi
push edi
lea esi, [ebp - 0x60]
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 0x4faf48
call fcn.00660e34
sub eax, dword [ebp - 0x1c]
cmp eax, 0xa
jl 0x4fae61
test esi, esi
jne 0x4faf5e
mov eax, esi
shl eax, 2
add eax, dword [ebx + 0x6c]
mov eax, dword [eax]
cmp eax, dword [ebx + 8]
jne 0x4faf5e
dec dword [edi + 0x28]
call fcn.00660e34
sub eax, dword [ebp - 0x1c]
cmp eax, 0xa
jge 0x4faf71
dec esi
cmp esi, 0xffffffff
jne 0x4faf28
cmp dword [edi + 0x28], 0
jl 0x4faf88
call fcn.00660e34
sub eax, dword [ebp - 0x1c]
cmp eax, 0xa
jl 0x4fadf9
call fcn.0065ed70
jmp 0x4fb38b
mov eax, 0x1388
call fcn.0065ed7c
test al, al
je 0x4fb38b
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x453], 0
xor eax, eax
mov dword [ebp - 0x18], eax
call fcn.00656a20
mov edi, eax
call fcn.0052ddf4
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x18]
mov eax, edi
call fcn.00656a70
mov esi, dword [edi + 0x18]
dec esi
cmp esi, 0
jl 0x4fafe3
mov eax, dword [edi + 0x1c]
xor edx, edx
mov dword [eax + esi*4], edx
dec esi
cmp esi, 0xffffffff
jne 0x4fafd5
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x2c]
call fcn.005c8dfc
mov esi, dword [ebp - 0x10c]
cmp esi, 0
jl 0x4fb057
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xa8]
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.0052ddf4
mov eax, dword [eax + 8]
mov ebx, dword [eax + 0x18]
dec ebx
cmp ebx, 0
jl 0x4fb051
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 0x4fb030
dec esi
cmp esi, 0xffffffff
jne 0x4faffc
mov dword [ebp - 0x20], 0xffffffff
mov ebx, 0x7fffffff
mov esi, dword [edi + 0x18]
dec esi
cmp esi, 0
jl 0x4fb0a6
mov eax, dword [edi + 0x1c]
cmp ebx, dword [eax + esi*4]
jg 0x4fb097
mov eax, dword [edi + 0x1c]
cmp ebx, dword [eax + esi*4]
jne 0x4fb0a0
call fcn.0052ddf4
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 0x18]
mov edx, dword [0x6729b0]
cmp eax, dword [edx]
jne 0x4fb0a0
mov eax, dword [edi + 0x1c]
mov ebx, dword [eax + esi*4]
mov dword [ebp - 0x20], esi
dec esi
cmp esi, 0xffffffff
jne 0x4fb06c
mov eax, edi
call fcn.00656ff0
cmp dword [ebp - 0x20], 0xffffffff
je 0x4fb38b
mov eax, dword [ebp - 0x18]
sub eax, 0xa
cmp ebx, eax
jge 0x4fb38b
mov edx, 0x5a
mov eax, dword [ebp - 0x18]
call fcn.00629410
cmp ebx, eax
jge 0x4fb38b
xor edi, edi
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x2c]
call fcn.005c8dfc
mov esi, dword [ebp - 0x10c]
cmp esi, 0
jl 0x4fb108
mov edx, esi
mov eax, dword [ebp - 0x2c]
call fcn.005c0358
dec eax
add edi, eax
dec esi
cmp esi, 0xffffffff
jne 0x4fb0f5
mov eax, edi
mov ecx, 7
cdq
idiv ecx
mov ecx, 0xa
cdq
idiv ecx
cmp ebx, eax
jge 0x4fb38b
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x452], 1
call fcn.0052ddf4
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]
push eax
call fcn.00633e28
lea ecx, [ebp - 0x124]
pop edx
call fcn.0062fb9c
mov edx, dword [ebp - 0x124]
lea ecx, [ebp - 0x120]
mov eax, 0x4fb3cc
call fcn.0065d910
mov eax, dword [ebp - 0x120]
mov cl, 0x32
mov dl, 3
call fcn.00629794
cmp ax, 6
jne 0x4fb38b
call fcn.00548064
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 - 0x11c]
mov eax, dword [ebp - 0x2c]
call fcn.005c8dfc
mov eax, dword [ebp - 0x10c]
test eax, eax
jl 0x4fb27d
inc eax
mov dword [ebp - 0x38], eax
xor esi, esi
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xa8]
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 0x4fb26e
mov dl, 0x59
mov eax, dword [ebp - 0x2c]
call fcn.00565be8
xor ecx, ecx
mov edx, esi
mov eax, dword [ebp - 0x2c]
call fcn.005c86c0
cmp eax, 0x400
je 0x4fb204
push ebp
xor edx, edx
mov eax, esi
call fcn.004fa8dc
pop ecx
mov eax, dword [ebp - 0x2c]
call fcn.00565c80
jmp 0x4fb26e
mov eax, dword [edi + 4]
add eax, ebx
cmp word [eax], 0
jne 0x4fb268
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 0x4fb233
inc dword [ebp - 0x24]
jmp 0x4fb263
cmp al, 0x16
jne 0x4fb263
mov eax, dword [ebp - 0x40]
cmp dword [eax + 1], 0x400
sete al
cmp al, byte [ebp - 9]
je 0x4fb255
push ebp
mov edx, dword [ebp - 0x24]
mov eax, esi
call fcn.004fa8dc
pop ecx
mov eax, dword [ebp - 0x40]
cmp dword [eax + 1], 0x400
sete byte [ebp - 9]
add ebx, 9
jmp 0x4fb26e
add ebx, 2
inc dword [ebp - 0x24]
cmp ebx, dword [edi + 8]
jl 0x4fb20e
inc esi
dec dword [ebp - 0x38]
jne 0x4fb1b9
push ebp
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x2c]
call fcn.005c8dfc
mov eax, dword [ebp - 0x10c]
inc eax
xor edx, edx
call fcn.004fa8dc
pop ecx
mov eax, dword [ebp - 0x2c]
call fcn.00565cd8
push 0x27
call fcn.005397f4
mov ecx, eax
mov dl, 1
mov eax, dword [0x543aa0]
call fcn.005ce014
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
call fcn.005481c0
test al, al
jne 0x4fb310
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x40f], 0
lea eax, [ebp - 0xdc]
call fcn.005447c4
call fcn.0052ddf4
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 - 0x84], eax
lea eax, [ebp - 0xdc]
push eax
mov al, byte [0x4fb508]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
call fcn.005d1e60
call fcn.0052ddf4
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.005dd350
mov eax, dword [ebp - 0x2c]
call fcn.005ce6a0
mov eax, dword [ebp - 0x2c]
call fcn.005ceeb4
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x44]
lea esi, [eax + 0x250]
lea edi, [edx + 0x28]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0x2f8]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x38]
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [ebp - 0x2c]
call fcn.005cf198
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
call fcn.005ce6d8
mov eax, dword [ebp - 0x2c]
call fcn.00565ce4
mov eax, dword [ebp - 0x10]
call fcn.005485c8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, 0xa
mov edx, 9
call fcn.00641974
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fb3c5
lea eax, [ebp - 0x124]
mov edx, 2
call fcn.00403298
ret