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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x605ad8
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
cmp al, bl
mov dword [ebp - 4], ebx
je 0x4f3d3b
cmp byte [esi + 0x38], bl
mov byte [esi + 0x54], 1
je 0x4f3d5f
mov eax, dword [0x68ad98]
cmp eax, dword [0x68ad9c]
je 0x4f3d57
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.004f2960
mov eax, dword [ebp + 8]
cmp eax, ebx
mov ecx, dword [esi + 0x6c]
mov edx, dword [esi + 0x70]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edx
jne 0x4f3d7b
lea eax, [ebp - 0x44]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 0xc]
mov edi, dword [eax + 8]
mov eax, edx
mov dword [ebp + 8], ebx
add ebx, edx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 8]
add edx, eax
add edi, ecx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x34], ecx
mov ecx, dword [esi + 0xc94]
mov dword [ebp - 0x10], ebx
push eax
xor ebx, ebx
push ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
push edx
push eax
lea ecx, [ebp - 0x1c]
push ecx
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 0x4f4094
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x54], eax
mov al, byte [esi + 0xcac]
test al, al
jne 0x4f400d
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0xcbc]
mov eax, dword [esi + 0xcc0]
push ebx
push ecx
mov ecx, esi
mov dword [esi + 0xcc4], edx
mov dword [esi + 0xcc8], eax
call fcn.004f0340
mov eax, dword [esi + 0x2c]
mov cl, byte [eax + 0x4a4]
test cl, cl
je 0x4f3ee4
mov cl, byte [eax + 0x4a5]
test cl, cl
jne 0x4f3ee4
cmp dword [esi + 0x80], 3
jge 0x4f3ed7
mov eax, dword [eax + 0x4c]
mov ecx, dword [esi + 0x70]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ebp - 0x18]
sar edi, 1
lea edx, [eax + edi]
add ecx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x50], ecx
mov dword [ebp + 8], connect
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x58]
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
call dword [ecx + 0x40]
test eax, eax
jne 0x4f3eb6
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
sub ecx, eax
test ecx, ecx
jle 0x4f3ebd
cmp eax, dword [ebp - 0x54]
jge 0x4f3ebd
mov bl, 1
jmp 0x4f3ec1
cmp eax, 0x88760219
jne 0x4f3ed1
test bl, bl
jne 0x4f3f2e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x58]
cmp eax, 0xc8
jb 0x4f3e90
inc dword [esi + 0x80]
mov eax, dword [esi + 0x58]
mov ecx, dword [eax]
push 0
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 0x4f4078
mov edx, dword [esi + 0x68]
push 0
push edx
mov ecx, esi
call fcn.004e34b0
mov byte [esi + 0xcd0], 1
jmp 0x4f4078
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x68], edx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x5c], edx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], edx
lea edx, [ebp - 0xec]
push edx
push 0x1000000
lea edx, [ebp - 0x44]
push edx
mov edx, dword [esi + 0x68]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x34]
push edx
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x60]
lea edx, [ebp - 0x68]
push edx
mov dword [esi + 0x80], 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x38], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov ebx, dword [ebp + 8]
lea esp, [esp]
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 0x4f3f90
mov eax, dword [ebp + 8]
cmp eax, ebx
jb 0x4f3fb1
mov ecx, dword [ebp - 0x50]
sub ecx, eax
test ecx, ecx
jg 0x4f3f90
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]
jmp 0x4f3f05
mov eax, dword [esi + 0x2c]
mov cl, byte [eax + 0x4a4]
test cl, cl
je 0x4f4030
mov cl, byte [eax + 0x4a5]
test cl, cl
jne 0x4f4030
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.004f0340
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.004f3be0
mov edx, dword [ebp - 0x24]
mov bl, al
push edx
jmp 0x4f4158
mov eax, dword [esi + 0x2c]
mov cl, byte [eax + 0x2dc]
test cl, cl
jne 0x4f4120
mov cl, byte [eax + 0x2dd]
test cl, cl
je 0x4f4120
mov al, byte [esi + 0xcac]
test al, al
jne 0x4f40d6
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.004f0340
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.004f3be0
mov edx, dword [ebp - 0x24]
mov bl, al
push edx
jmp 0x4f4158
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.004f3be0
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