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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4536a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
push ebx
push esi
push edi
lea ecx, [esp + 0x68]
call fcn.004030d8
lea eax, [esp + 0x84]
xor esi, esi
push eax
mov dword [esp + 0xd0], esi
call fcn.0040a39c
cmp dword [ebp + 0xc], esi
mov dword [esp + 0xcc], 1
jle 0x40f611
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp + 8]
push 6
push esi
lea eax, [edi + 0x30]
push eax
lea esi, [esp + 0x48]
call fcn.00402ccd
push str.p4p:__
mov byte [esp + 0xd0], 2
call fcn.0040304d
mov ebx, eax
neg ebx
push 0
sbb bl, bl
push 1
mov ecx, esi
inc bl
mov byte [esp + 0xd4], 1
call fcn.004017a5
test bl, bl
je 0x40f69b
push 0xffffffffffffffff
push 6
lea ebx, [edi + 0x30]
push ebx
lea esi, [esp + 0x48]
call fcn.00402ccd
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0xd8], 3
call fcn.004016f1
push 0
push 1
mov ecx, esi
mov byte [esp + 0xd4], 1
call fcn.004017a5
push 0x45842a
mov ecx, ebx
call fcn.00401782
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x24]
push eax
call fcn.0040a39c
push 0x45842a
lea ecx, [esp + 0x40]
mov byte [esp + 0xd0], 4
call fcn.0040162e
mov byte [esp + 0xcc], 5
cmp dword [edi + 0x2c], 0x10
jb 0x40f6d8
mov ecx, dword [edi + 0x18]
jmp 0x40f6db
lea ecx, [edi + 0x18]
push dword [edi + 0x50]
lea eax, [esp + 0x28]
push dword [edi + 0x4c]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [edi + 0x30]
push eax
push ecx
push dword [edi + 0x10]
call fcn.004196ce
push 0
push 1
lea ecx, [esp + 0x44]
mov dword [esp + 0x28], eax
mov byte [esp + 0xd4], 4
call fcn.004017a5
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x30]
push 0x1c
cdq
pop ecx
idiv ecx
and dword [esp + 0x10], 0
test eax, eax
jbe 0x40f8e9
sub esp, 0x1c
lea eax, [edi + 0x30]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00401650
lea eax, [esp + 0xc0]
push eax
call fcn.004023d7
add esp, 0x20
mov ebx, eax
push dword [esp + 0x10]
lea esi, [esp + 0x28]
mov byte [esp + 0xd0], 6
call fcn.004043c0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00401650
lea eax, [esp + 0x58]
push eax
call fcn.004023d7
add esp, 0x20
mov ecx, ebx
mov byte [esp + 0xcc], 7
call fcn.004030bb
mov ebx, eax
neg ebx
sbb bl, bl
xor esi, esi
push esi
push 1
lea ecx, [esp + 0x44]
inc bl
call fcn.004017a5
push esi
push 1
lea ecx, [esp + 0xac]
mov byte [esp + 0xd4], 4
call fcn.004017a5
test bl, bl
jne 0x40f8cd
mov eax, dword [esp + 0x94]
sub eax, dword [esp + 0x90]
push 0x1c
cdq
pop ecx
idiv ecx
mov dword [esp + 0x14], esi
test eax, eax
jbe 0x40f8b3
push dword [esp + 0x14]
lea esi, [esp + 0x88]
call fcn.004043c0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.00401650
lea eax, [esp + 0x58]
push eax
call fcn.004023d7
add esp, 0x20
mov ebx, eax
push dword [esp + 0x10]
lea esi, [esp + 0x28]
mov byte [esp + 0xd0], 8
call fcn.004043c0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.00401650
lea eax, [esp + 0xc0]
push eax
call fcn.004023d7
add esp, 0x20
mov ecx, ebx
mov byte [esp + 0xcc], 9
call fcn.004030bb
mov ebx, eax
neg ebx
push 0
sbb bl, bl
push 1
lea ecx, [esp + 0xac]
inc bl
call fcn.004017a5
push 0
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0xd4], 4
call fcn.004017a5
test bl, bl
jne 0x40f8cd
mov eax, dword [esp + 0x94]
sub eax, dword [esp + 0x90]
push 0x1c
cdq
pop ecx
idiv ecx
inc dword [esp + 0x14]
cmp dword [esp + 0x14], eax
jb 0x40f7ef
push dword [esp + 0x10]
lea esi, [esp + 0x28]
call fcn.004043c0
push eax
lea eax, [esp + 0x88]
call fcn.0040c632
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x30]
push 0x1c
cdq
pop ecx
idiv ecx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], eax
jb 0x40f736
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x58]
mov ecx, dword [edi + 0xc]
mov dword [ecx + 0x88], eax
mov esi, dword [esp + 0x90]
cmp esi, dword [esp + 0x94]
jbe 0x40f911
call fcn.0043b0d6
mov eax, dword [esp + 0x84]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x94]
cmp dword [esp + 0x90], esi
jbe 0x40f935
call fcn.0043b0d6
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40f946
cmp eax, dword [esp + 0x84]
je 0x40f94b
call fcn.0043b0d6
cmp dword [esp + 0x1c], esi
je 0x40f989
lea esi, [esp + 0x18]
call fcn.004142d8
push eax
call fcn.00402366
mov edi, dword [edi + 0xc]
pop ecx
cmp eax, 1
jne 0x40f971
inc dword [edi + 0xa0]
jmp 0x40f977
inc dword [edi + 0xac]
lea edi, [esp + 0x58]
lea esi, [esp + 0x18]
call fcn.0040c699
mov edi, dword [ebp + 8]
jmp 0x40f920
cmp dword [esp + 0x20], 0
push edi
jne 0x40f99d
lea eax, [esp + 0x64]
push eax
mov eax, 0x1421
jmp 0x40f9a6
push dword [esp + 0x24]
mov eax, 0x1422
push dword [edi + 0xc]
call fcn.0040a259
lea esi, [esp + 0x24]
call fcn.00404393
lea esi, [esp + 0x84]
call fcn.00404393
push 0
push 1
lea ecx, [esp + 0x70]
call fcn.004017a5
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8