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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c0c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x42d99c
lea ecx, [ebp - 0x4c]
call fcn.004066ca
and dword [ebp - 4], 0
push 0x42d9a8
lea ecx, [ebp - 0x4c]
call fcn.0040f894
push 0x42d9b4
lea ecx, [ebp - 0x4c]
call fcn.0040f894
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x43e1f4], eax
push 0x104
lea eax, [ebp - 0x150]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401697
pop ecx
pop ecx
call fcn.0040f02c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x24], eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
cmp eax, 0x384
jge 0x40f156
push 1
call fcn.00418882
call fcn.0040f052
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x1e8480
jge 0x40f16e
push 1
call fcn.00418882
call fcn.00410314
push dword [0x43e1e8]
call fcn.00411403
pop ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [0x43e1fc], eax
push 8
call fcn.004113c5
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40f1ad
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
jmp 0x40f1b1
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [0x43e1fc]
mov dword [eax + 4], ecx
mov eax, dword [0x43e1e8]
add eax, 6
sub eax, dword [0x43e1f4]
push eax
call fcn.00411403
pop ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
push dword [0x43e1e8]
push dword [0x43e1e4]
mov eax, dword [0x43e1e8]
add eax, 6
sub eax, dword [0x43e1f4]
push eax
push dword [ebp - 0x10]
call fcn.0040ec4b
add esp, 0x10
mov eax, dword [0x43c010]
add eax, 6
sub eax, dword [0x43e1f4]
push eax
push dword [0x43e1e8]
push 6
pop eax
sub eax, dword [0x43e1f4]
push eax
mov eax, dword [0x43e1e8]
add eax, 6
sub eax, dword [0x43e1f4]
push eax
push dword [ebp - 0x10]
call fcn.004013b7
add esp, 0x14
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
push dword [ebp - 0x18]
mov eax, dword [0x43e1e8]
add eax, 6
sub eax, dword [0x43e1f4]
push eax
push dword [ebp - 0x10]
call fcn.0040ed7b
add esp, 0xc
mov eax, dword [0x43c010]
add eax, 6
sub eax, dword [0x43e1f4]
push eax
mov eax, dword [0x43e1e8]
add eax, 6
sub eax, dword [0x43e1f4]
push eax
push 0
push dword [0x43e1e8]
mov eax, dword [ebp - 0x10]
add eax, 6
sub eax, dword [0x43e1f4]
push eax
call fcn.0040133c
add esp, 0x14
mov eax, dword [0x43e1e8]
add eax, 6
sub eax, dword [0x43e1f4]
push eax
push 7
push dword [0x43e1fc]
call fcn.00412780
add esp, 0xc
push 0x40ef4e
push 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
push 0x43e1ec
push 0x46
pop eax
sub eax, dword [0x43e1f4]
push eax
mov eax, dword [0x43e1e8]
add eax, 6
sub eax, dword [0x43e1f4]
push eax
push dword [0x43e1fc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [0x43e1fc]
call fcn.0040f01d
pop ecx
call fcn.0040178f
and dword [ebp - 0x34], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00407335
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret