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

Disassembly:
sub esp, 0x3e0
mov eax, dword [0x43fc54]
xor eax, esp
mov dword [esp + 0x3dc], eax
mov eax, dword [0x441024]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x4021fc
cmp eax, dword [0x441038]
jg 0x4021fc
mov ebp, 1
cmp dword [0x464d5e], ebp
jne 0x401b70
mov ebx, dword [0x464890]
mov dword [0x464860], edi
mov esi, 0x464868
mov edi, 0x464d48
call fcn.00404400
test eax, eax
je 0x401b60
mov dword [0x464860], ebp
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push 0x3e8
mov dword [0x46495c], eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x40223a
push 0x1388
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x40223a
push 0x464bf0
mov ecx, 0x441038
call fcn.00403100
test eax, eax
je 0x4021e2
mov edx, dword [0x441b58]
mov eax, dword [0x441b50]
mov ecx, dword [0x441b54]
push 0x3c6
mov dword [0x464cf8], edx
mov dword [0x464cf0], eax
mov eax, dword [0x441b5c]
mov dword [0x464cf4], ecx
mov ecx, dword [0x441acc]
lea edx, [esp + 0x24]
push edi
push edx
mov dword [0x464cfc], eax
mov dword [0x464b6c], ecx
call fcn.0041e180
mov eax, dword [0x464860]
add esp, 0xc
cmp eax, ebp
jne 0x401c93
xor eax, eax
movzx ecx, word [eax + 0x464864]
mov word [esp + eax + 0xd2], cx
add eax, 2
cmp cx, di
jne 0x401be1
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0x4648b2]
mov word [esp + eax + 0x112], cx
add eax, 2
cmp cx, di
jne 0x401c00
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x464894]
mov word [esp + eax + 0xd6], cx
add eax, 2
cmp cx, di
jne 0x401c20
mov cl, byte [0x438578]
mov eax, dword [str.9000]
mov byte [0x454864], cl
mov dword [0x454860], eax
mov ecx, 0xf1
lea esi, [esp + 0x20]
mov edi, 0x454864
rep movsd dword es:[edi], dword [esi]
push ebp
movsw word es:[edi], word [esi]
push 0x454860
mov esi, 0x464d48
mov dword [0x44102c], 0x3ca
call fcn.00404500
mov dword [0x464860], 2
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x46495c], eax
jmp 0x40223a
cmp eax, 2
jne 0x401ccd
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
sub eax, dword [0x46495c]
cmp eax, 0x1388
jbe 0x40223a
mov dword [0x464860], edi
call esi
mov esi, 0x464d48
mov dword [0x46495c], eax
call fcn.004044d0
jmp 0x40223a
cmp eax, 3
jne 0x401e75
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
sub eax, dword [0x46495c]
cmp eax, 0x3e8
jbe 0x40223a
cmp dword [0x441024], 6
mov eax, 0xb4
lea ecx, [eax - 0x32]
jne 0x401d0a
mov eax, 0x320
mov ecx, 0x32
mov edx, dword [0x464cf0]
push ecx
mov ecx, dword [0x464cf4]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [0x464cf8]
mov dword [eax + 4], ecx
mov ecx, dword [0x464cfc]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, 0x441038
call fcn.00403170
test eax, eax
je 0x401dc8
mov eax, dword [0x441024]
cmp eax, 5
ja 0x401da4
push 0x43857c
push 0x441b60
call fcn.0041c646
add esp, 8
test eax, eax
je 0x401d88
xor eax, eax
jmp 0x401d70
movzx ecx, word [eax + 0x441b60]
mov word [eax + 0x464c70], cx
add eax, 2
cmp cx, di
jne 0x401d70
jmp 0x401de6
push str.game
push 0x441b60
call fcn.0041c646
add esp, 8
test eax, eax
je 0x401de6
mov dword [esp + 0x38], ebp
jmp 0x401de6
cmp eax, 6
jne 0x401de6
xor eax, eax
jmp 0x401db0
movzx ecx, word [eax + 0x441b60]
mov word [eax + 0x464c70], cx
add eax, 2
cmp cx, di
jne 0x401db0
jmp 0x401de6
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0x4385b8]
mov word [eax + 0x464c70], cx
add eax, 2
cmp cx, di
jne 0x401dd0
call esi
mov edx, dword [str.6004]
mov dword [0x46495c], eax
mov al, byte [0x438594]
mov byte [0x454864], al
mov dword [0x454860], edx
xor eax, eax
jmp 0x401e10
movzx ecx, word [eax + 0x464bf0]
mov word [esp + eax + 0x3c], cx
add eax, 2
cmp cx, di
jne 0x401e10
xor eax, eax
jmp 0x401e30
movzx ecx, word [eax + 0x464c70]
mov word [esp + eax + 0x78], cx
add eax, 2
cmp cx, di
jne 0x401e30
mov ecx, 0xf1
lea esi, [esp + 0x20]
mov edi, 0x454864
rep movsd dword es:[edi], dword [esi]
push ebp
movsw word es:[edi], word [esi]
push 0x454860
mov esi, 0x464d48
mov dword [0x44102c], 0x3ca
call fcn.00404500
jmp 0x40223a
cmp eax, 4
jne 0x40223a
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, eax
mov eax, 0x3e8
cdq
idiv dword [0x46494c]
sub ecx, dword [0x46495c]
cmp ecx, eax
jbe 0x40223a
mov edx, dword [0x464cf8]
mov esi, dword [0x464cf0]
mov ebx, dword [0x464cf4]
mov dword [esp + 0x14], edi
mov edi, dword [0x464cfc]
mov eax, edx
mov ecx, edi
xor ebp, ebp
sub eax, esi
sub ecx, ebx
cmp dword [0x441024], 6
jne 0x401ee3
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
xor eax, eax
jmp 0x401f57
cmp dword [0x441024], 5
ja 0x401f3e
cmp dword [0x464b68], 3
jne 0x401f3e
mov al, byte [0x43859c]
mov edx, dword [str.6003]
mov byte [0x454864], al
mov eax, dword [0x464d40]
mov dword [0x454860], edx
test eax, eax
je 0x40223a
push 0x44102c
call eax
mov eax, dword [0x464d44]
add esp, 4
test eax, eax
je 0x40223a
push 0x454864
call eax
add esp, 4
jmp 0x4021a6
mov esi, dword [esp + 0x14]
sub esp, 0x10
mov edx, esp
mov dword [edx], ebp
mov dword [edx + 4], esi
mov dword [edx + 8], eax
mov eax, dword [0x464b6c]
mov dword [edx + 0xc], ecx
push 0x464d20
call fcn.004038d0
test eax, eax
je 0x40223a
mov esi, dword [0x464d20]
test esi, esi
je 0x40223a
mov eax, dword [0x441024]
test eax, eax
jne 0x401fb8
push 0xd0
push 0x140
push eax
push 0x10e
push esi
push 0x464d08
call fcn.00402c60
push 0x14
push 0
push 0xbc
push 0x140
push 0x21c
mov edx, 0x104
jmp 0x402157
cmp eax, 1
jne 0x401ff3
push 0xd0
push 0x140
push 0
push 0x64
push esi
push 0x464d08
call fcn.00402c60
push 0x14
push 0
push 0xbc
push 0x140
push 0x203
mov edx, 0xe6
jmp 0x402157
cmp eax, 2
je 0x402126
cmp eax, 3
je 0x402126
cmp eax, 4
jne 0x402060
push 0xad
push 0x140
push 6
push 0x10e
push esi
push 0x464d08
call fcn.00402c60
push 0
push pe_nt_image_headers32
push 0x14
push 0x50
push 6
push esi
mov edx, 0x2a8
mov ebx, 0x464d08
call fcn.00402df0
push 0x14
push 0
push 0x9b
push 0x140
push 0x24e
mov edx, 0x14a
jmp 0x402157
cmp eax, 5
jne 0x4020bb
push 0xd0
push 0x140
push 0
push 0x69
push esi
push 0x464d08
call fcn.00402c60
push 0
push 0x8c
push 0x14
push 0xb4
push 0
push esi
mov edx, 0x1b3
mov ebx, 0x464d08
call fcn.00402df0
push 0x14
push 0
push 0xbc
push 0x140
push 0x1ea
mov edx, 0xe6
jmp 0x402157
cmp eax, 6
jne 0x4020f3
push 0xdc
push 0x190
push 0
push 0x5a
push esi
push 0x464d08
call fcn.00402c60
push 0x17
push 0
push 0xc5
push 0x190
push 0x226
mov edx, 0xfa
jmp 0x402157
push 0xc8
push 0x154
push 0
push 0x78
push esi
push 0x464d08
call fcn.00402c60
push 0x1e
push 0
push 0xaa
push 0x154
push 0x226
mov edx, 0x14a
jmp 0x402157
push 0xbc
push 0x140
push 0
push 0x6e
push esi
push 0x464d08
call fcn.00402c60
push 0x14
push 0
push 0xa8
push 0x140
push 0x186
mov edx, 0x82
push esi
mov ebx, 0x464d08
call fcn.00402df0
mov edx, dword [str.6003]
mov al, byte [0x43859c]
mov ecx, dword [0x464954]
push 0x44102c
push 0x454864
mov dword [0x454860], edx
mov edx, dword [0x464d0c]
push ecx
mov byte [0x454864], al
mov eax, dword [0x464d08]
push edx
push eax
call fcn.00408c70
add esp, 0x14
test eax, eax
jne 0x40223a
mov ecx, dword [0x44102c]
dec ecx
cmp ecx, 0xfffa
ja 0x40223a
add dword [0x44102c], 4
push 0
push 0x454860
mov esi, 0x464d48
call fcn.00404500
test eax, eax
je 0x40223a
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x46495c], eax
jmp 0x40223a
mov dword [0x464cf0], edi
mov dword [0x464cf4], edi
mov dword [0x464cf8], edi
mov dword [0x464cfc], edi
jmp 0x40223a
mov dword [0x464860], edi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp dword [0x464d5e], 3
mov dword [0x46495c], eax
jl 0x40223a
mov eax, dword [0x464d5a]
cmp eax, edi
je 0x402230
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jne 0x402230
mov dword [0x464d5a], edi
mov dword [0x464d5e], 1
mov ecx, dword [esp + 0x3ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0041bef3
add esp, 0x3e0
ret