Function at 0x4017ff
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3dc
mov eax, dword [0x4290a0]
xor eax, esp
mov dword [esp + 0x3d8], eax
mov eax, dword [0x42a440]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
push edi
jl 0x401dea
cmp eax, dword [0x42a450]
jg 0x401dea
xor esi, esi
inc esi
cmp dword [0x44c2e6], esi
jne 0x401886
movzx eax, word [0x44be18]
push eax
mov ecx, 0x44bdf0
mov edi, 0x44c2d0
mov dword [0x44bde8], ebp
call fcn.00403b11
test eax, eax
je 0x401876
mov dword [0x44bde8], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x44bee4], eax
push 0x3e8
jmp 0x40187b
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401e05
push 0x44c178
mov ecx, 0x42a450
call fcn.00402a01
test eax, eax
je 0x401dd0
mov eax, dword [0x42aee4]
mov ebx, 0x44c278
mov esi, 0x42af68
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x3c6
movsd dword es:[edi], dword [esi]
mov dword [0x44c0f4], eax
lea eax, [esp + 0x24]
push ebp
push eax
movsd dword es:[edi], dword [esi]
call fcn.004100e0
mov eax, dword [0x44bde8]
add esp, 0xc
cmp eax, 1
jne 0x401968
xor eax, eax
movzx ecx, word [eax + 0x44bdec]
mov word [esp + eax + 0xd2], cx
inc eax
inc eax
cmp cx, bp
jne 0x4018da
xor eax, eax
movzx ecx, word [eax + 0x44be3a]
mov word [esp + eax + 0x112], cx
inc eax
inc eax
cmp cx, bp
jne 0x4018f2
xor eax, eax
movzx ecx, word [eax + 0x44be1c]
mov word [esp + eax + 0xd6], cx
inc eax
inc eax
cmp cx, bp
jne 0x40190a
mov esi, str.9000
mov edi, 0x43bde8
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0xf1
lea esi, [esp + 0x20]
mov edi, 0x43bdec
rep movsd dword es:[edi], dword [esi]
push 1
movsw word es:[edi], word [esi]
push 0x43bde8
mov esi, 0x44c2d0
mov dword [0x42a448], 0x3ca
call fcn.00403bf1
mov dword [0x44bde8], 2
jmp 0x401dc3
cmp eax, 2
jne 0x401993
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x44bee4]
cmp eax, 0x1388
jbe 0x401e05
mov dword [0x44bde8], ebp
call esi
jmp 0x401df6
cmp eax, 3
jne 0x401ae3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x44bee4]
cmp eax, 0x3e8
jbe 0x401e05
cmp dword [0x42a440], 6
mov eax, 0xb4
lea ecx, [eax - 0x32]
jne 0x4019cc
push 0x32
mov eax, 0x320
pop ecx
push ecx
push eax
sub esp, 0x10
mov edi, esp
mov esi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, 0x42a450
movsd dword es:[edi], dword [esi]
call fcn.00402a5b
test eax, eax
je 0x401a59
mov eax, dword [0x42a440]
cmp eax, 5
ja 0x401a3b
push 0x424b7c
mov esi, 0x42af78
push esi
call fcn.0040eb55
pop ecx
pop ecx
test eax, eax
je 0x401a20
xor eax, eax
movzx ecx, word [eax + 0x42af78]
mov word [eax + 0x44c1f8], cx
inc eax
inc eax
cmp cx, bp
jne 0x401a09
jmp 0x401a70
push str.game
push esi
call fcn.0040eb55
pop ecx
pop ecx
test eax, eax
je 0x401a70
mov dword [esp + 0x38], 1
jmp 0x401a70
cmp eax, 6
jne 0x401a70
xor eax, eax
movzx ecx, word [eax + 0x42af78]
mov word [eax + 0x44c1f8], cx
inc eax
inc eax
cmp cx, bp
jne 0x401a42
jmp 0x401a70
xor eax, eax
movzx ecx, word [eax + 0x424bb8]
mov word [eax + 0x44c1f8], cx
inc eax
inc eax
cmp cx, bp
jne 0x401a5b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, str.6004
mov edi, 0x43bde8
movsd dword es:[edi], dword [esi]
mov dword [0x44bee4], eax
movsb byte es:[edi], byte [esi]
xor eax, eax
movzx ecx, word [eax + 0x44c178]
mov word [esp + eax + 0x3c], cx
inc eax
inc eax
cmp cx, bp
jne 0x401a89
xor eax, eax
movzx ecx, word [eax + 0x44c1f8]
mov word [esp + eax + 0x78], cx
inc eax
inc eax
cmp cx, bp
jne 0x401a9e
mov ecx, 0xf1
lea esi, [esp + 0x20]
mov edi, 0x43bdec
rep movsd dword es:[edi], dword [esi]
push 1
movsw word es:[edi], word [esi]
push 0x43bde8
mov esi, 0x44c2d0
mov dword [0x42a448], 0x3ca
call fcn.00403bf1
jmp 0x401e05
cmp eax, 4
jne 0x401e05
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x3e8
cdq
idiv dword [0x44bed4]
sub ecx, dword [0x44bee4]
cmp ecx, eax
jbe 0x401e05
mov eax, dword [0x44c280]
sub eax, dword [0x44c278]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], eax
mov eax, dword [0x44c284]
sub eax, dword [0x44c27c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], eax
mov eax, dword [0x42a440]
cmp eax, 6
jne 0x401b43
push ebp
mov esi, ebx
jmp 0x401b96
cmp eax, 5
ja 0x401b8c
cmp dword [0x44c0f0], 3
jne 0x401b8c
mov eax, dword [0x44c2c8]
mov esi, str.6003
mov edi, 0x43bde8
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
cmp eax, ebp
je 0x401e05
push 0x42a448
call eax
mov eax, dword [0x44c2cc]
pop ecx
cmp eax, ebp
je 0x401e05
push 0x43bdec
call eax
pop ecx
jmp 0x401d9b
push dword [0x44c0f4]
lea esi, [esp + 0x14]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, 0x44c2a8
movsd dword es:[edi], dword [esi]
call fcn.0040310a
cmp eax, ebp
je 0x401e05
mov ebx, dword [0x44c2a8]
cmp ebx, ebp
je 0x401e05
mov eax, dword [0x42a440]
cmp eax, ebp
jne 0x401bfc
push 0xd0
mov edi, 0x140
push edi
push ebp
push 0x10e
push ebx
mov esi, 0x44c290
push esi
call fcn.0040260a
push 0x14
push ebp
push 0xbc
push 0x21c
push 0x104
jmp 0x401d5e
cmp eax, 1
jne 0x401c32
push 0xd0
mov edi, 0x140
push edi
push ebp
push 0x64
push ebx
mov esi, 0x44c290
push esi
call fcn.0040260a
push 0x14
push ebp
push 0xbc
push 0x203
push 0xe6
jmp 0x401d5e
cmp eax, 2
je 0x401d32
cmp eax, 3
je 0x401d32
mov esi, 0x44c290
cmp eax, 4
jne 0x401c97
push 0xad
mov edi, 0x140
push edi
push 6
push 0x10e
push ebx
push esi
call fcn.0040260a
push ebp
push 0xf0
push 0x14
push 6
push 0x2a8
push ebx
push esi
push 0x50
pop edx
call fcn.0040276a
push 0x14
push ebp
push 0x9b
push 0x24e
push 0x14a
jmp 0x401d5e
cmp eax, 5
jne 0x401cdd
push 0xd0
mov edi, 0x140
push edi
push ebp
push 0x69
push ebx
push esi
call fcn.0040260a
push ebp
push 0x8c
push 0x14
push ebp
push 0x1b3
push ebx
push esi
mov edx, 0xb4
call fcn.0040276a
push 0x14
push ebp
push 0xbc
push 0x1ea
jmp 0x401c28
cmp eax, 6
jne 0x401d0b
push 0xdc
mov edi, 0x190
push edi
push ebp
push 0x5a
push ebx
push esi
call fcn.0040260a
push 0x17
push ebp
push 0xc5
push 0x226
push 0xfa
jmp 0x401d5e
push 0xc8
mov edi, 0x154
push edi
push ebp
push 0x78
push ebx
push esi
call fcn.0040260a
push 0x1e
push ebp
push 0xaa
push 0x226
jmp 0x401c8d
push 0xbc
mov edi, 0x140
push edi
push ebp
push 0x6e
push ebx
mov esi, 0x44c290
push esi
call fcn.0040260a
push 0x14
push ebp
push 0xa8
push 0x186
push 0x82
push ebx
push esi
mov edx, edi
call fcn.0040276a
push 0x42a448
push 0x43bdec
push dword [0x44bedc]
mov esi, str.6003
push dword [0x44c294]
mov edi, 0x43bde8
push dword [0x44c290]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.00407409
add esp, 0x14
test eax, eax
jne 0x401e05
mov eax, dword [0x42a448]
dec eax
cmp eax, 0xfffa
ja 0x401e05
add dword [0x42a448], 4
push ebp
push 0x43bde8
mov esi, 0x44c2d0
call fcn.00403bf1
test eax, eax
je 0x401e05
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x44bee4], eax
jmp 0x401e05
mov dword [0x44c278], ebp
mov dword [0x44c27c], ebp
mov dword [0x44c280], ebp
mov dword [0x44c284], ebp
jmp 0x401e05
mov dword [0x44bde8], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, 0x44c2d0
mov dword [0x44bee4], eax
call fcn.00403bcb
mov ecx, dword [esp + 0x3e8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040e402
add esp, 0x3dc
ret