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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x411218
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
mov ebp, ecx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0x274], esi
je 0x4030a1
cmp dword [esp + 0x4c], esi
je 0x4031a5
lea ecx, [esp + 0x20]
mov dword [ebp + 0x274], esi
call sym.Player.exe_public:_void___thiscall_CTPImage::constructor_void_
mov ecx, dword [0x41c970]
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x44], esi
call fcn.00405360
test eax, eax
jne 0x402ec3
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], 0xffffffff
call sym.Player.exe_public_virtual:_void___thiscall_CTPImage::destructor_void_
jmp 0x4031a5
mov eax, dword [ebp + 0xd8]
mov ecx, dword [esp + 0x34]
cmp eax, ecx
jne 0x402ead
cmp eax, dword [ebp + 0xf0]
jne 0x402ead
mov ecx, ebp
call fcn.004043b0
lea edx, [esp + 0x20]
lea ecx, [ebp + 0xc4]
push edx
call sym.Player.exe_public:_int___thiscall_CTPImage::DuplicateFrom_class_CTPImage__
mov ecx, ebp
call fcn.00404420
mov dword [esp + 0x4c], 0x14
mov dword [esp + 0x10], 0xffffffec
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, ebp
mov dword [esp + 0x1c], eax
call fcn.004043b0
mov ecx, dword [ebp + 0x264]
mov eax, dword [ebp + 0x26c]
cmp ecx, eax
mov dword [esp + 0x18], ecx
jge 0x403044
mov edx, dword [ebp + 0xe8]
mov eax, dword [ebp + 0x260]
imul edx, ecx
mov esi, dword [ebp + 0xe4]
add edx, eax
mov edi, dword [esp + 0x28]
mov ebx, dword [ebp + 0xcc]
lea esi, [esi + edx*4]
mov edx, dword [esp + 0x2c]
imul edx, ecx
add edx, eax
mov dword [esp + 0x14], eax
lea edi, [edi + edx*4]
mov edx, ecx
imul edx, dword [ebp + 0xd0]
add edx, eax
lea ebx, [ebx + edx*4]
mov edx, dword [ebp + 0x268]
cmp eax, edx
jge 0x403031
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [esi + 2]
xor edx, edx
mov dl, byte [edi + 2]
add eax, 0x64
imul edx, dword [esp + 0x4c]
imul ecx, eax
add ecx, edx
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
xor ecx, ecx
shr eax, 0x1f
add edx, eax
add esi, 4
mov byte [ebx + 2], dl
mov edx, dword [esp + 0x10]
mov cl, byte [esi - 3]
add edi, 4
lea eax, [edx + 0x64]
add ebx, 4
imul ecx, eax
xor eax, eax
mov al, byte [edi - 3]
imul eax, dword [esp + 0x4c]
add ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
xor ecx, ecx
mov byte [ebx - 3], dl
mov edx, dword [esp + 0x10]
mov cl, byte [esi - 4]
lea eax, [edx + 0x64]
imul ecx, eax
xor eax, eax
mov al, byte [edi - 4]
imul eax, dword [esp + 0x4c]
add ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, dword [esp + 0x14]
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
inc eax
mov byte [ebx - 4], dl
mov ecx, dword [ebp + 0x268]
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x402f80
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x26c]
inc ecx
cmp ecx, eax
mov dword [esp + 0x18], ecx
jl 0x402f30
push 0
mov ecx, ebp
call fcn.00403760
mov ecx, ebp
call fcn.00404420
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x1c]
cmp eax, 0x1e
jae 0x403071
mov edx, 0x1e
sub edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x4c]
sub eax, 0x14
add esi, 0x14
cmp eax, 0xffffff9c
mov dword [esp + 0x4c], esi
mov dword [esp + 0x10], eax
jg 0x402f07
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], 0xffffffff
call sym.Player.exe_public_virtual:_void___thiscall_CTPImage::destructor_void_
mov ecx, ebp
call fcn.004043b0
mov ecx, dword [0x41c970]
lea ebx, [ebp + 0xc4]
push ebx
call fcn.00405360
test eax, eax
je 0x4031a5
mov eax, dword [0x41c970]
push 0x20
push 0
mov ecx, ebp
mov esi, dword [eax + 0x14bbc]
mov edi, dword [eax + 0x14bc0]
lea eax, [ebp + 0x1e0]
push eax
push edi
push esi
push ebx
call fcn.00403620
mov eax, dword [0x41c970]
mov ecx, dword [eax + 0x14bc4]
test ecx, ecx
je 0x403103
push 0x20
push 0
lea ecx, [ebp + 0x1f8]
jmp 0x403117
mov ecx, dword [eax + 0x14bc8]
test ecx, ecx
je 0x403128
push 0x20
push 0
lea ecx, [ebp + 0x210]
lea edx, [edi - 0x10]
push ecx
lea eax, [esi - 0x10]
push edx
push eax
push ebx
mov ecx, ebp
call fcn.00403620
mov ecx, dword [0x41c970]
mov eax, dword [ecx + 0x14bd0]
test eax, eax
je 0x403153
push 0x16
lea edx, [ebp + 0x228]
push 0xb
lea eax, [edi + 0xc]
push edx
lea ecx, [esi + 0x10]
push eax
push ecx
push ebx
mov ecx, ebp
call fcn.00403620
mov edx, dword [0x41c970]
mov eax, dword [edx + 0x14bcc]
test eax, eax
je 0x40317b
push 0xb
lea eax, [ebp + 0x228]
push 0
push eax
add esi, 0x10
push edi
push esi
push ebx
mov ecx, ebp
call fcn.00403620
push 0
mov ecx, ebp
call fcn.00403760
mov ecx, ebp
call fcn.00404420
mov eax, dword [0x418030]
test eax, eax
je 0x4031a5
mov ecx, ebp
mov dword [0x418030], 0
call fcn.00404000
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 8