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

Disassembly:
push 0x48
mov eax, 0x443d20
call fcn.0042eee6
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x108]
xor ebx, ebx
cmp eax, ebx
jne 0x40e85a
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
call dword [eax + 0x28]
mov dword [ebp - 0x10], ebx
xor edi, edi
inc edi
mov dword [ebp - 4], edi
push 0x10000
call fcn.0042b354
cmp eax, ebx
pop ecx
mov dword [ebp - 0x10], eax
jne 0x40e633
call fcn.0041ecdc
push ebx
push ebx
push ebx
push ebx
push edi
push ebx
lea ecx, [ebp - 0x50]
call fcn.00426a1e
mov byte [ebp - 4], 2
push ebx
push ebx
push 0x4000002
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x50]
push dword [ebp + 0xc]
call fcn.0042761e
push eax
push 0x449178
call fcn.00420941
pop ecx
mov edi, eax
pop ecx
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 3
cmp edi, ebx
je 0x40e862
cmp dword [edi + 0x14], ebx
je 0x40e862
lea eax, [ebp + 0xc]
push eax
mov ecx, edi
mov dword [ebp + 0xc], 0xc8
call fcn.00426466
test eax, eax
jne 0x40e69e
mov eax, 0x80004005
jmp 0x40e6ab
push dword [ebp + 0xc]
call fcn.004074eb
cmp eax, ebx
pop ecx
jge 0x40e6b1
push eax
call fcn.0040176a
push ebx
lea eax, [ebp - 0x14]
push eax
push 5
mov ecx, edi
mov dword [ebp - 0x14], ebx
call fcn.0042643f
test eax, eax
je 0x40e6cb
cmp dword [ebp - 0x14], ebx
jne 0x40e6d8
push 0x2f76
push dword [ebp - 0x4c]
call fcn.004269a9
lea ecx, [ebp - 0x1c]
call fcn.00401a9e
mov byte [ebp - 4], 4
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x10000
push dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x40e81e
jmp 0x40e712
mov esi, dword [ebp + 8]
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
push dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x38]
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x108], ebx
jne 0x40e81e
push dword [ebp - 0x14]
push 0x64
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
add dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x18], eax
sub eax, dword [ebp - 0x20]
cmp eax, 0x42
jb 0x40e7e1
push fcn.00406741
push fcn.00401a9e
push 3
push 4
lea eax, [ebp - 0x3c]
push eax
call fcn.0042ad2a
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x24]
lea esi, [ebp - 0x34]
push eax
push dword [ebp + 0xc]
call fcn.00406ccb
push ebx
push dword [ebp - 0x14]
lea esi, [ebp - 0x38]
mov dword [ebp - 0x20], eax
call fcn.00406be2
push ebx
push dword [ebp + 0xc]
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x28], eax
call fcn.00406be2
mov ecx, dword [ebp - 0x20]
push dword [ecx]
mov ecx, dword [ebp - 0x28]
push dword [ecx]
push dword [eax]
lea eax, [ebp - 0x1c]
push 0xbbd
push eax
call fcn.0040139d
mov eax, dword [ebp - 0x18]
add esp, 0x2c
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 4
push fcn.00406741
push 3
push 4
mov eax, esi
push eax
call fcn.0042aded
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
push 0x64
push dword [esi + 0x18]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_MulDiv]
add eax, dword [esi + 0x14]
push dword [ebp - 0x28]
mov esi, dword [esi + 0x1c]
push eax
call fcn.00404310
mov eax, dword [edi]
push 0x10000
push dword [ebp - 0x10]
mov ecx, edi
call dword [eax + 0x34]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x40e70f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x4c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00406741
mov byte [ebp - 4], 2
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00427198
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.004044f9
call fcn.0042ef85
ret 0xc
call fcn.004052b2
int3