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

Disassembly:
push 0xe8
mov eax, 0x5ec972
call fcn.005234b0
mov ebx, dword [ebp + 8]
cmp byte [0x722275], 0
je 0x5a18d2
push ebx
call fcn.00544c02
test al, al
jne 0x5a18d2
mov byte [ebx + 0x8c0], 1
jmp 0x5a1b4f
push 0x762cd0
mov ecx, ebx
call fcn.004bb12e
push 0x762cec
mov ecx, ebx
mov dword [ebp - 0x34], eax
call fcn.004bb12e
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x18], eax
jg 0x5a18fc
push ebx
call fcn.00543d4f
push 0x762e24
mov ecx, ebx
call fcn.004bb12e
push 0x762e40
mov ecx, ebx
mov dword [ebp - 0x1c], eax
call fcn.004bb12e
mov dword [ebp - 0x14], eax
xor eax, eax
cmp dword [ebx + 0x8bc], 0xffffffff
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
jne 0x5a1951
cmp dword [ebx + 0x940], eax
jne 0x5a1951
push 0x762dec
mov ecx, ebx
call fcn.004bb12e
push 0x762e08
mov ecx, ebx
mov dword [ebp - 0x38], eax
call fcn.004bb12e
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 8], eax
mov eax, 0x762d18
mov esi, eax
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea esi, [ebp - 0x2c]
mov ecx, ebx
call fcn.005a1180
push 0x762e40
mov ecx, ebx
call fcn.004bb12e
push 0x762e24
mov ecx, ebx
mov esi, eax
call fcn.004bb12e
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x2c]
push eax
push eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x40], esi
call dword [sym.imp.USER32.dll_IntersectRect]
lea edi, [ebx + 0x94]
lea esi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x5a1a96
mov edi, 0xcc0020
call fcn.004c1998
cmp eax, 7
jl 0x5a19fa
push 0x762e5c
mov ecx, 0x721f18
call fcn.004bb2e3
test al, al
jne 0x5a19fa
mov edi, 0x40cc0020
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebx + 0x928]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
push edi
mov edi, dword [ebp - 0x30]
lea edi, [edx + edi - 1]
push edi
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x20]
add edi, esi
push edi
push dword [ebp - 0x3c]
sub eax, edx
push eax
sub ecx, esi
push ecx
push edx
push esi
push dword [ebx + 0x930]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x18]
jle 0x5a1a4d
push dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
push eax
mov edx, ebx
call fcn.005a148c
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x1c]
jl 0x5a1a96
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x14]
jl 0x5a1a96
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebx + 0xa4], eax
call esi
sub eax, dword [ebp + 8]
push ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00411379
push 0x762d7c
mov ecx, ebx
call fcn.004ba3bc
jmp 0x5a1a9c
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, 0x762d44
push edi
mov ecx, ebx
call fcn.004bb12e
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x5a1b27
call esi
mov ecx, 0xc8
sub ecx, dword [ebp + 8]
add eax, ecx
imul eax, eax, 5
mov ecx, 0xbb8
cmp eax, ecx
mov dword [ebp - 0x18], eax
jle 0x5a1ace
mov dword [ebp - 0x18], ecx
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00411379
push 0x762db4
mov ecx, ebx
call fcn.004ba3bc
call esi
sub eax, dword [ebp + 8]
push str.first_fullscreen_grab_time_1_ms__..ServerDesktop.cpp__321_
lea ecx, [ebp - 0xf4]
mov dword [ebp + 8], eax
call fcn.00403e35
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
push ecx
push eax
call fcn.0041d1e8
push eax
call fcn.004b9585
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0xf4]
call fcn.00401441
mov eax, dword [ebp - 0x14]
inc eax
push ecx
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00411379
push edi
mov ecx, ebx
call fcn.004ba3bc
lea ecx, [ebx + 0x68]
call fcn.004118af
mov al, 1
call fcn.00523588
ret 4