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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x14], ebx
mov esi, edx
lea edi, [ebp - 0x24]
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 0x5052e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x264], 1
mov eax, ebx
call fcn.00504d8c
mov esi, eax
mov dword [ebx + 0x248], esi
test esi, esi
je 0x5052c3
cmp byte [esi + 0x38], 0
je 0x5052c3
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x504e83
cmp byte [eax + 0x9c], 0
jne 0x504e83
mov edx, dword [eax + 0x98]
cmp dword [edx + 4], 0xffffffff
jne 0x504e87
xor edx, edx
jmp 0x504e89
mov dl, 1
test dl, dl
je 0x504e95
mov dword [ebx + 0x250], eax
jmp 0x504e9d
xor eax, eax
mov dword [ebx + 0x250], eax
mov eax, dword [ebx + 0x250]
test eax, eax
je 0x504ef5
mov edi, dword [ebx + 0x208]
mov esi, dword [eax + 0x98]
mov eax, dword [ebx + 0x248]
cmp byte [eax + 0x4c], 0
je 0x504ee2
mov edx, dword [esi + 0x44]
mov eax, dword [edi + 0xc]
call fcn.0042716c
mov edx, dword [esi + 0x3c]
mov eax, dword [edi + 0xc]
call fcn.004271ac
mov dl, byte [esi + 0x40]
mov eax, dword [edi + 0xc]
call fcn.00427250
jmp 0x504f0c
mov eax, dword [ebx + 0x248]
mov edx, dword [eax + 0x48]
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x504f0c
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 0x504f35
cmp dword [eax + 0x40], 0
je 0x504f35
mov eax, dword [eax + 0x40]
mov dl, byte [eax + 0x34]
mov eax, dword [ebx + 0x208]
mov eax, dword [eax + 0xc]
call fcn.004272b4
jmp 0x504f4d
mov eax, dword [esi + 0x48]
call fcn.004272ac
mov edx, eax
mov eax, dword [ebx + 0x208]
mov eax, dword [eax + 0xc]
call fcn.004272b4
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 0x10]
call fcn.00404b88
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.005046a4
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.00469074
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 - 0x38]
mov eax, ebx
call fcn.00469044
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebx + 0x208]
mov eax, ebx
call fcn.00504808
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [0x634c54]
mov eax, dword [eax]
mov esi, dword [eax + 0x68]
test esi, esi
je 0x505011
mov eax, dword [0x634c54]
mov eax, esi
call fcn.0046f82c
lea ecx, [ebp - 0x34]
mov dl, 1
call fcn.005464d0
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x2c]
jle 0x504fec
push 0
mov eax, dword [ebp - 8]
neg eax
sub eax, 2
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_OffsetRect
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x28]
jle 0x5050c4
mov eax, dword [ebp - 0xc]
neg eax
sub eax, 2
push eax
push 0
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_OffsetRect
jmp 0x5050c4
mov eax, dword [0x634984]
mov eax, dword [eax]
mov esi, dword [eax + 0x44]
test esi, esi
je 0x50507a
mov eax, dword [0x634984]
cmp byte [esi + 0x57], 0
je 0x50507a
mov eax, dword [0x634984]
mov eax, esi
call fcn.0046f82c
lea ecx, [ebp - 0x34]
mov dl, 1
call fcn.005464d0
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x2c]
jle 0x50505c
push 0
mov eax, dword [ebp - 8]
neg eax
sub eax, 2
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_OffsetRect
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x28]
jle 0x5050c4
mov eax, dword [ebp - 0xc]
neg eax
sub eax, 2
push eax
push 0
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_OffsetRect
jmp 0x5050c4
mov eax, dword [0x634c54]
mov eax, dword [eax]
call fcn.004874e0
cmp eax, dword [ebp - 0x1c]
jge 0x50509f
push 0
mov eax, dword [ebp - 8]
neg eax
sub eax, 2
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_OffsetRect
mov eax, dword [0x634c54]
mov eax, dword [eax]
call fcn.004874d4
cmp eax, dword [ebp - 0x18]
jge 0x5050c4
mov eax, dword [ebp - 0xc]
neg eax
sub eax, 2
push eax
push 0
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_OffsetRect
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.00468a04
mov eax, dword [ebx + 0x248]
mov cl, byte [eax + 0x68]
mov dl, byte [ebx + 0x25c]
cmp cl, dl
je 0x505169
cmp byte [eax + 0x44], 0
je 0x505169
test dl, dl
je 0x505115
push 0xffffffffffffffec
mov eax, ebx
call fcn.0046f82c
push eax
call sub.user32.dll_GetWindowLongA
and eax, 0xfff7ffff
push eax
push 0xffffffffffffffec
mov eax, ebx
call fcn.0046f82c
push eax
call sub.user32.dll_SetWindowLongA
jmp 0x50515a
push 0xffffffffffffffec
mov eax, ebx
call fcn.0046f82c
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
push eax
push 0xffffffffffffffec
mov eax, ebx
call fcn.0046f82c
push eax
call sub.user32.dll_SetWindowLongA
mov eax, dword [ebx + 0x248]
cmp byte [eax + 0x6a], 0
jne 0x50515a
mov eax, ebx
call fcn.0046f82c
mov edx, dword [ebx + 0x248]
mov dl, byte [edx + 0x69]
call fcn.0053fd4c
mov eax, dword [ebx + 0x248]
mov al, byte [eax + 0x68]
mov byte [ebx + 0x25c], al
mov eax, dword [ebx + 0x248]
cmp byte [eax + 0x44], 0
je 0x50518f
cmp byte [eax + 0x68], 0
je 0x50518f
cmp byte [eax + 0x6a], 0
je 0x50518f
mov eax, ebx
call fcn.0046f82c
xor edx, edx
call fcn.0053fd4c
mov eax, dword [ebx + 0x248]
xor edx, edx
mov dl, byte [eax + 0x69]
cmp edx, dword [ebx + 0x260]
je 0x5051d9
cmp byte [eax + 0x44], 0
je 0x5051d9
cmp byte [eax + 0x68], 0
je 0x5051d9
cmp byte [eax + 0x6a], 0
jne 0x5051c9
mov eax, ebx
call fcn.0046f82c
mov edx, dword [ebx + 0x248]
mov dl, byte [edx + 0x69]
call fcn.0053fd4c
mov eax, dword [ebx + 0x248]
movzx eax, byte [eax + 0x69]
mov dword [ebx + 0x260], eax
mov eax, dword [ebx + 0x248]
cmp byte [eax + 0x68], 0
je 0x505218
cmp byte [eax + 0x44], 0
jne 0x505218
mov edx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x254]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x254]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov ecx, dword [ebx + 0x254]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
call fcn.0053fd64
mov eax, ebx
call fcn.0050472c
push 0x51
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 0xffffffffffffffff
mov eax, ebx
call fcn.0046f82c
push eax
call sub.user32.dll_SetWindowPos
mov dl, 1
mov eax, ebx
call fcn.00468f64
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x80]
mov eax, dword [ebx + 0x248]
cmp byte [eax + 0x44], 0
je 0x5052c3
cmp byte [eax + 0x68], 0
je 0x5052c3
cmp byte [eax + 0x6a], 0
je 0x5052c3
xor esi, esi
xor edx, edx
mov dword [ebp - 0x10], edx
movzx edi, byte [eax + 0x69]
call sub.kernel32.dll_GetTickCount_1
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 0x505294
cmp eax, 3
jbe 0x5052bf
jmp 0x505296
jle 0x5052bf
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x10], eax
add esi, 0x14
cmp edi, esi
jge 0x5052a7
mov esi, edi
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x80]
mov eax, ebx
call fcn.0046f82c
mov edx, esi
call fcn.0053fd4c
cmp edi, esi
jg 0x505272
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5052e8
lea eax, [ebp - 0x38]
call fcn.00404af0
lea eax, [ebp - 0x14]
call fcn.00404af0
ret