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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514928
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
push ebx
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x3c]
push edi
mov dword [ebp - 0x24], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esi + 0xc90]
xor ebx, ebx
test al, al
mov dword [ebp - 4], ebx
je 0x480db8
mov al, byte [esi + 0x38]
test al, al
mov byte [esi + 0x54], 1
je 0x480ddc
cmp dword [0x566b80], ebx
je 0x480dd4
mov byte [esi + 0x54], bl
mov byte [esi + 0x38], bl
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x30]
call fcn.0047e560
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x70]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], ecx
jne 0x480df8
lea eax, [ebp - 0x44]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
add edi, ecx
add eax, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x30], edx
mov edx, dword [esi + 0xc94]
push ecx
push edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
push eax
push ecx
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
xor eax, eax
mov ecx, 0x19
lea edi, [ebp - 0xec]
rep stosd dword es:[edi], eax
mov al, byte [esi + 0xc98]
test al, al
mov dword [ebp - 0xec], 0x64
je 0x481106
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x54], eax
mov al, byte [esi + 0xcac]
test al, al
jne 0x48107f
mov ecx, dword [esi + 0xcc0]
mov edx, dword [esi + 0x68]
mov eax, dword [esi + 0xcbc]
push ebx
mov dword [esi + 0xcc8], ecx
push edx
mov ecx, esi
mov dword [esi + 0xcc4], eax
call fcn.0047c4c0
mov eax, dword [esi + 0x2c]
mov cl, byte [eax + 0x544]
test cl, cl
je 0x480f59
mov cl, byte [eax + 0x545]
test cl, cl
jne 0x480f59
cmp dword [esi + 0x80], 3
jge 0x480f4d
mov eax, dword [eax + 0x88]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ebp - 0x18]
sar edi, 1
lea ecx, [eax + edi]
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + 0x70]
add ecx, eax
mov dword [ebp - 0x50], ecx
mov dword [ebp + 8], 0x7fffffff
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x58]
mov edx, dword [eax]
lea ecx, [ebp + 8]
push ecx
push eax
call dword [edx + 0x40]
test eax, eax
jne 0x480f2a
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
sub edx, eax
test edx, edx
jle 0x480f31
cmp eax, dword [ebp - 0x54]
jge 0x480f31
mov bl, 1
jmp 0x480f35
cmp eax, 0x88760219
jne 0x480f45
test bl, bl
jne 0x480fa2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x58]
cmp eax, 0xc8
jb 0x480f04
inc dword [esi + 0x80]
xor ebx, ebx
mov eax, dword [esi + 0x58]
mov ecx, dword [eax]
push ebx
push 1
push eax
call dword [ecx + 0x58]
mov eax, dword [esi + 0x60]
mov edx, dword [eax]
lea ecx, [ebp - 0xec]
push ecx
push 0x1000000
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [esi + 0x68]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [edx + 0x14]
mov edi, eax
mov al, byte [esi + 0xcd0]
test al, al
je 0x4810ea
mov edx, dword [esi + 0x68]
push ebx
push edx
mov ecx, esi
call fcn.00475f20
mov byte [esi + 0xcd0], 1
jmp 0x4810ea
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x60], edx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x40], edx
lea edx, [ebp - 0xec]
push edx
push 0x1000000
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x44]
push edx
mov edx, dword [esi + 0x68]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x2c]
push edx
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x60]
lea edx, [ebp - 0x68]
push edx
mov dword [esi + 0x80], 0
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x38], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov ebx, dword [ebp + 8]
lea ecx, [ecx]
mov eax, dword [esi + 0x58]
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
call dword [ecx + 0x40]
test eax, eax
jl 0x481000
mov eax, dword [ebp + 8]
cmp eax, ebx
jb 0x481021
mov ecx, dword [ebp - 0x50]
sub ecx, eax
test ecx, ecx
jg 0x481000
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x78], edx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x6c], edx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x7c], edx
lea edx, [ebp - 0xec]
push edx
push 0x1000000
lea edx, [ebp - 0x88]
push edx
mov edx, dword [esi + 0x68]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x34]
push edx
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x88], eax
mov eax, dword [esi + 0x60]
lea edx, [ebp - 0x78]
push edx
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
xor ebx, ebx
jmp 0x480f7a
mov eax, dword [esi + 0x2c]
mov cl, byte [eax + 0x544]
test cl, cl
je 0x4810a2
mov cl, byte [eax + 0x545]
test cl, cl
jne 0x4810a2
mov eax, dword [esi + 0x58]
mov ecx, dword [eax]
push ebx
push 1
push eax
call dword [ecx + 0x58]
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0xcbc]
mov eax, dword [esi + 0xcc0]
push 1
push ecx
mov ecx, esi
mov dword [esi + 0xcc4], edx
mov dword [esi + 0xcc8], eax
call fcn.0047c4c0
mov eax, dword [esi + 0x60]
mov edx, dword [eax]
lea ecx, [ebp - 0xec]
push ecx
push 0x1000000
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [esi + 0x64]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [edx + 0x14]
mov edi, eax
push str.Redraw_Windowed
push edi
mov ecx, esi
mov byte [esi + 0x54], 0
call fcn.00480c20
mov edx, dword [ebp - 0x24]
mov bl, al
push edx
jmp 0x4811ca
mov eax, dword [esi + 0x2c]
mov cl, byte [eax + 0x324]
test cl, cl
jne 0x481192
mov cl, byte [eax + 0x325]
test cl, cl
je 0x481192
mov al, byte [esi + 0xcac]
test al, al
jne 0x481148
mov eax, dword [esi + 0x64]
mov ecx, dword [eax]
lea edx, [ebp - 0xec]
push edx
push 0x1000000
lea edx, [ebp - 0x34]
push edx
mov edx, dword [esi + 0x68]
push edx
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [ecx + 0x14]
mov ecx, dword [esi + 0xcc0]
mov edx, dword [esi + 0x64]
mov eax, dword [esi + 0xcbc]
push 1
mov dword [esi + 0xcc8], ecx
push edx
mov ecx, esi
mov dword [esi + 0xcc4], eax
call fcn.0047c4c0
mov eax, dword [esi + 0x60]
mov ecx, dword [eax]
push 1
push ebx
push eax
call dword [ecx + 0x2c]
push str.Redraw_FullScreen_Flip
push eax
mov ecx, esi
mov byte [esi + 0x54], 0
call fcn.00480c20
mov edx, dword [ebp - 0x24]
mov bl, al
push edx
jmp 0x4811ca
mov eax, dword [esi + 0x60]
mov ecx, dword [eax]
lea edx, [ebp - 0xec]
push edx
push 0x1000000
lea edx, [ebp - 0x34]
push edx
mov edx, dword [esi + 0x68]
push edx
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [ecx + 0x14]
push str.Redraw_FullScreen_Blt
push eax
mov ecx, esi
mov byte [esi + 0x54], 0
call fcn.00480c20
mov bl, al
mov eax, dword [ebp - 0x24]
push eax
neg bl
sbb bl, bl
inc bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4