Function at 0x4ff52c
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 0x4ffe64
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x510184], 0
je 0x4ff57d
xor eax, eax
call fcn.004e1a0c
mov byte [ebp - 0x21], 0
mov eax, dword [0x508da0]
mov eax, dword [eax]
shr eax, 0x10
cmp eax, 0x600
mov eax, dword [0x5089f4]
setae byte [eax]
xor edx, edx
push ebp
push 0x4ffda5
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x510194], 0
je 0x4ff5bb
mov dl, 1
mov eax, dword [0x510194]
call fcn.004b1f8c
cmp byte [0x510182], 0
je 0x4ff628
xor eax, eax
push ebp
push 0x4ff5fb
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x510188], 0
jne 0x4ff5e7
mov eax, 0x4ffe80
call fcn.004b2a74
jmp 0x4ff5f1
mov eax, dword [0x510188]
call fcn.004b2c58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ff628
mov eax, 0x4ffee8
call fcn.004b2cb4
lea eax, [ebp - 0x2c]
mov ecx, dword [0x51016c]
mov edx, 0x4fff60
call fcn.00406914
mov eax, dword [ebp - 0x2c]
call fcn.004b2cb4
lea eax, [ebp - 0x30]
mov ecx, dword [0x510170]
mov edx, 0x4fffa0
call fcn.00406914
mov eax, dword [ebp - 0x30]
call fcn.004b2cb4
lea eax, [ebp - 0x38]
call fcn.00480848
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x4fffcc
call fcn.00406914
mov eax, dword [ebp - 0x34]
call fcn.004b2cb4
call fcn.004e1ad4
xor eax, eax
call fcn.004fee58
mov dword [0x510178], eax
mov dl, 1
mov eax, dword [0x4fe180]
call fcn.004b5b70
mov dword [0x5089a4], eax
mov ecx, dword [0x510170]
mov edx, dword [0x510178]
mov eax, dword [0x5089a4]
call fcn.004b8790
lea ecx, [ebp - 0x3c]
mov eax, dword [0x5089a4]
mov edx, dword [eax + 0x18]
mov al, 0xb7
call fcn.00483a48
mov edx, dword [ebp - 0x3c]
mov eax, 0x51017c
call fcn.00406448
mov eax, dword [0x5089a4]
test byte [eax + 0x1d], 0x20
je 0x4ff723
mov eax, dword [0x508ad4]
cmp byte [eax], 0
jne 0x4ff723
push 1
push 1
mov eax, dword [0x51017c]
call fcn.004064d4
push eax
mov eax, dword [0x508e7c]
mov eax, dword [eax + 0x2fc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004e23bc
call fcn.00412748
mov eax, dword [0x5089a4]
test byte [eax + 0x1d], 1
je 0x4ff766
call fcn.004818f8
test al, al
jne 0x4ff766
push 1
push 1
mov eax, dword [0x51017c]
call fcn.004064d4
push eax
mov eax, dword [0x508e7c]
mov eax, dword [eax + 0x1dc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004e23bc
call fcn.00412748
mov eax, dword [0x510178]
xor edx, edx
mov dword [0x510178], edx
call fcn.00404098
mov al, 2
call fcn.004fee58
mov dword [0x510178], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov ecx, 0x85050900
mov dx, 0x20
mov eax, dword [0x5089a4]
call fcn.004b603c
test al, al
jne 0x4ff7ab
mov eax, 0x50000c
call fcn.004861c0
cmp dword [0x510194], 0
je 0x4ff7c6
lea eax, [ebp - 4]
mov edx, dword [0x508d4c]
mov edx, dword [edx]
call fcn.0040532c
jmp 0x4ff7d1
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.004ff4cc
mov eax, dword [0x5089a4]
cmp byte [eax + 0x10], 0
je 0x4ff7f9
mov eax, dword [0x508ad4]
cmp byte [eax], 0
jne 0x4ff7f0
mov eax, 0x5000a4
call fcn.004861c0
mov al, 1
call fcn.004e28ac
jmp 0x4ff800
xor eax, eax
call fcn.004e28ac
call fcn.004dfbc4
cmp dword [ebp - 4], 0
je 0x4ff908
call fcn.004df5a0
call fcn.004dfefc
mov eax, dword [0x508a04]
mov edx, dword [0x51016c]
call fcn.00406448
mov eax, dword [0x508de0]
mov edx, dword [0x5089a4]
mov edx, dword [edx + 0x14]
call fcn.00406448
movzx eax, byte [0x510183]
or al, byte [0x510184]
mov edx, dword [0x508b64]
mov byte [edx], al
mov eax, dword [0x508fd8]
mov edx, dword [ebp - 0x18]
call fcn.00406448
mov eax, dword [0x508c8c]
mov edx, dword [ebp - 0x14]
call fcn.00406448
mov eax, dword [0x508af0]
mov edx, dword [ebp - 0x10]
call fcn.00406448
mov eax, dword [0x508b90]
mov edx, dword [ebp - 0xc]
call fcn.00406448
mov eax, dword [ebp - 8]
test eax, eax
je 0x4ff891
sub eax, 4
mov eax, dword [eax]
mov edx, eax
add edx, edx
mov eax, dword [ebp - 8]
call fcn.004ff414
mov dl, 1
mov eax, dword [0x4fac4c]
call fcn.004fb464
mov edx, dword [0x508bb4]
mov dword [edx], eax
mov eax, 0x4e14ac
mov edx, dword [0x508bb4]
mov edx, dword [edx]
mov dword [edx + 0xc], eax
mov eax, 0x4e16c4
mov edx, dword [0x508bb4]
mov edx, dword [edx]
mov dword [edx + 0x10], eax
mov eax, 0x4e16d0
mov edx, dword [0x508bb4]
mov edx, dword [edx]
mov dword [edx + 0x14], eax
mov eax, 0x4e16dc
mov edx, dword [0x508bb4]
mov edx, dword [edx]
mov dword [edx + 0x18], eax
mov ecx, dword [0x508c50]
mov ecx, dword [ecx]
mov eax, dword [0x508bb4]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.004fb55c
xor edx, edx
push ebp
push 0x4ffd51
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4ffc84
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x508bb4]
cmp dword [eax], 0
je 0x4ff997
xor edx, edx
push ebp
push 0x4ff96b
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 [0x508bb4]
mov eax, dword [eax]
mov edx, 0x500138
call fcn.004fb718
pop dword fs:[0]
add esp, 8
jmp 0x4ff984
test al, al
jne 0x4ff997
mov eax, 0x5001c8
call fcn.004b2cb4
call fcn.00412748
cmp byte [0x510183], 0
jne 0x4ff9d1
cmp byte [0x510184], 0
jne 0x4ff9d1
push 0x124
push 1
push 6
mov eax, dword [0x5089a4]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x51017c]
mov al, 0x27
call fcn.004fe564
cmp eax, 6
je 0x4ff9d1
call fcn.00412748
xor edx, edx
xor eax, eax
call fcn.004feccc
jmp 0x4ff9ff
push 0x31
push 1
push 2
mov eax, dword [0x5089a4]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x51017c]
mov al, 0xbd
call fcn.004fe564
dec eax
je 0x4ff9ff
call fcn.00412748
mov eax, dword [0x5089a4]
call fcn.004b6090
test al, al
jne 0x4ff9dc
jmp 0x4ffa22
push 0xa
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x508e6c]
mov eax, dword [eax]
call fcn.0047d1d4
mov eax, dword [0x509058]
cmp byte [eax], 0
jne 0x4ffa0f
mov eax, dword [0x5089f4]
mov byte [eax], 0
lea ecx, [ebp - 0x48]
mov eax, dword [0x5089a4]
mov edx, dword [eax + 0x18]
mov al, 0xa7
call fcn.00483a48
mov edx, dword [ebp - 0x48]
mov eax, dword [0x508e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.0048214c
call fcn.004fe3a8
xor edx, edx
mov al, 1
call fcn.004feccc
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x28], eax
mov eax, dword [0x5089a4]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x24], edx
mov ecx, 0x4fe7e8
mov dl, 1
mov eax, dword [0x5089a4]
call fcn.004b6e60
mov byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x22]
mov edx, dword [0x508d94]
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, 0x500230
call fcn.004b2f38
mov eax, dword [0x5089a4]
cmp byte [eax + 0x1c], 0
jne 0x4ffacd
mov eax, dword [0x5089a4]
test byte [eax + 0x1d], 8
jne 0x4ffacd
xor eax, eax
jmp 0x4ffacf
mov al, 1
mov byte [ebp - 0x23], al
mov eax, dword [0x508bb4]
cmp dword [eax], 0
je 0x4ffb6d
mov eax, dword [0x508bb4]
mov eax, dword [eax]
mov edx, 0x50025c
call fcn.004fb608
test al, al
je 0x4ffb6d
cmp byte [ebp - 0x23], 0
jne 0x4ffb63
xor eax, eax
push ebp
push 0x4ffb48
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 [0x508bb4]
mov eax, dword [eax]
mov edx, 0x50025c
call fcn.004fb718
test al, al
je 0x4ffb3e
mov byte [ebp - 0x23], 1
mov eax, 0x500280
call fcn.004b2cb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ffb6d
mov eax, 0x500360
call fcn.004b2cb4
movzx eax, byte [ebp - 0x23]
mov edx, dword [0x508d94]
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, 0x500418
call fcn.004b2f38
cmp byte [0x510184], 0
jne 0x4ffbc8
mov eax, dword [0x508e6c]
mov eax, dword [eax]
call fcn.0047d1d4
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x28]
cmp eax, 0x3e8
jae 0x4ffbc8
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x4ffb99
mov eax, dword [0x508b04]
mov eax, dword [eax]
mov edx, dword [0x508b04]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00404098
mov dl, 1
mov al, 2
call fcn.004feccc
cmp byte [ebp - 0x23], 0
jne 0x4ffc28
cmp byte [0x510183], 0
jne 0x4ffc71
cmp byte [0x510184], 0
jne 0x4ffc71
push 0x10040
push 1
push 1
mov eax, dword [0x5089a4]
mov edx, dword [eax + 0x18]
movzx eax, byte [ebp - 0x22]
movzx eax, byte [eax + 0x5089b0]
mov ecx, dword [0x51017c]
call fcn.004fe564
jmp 0x4ffc71
cmp byte [0x510185], 0
jne 0x4ffc61
cmp byte [0x510184], 0
jne 0x4ffc5d
push 0x10024
push 1
push 6
mov eax, dword [0x5089a4]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x51017c]
mov al, 0xbb
call fcn.004fe564
cmp eax, 6
jne 0x4ffc61
mov byte [ebp - 0x21], 1
cmp byte [ebp - 0x21], 0
jne 0x4ffc71
mov eax, 0x50045c
call fcn.004b2cb4
mov dl, 1
mov al, 3
call fcn.004feccc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ffc98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ffd5b
xor edx, edx
push ebp
push 0x4ffcd3
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x508b04]
mov eax, dword [eax]
mov edx, dword [0x508b04]
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 0x4ffce2
mov eax, dword [0x508bb4]
cmp dword [eax], 0
je 0x4ffd3e
xor eax, eax
push ebp
push 0x4ffd25
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 [0x508bb4]
mov eax, dword [eax]
mov edx, 0x5004b8
call fcn.004fb664
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ffd3e
mov eax, dword [0x508e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.004821dc
ret