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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x14], ebx
mov esi, edx
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x49da07
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x259], 1
mov eax, ebx
call fcn.0049dfd8
mov esi, eax
mov dword [ebx + 0x248], esi
test esi, esi
je 0x49d9e9
cmp byte [esi + 0x38], 0
je 0x49d9e9
call fcn.004c9eb0
test al, al
je 0x49d636
mov eax, dword [ebx + 0x248]
cmp byte [eax + 0x44], 0
jne 0x49d603
mov eax, dword [ebx + 0x248]
cmp byte [eax + 0x44], 0
jne 0x49d627
cmp byte [ebx + 0x258], 0
je 0x49d627
push 0xffffffffffffffec
mov eax, ebx
call fcn.0043505c
push eax
call sub.user32.dll_GetWindowLongA
and eax, 0xfff7ffff
push eax
push 0xffffffffffffffec
mov eax, ebx
call fcn.0043505c
push eax
call sub.user32.dll_SetWindowLongA
mov eax, dword [ebx + 0x248]
mov al, byte [eax + 0x44]
mov byte [ebx + 0x258], al
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x49d658
cmp byte [eax + 0x9c], 0
jne 0x49d658
mov edx, dword [eax + 0x98]
cmp dword [edx + 4], 0xffffffff
jne 0x49d65c
xor edx, edx
jmp 0x49d65e
mov dl, 1
test dl, dl
je 0x49d66a
mov dword [ebx + 0x250], eax
jmp 0x49d672
xor eax, eax
mov dword [ebx + 0x250], eax
mov eax, dword [ebx + 0x250]
test eax, eax
je 0x49d6ca
mov edi, dword [ebx + 0x208]
mov esi, dword [eax + 0x98]
mov eax, dword [ebx + 0x248]
cmp byte [eax + 0x4c], 0
je 0x49d6b7
mov edx, dword [esi + 0x44]
mov eax, dword [edi + 0xc]
call fcn.0041dbc4
mov edx, dword [esi + 0x3c]
mov eax, dword [edi + 0xc]
call fcn.0041dc04
mov dl, byte [esi + 0x40]
mov eax, dword [edi + 0xc]
call fcn.0041dca8
jmp 0x49d6e1
mov eax, dword [ebx + 0x248]
mov edx, dword [eax + 0x48]
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x49d6e1
mov esi, dword [ebx + 0x208]
mov eax, dword [ebx + 0x248]
mov edx, dword [eax + 0x48]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [ebx + 0x248]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x49d70a
cmp dword [eax + 0x48], 0
je 0x49d70a
mov eax, dword [eax + 0x48]
mov dl, byte [eax + 0x34]
mov eax, dword [ebx + 0x208]
mov eax, dword [eax + 0xc]
call fcn.0041dd0c
jmp 0x49d722
mov eax, dword [esi + 0x48]
call fcn.0041dd04
mov edx, eax
mov eax, dword [ebx + 0x208]
mov eax, dword [eax + 0xc]
call fcn.0041dd0c
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 0x10]
call fcn.00404350
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0049d420
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.0042e8f0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x3c]
mov eax, ebx
call fcn.0042e8c0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebx + 0x208]
mov eax, ebx
call fcn.0049da18
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x4ed12c]
mov eax, dword [eax]
mov esi, dword [eax + 0x68]
test esi, esi
je 0x49d7e6
mov eax, dword [0x4ed12c]
mov eax, esi
call fcn.0043505c
lea ecx, [ebp - 0x38]
mov dl, 1
call fcn.004cf174
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x30]
jle 0x49d7c1
push 0
mov eax, dword [ebp - 8]
neg eax
sub eax, 2
push eax
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_OffsetRect
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x2c]
jle 0x49d899
mov eax, dword [ebp - 0xc]
neg eax
sub eax, 2
push eax
push 0
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_OffsetRect
jmp 0x49d899
mov eax, dword [0x4ecfd0]
mov eax, dword [eax]
mov esi, dword [eax + 0x44]
test esi, esi
je 0x49d84f
mov eax, dword [0x4ecfd0]
cmp byte [esi + 0x57], 0
je 0x49d84f
mov eax, dword [0x4ecfd0]
mov eax, esi
call fcn.0043505c
lea ecx, [ebp - 0x38]
mov dl, 1
call fcn.004cf174
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x30]
jle 0x49d831
push 0
mov eax, dword [ebp - 8]
neg eax
sub eax, 2
push eax
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_OffsetRect
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x2c]
jle 0x49d899
mov eax, dword [ebp - 0xc]
neg eax
sub eax, 2
push eax
push 0
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_OffsetRect
jmp 0x49d899
mov eax, dword [0x4ed12c]
mov eax, dword [eax]
call fcn.0044be2c
cmp eax, dword [ebp - 0x20]
jge 0x49d874
push 0
mov eax, dword [ebp - 8]
neg eax
sub eax, 2
push eax
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_OffsetRect
mov eax, dword [0x4ed12c]
mov eax, dword [eax]
call fcn.0044be20
cmp eax, dword [ebp - 0x1c]
jge 0x49d899
mov eax, dword [ebp - 0xc]
neg eax
sub eax, 2
push eax
push 0
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_OffsetRect
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.0042e290
call fcn.004c9eb0
test al, al
je 0x49d90d
mov eax, dword [ebx + 0x248]
cmp byte [eax + 0x44], 0
je 0x49d90d
push 0xffffffffffffffec
mov eax, ebx
call fcn.0043505c
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
push eax
push 0xffffffffffffffec
mov eax, ebx
call fcn.0043505c
push eax
call sub.user32.dll_SetWindowLongA
mov eax, dword [ebx + 0x248]
cmp byte [eax + 0x46], 0
je 0x49d8f8
mov eax, ebx
call fcn.0043505c
xor edx, edx
call fcn.004c9eec
jmp 0x49d90d
mov eax, ebx
call fcn.0043505c
mov edx, dword [ebx + 0x248]
mov dl, byte [edx + 0x45]
call fcn.004c9eec
mov eax, ebx
call fcn.0049d4a8
push 0x51
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
push 0xffffffffffffffff
mov eax, ebx
call fcn.0043505c
push eax
call sub.user32.dll_SetWindowPos
mov dl, 1
mov eax, ebx
call fcn.0042e7e0
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x80]
call fcn.004c9eb0
test al, al
je 0x49d9e9
mov eax, dword [ebx + 0x248]
cmp byte [eax + 0x44], 0
je 0x49d9e9
mov eax, dword [ebx + 0x248]
cmp byte [eax + 0x46], 0
je 0x49d9e9
xor esi, esi
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x248]
movzx edi, byte [eax + 0x45]
mov eax, edi
mov ecx, 0xa
cdq
idiv ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x49d998
mov dword [ebp - 0x18], 1
call sub.kernel32.dll_GetTickCount
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x10]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x49d9ba
cmp eax, 3
jbe 0x49d9e5
jmp 0x49d9bc
jle 0x49d9e5
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x10], eax
add esi, dword [ebp - 0x18]
cmp edi, esi
jge 0x49d9cd
mov esi, edi
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x80]
mov eax, ebx
call fcn.0043505c
mov edx, esi
call fcn.004c9eec
cmp edi, esi
jg 0x49d998
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49da0e
lea eax, [ebp - 0x3c]
call fcn.004042b8
lea eax, [ebp - 0x14]
call fcn.004042b8
ret