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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
movups xmm0, xmmword [ebx]
movups xmmword [esi + 0xa0], xmm0
movq xmm0, qword [ebx + 0x10]
movq qword [esi + 0xb0], xmm0
mov eax, dword [ebx + 0x18]
mov dword [esi + 0xb8], eax
mov dword [esi + 0xe4], 0
mov dword [esi + 0xf0], 0xe
mov dword [esi + 0xf8], 0
cmp dword [ebx + 4], 0
jne 0x40fcc9
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test byte [ebx + 0x10], 4
jne 0x40fdd4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 8], eax
test edi, edi
je 0x40fd1e
cmp dword [esi + 0x100], 0
jne 0x40fd1e
push 0
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
mov edi, dword [ebp + 0xc]
jne 0x40fd1e
mov dword [esi + 0x100], 1
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 8]
cmp eax, 0xbb8
jae 0x40fd98
lea eax, [esi + 0xbc]
nop dword [eax]
nop dword [eax + eax]
push eax
push dword [esi + 0xa0]
mov eax, dword [esi + 0xa4]
mov dword [esi + 0xe8], 0
mov dword [esi + 0xec], 0
call eax
add esp, 8
mov dword [esi + 0xf0], eax
cmp dword [esi + 0xe8], 0
je 0x40fe00
cmp dword [esi + 0xec], 0
jne 0x40fd98
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 8]
cmp eax, 0xbb8
lea eax, [esi + 0xbc]
jb 0x40fd40
test edi, edi
je 0x40fdce
cmp dword [esi + 0x100], 0
je 0x40fdce
push 0
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
jne 0x40fdce
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [esi + 0x100], 0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x40fde1
cmp dword [eax + 0x38], 0
jne 0x40fe47
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x150]
cmp eax, 0xffffffff
jne 0x40fed3
push 0x12c
call edi
jmp 0x40fcd0
test edi, edi
je 0x40ff2c
cmp dword [esi + 0x100], 0
je 0x40ff2c
push 0
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
jne 0x40ff2c
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [esi + 0x100], 0
jmp 0x40ff2c
mov dword [eax + 0x34], 0xe
mov eax, dword [ebx + 0x18]
mov dword [eax + 0x2c], 0
mov eax, dword [ebx + 0x18]
mov dword [eax + 0x30], 0
push dword [ebx + 0x18]
mov eax, dword [ebx + 4]
push dword [ebx]
call eax
mov ecx, dword [ebx + 0x18]
add esp, 8
mov dword [ecx + 0x34], eax
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x28], 0
jne 0x40ff3f
cmp dword [eax + 0x2c], 0
je 0x40fec9
push dword [ebx + 0x14]
call edi
mov eax, dword [ebx + 0x18]
mov dword [eax + 0x2c], 0
mov eax, dword [ebx + 0x18]
mov dword [eax + 0x30], 0
push dword [ebx + 0x18]
mov eax, dword [ebx + 4]
push dword [ebx]
call eax
mov ecx, dword [ebx + 0x18]
add esp, 8
mov dword [ecx + 0x34], eax
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x28], 0
je 0x40fe82
pop edi
pop esi
mov eax, 0xa
pop ebx
pop ebp
ret 8
mov eax, dword [eax + 0x34]
pop edi
pop esi
pop ebx
pop ebp
ret 8
cmp dword [esi + 0x64], 0
je 0x40ff22
push dword [esi + 0x68]
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
call edi
push dword [esi + 0x68]
call edi
push ecx
push 0
lea edx, [esi + 0x64]
call fcn.00418fb0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
push dword [esi + 0x68]
call edi
push dword [esi + 0x6c]
call edi
push dword [esi + 0x70]
call edi
push dword [esi + 0x74]
call edi
push dword [esi + 0x78]
call edi
push dword [esi + 0x7c]
call edi
mov dword [esi + 0x64], 0
mov dword [esi + 0xf4], 0
cmp dword [esi + 0xe4], 0
je 0x40ff4b
mov dword [esi + 0xf0], 0xa
pop edi
pop esi
mov eax, 0xa
pop ebx
pop ebp
ret 8
mov eax, dword [esi + 0xf0]
pop edi
pop esi
pop ebx
pop ebp
ret 8