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

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
push edi
xor edi, edi
cmp ebx, edi
mov esi, ecx
je 0x40c2b6
cmp dword [esi + 0x1c], edi
je 0x40c2b6
call fcn.0040c700
lea ebp, [esi + 4]
push 1
push ebp
mov ecx, esi
mov dword [esi + 0x20], edi
call fcn.0040c520
lea eax, [esp + 0x18]
push eax
call dword [0x4298d0]
lea ecx, [esp + 0x18]
push 8
push ecx
mov ecx, esi
call fcn.0040c520
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0x14
push edx
call dword [0x4298d4]
test eax, eax
je 0x40c153
cmp dword [esp + 0x24], 1
jne 0x40c153
mov ecx, dword [esp + 0x28]
lea eax, [esi + 0xcc]
cmp ecx, dword [eax]
je 0x40c143
inc edi
add eax, 4
cmp edi, 0x10
jl 0x40c136
push ecx
call dword [0x4298d8]
cmp edi, 0x10
je 0x40c153
mov eax, edi
jmp 0x40c156
or eax, 0xffffffff
mov byte [esp + 0x38], al
lea eax, [esp + 0x38]
push 1
push eax
mov ecx, esi
call fcn.0040c520
cmp byte [ebp], 2
jne 0x40c1be
mov eax, dword [esi + 0x68]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x44]
push ecx
mov ecx, dword [esi + 0x80]
push edx
push eax
push ecx
mov ecx, esi
call fcn.0040c740
mov edx, dword [esi + 0x68]
mov ecx, dword [esi + 0x20]
mov eax, dword [edx + 0x14]
mov edx, dword [esi + 0x60]
push eax
mov eax, dword [esi + 0x1c]
add ecx, eax
mov eax, dword [esi + 0x78]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0040c7d0
mov ecx, dword [esi + 0x20]
pop edi
add eax, ecx
mov dword [ebx], eax
mov eax, dword [esi + 0x1c]
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
mov ebp, dword [esp + 0x1c]
xor ecx, ecx
lea eax, [ebp - 0x13]
test eax, eax
setl cl
dec ecx
and ecx, eax
mov eax, dword [0x42aa6c]
cmp ebp, eax
mov edi, ecx
je 0x40c1eb
push edi
mov ecx, esi
call fcn.0040c2d0
test al, al
je 0x40c1eb
add edi, 0x13
jmp 0x40c1ee
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x2c]
jge 0x40c20c
push edi
mov ecx, esi
call fcn.0040c2d0
test al, al
je 0x40c202
add edi, 0x13
mov eax, dword [esi + 0x2c]
add edi, 0x13
cmp edi, eax
jl 0x40c1f3
mov edx, dword [esp + 0x1c]
mov ecx, 0x13
mov dword [0x42aa6c], edx
mov eax, dword [esi + 0x30]
add eax, 3
mov byte [esp + 0x10], 0x53
cdq
idiv ecx
mov al, 0x65
mov byte [esp + 0x11], 0x6c
mov byte [esp + 0x12], al
mov byte [esp + 0x13], al
lea eax, [esp + 0x10]
mov byte [esp + 0x14], 0x70
push eax
push str.KERNEL32.dll
mov byte [esp + 0x1d], 0
mov dword [esi + 0x30], edx
mov edx, dword [esi + 0x20]
mov dword [ebx], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
lea edi, [esi + 0x14]
call ebx
mov edx, dword [edi]
mov ecx, dword [esi + 0x18]
sub eax, edx
cmp eax, ecx
jae 0x40c28a
push 1
call ebp
call ebx
mov edx, dword [edi]
mov ecx, dword [esi + 0x18]
sub eax, edx
cmp eax, ecx
jb 0x40c279
push str.InterlockedExchange
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
call ebx
push eax
push edi
call ebp
mov eax, dword [esi + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 4