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

Disassembly:
sub esp, 0x3e0
mov eax, dword [0x42b0a0]
xor eax, esp
mov dword [esp + 0x3dc], eax
mov eax, dword [0x42c440]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x40216c
cmp eax, dword [0x42c450]
jg 0x40216c
mov ebp, 1
cmp dword [0x44e2e6], ebp
jne 0x401ae0
mov ebx, dword [0x44de18]
mov dword [0x44dde8], edi
mov esi, 0x44ddf0
mov edi, 0x44e2d0
call fcn.00404380
test eax, eax
je 0x401ad0
mov dword [0x44dde8], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x3e8
mov dword [0x44dee4], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4021aa
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4021aa
push 0x44e178
mov ecx, 0x42c450
call fcn.00403080
test eax, eax
je 0x402152
mov edx, dword [0x42cf70]
mov eax, dword [0x42cf68]
mov ecx, dword [0x42cf6c]
push 0x3c6
mov dword [0x44e280], edx
mov dword [0x44e278], eax
mov eax, dword [0x42cf74]
mov dword [0x44e27c], ecx
mov ecx, dword [0x42cee4]
lea edx, [esp + 0x24]
push edi
push edx
mov dword [0x44e284], eax
mov dword [0x44e0f4], ecx
call fcn.00411850
mov eax, dword [0x44dde8]
add esp, 0xc
cmp eax, ebp
jne 0x401c03
xor eax, eax
movzx ecx, word [eax + 0x44ddec]
mov word [esp + eax + 0xd2], cx
add eax, 2
cmp cx, di
jne 0x401b51
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0x44de3a]
mov word [esp + eax + 0x112], cx
add eax, 2
cmp cx, di
jne 0x401b70
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x44de1c]
mov word [esp + eax + 0xd6], cx
add eax, 2
cmp cx, di
jne 0x401b90
mov cl, byte [0x426b78]
mov eax, dword [str.9000]
mov byte [0x43ddec], cl
mov dword [0x43dde8], eax
mov ecx, 0xf1
lea esi, [esp + 0x20]
mov edi, 0x43ddec
rep movsd dword es:[edi], dword [esi]
push ebp
movsw word es:[edi], word [esi]
push 0x43dde8
mov esi, 0x44e2d0
mov dword [0x42c448], 0x3ca
call fcn.00404480
mov dword [0x44dde8], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x44dee4], eax
jmp 0x4021aa
cmp eax, 2
jne 0x401c3d
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x44dee4]
cmp eax, 0x1388
jbe 0x4021aa
mov dword [0x44dde8], edi
call esi
mov esi, 0x44e2d0
mov dword [0x44dee4], eax
call fcn.00404450
jmp 0x4021aa
cmp eax, 3
jne 0x401de5
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x44dee4]
cmp eax, 0x3e8
jbe 0x4021aa
cmp dword [0x42c440], 6
mov eax, 0xb4
lea ecx, [eax - 0x32]
jne 0x401c7a
mov eax, 0x320
mov ecx, 0x32
mov edx, dword [0x44e278]
push ecx
mov ecx, dword [0x44e27c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [0x44e280]
mov dword [eax + 4], ecx
mov ecx, dword [0x44e284]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, 0x42c450
call fcn.004030f0
test eax, eax
je 0x401d38
mov eax, dword [0x42c440]
cmp eax, 5
ja 0x401d14
push 0x426b7c
push 0x42cf78
call fcn.004102d7
add esp, 8
test eax, eax
je 0x401cf8
xor eax, eax
jmp 0x401ce0
movzx ecx, word [eax + 0x42cf78]
mov word [eax + 0x44e1f8], cx
add eax, 2
cmp cx, di
jne 0x401ce0
jmp 0x401d56
push str.game
push 0x42cf78
call fcn.004102d7
add esp, 8
test eax, eax
je 0x401d56
mov dword [esp + 0x38], ebp
jmp 0x401d56
cmp eax, 6
jne 0x401d56
xor eax, eax
jmp 0x401d20
movzx ecx, word [eax + 0x42cf78]
mov word [eax + 0x44e1f8], cx
add eax, 2
cmp cx, di
jne 0x401d20
jmp 0x401d56
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0x426bb8]
mov word [eax + 0x44e1f8], cx
add eax, 2
cmp cx, di
jne 0x401d40
call esi
mov edx, dword [str.6004]
mov dword [0x44dee4], eax
mov al, byte [0x426b94]
mov byte [0x43ddec], al
mov dword [0x43dde8], edx
xor eax, eax
jmp 0x401d80
movzx ecx, word [eax + 0x44e178]
mov word [esp + eax + 0x3c], cx
add eax, 2
cmp cx, di
jne 0x401d80
xor eax, eax
jmp 0x401da0
movzx ecx, word [eax + 0x44e1f8]
mov word [esp + eax + 0x78], cx
add eax, 2
cmp cx, di
jne 0x401da0
mov ecx, 0xf1
lea esi, [esp + 0x20]
mov edi, 0x43ddec
rep movsd dword es:[edi], dword [esi]
push ebp
movsw word es:[edi], word [esi]
push 0x43dde8
mov esi, 0x44e2d0
mov dword [0x42c448], 0x3ca
call fcn.00404480
jmp 0x4021aa
cmp eax, 4
jne 0x4021aa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x3e8
cdq
idiv dword [0x44ded4]
sub ecx, dword [0x44dee4]
cmp ecx, eax
jbe 0x4021aa
mov edx, dword [0x44e280]
mov esi, dword [0x44e278]
mov ebx, dword [0x44e27c]
mov dword [esp + 0x14], edi
mov edi, dword [0x44e284]
mov eax, edx
mov ecx, edi
xor ebp, ebp
sub eax, esi
sub ecx, ebx
cmp dword [0x42c440], 6
jne 0x401e53
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 0x401ec7
cmp dword [0x42c440], 5
ja 0x401eae
cmp dword [0x44e0f0], 3
jne 0x401eae
mov al, byte [0x426b9c]
mov edx, dword [str.6003]
mov byte [0x43ddec], al
mov eax, dword [0x44e2c8]
mov dword [0x43dde8], edx
test eax, eax
je 0x4021aa
push 0x42c448
call eax
mov eax, dword [0x44e2cc]
add esp, 4
test eax, eax
je 0x4021aa
push 0x43ddec
call eax
add esp, 4
jmp 0x402116
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 [0x44e0f4]
mov dword [edx + 0xc], ecx
push 0x44e2a8
call fcn.00403850
test eax, eax
je 0x4021aa
mov esi, dword [0x44e2a8]
test esi, esi
je 0x4021aa
mov eax, dword [0x42c440]
test eax, eax
jne 0x401f28
push 0xd0
push 0x140
push eax
push 0x10e
push esi
push 0x44e290
call fcn.00402be0
push 0x14
push 0
push 0xbc
push 0x140
push 0x21c
mov edx, 0x104
jmp 0x4020c7
cmp eax, 1
jne 0x401f63
push 0xd0
push 0x140
push 0
push 0x64
push esi
push 0x44e290
call fcn.00402be0
push 0x14
push 0
push 0xbc
push 0x140
push 0x203
mov edx, 0xe6
jmp 0x4020c7
cmp eax, 2
je 0x402096
cmp eax, 3
je 0x402096
cmp eax, 4
jne 0x401fd0
push 0xad
push 0x140
push 6
push 0x10e
push esi
push 0x44e290
call fcn.00402be0
push 0
push 0xf0
push 0x14
push 0x50
push 6
push esi
mov edx, 0x2a8
mov ebx, 0x44e290
call fcn.00402d70
push 0x14
push 0
push 0x9b
push 0x140
push 0x24e
mov edx, 0x14a
jmp 0x4020c7
cmp eax, 5
jne 0x40202b
push 0xd0
push 0x140
push 0
push 0x69
push esi
push 0x44e290
call fcn.00402be0
push 0
push 0x8c
push 0x14
push 0xb4
push 0
push esi
mov edx, 0x1b3
mov ebx, 0x44e290
call fcn.00402d70
push 0x14
push 0
push 0xbc
push 0x140
push 0x1ea
mov edx, 0xe6
jmp 0x4020c7
cmp eax, 6
jne 0x402063
push 0xdc
push 0x190
push 0
push 0x5a
push esi
push 0x44e290
call fcn.00402be0
push 0x17
push 0
push 0xc5
push 0x190
push 0x226
mov edx, 0xfa
jmp 0x4020c7
push 0xc8
push 0x154
push 0
push 0x78
push esi
push 0x44e290
call fcn.00402be0
push 0x1e
push 0
push 0xaa
push 0x154
push 0x226
mov edx, 0x14a
jmp 0x4020c7
push 0xbc
push 0x140
push 0
push 0x6e
push esi
push 0x44e290
call fcn.00402be0
push 0x14
push 0
push 0xa8
push 0x140
push 0x186
mov edx, 0x82
push esi
mov ebx, 0x44e290
call fcn.00402d70
mov edx, dword [str.6003]
mov al, byte [0x426b9c]
mov ecx, dword [0x44dedc]
push 0x42c448
push 0x43ddec
mov dword [0x43dde8], edx
mov edx, dword [0x44e294]
push ecx
mov byte [0x43ddec], al
mov eax, dword [0x44e290]
push edx
push eax
call fcn.00408b8d
add esp, 0x14
test eax, eax
jne 0x4021aa
mov ecx, dword [0x42c448]
dec ecx
cmp ecx, 0xfffa
ja 0x4021aa
add dword [0x42c448], 4
push 0
push 0x43dde8
mov esi, 0x44e2d0
call fcn.00404480
test eax, eax
je 0x4021aa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x44dee4], eax
jmp 0x4021aa
mov dword [0x44e278], edi
mov dword [0x44e27c], edi
mov dword [0x44e280], edi
mov dword [0x44e284], edi
jmp 0x4021aa
mov dword [0x44dde8], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x44e2e6], 3
mov dword [0x44dee4], eax
jl 0x4021aa
mov eax, dword [0x44e2e2]
cmp eax, edi
je 0x4021a0
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jne 0x4021a0
mov dword [0x44e2e2], edi
mov dword [0x44e2e6], 1
mov ecx, dword [esp + 0x3ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040fb84
add esp, 0x3e0
ret