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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1a
push 0
push 0
dec ecx
jne 0x4c12f0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c18bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea ecx, [ebp - 0x58]
mov edx, 0xcb
mov eax, dword [ebp - 8]
call fcn.00474024
cmp dword [ebp - 0x58], 0
je 0x4c1800
lea eax, [ebp - 0x14]
call fcn.00405f48
push eax
push 0x4c18d0
lea ecx, [ebp - 0x5c]
mov edx, 0xcb
mov eax, dword [ebp - 8]
call fcn.00474024
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [eax]
call dword [eax]
test eax, eax
jne 0x4c1800
lea ecx, [ebp - 0x60]
mov edx, 0xd3
mov eax, dword [ebp - 8]
call fcn.00474250
mov eax, dword [ebp - 0x60]
mov edx, 0x4c18e4
call fcn.00404b94
jne 0x4c13c7
mov eax, 0x7d0
call fcn.004bfa24
mov eax, dword [ebp - 8]
call fcn.00476ec0
mov eax, 0x3e8
call fcn.004bfa24
lea eax, [ebp - 0x68]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x328]
mov edx, 0x4c1934
call fcn.004045d4
mov edx, dword [ebp - 0x68]
lea eax, [ebp - 0x64]
call fcn.00404b20
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 8]
call fcn.00476e54
mov byte [ebp - 9], 1
jmp 0x4c1800
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x310]
cmp eax, 0x1770
jb 0x4c1800
lea eax, [ebp - 0x24]
push eax
mov eax, 0x4c1984
mov dword [ebp - 0x6c], eax
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, dword [ebp - 0x14]
call fcn.004c0940
cmp dword [ebp - 0x24], 0
je 0x4c1800
push 0
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x320]
call fcn.0041494c
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push 0x4c1994
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
call fcn.00406058
lea eax, [ebp - 0x24]
push eax
mov eax, 0x4c19a8
mov dword [ebp - 0x6c], eax
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, dword [ebp - 0x14]
call fcn.004c0940
cmp dword [ebp - 0x24], 0
je 0x4c1800
push 0
lea eax, [ebp - 0x8c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x324]
call fcn.0041494c
push dword [ebp - 0x80]
push dword [ebp - 0x84]
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
push 0x4c1994
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
call fcn.00406058
lea eax, [ebp - 0x24]
push eax
mov eax, 0x4c19c4
mov dword [ebp - 0x6c], eax
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, dword [ebp - 0x14]
call fcn.004c0940
cmp dword [ebp - 0x24], 0
je 0x4c1800
push 0
lea eax, [ebp - 0x9c]
xor edx, edx
call fcn.004147dc
push dword [ebp - 0x90]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
push 0x4c19d8
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
call fcn.00406058
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x4c19f0
mov dword [ebp - 0x6c], eax
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, dword [ebp - 0x14]
call fcn.004c0940
cmp dword [ebp - 0x2c], 0
je 0x4c17ad
lea eax, [ebp - 0x28]
push eax
mov eax, 0x4c1a14
mov dword [ebp - 0x6c], eax
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, dword [ebp - 0x2c]
call fcn.004c056c
cmp dword [ebp - 0x28], 0
je 0x4c1800
lea eax, [ebp - 0xac]
call fcn.004100f4
push eax
push 0
push 0x4c1a34
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [eax]
call dword [eax + 0x20]
call fcn.00406058
lea edx, [ebp - 0xac]
lea eax, [ebp - 0x18]
call fcn.00413774
mov edx, dword [ebp - 0x18]
mov eax, 0x4c1a44
call fcn.004048cc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4c1800
mov eax, dword [0x4d47d0]
mov edx, dword [ebp - 0x18]
call fcn.004046d4
je 0x4c1603
call fcn.0040a8fc
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0xb0]
call fcn.0040b534
push dword [ebp - 0xb0]
call sub.kernel32.dll_GetTickCount
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xb4]
call fcn.00408e38
push dword [ebp - 0xb4]
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xb8]
call fcn.00408e38
push dword [ebp - 0xb8]
push 0x4c1a7c
mov eax, 0x4d47d4
mov edx, 4
call fcn.00404648
mov eax, 0x4d47d0
mov edx, dword [ebp - 0x18]
call fcn.0040431c
lea edx, [ebp - 0xc0]
xor eax, eax
call fcn.00402aec
mov eax, dword [ebp - 0xc0]
lea edx, [ebp - 0xbc]
call fcn.004093cc
push dword [ebp - 0xbc]
push 0x4c1a8c
push dword [0x4d47d4]
push 0x4c1a7c
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00404648
mov eax, dword [ebp - 0x1c]
call fcn.00409274
test al, al
jne 0x4c1800
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.004c02d0
test al, al
je 0x4c1800
cmp dword [0x4d47dc], 2
jg 0x4c1800
mov eax, dword [0x4d47d8]
mov edx, dword [0x4d47d0]
call fcn.004046d4
je 0x4c16e8
inc dword [0x4d47dc]
lea ecx, [ebp - 0x20]
mov edx, 4
mov eax, dword [ebp - 0x1c]
call fcn.004bfcf0
mov edx, dword [ebp - 0x20]
mov eax, 0x4c1a9c
call fcn.004048cc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4c1800
lea eax, [ebp - 0x20]
push eax
mov ecx, 4
xor edx, edx
mov eax, dword [ebp - 0x20]
call fcn.004047e8
mov eax, 0x4d47d8
mov edx, dword [0x4d47d0]
call fcn.0040431c
mov eax, 0x4d47e0
mov edx, dword [ebp - 0x20]
call fcn.0040431c
jmp 0x4c16f6
lea eax, [ebp - 0x20]
mov edx, dword [0x4d47e0]
call fcn.00404360
lea eax, [ebp - 0x24]
push eax
mov eax, 0x4c1aa8
mov dword [ebp - 0x6c], eax
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, dword [ebp - 0x2c]
call fcn.004c056c
cmp dword [ebp - 0x24], 0
je 0x4c1800
push 0
lea eax, [ebp - 0xd0]
mov edx, dword [ebp - 0x20]
call fcn.0041494c
push dword [ebp - 0xc4]
push dword [ebp - 0xc8]
push dword [ebp - 0xcc]
push dword [ebp - 0xd0]
push 0x4c1994
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
call fcn.00406058
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x310]
cmp eax, 0x3a98
jbe 0x4c1800
lea eax, [ebp - 0x24]
push eax
mov eax, 0x4c1ac8
mov dword [ebp - 0x6c], eax
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, dword [ebp - 0x14]
call fcn.004c0940
cmp dword [ebp - 0x24], 0
je 0x4c1800
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [eax]
call dword [eax + 0x114]
call fcn.00406058
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x310], eax
jmp 0x4c1800
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x310]
cmp eax, 0x3a98
jbe 0x4c1800
lea eax, [ebp - 0x24]
push eax
mov eax, 0x4c1ac8
mov dword [ebp - 0x6c], eax
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, dword [ebp - 0x14]
call fcn.004c0940
cmp dword [ebp - 0x24], 0
je 0x4c1800
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [eax]
call dword [eax + 0x114]
call fcn.00406058
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x310], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c18c9
lea eax, [ebp - 0xd0]
call fcn.004100f4
lea eax, [ebp - 0xc0]
mov edx, 5
call fcn.004042ec
lea eax, [ebp - 0xac]
mov edx, dword [0x401120]
mov ecx, 4
call fcn.00404e34
lea eax, [ebp - 0x68]
call fcn.004042c8
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.004049ec
lea eax, [ebp - 0x5c]
mov edx, dword [0x4011d4]
mov ecx, 2
call fcn.00404e34
lea eax, [ebp - 0x54]
call fcn.004042c8
lea eax, [ebp - 0x50]
call fcn.00405f48
lea eax, [ebp - 0x4c]
call fcn.00405f48
lea eax, [ebp - 0x48]
call fcn.00405f48
lea eax, [ebp - 0x44]
call fcn.00405f48
lea eax, [ebp - 0x40]
call fcn.004100f4
lea eax, [ebp - 0x2c]
mov edx, dword [0x4bbd0c]
mov ecx, 3
call fcn.00404e34
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004042ec
lea eax, [ebp - 0x14]
call fcn.00405f48
ret