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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ddbe4
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x260
mov eax, dword [0x663000]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0xc8], eax
mov byte [eax], 1
call fcn.0041ca00
push ecx
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0xc4], eax
call fcn.00415de0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
push str.MARK
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.00415110
xor edx, edx
mov dword [ebp - 0x44], 0
mov edi, 7
mov dword [ebp - 0x34], edx
xor eax, eax
mov dword [ebp - 0x30], edi
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0xc4]
xor esi, esi
mov byte [ebp - 4], 2
cmp dword [eax + 0xc], esi
jle 0x4130ae
nop word [eax + eax]
cmp esi, 0xa
jge 0x4130ae
mov eax, edi
lea ecx, [ebp - 0x44]
sub eax, edx
cmp eax, 2
jb 0x41307f
cmp edi, 8
lea eax, [edx + 2]
mov dword [ebp - 0x34], eax
cmovae ecx, dword [ebp - 0x44]
mov eax, dword [0x6315a0]
mov dword [ecx + edx*2], eax
xor eax, eax
mov word [ecx + edx*2 + 4], ax
jmp 0x41309a
push 2
push 0x6315a0
mov byte [ebp - 0xc0], 0
push dword [ebp - 0xc0]
push 2
call fcn.0041d780
mov eax, dword [ebp - 0xc4]
inc esi
cmp esi, dword [eax + 0xc]
jge 0x4130ae
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
jmp 0x413050
xor eax, eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov byte [ebp - 4], 4
call fcn.005bb7bb
lea eax, [ebp - 0x2c]
push 0xb
push eax
call fcn.005bb8c6
add esp, 8
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x74]
push eax
call fcn.00415110
push ecx
lea ecx, [ebp - 0x270]
call fcn.00415de0
mov esi, dword [ebp - 0xc4]
mov byte [ebp - 4], 5
cmp dword [esi + 0x10], 0
jne 0x413131
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
lea ecx, [ebp - 0x260]
mov dword [esi + 0x10], eax
call fcn.00410290
jmp 0x413161
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x10]
lea ecx, [ebp - 0x260]
movd xmm0, eax
cvtdq2pd xmm1, xmm0
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x6376f0]
divsd xmm1, qword [0x637690]
call fcn.0041d1a0
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x258]
call fcn.00416850
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x48]
cmp ecx, 8
jb 0x4131b1
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4131a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41360a
push ecx
push edx
call fcn.005af9e7
add esp, 8
movups xmm0, xmmword [ebp - 0xa4]
xor eax, eax
lea ecx, [ebp - 0x270]
mov word [ebp - 0xa4], ax
movups xmmword [ebp - 0x5c], xmm0
movq xmm0, qword [ebp - 0x94]
movq qword [ebp - 0x4c], xmm0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 7
mov byte [ebp - 4], 4
call fcn.00415cc0
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 0x2040
cmovae eax, dword [ebp - 0x44]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xd0]
push eax
call fcn.005b1d32
mov ecx, dword [ebp - 0x1b0]
lea edx, [ebp - 0x1b0]
push dword [eax + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [eax]
add ecx, edx
push ecx
call eax
cmp dword [ebp - 0x60], 8
lea edx, [ebp - 0x74]
push dword [ebp - 0x64]
cmovae edx, dword [ebp - 0x74]
lea ecx, [ebp - 0x1b0]
call fcn.00413940
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0xd8]
push 0x10
push eax
call fcn.005b1d32
mov edx, 0x6311e0
mov ecx, esi
mov edi, eax
call fcn.00413680
push dword [edi + 4]
mov esi, eax
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
push ecx
mov ecx, dword [edi]
call ecx
push 0
lea eax, [ebp - 0xf0]
push 6
push eax
call fcn.005b1d60
add esp, 0x1c
mov edx, eax
mov ecx, esi
call fcn.0041d750
mov esi, eax
mov eax, 0x30
push 0
push 3
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
mov word [ecx + esi + 0x40], ax
lea eax, [ebp - 0x100]
push eax
call fcn.005b1d46
add esp, 0xc
mov edx, eax
mov ecx, esi
call fcn.0041d750
cmp dword [ebp - 0x48], 8
lea edx, [ebp - 0x5c]
push dword [ebp - 0x4c]
cmovae edx, dword [ebp - 0x5c]
mov ecx, eax
call fcn.00413940
add esp, 4
push 0
mov edi, eax
lea eax, [ebp - 0x110]
push 5
push eax
call fcn.005b1d60
add esp, 0xc
mov edx, 0x6311e0
mov ecx, edi
mov esi, eax
call fcn.00413680
mov edx, esi
mov ecx, eax
call fcn.0041d750
mov esi, eax
mov eax, 0x20
push 0x40
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
mov word [ecx + esi + 0x40], ax
lea eax, [ebp - 0xe0]
push eax
call fcn.005b1d32
mov ecx, dword [esi]
push dword [eax + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [eax]
add ecx, esi
push ecx
call eax
cmp dword [ebp - 0x78], 8
lea edx, [ebp - 0x8c]
push dword [ebp - 0x7c]
cmovae edx, dword [ebp - 0x8c]
mov ecx, esi
call fcn.00413940
add esp, 0x14
mov edx, 0x6315e0
mov ecx, eax
call fcn.00413680
mov edx, dword [ebp - 0xc0]
mov ecx, eax
call fcn.00413680
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x66d948]
cmp eax, dword [ecx + 4]
jg 0x41360f
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x1a8]
call fcn.00416850
mov byte [ebp - 4], 7
mov ecx, dword [0x663aec]
cmp ecx, 8
jb 0x4133dc
mov edx, dword [0x663ad8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4133d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413666
push ecx
push edx
call fcn.005af9e7
add esp, 8
movups xmm0, xmmword [ebp - 0xbc]
xor eax, eax
mov word [ebp - 0xbc], ax
movups xmmword [0x663ad8], xmm0
movq xmm0, qword [ebp - 0xac]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x48]
movq qword [0x663ae8], xmm0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 7
cmp ecx, 8
jb 0x413455
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41344b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413666
push ecx
push edx
call fcn.005af9e7
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp ecx, 8
jb 0x4134a7
mov edx, dword [ebp - 0x74]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41349d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413666
push ecx
push edx
call fcn.005af9e7
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
cmp ecx, 8
jb 0x4134f9
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4134ef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413666
push ecx
push edx
call fcn.005af9e7
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp ecx, 8
jb 0x41354d
mov edx, dword [ebp - 0x8c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x413543
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413666
push ecx
push edx
call fcn.005af9e7
add esp, 8
xor eax, eax
mov dword [ebp - 0x7c], 0
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00415cc0
call fcn.0041ca00
cmp dword [0x663aec], 8
mov edx, 0x663ad8
push dword [0x663ae8]
cmovae edx, dword [0x663ad8]
mov ecx, eax
call fcn.00413940
mov esi, dword [ebp - 0xc8]
add esp, 4
mov edx, str.Entering:
mov ecx, eax
call fcn.00413680
cmp dword [esi + 0x18], 8
lea edx, [esi + 4]
jb 0x4135bc
mov edx, dword [esi + 4]
push dword [esi + 0x14]
mov ecx, eax
call fcn.00413940
add esp, 4
push eax
call fcn.00414970
add esp, 4
call fcn.0041ca00
mov ecx, dword [eax + 0xc]
inc ecx
mov dword [eax + 0xc], ecx
cmp ecx, 0xa
jle 0x4135ea
mov dword [eax + 0xc], 0xa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005af765
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.005b681f
push 0x66d948
call fcn.005afb28
add esp, 4
cmp dword [0x66d948], 0xffffffff
jne 0x413386
push 0x5f3ee0
mov dword [0x663ad8], 0
mov dword [0x663ae8], 0
mov dword [0x663aec], 7
call fcn.005af9af
add esp, 4
push 0x66d948
call fcn.005afade
add esp, 4
jmp 0x413386
call fcn.005b681f
int3