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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x4c31e0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c3530
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 0x4c3486
lea eax, [ebp - 0x10]
call fcn.00405f48
push eax
push 0x4c3544
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 0x4c3486
lea eax, [ebp - 0x14]
push eax
mov eax, 0x4c355c
mov dword [ebp - 0x60], eax
lea edx, [ebp - 0x60]
xor ecx, ecx
mov eax, dword [ebp - 0x10]
call fcn.004c0940
cmp dword [ebp - 0x14], 0
je 0x4c32f6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x331], 0
jne 0x4c32af
lea eax, [ebp - 0x14]
push eax
mov eax, 0x4c3578
mov dword [ebp - 0x60], eax
lea edx, [ebp - 0x60]
xor ecx, ecx
mov eax, dword [ebp - 0x10]
call fcn.004c0940
cmp dword [ebp - 0x14], 0
je 0x4c3486
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x114]
call fcn.00406058
jmp 0x4c3486
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, 0x4c3594
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 0x4c3486
lea eax, [ebp - 0x18]
push eax
mov eax, 0x4c35cc
mov dword [ebp - 0x60], eax
lea edx, [ebp - 0x60]
xor ecx, ecx
mov eax, dword [ebp - 0x10]
call fcn.004c0940
cmp dword [ebp - 0x18], 0
je 0x4c3486
lea eax, [ebp - 0x14]
push eax
mov eax, 0x4c35e8
mov dword [ebp - 0x60], eax
lea edx, [ebp - 0x60]
xor ecx, ecx
mov eax, dword [ebp - 0x18]
call fcn.004c056c
cmp dword [ebp - 0x14], 0
je 0x4c3486
push 0
lea eax, [ebp - 0x78]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x320]
call fcn.0041494c
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push 0x4c35fc
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
call fcn.00406058
lea eax, [ebp - 0x14]
push eax
mov eax, 0x4c3610
mov dword [ebp - 0x60], eax
lea edx, [ebp - 0x60]
xor ecx, ecx
mov eax, dword [ebp - 0x18]
call fcn.004c056c
cmp dword [ebp - 0x14], 0
je 0x4c3486
push 0
lea eax, [ebp - 0x88]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x324]
call fcn.0041494c
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0x84]
push dword [ebp - 0x88]
push 0x4c35fc
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
call fcn.00406058
lea eax, [ebp - 0x14]
push eax
mov eax, 0x4c3628
mov dword [ebp - 0x60], eax
lea edx, [ebp - 0x60]
xor ecx, ecx
mov eax, dword [ebp - 0x18]
call fcn.004c056c
cmp dword [ebp - 0x14], 0
je 0x4c3486
push 0
lea eax, [ebp - 0x98]
xor edx, edx
call fcn.004147dc
push dword [ebp - 0x8c]
push dword [ebp - 0x90]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push 0x4c363c
mov eax, dword [ebp - 0x14]
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 0x4c3486
lea eax, [ebp - 0x14]
push eax
mov eax, 0x4c3654
mov dword [ebp - 0x60], eax
lea edx, [ebp - 0x60]
xor ecx, ecx
mov eax, dword [ebp - 0x18]
call fcn.004c056c
cmp dword [ebp - 0x14], 0
je 0x4c3486
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x114]
call fcn.00406058
mov eax, dword [ebp - 4]
mov byte [eax + 0x331], 1
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 0x4c353a
lea eax, [ebp - 0x98]
mov edx, dword [0x401120]
mov ecx, 3
call fcn.00404e34
lea eax, [ebp - 0x68]
call fcn.004042c8
lea eax, [ebp - 0x64]
call fcn.004049d4
lea eax, [ebp - 0x5c]
mov edx, dword [0x4011d4]
mov ecx, 2
call fcn.00404e34
lea eax, [ebp - 0x54]
call fcn.00405f48
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]
mov edx, dword [0x4bbd0c]
mov ecx, 2
call fcn.00404e34
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.004042ec
lea eax, [ebp - 0x30]
call fcn.004100f4
lea eax, [ebp - 0x18]
mov edx, dword [0x4bbd0c]
mov ecx, 2
call fcn.00404e34
lea eax, [ebp - 0x10]
call fcn.00405f48
ret