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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4117f8
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 + 0x27c], esi
je 0x403081
cmp dword [esp + 0x4c], esi
je 0x403185
lea ecx, [esp + 0x20]
mov dword [ebp + 0x27c], esi
call sym.Player.exe_public:_void___thiscall_CTPImage::constructor_void_
mov ecx, dword [0x4277b0]
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x44], esi
call fcn.004054a0
test eax, eax
jne 0x402ea3
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], 0xffffffff
call sym.Player.exe_public_virtual:_void___thiscall_CTPImage::destructor_void_
jmp 0x403185
mov eax, dword [ebp + 0xdc]
mov ecx, dword [esp + 0x34]
cmp eax, ecx
jne 0x402e8d
cmp eax, dword [ebp + 0xf4]
jne 0x402e8d
mov ecx, ebp
call fcn.004044f0
lea edx, [esp + 0x20]
lea ecx, [ebp + 0xc8]
push edx
call sym.Player.exe_public:_int___thiscall_CTPImage::DuplicateFrom_class_CTPImage__
mov ecx, ebp
call fcn.00404560
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.004044f0
mov ecx, dword [ebp + 0x26c]
mov eax, dword [ebp + 0x274]
cmp ecx, eax
mov dword [esp + 0x18], ecx
jge 0x403024
mov edx, dword [ebp + 0xec]
mov eax, dword [ebp + 0x268]
imul edx, ecx
mov esi, dword [ebp + 0xe8]
add edx, eax
mov edi, dword [esp + 0x28]
mov ebx, dword [ebp + 0xd0]
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 + 0xd4]
add edx, eax
lea ebx, [ebx + edx*4]
mov edx, dword [ebp + 0x270]
cmp eax, edx
jge 0x403011
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 + 0x270]
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x402f60
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x274]
inc ecx
cmp ecx, eax
mov dword [esp + 0x18], ecx
jl 0x402f10
push 0
mov ecx, ebp
call fcn.00403710
mov ecx, ebp
call fcn.00404560
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [esp + 0x1c]
cmp eax, 0x1e
jae 0x403051
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 0x402ee7
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.004044f0
mov ecx, dword [0x4277b0]
lea ebx, [ebp + 0xc8]
push ebx
call fcn.004054a0
test eax, eax
je 0x403185
mov eax, dword [0x4277b0]
push 0x20
push 0
mov ecx, ebp
mov esi, dword [eax + 0x14bbc]
mov edi, dword [eax + 0x14bc0]
lea eax, [ebp + 0x1e4]
push eax
push edi
push esi
push ebx
call fcn.00403510
mov eax, dword [0x4277b0]
mov ecx, dword [eax + 0x14bc4]
test ecx, ecx
je 0x4030e3
push 0x20
push 0
lea ecx, [ebp + 0x1fc]
jmp 0x4030f7
mov ecx, dword [eax + 0x14bc8]
test ecx, ecx
je 0x403108
push 0x20
push 0
lea ecx, [ebp + 0x214]
lea edx, [edi - 0x10]
push ecx
lea eax, [esi - 0x10]
push edx
push eax
push ebx
mov ecx, ebp
call fcn.00403510
mov ecx, dword [0x4277b0]
mov eax, dword [ecx + 0x14bd0]
test eax, eax
je 0x403133
push 0x16
lea edx, [ebp + 0x22c]
push 0xb
lea eax, [edi + 0xc]
push edx
lea ecx, [esi + 0x10]
push eax
push ecx
push ebx
mov ecx, ebp
call fcn.00403510
mov edx, dword [0x4277b0]
mov eax, dword [edx + 0x14bcc]
test eax, eax
je 0x40315b
push 0xb
lea eax, [ebp + 0x22c]
push 0
push eax
add esi, 0x10
push edi
push esi
push ebx
mov ecx, ebp
call fcn.00403510
push 0
mov ecx, ebp
call fcn.00403710
mov ecx, ebp
call fcn.00404560
mov eax, dword [0x418030]
test eax, eax
je 0x403185
mov ecx, ebp
mov dword [0x418030], 0
call fcn.00404140
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 8