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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
xor eax, eax
push ebx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
push edi
lea esi, [ebp - 0x20]
lea edi, [ebp - 0x7c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp + 8]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx]
movsd dword es:[edi], dword [esi]
push ecx
mov dword [ebp - 0xc], ecx
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_UpdateWindow]
test byte [ebx + 0x21], 2
je 0x2761a7bb
mov esi, dword [sym.imp.GDI32.dll_CreateRectRgn]
xor edi, edi
push edi
push edi
push edi
push edi
call esi
cmp eax, edi
mov dword [ebp - 0x24], eax
je 0x2761a83e
push edi
push edi
push edi
push edi
call esi
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x2761a83e
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_LockWindowUpdate]
test eax, eax
je 0x2761a83e
push 0x420
push edi
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_GetDCEx]
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 1
mov esi, dword [ebp - 0xc]
push esi
call dword [sym.imp.USER32.dll_SetCapture]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DrawFocusRect]
lea eax, [ebp - 0x9c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0xac]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, esi
jne 0x2761a827
push 1
push edi
push edi
lea eax, [ebp - 0x6c]
push edi
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x2761a7ce
push dword [ebp - 0x54]
lea eax, [ebp - 0xac]
push dword [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x2761a7b0
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
call fcn.2761a610
test eax, eax
je 0x2761a7b0
push dword [ebp - 0x54]
push dword [ebp - 0x58]
call dword [sym.imp.USER32.dll_SetCursorPos]
call dword [sym.imp.USER32.dll_GetCapture]
mov esi, dword [ebp - 0xc]
jmp 0x2761a75d
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 4], eax
xor edi, edi
jmp 0x2761a71e
lea eax, [ebp - 0x6c]
push 0x4202
push eax
call dword [sym.imp.USER32.dll_CallMsgFilterA]
test eax, eax
jne 0x2761a7b0
mov eax, dword [ebp - 0x68]
mov ecx, 0x113
cmp eax, ecx
ja 0x2761a9ab
je 0x2761a86b
add ecx, 0xffffffed
cmp eax, ecx
je 0x2761a819
jbe 0x2761a803
cmp eax, 0x102
jbe 0x2761a7b0
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x2761a7b0
cmp dword [ebp - 0x64], 0x1b
jne 0x2761a7b0
push 0xffffffffffffffff
push ebx
call fcn.275acea8
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DrawFocusRect]
push dword [ebp - 4]
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 0x24], edi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x2761a84e
push dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x10], edi
je 0x2761a858
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x30], edi
je 0x2761a864
push edi
call dword [sym.imp.USER32.dll_LockWindowUpdate]
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [ebp - 0x64], 0x2c
jne 0x2761a803
mov eax, dword [ebp - 0x58]
or dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push ebx
call fcn.2761a4c1
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
sub eax, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x2c]
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x28]
cmp edx, eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
jle 0x2761a8d7
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x9c]
cmp dword [ebp - 0x18], eax
jge 0x2761a8e5
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x90]
cmp ecx, eax
jle 0x2761a8f2
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x98]
cmp dword [ebp - 0x14], eax
jge 0x2761a900
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
call fcn.2761a5eb
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x2761a7b0
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
cmp eax, edi
jne 0x2761a93a
cmp ecx, edi
je 0x2761a948
push ecx
push eax
push ebx
call fcn.275aee98
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
neg ecx
neg eax
push ecx
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.USER32.dll_UnionRect]
mov eax, dword [ebx + 8]
mov ecx, eax
and ecx, 3
cmp ecx, 1
jne 0x2761a9f8
mov ecx, dword [ebx + 0x138]
mov eax, dword [ebp - 0x88]
sub ecx, dword [ebx + 0x12c]
mov esi, dword [ebx + 0xa4]
add eax, ecx
cdq
idiv esi
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x80]
add eax, ecx
cdq
idiv esi
inc eax
mov dword [ebp - 8], eax
jmp 0x2761aa5e
mov ecx, 0x200
cmp eax, ecx
je 0x2761a871
jbe 0x2761a803
cmp eax, 0x202
jbe 0x2761a9ed
cmp eax, 0x203
jbe 0x2761a803
cmp eax, 0x205
jbe 0x2761a9ed
cmp eax, 0x206
jbe 0x2761a803
cmp eax, 0x208
ja 0x2761a803
push ebx
call fcn.275a91f5
jmp 0x2761a827
cmp ecx, 3
jne 0x2761abf9
mov ecx, dword [ebx + 0x9c]
mov eax, dword [ebp - 0x8c]
mov esi, dword [ebx + 0xa0]
add eax, ecx
cdq
idiv esi
mov edi, dword [ebx + 0xa8]
imul eax, edi
mov edi, dword [ebx + 0xa4]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x88]
cdq
idiv edi
mov edx, dword [ebp + 8]
add edx, eax
mov eax, dword [ebp - 0x84]
add eax, ecx
mov dword [ebp + 8], edx
cdq
idiv esi
mov ecx, eax
mov eax, dword [ebp - 0x80]
cdq
imul ecx, dword [ebx + 0xa8]
idiv edi
xor edi, edi
lea eax, [ecx + eax + 1]
mov dword [ebp - 8], eax
mov edx, dword [ebx + 8]
and edx, 0x1000
je 0x2761ac28
mov ecx, dword [ebx + 0x15c]
cmp eax, ecx
jle 0x2761aa88
cmp edx, edi
je 0x2761ac32
mov eax, dword [ebx + 0x15c]
mov dword [ebp - 8], eax
cmp dword [ebp + 8], edi
jge 0x2761aa90
mov dword [ebp + 8], edi
cmp edx, edi
je 0x2761aaa7
cmp dword [ebp + 8], eax
jge 0x2761aaa7
dec eax
push eax
push dword [ebp + 8]
push ebx
call fcn.27618b98
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x40], edi
je 0x2761aab6
test byte [ebp - 0x64], 0xc
jne 0x2761aab6
or dword [ebx + 0x58], 0xffffffff
cmp dword [ebp + 8], eax
jge 0x2761ab7c
lea eax, [ebp - 0x50]
push eax
push edi
push edi
push edi
push dword [ebp + 8]
push ebx
call fcn.275ad93e
mov ecx, dword [ebx + 8]
and ecx, 3
cmp ecx, 1
jne 0x2761aae0
test byte [ebx + 0x20], 0x20
jne 0x2761ab19
mov eax, dword [ebp - 0x48]
push 4
sub eax, dword [ebp - 0x50]
pop esi
cdq
idiv esi
cmp ecx, 3
mov esi, eax
jne 0x2761aaff
mov eax, dword [ebx + 0x94]
cmp esi, eax
jl 0x2761aaff
mov esi, eax
mov eax, dword [ebp - 0x44]
push 0xfffffffffffffffc
sub eax, dword [ebp - 0x4c]
pop ecx
neg esi
cdq
idiv ecx
push eax
lea eax, [ebp - 0x50]
push esi
push eax
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [ebp - 0x50]
mov edi, dword [sym.imp.USER32.dll_IntersectRect]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0xbc]
push eax
call edi
mov esi, eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x20]
neg esi
push eax
lea eax, [ebp - 0xbc]
sbb esi, esi
push eax
neg esi
call edi
mov edi, eax
neg edi
sbb edi, edi
neg edi
test byte [ebp - 0x64], 8
mov dword [ebp - 0x40], edi
je 0x2761ac43
cmp esi, edi
je 0x2761ab6b
push dword [ebp + 8]
push ebx
call fcn.27619dbc
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 8]
jl 0x2761ac3c
xor edi, edi
cmp dword [ebp - 0x30], edi
je 0x2761ac9b
mov esi, dword [ebp - 0x24]
push edi
push esi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetUpdateRgn]
cmp eax, 1
jle 0x2761abdb
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_ValidateRect]
push dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowRgn]
push 1
push dword [ebp - 0x10]
push esi
push esi
call dword [sym.imp.GDI32.dll_CombineRgn]
push esi
mov esi, dword [sym.imp.GDI32.dll_SelectClipRgn]
push dword [ebp - 4]
call esi
push edi
push dword [ebp - 4]
push 0x318
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DrawFocusRect]
lea esi, [ebp - 0x20]
lea edi, [ebp - 0x7c]
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
jmp 0x2761a7b0
test ah, 0x10
je 0x2761ac1b
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x8c]
push eax
push ebx
call fcn.27624cca
mov eax, dword [ebp - 8]
jmp 0x2761aa5e
mov eax, dword [ebx + 0x18]
mov dword [ebp + 8], edi
mov eax, dword [eax]
jmp 0x2761a9a3
mov ecx, dword [ebx + 0x18]
mov ecx, dword [ecx]
jmp 0x2761aa73
mov eax, dword [ebx + 0x18]
mov eax, dword [eax]
jmp 0x2761aa85
xor edi, edi
jmp 0x2761aabf
cmp esi, edi
je 0x2761ac5c
neg esi
sbb esi, esi
push 2
and esi, 0xfffffffe
inc esi
inc esi
push esi
push dword [ebp + 8]
push ebx
call fcn.275ad12b
test edi, edi
je 0x2761ab6b
test byte [ebp - 0x64], 0xc
jne 0x2761ab6b
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
sub ecx, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
mov edx, ecx
imul eax, eax
imul edx, ecx
add eax, edx
cmp eax, dword [ebp - 0x3c]
jle 0x2761ab6b
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x58], eax
jmp 0x2761ab6b
push dword [ebx]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x2761abdb