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

Disassembly:
sub esp, 0x10
push ebp
mov ebp, ecx
call sub.KERNEL32.dll_GetTickCount
mov dword [0x4333cc], eax
mov eax, dword [esp + 0x20]
cmp eax, 0x100000
jg 0x411401
mov al, byte [esp + 0x18]
push ebx
push esi
push edi
test al, al
jne 0x411226
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x24]
lea eax, [ebp + 0x52]
lea ecx, [ebp + 0x54]
mov dword [esp + 0x14], eax
mov al, byte [ebp + 0x18]
mov dword [esp + 0x18], ecx
lea edx, [ebp + 0x56]
lea ecx, [ebp + 0x58]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x10], al
lea edi, [ebp + 0x80]
mov dword [esp + 0x24], ecx
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp + 0x8c], eax
jmp 0x4112a0
cmp al, 2
jne 0x411266
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x2c]
lea edx, [ebp + 0x70]
lea eax, [ebp + 0x72]
mov dword [esp + 0x14], edx
mov dl, byte [ebp + 0x20]
mov dword [esp + 0x18], eax
lea ecx, [ebp + 0x74]
lea eax, [ebp + 0x78]
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x10], dl
lea edi, [ebp + 0x88]
mov dword [esp + 0x24], eax
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp + 0x94], eax
jmp 0x4112a0
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x28]
lea ecx, [ebp + 0x60]
lea edx, [ebp + 0x62]
mov dword [esp + 0x14], ecx
mov cl, byte [ebp + 0x1c]
mov dword [esp + 0x18], edx
lea eax, [ebp + 0x64]
lea edx, [ebp + 0x68]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x10], cl
lea edi, [ebp + 0x84]
mov dword [esp + 0x24], edx
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp + 0x90], eax
mov eax, dword [edi]
test eax, eax
jne 0x4112ac
mov eax, dword [esp + 0x40]
jmp 0x4112cf
cmp eax, dword [esp + 0x40]
jb 0x4112d1
mov ecx, dword [esp + 0x24]
cmp dword [ecx], 1
jge 0x4112c1
mov dword [ecx], 1
mov eax, 0x3e8
cdq
idiv dword [ecx]
add eax, dword [edi]
mov dword [esp + 0x40], eax
mov dword [edi], eax
cmp byte [esp + 0x30], 0xff
jne 0x4112e2
mov ecx, dword [esp + 0x14]
mov dl, byte [ecx]
mov byte [esp + 0x30], dl
cmp word [esp + 0x34], 0
jne 0x4112f6
mov eax, dword [esp + 0x18]
mov cx, word [eax]
mov word [esp + 0x34], cx
mov edi, dword [esp + 0x38]
test di, di
jne 0x411306
mov edx, dword [esp + 0x1c]
mov di, word [edx]
lea ecx, [ebp + 0x30]
mov dword [esp + 0x38], ecx
call fcn.0040aa30
test ebx, ebx
je 0x4113f5
mov al, byte [esp + 0x3c]
test al, al
je 0x4113cf
mov eax, dword [ebp + 0x98]
test eax, eax
je 0x4113f5
mov cx, word [esp + 0x34]
mov word [eax], cx
mov edx, dword [ebp + 0x98]
test esi, esi
mov word [edx + 2], di
mov eax, 4
je 0x411385
mov cl, byte [esp + 0x10]
test cl, cl
jbe 0x411385
mov eax, dword [ebp + 0x98]
mov byte [eax + 4], cl
mov eax, dword [esp + 0x10]
mov edi, dword [ebp + 0x98]
and eax, 0xff
mov ecx, eax
add edi, 5
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add eax, 5
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 0x98]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov edi, eax
add edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x40]
mov edx, dword [ebx]
push ecx
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
push ecx
mov ecx, dword [esp + 0x44]
push ecx
mov cl, byte [esp + 0x3c]
add cl, 0x64
push ecx
mov ecx, dword [esp + 0x3c]
add eax, ecx
push eax
mov eax, dword [ebp + 0x98]
jmp 0x4113ef
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
push eax
mov edx, dword [ebx]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x30]
push eax
mov al, byte [esp + 0x38]
add al, 0x64
push 0
push eax
mov eax, dword [esp + 0x38]
push ecx
push eax
mov ecx, ebx
call dword [edx + 8]
mov ecx, dword [esp + 0x38]
call fcn.0040aa40
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x10
ret 0x20