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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x100c], 0
jg 0x5179d5
mov eax, dword [ebp - 4]
mov dword [eax + 0x100c], 6
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1008], 0
jg 0x5179ee
mov eax, dword [ebp - 4]
mov dword [eax + 0x1008], 0x12
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 4]
call fcn.005176c0
mov byte [ebp - 0x15], al
mov byte [ebp - 0x16], 0
mov byte [ebp - 0x17], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 0x1004]
cdq
idiv dword [ecx + 0x100c]
neg edx
sbb edx, edx
add edx, 1
mov byte [ebp - 0x18], dl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [eax + 0x1038]
cmp ecx, 0x190
jb 0x517a64
mov eax, dword [ebp - 4]
push eax
call fcn.00513ef0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1038], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [eax + 0x1034]
cmp ecx, 0x3e8
jb 0x517af3
movzx eax, byte [ebp - 0x15]
push eax
mov ecx, dword [ebp - 4]
call fcn.005188d0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1034], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x1004], 0
mov byte [ebp - 0x18], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf9c]
cdq
and edx, 0x1fff
add eax, edx
sar eax, 0xd
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx + 0xab4]
jl 0x517ace
mov dword [ebp - 0x70], 0
jmp 0x517aed
push 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xab4]
cdq
mov ecx, 6
idiv ecx
push eax
call fcn.00518710
add esp, 8
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0xabc], 0
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 4]
add ecx, 0x7dc
call fcn.00518050
mov dword [ebp - 0xc], 0
jmp 0x517b27
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 0x7dc
call fcn.00508130
cmp dword [ebp - 0xc], eax
jge 0x517d17
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x7dc
call fcn.00508170
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x517b5b
jmp 0x517b1e
movzx eax, byte [ebp - 0x18]
test eax, eax
jne 0x517bbf
movzx eax, byte [ebp - 0x15]
test eax, eax
jne 0x517b7a
mov eax, dword [ebp - 8]
cmp dword [eax + 0x130], 0x7000
jl 0x517b91
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x517bbf
mov eax, dword [ebp - 8]
cmp dword [eax + 0x134], 0x7000
jge 0x517bbf
mov ecx, dword [ebp - 8]
call fcn.00518450
movzx eax, al
test eax, eax
je 0x517bba
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x160]
call fcn.00518430
test eax, eax
jle 0x517bba
mov ecx, dword [ebp - 4]
call fcn.00518740
jmp 0x517b1e
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x18]
call eax
movzx ecx, al
test ecx, ecx
je 0x517c7c
movzx eax, byte [ebp - 0x17]
test eax, eax
jne 0x517c0b
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x158]
call fcn.00529910
cmp eax, 1
jne 0x517c0b
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x158]
call fcn.005184c0
movzx ecx, al
test ecx, ecx
je 0x517c0b
mov byte [ebp - 0x17], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xf9c]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 0x124]
mov eax, dword [ebp - 4]
mov dword [eax + 0xf9c], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xf98]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 0x120]
mov eax, dword [ebp - 4]
mov dword [eax + 0xf98], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xfc0]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 0x124]
mov eax, dword [ebp - 4]
mov dword [eax + 0xfc0], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xfbc]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 0x120]
mov eax, dword [ebp - 4]
mov dword [eax + 0xfbc], ecx
jmp 0x517d12
mov dword [ebp - 0x6c], 0
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x7dc
call fcn.00513d50
mov ecx, dword [ebp - 8]
call fcn.005263d0
cmp eax, 6
je 0x517ccb
mov ecx, dword [ebp - 8]
call fcn.005263d0
cmp eax, 5
je 0x517ccb
push 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x158]
push edx
mov ecx, dword [ebp - 4]
call fcn.00521530
mov ecx, dword [ebp - 8]
call fcn.005263d0
cmp eax, 6
je 0x517d02
mov eax, dword [ebp - 8]
cmp dword [eax + 0x158], 0
je 0x517d02
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x158]
call fcn.00518490
movzx ecx, al
test ecx, ecx
je 0x517d02
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.0051d8d0
mov byte [ebp - 0x16], 1
jmp 0x517b1e
cmp dword [ebp - 0x20], 0
jle 0x517d3e
push 0x55aed0
mov ecx, dword [ebp - 4]
add ecx, 0x8e4
call fcn.005180e0
mov ecx, dword [ebp - 4]
add ecx, 0x8e4
call fcn.00518050
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 0x1004]
cdq
idiv dword [ecx + 0x1008]
neg edx
sbb edx, edx
add edx, 1
mov byte [ebp - 0x18], dl
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xab4]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xabc]
push eax
call fcn.00518710
add esp, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
jmp 0x517d8f
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 0x7dc
call fcn.00508130
cmp dword [ebp - 0xc], eax
jge 0x517f4d
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x7dc
call fcn.00508170
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x517dc3
jmp 0x517d86
mov ecx, dword [ebp - 8]
call fcn.0050b590
cmp eax, 1
je 0x517dd2
jmp 0x517d86
movzx eax, byte [ebp - 0x15]
test eax, eax
jne 0x517de9
mov eax, dword [ebp - 8]
cmp dword [eax + 0x130], 0x7000
jl 0x517e00
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x517e1f
mov eax, dword [ebp - 8]
cmp dword [eax + 0x134], 0x7000
jge 0x517e1f
movzx eax, byte [ebp - 0x18]
test eax, eax
je 0x517e1a
cmp dword [ebp - 0x14], 0
jne 0x517e1f
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1004], 0x12
jge 0x517e1f
jmp 0x517d86
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
call eax
movzx ecx, al
test ecx, ecx
je 0x517ee9
movzx eax, byte [ebp - 0x17]
test eax, eax
jne 0x517e6b
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x158]
call fcn.00529910
cmp eax, 1
jne 0x517e6b
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x158]
call fcn.005184c0
movzx ecx, al
test ecx, ecx
je 0x517e6b
mov byte [ebp - 0x17], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xf9c]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 0x124]
mov eax, dword [ebp - 4]
mov dword [eax + 0xf9c], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xf98]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 0x120]
mov eax, dword [ebp - 4]
mov dword [eax + 0xf98], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xfc0]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 0x124]
mov eax, dword [ebp - 4]
mov dword [eax + 0xfc0], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xfbc]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 0x120]
mov eax, dword [ebp - 4]
mov dword [eax + 0xfbc], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xabc]
cmp ecx, dword [ebp - 0x10]
jl 0x517ee7
jmp 0x517f4d
jmp 0x517f48
mov dword [ebp - 0x68], 0
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x7dc
call fcn.00513d50
mov ecx, dword [ebp - 8]
call fcn.005263d0
cmp eax, 6
je 0x517f38
mov ecx, dword [ebp - 8]
call fcn.005263d0
cmp eax, 5
je 0x517f38
push 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x158]
push edx
mov ecx, dword [ebp - 4]
call fcn.00521530
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.0051d8d0
mov byte [ebp - 0x16], 1
jmp 0x517d86
movzx eax, byte [ebp - 0x16]
test eax, eax
je 0x517f6e
mov dword [ebp - 0x64], 0
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x7dc
call fcn.00513000
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x68]
call eax
movzx ecx, al
test ecx, ecx
jne 0x517fad
mov ecx, dword [ebp - 4]
call fcn.005200d0
movzx eax, byte [0x64549e]
test eax, eax
je 0x517f9f
mov ecx, dword [ebp - 4]
call fcn.005205b0
jmp 0x517fad
push 0
push 2
push 1
mov ecx, dword [ebp - 4]
call fcn.0051e680
movzx eax, byte [ebp - 0x17]
test eax, eax
je 0x517fbd
mov ecx, dword [ebp - 4]
call fcn.00547d50
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1004]
add ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + 0x1004], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1000]
add ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + 0xff8], ecx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0xfcc]
test ecx, ecx
jne 0x517ff9
mov al, 1
jmp 0x518044
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x70]
call eax
mov eax, dword [ebp - 4]
mov dword [eax + 0xfbc], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0xfc0], 0
mov ecx, dword [ebp - 4]
call fcn.00518770
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xfb4], eax
mov ecx, dword [ebp - 4]
call fcn.005187e0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xfb8], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret