Function at 0x4ffc24
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 0x50057c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x50f188], 0
je 0x4ffc75
xor eax, eax
call fcn.004e2e9c
mov byte [ebp - 0x21], 0
mov eax, dword [0x507dc8]
mov eax, dword [eax]
shr eax, 0x10
cmp eax, 0x600
mov eax, dword [0x507a1c]
setae byte [eax]
xor edx, edx
push ebp
push 0x5004bd
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x50f198], 0
je 0x4ffcb3
mov dl, 1
mov eax, dword [0x50f198]
call fcn.004b220c
cmp byte [0x50f186], 0
je 0x4ffd20
xor eax, eax
push ebp
push 0x4ffcf3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x50f18c], 0
jne 0x4ffcdf
mov eax, 0x500598
call fcn.004b2cf4
jmp 0x4ffce9
mov eax, dword [0x50f18c]
call fcn.004b2ed8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ffd20
mov eax, 0x500600
call fcn.004b2f34
lea eax, [ebp - 0x2c]
mov ecx, dword [0x50f170]
mov edx, 0x50067c
call fcn.00406914
mov eax, dword [ebp - 0x2c]
call fcn.004b2f34
lea eax, [ebp - 0x30]
mov ecx, dword [0x50f174]
mov edx, 0x5006bc
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, 0x5006e8
call fcn.00406914
mov eax, dword [ebp - 0x34]
call fcn.004b2f34
call fcn.004e2f64
xor eax, eax
call fcn.004ff550
mov dword [0x50f17c], eax
mov dl, 1
mov eax, dword [0x4fe878]
call fcn.004b5df0
mov dword [0x5079cc], eax
mov ecx, dword [0x50f174]
mov edx, dword [0x50f17c]
mov eax, dword [0x5079cc]
call fcn.004b8a14
lea ecx, [ebp - 0x3c]
mov eax, dword [0x5079cc]
mov edx, dword [eax + 0x18]
mov al, 0xb7
call fcn.004abea8
mov edx, dword [ebp - 0x3c]
mov eax, 0x50f180
call fcn.00406448
mov eax, dword [0x5079cc]
test byte [eax + 0x1d], 0x20
je 0x4ffe1b
mov eax, dword [0x507afc]
cmp byte [eax], 0
jne 0x4ffe1b
push 1
push 1
mov eax, dword [0x50f180]
call fcn.004064d4
push eax
mov eax, dword [0x507ea4]
mov eax, dword [eax + 0x2fc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004e384c
call fcn.0041198c
mov eax, dword [0x5079cc]
test byte [eax + 0x1d], 1
je 0x4ffe5e
call fcn.004802c4
test al, al
jne 0x4ffe5e
push 1
push 1
mov eax, dword [0x50f180]
call fcn.004064d4
push eax
mov eax, dword [0x507ea4]
mov eax, dword [eax + 0x1dc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004e384c
call fcn.0041198c
mov eax, dword [0x50f17c]
xor edx, edx
mov dword [0x50f17c], edx
call fcn.00404098
mov al, 2
call fcn.004ff550
mov dword [0x50f17c], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov ecx, 0x85060100
mov dx, 0x20
mov eax, dword [0x5079cc]
call fcn.004b62bc
test al, al
jne 0x4ffea3
mov eax, 0x500728
call fcn.004ade4c
cmp dword [0x50f198], 0
je 0x4ffebe
lea eax, [ebp - 4]
mov edx, dword [0x507d74]
mov edx, dword [edx]
call fcn.0040532c
jmp 0x4ffec9
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.004ffbc4
mov eax, dword [0x5079cc]
cmp byte [eax + 0x10], 0
je 0x4ffef1
mov eax, dword [0x507afc]
cmp byte [eax], 0
jne 0x4ffee8
mov eax, 0x5007c0
call fcn.004ade4c
mov al, 1
call fcn.004e3d3c
jmp 0x4ffef8
xor eax, eax
call fcn.004e3d3c
call fcn.004e1044
cmp dword [ebp - 4], 0
je 0x500020
call fcn.004e0a20
call fcn.004e137c
mov eax, dword [0x507a2c]
mov edx, dword [0x50f170]
call fcn.00406448
mov eax, dword [0x507e08]
mov edx, dword [0x5079cc]
mov edx, dword [edx + 0x14]
call fcn.00406448
movzx eax, byte [0x50f187]
or al, byte [0x50f188]
mov edx, dword [0x507b88]
mov byte [edx], al
mov eax, dword [0x508000]
mov edx, dword [ebp - 0x18]
call fcn.00406448
mov eax, dword [0x507cb4]
mov edx, dword [ebp - 0x14]
call fcn.00406448
mov eax, dword [0x507b14]
mov edx, dword [ebp - 0x10]
call fcn.00406448
mov eax, dword [0x507bb4]
mov edx, dword [ebp - 0xc]
call fcn.00406448
mov eax, dword [ebp - 8]
test eax, eax
je 0x4fff89
sub eax, 4
mov eax, dword [eax]
mov edx, eax
add edx, edx
mov eax, dword [ebp - 8]
call fcn.004ffb0c
mov dl, 1
mov eax, dword [0x4fc4b0]
call fcn.004fd054
mov edx, dword [0x507bd8]
mov dword [edx], eax
mov eax, 0x4e292c
mov edx, dword [0x507bd8]
mov edx, dword [edx]
mov dword [edx + 0xc], eax
mov eax, 0x4e2934
mov edx, dword [0x507bd8]
mov edx, dword [edx]
mov dword [edx + 0x10], eax
mov eax, 0x4e293c
mov edx, dword [0x507bd8]
mov edx, dword [edx]
mov dword [edx + 0x14], eax
mov eax, 0x4e2b54
mov edx, dword [0x507bd8]
mov edx, dword [edx]
mov dword [edx + 0x18], eax
mov eax, 0x4e2b60
mov edx, dword [0x507bd8]
mov edx, dword [edx]
mov dword [edx + 0x1c], eax
mov eax, 0x4e2b6c
mov edx, dword [0x507bd8]
mov edx, dword [edx]
mov dword [edx + 0x20], eax
mov ecx, dword [0x507c78]
mov ecx, dword [ecx]
mov eax, dword [0x507bd8]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.004fd14c
xor edx, edx
push ebp
push 0x500469
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x50039c
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x507bd8]
cmp dword [eax], 0
je 0x5000af
xor edx, edx
push ebp
push 0x500083
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 [0x507bd8]
mov eax, dword [eax]
mov edx, 0x500854
call fcn.004fd308
pop dword fs:[0]
add esp, 8
jmp 0x50009c
test al, al
jne 0x5000af
mov eax, 0x5008e4
call fcn.004b2f34
call fcn.0041198c
cmp byte [0x50f187], 0
jne 0x5000e9
cmp byte [0x50f188], 0
jne 0x5000e9
push 0x124
push 1
push 6
mov eax, dword [0x5079cc]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50f180]
mov al, 0x27
call fcn.004fec5c
cmp eax, 6
je 0x5000e9
call fcn.0041198c
xor edx, edx
xor eax, eax
call fcn.004ff3c4
jmp 0x500117
push 0x31
push 1
push 2
mov eax, dword [0x5079cc]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50f180]
mov al, 0xbd
call fcn.004fec5c
dec eax
je 0x500117
call fcn.0041198c
mov eax, dword [0x5079cc]
call fcn.004b6310
test al, al
jne 0x5000f4
jmp 0x50013a
push 0xa
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x507e94]
mov eax, dword [eax]
call fcn.0047c440
mov eax, dword [0x508080]
cmp byte [eax], 0
jne 0x500127
mov eax, dword [0x507a1c]
mov byte [eax], 0
lea ecx, [ebp - 0x48]
mov eax, dword [0x5079cc]
mov edx, dword [eax + 0x18]
mov al, 0xa7
call fcn.004abea8
mov edx, dword [ebp - 0x48]
mov eax, dword [0x507e94]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.00480b18
call fcn.004feaa0
xor edx, edx
mov al, 1
call fcn.004ff3c4
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x28], eax
mov eax, dword [0x5079cc]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x24], edx
mov ecx, 0x4feee0
mov dl, 1
mov eax, dword [0x5079cc]
call fcn.004b70e0
mov byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x22]
mov edx, dword [0x507dbc]
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, 0x50094c
call fcn.004b31b8
mov eax, dword [0x5079cc]
cmp byte [eax + 0x1c], 0
jne 0x5001e5
mov eax, dword [0x5079cc]
test byte [eax + 0x1d], 8
jne 0x5001e5
xor eax, eax
jmp 0x5001e7
mov al, 1
mov byte [ebp - 0x23], al
mov eax, dword [0x507bd8]
cmp dword [eax], 0
je 0x500285
mov eax, dword [0x507bd8]
mov eax, dword [eax]
mov edx, 0x500978
call fcn.004fd1f8
test al, al
je 0x500285
cmp byte [ebp - 0x23], 0
jne 0x50027b
xor eax, eax
push ebp
push 0x500260
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 [0x507bd8]
mov eax, dword [eax]
mov edx, 0x500978
call fcn.004fd308
test al, al
je 0x500256
mov byte [ebp - 0x23], 1
mov eax, 0x50099c
call fcn.004b2f34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x500285
mov eax, 0x500a7c
call fcn.004b2f34
movzx eax, byte [ebp - 0x23]
mov edx, dword [0x507dbc]
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, 0x500b34
call fcn.004b31b8
cmp byte [0x50f188], 0
jne 0x5002e0
mov eax, dword [0x507e94]
mov eax, dword [eax]
call fcn.0047c440
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x28]
cmp eax, 0x3e8
jae 0x5002e0
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x5002b1
mov eax, dword [0x507b28]
mov eax, dword [eax]
mov edx, dword [0x507b28]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00404098
mov dl, 1
mov al, 2
call fcn.004ff3c4
cmp byte [ebp - 0x23], 0
jne 0x500340
cmp byte [0x50f187], 0
jne 0x500389
cmp byte [0x50f188], 0
jne 0x500389
push 0x10040
push 1
push 1
mov eax, dword [0x5079cc]
mov edx, dword [eax + 0x18]
movzx eax, byte [ebp - 0x22]
movzx eax, byte [eax + 0x5079d8]
mov ecx, dword [0x50f180]
call fcn.004fec5c
jmp 0x500389
cmp byte [0x50f189], 0
jne 0x500379
cmp byte [0x50f188], 0
jne 0x500375
push 0x10024
push 1
push 6
mov eax, dword [0x5079cc]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50f180]
mov al, 0xbb
call fcn.004fec5c
cmp eax, 6
jne 0x500379
mov byte [ebp - 0x21], 1
cmp byte [ebp - 0x21], 0
jne 0x500389
mov eax, 0x500b78
call fcn.004b2f34
mov dl, 1
mov al, 3
call fcn.004ff3c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5003b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500473
xor edx, edx
push ebp
push 0x5003eb
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x507b28]
mov eax, dword [eax]
mov edx, dword [0x507b28]
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 0x5003fa
mov eax, dword [0x507bd8]
cmp dword [eax], 0
je 0x500456
xor eax, eax
push ebp
push 0x50043d
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 [0x507bd8]
mov eax, dword [eax]
mov edx, 0x500bd4
call fcn.004fd254
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x500456
mov eax, dword [0x507e94]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.00480ba8
ret