Function at 0x5040bc
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 - 4], 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 - 8], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x5045b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x2ac], 1
mov eax, ebx
call fcn.0050403c
mov esi, eax
mov dword [ebx + 0x290], esi
test esi, esi
je 0x50459b
cmp byte [esi + 0x38], 0
je 0x50459b
mov eax, dword [ebx + 0x290]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x504133
cmp byte [eax + 0xb8], 0
jne 0x504133
mov edx, dword [eax + 0xb4]
cmp dword [edx + 4], 0xffffffff
jne 0x504137
xor edx, edx
jmp 0x504139
mov dl, 1
test dl, dl
je 0x504145
mov dword [ebx + 0x298], eax
jmp 0x50414d
xor eax, eax
mov dword [ebx + 0x298], eax
mov eax, dword [ebx + 0x298]
test eax, eax
je 0x5041a6
mov edi, dword [ebx + 0x250]
mov esi, dword [eax + 0xb4]
mov eax, dword [ebx + 0x290]
cmp byte [eax + 0x4c], 0
je 0x504193
mov edx, dword [esi + 0x44]
mov eax, dword [edi + 0xc]
call fcn.00428410
mov edx, dword [esi + 0x3c]
mov eax, dword [edi + 0xc]
call fcn.00428450
movzx edx, byte [esi + 0x40]
mov eax, dword [edi + 0xc]
call fcn.004284f4
jmp 0x5041bd
mov eax, dword [ebx + 0x290]
mov edx, dword [eax + 0x48]
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x5041bd
mov esi, dword [ebx + 0x250]
mov eax, dword [ebx + 0x290]
mov edx, dword [eax + 0x48]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [ebx + 0x290]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x5041e7
cmp dword [eax + 0x48], 0
je 0x5041e7
mov eax, dword [eax + 0x48]
movzx edx, byte [eax + 0x34]
mov eax, dword [ebx + 0x250]
mov eax, dword [eax + 0xc]
call fcn.00428558
jmp 0x5041ff
mov eax, dword [esi + 0x48]
call fcn.00428550
mov edx, eax
mov eax, dword [ebx + 0x250]
mov eax, dword [eax + 0xc]
call fcn.00428558
lea eax, [ebp - 4]
mov edx, dword [ebp + 0x10]
call fcn.00405234
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00503950
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0044427c
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x3c]
mov eax, ebx
call fcn.0044424c
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebx + 0x250]
mov eax, ebx
call fcn.00503ab8
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x56aec0]
mov eax, dword [eax]
mov esi, dword [eax + 0x68]
test esi, esi
je 0x5042c3
mov eax, dword [0x56aec0]
mov eax, esi
call fcn.0044c2d0
lea ecx, [ebp - 0x38]
mov dl, 1
call fcn.0050cce4
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x30]
jle 0x50429e
push 0
mov eax, dword [ebp - 0xc]
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 0x504376
mov eax, dword [ebp - 0x10]
neg eax
sub eax, 2
push eax
push 0
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_OffsetRect
jmp 0x504376
mov eax, dword [0x56ac00]
mov eax, dword [eax]
mov esi, dword [eax + 0x44]
test esi, esi
je 0x50432c
mov eax, dword [0x56ac00]
cmp byte [esi + 0x57], 0
je 0x50432c
mov eax, dword [0x56ac00]
mov eax, esi
call fcn.0044c2d0
lea ecx, [ebp - 0x38]
mov dl, 1
call fcn.0050cce4
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x30]
jle 0x50430e
push 0
mov eax, dword [ebp - 0xc]
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 0x504376
mov eax, dword [ebp - 0x10]
neg eax
sub eax, 2
push eax
push 0
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_OffsetRect
jmp 0x504376
mov eax, dword [0x56aec0]
mov eax, dword [eax]
call fcn.00460220
cmp eax, dword [ebp - 0x20]
jge 0x504351
push 0
mov eax, dword [ebp - 0xc]
neg eax
sub eax, 2
push eax
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_OffsetRect
mov eax, dword [0x56aec0]
mov eax, dword [eax]
call fcn.00460214
cmp eax, dword [ebp - 0x1c]
jge 0x504376
mov eax, dword [ebp - 0x10]
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.00443b7c
mov eax, dword [ebx + 0x290]
movzx ecx, byte [eax + 0x68]
movzx edx, byte [ebx + 0x2a4]
cmp cl, dl
je 0x504423
cmp byte [eax + 0x44], 0
je 0x504423
test dl, dl
je 0x5043cd
push 0xffffffffffffffec
mov eax, ebx
call fcn.0044c2d0
push eax
call sub.user32.dll_GetWindowLongA
and eax, 0xfff7ffff
push eax
push 0xffffffffffffffec
mov eax, ebx
call fcn.0044c2d0
push eax
call sub.user32.dll_SetWindowLongA
jmp 0x504413
push 0xffffffffffffffec
mov eax, ebx
call fcn.0044c2d0
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
push eax
push 0xffffffffffffffec
mov eax, ebx
call fcn.0044c2d0
push eax
call sub.user32.dll_SetWindowLongA
mov eax, dword [ebx + 0x290]
cmp byte [eax + 0x6a], 0
jne 0x504413
mov eax, ebx
call fcn.0044c2d0
mov edx, dword [ebx + 0x290]
movzx edx, byte [edx + 0x69]
call fcn.0050787c
mov eax, dword [ebx + 0x290]
movzx eax, byte [eax + 0x68]
mov byte [ebx + 0x2a4], al
mov eax, dword [ebx + 0x290]
cmp byte [eax + 0x44], 0
je 0x504449
cmp byte [eax + 0x68], 0
je 0x504449
cmp byte [eax + 0x6a], 0
je 0x504449
mov eax, ebx
call fcn.0044c2d0
xor edx, edx
call fcn.0050787c
mov eax, dword [ebx + 0x290]
movzx edx, byte [eax + 0x69]
cmp edx, dword [ebx + 0x2a8]
je 0x504493
cmp byte [eax + 0x44], 0
je 0x504493
cmp byte [eax + 0x68], 0
je 0x504493
cmp byte [eax + 0x6a], 0
jne 0x504483
mov eax, ebx
call fcn.0044c2d0
mov edx, dword [ebx + 0x290]
movzx edx, byte [edx + 0x69]
call fcn.0050787c
mov eax, dword [ebx + 0x290]
movzx eax, byte [eax + 0x69]
mov dword [ebx + 0x2a8], eax
mov eax, dword [ebx + 0x290]
cmp byte [eax + 0x68], 0
je 0x5044d2
cmp byte [eax + 0x44], 0
jne 0x5044d2
mov edx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x29c]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x29c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov ecx, dword [ebx + 0x29c]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
call fcn.00507894
mov eax, ebx
call fcn.005039dc
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.0044c2d0
push eax
call sub.user32.dll_SetWindowPos
mov dl, 1
mov eax, ebx
call fcn.0044416c
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x84]
mov eax, dword [ebx + 0x290]
cmp byte [eax + 0x44], 0
je 0x50459b
cmp byte [eax + 0x68], 0
je 0x50459b
cmp byte [eax + 0x6a], 0
je 0x50459b
xor esi, esi
xor edx, edx
mov dword [ebp - 0x14], edx
movzx edi, byte [eax + 0x69]
mov eax, edi
mov ecx, 0xa
cdq
idiv ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x50454a
mov dword [ebp - 0x18], 1
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x14]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x50456c
cmp eax, 3
jbe 0x504597
jmp 0x50456e
jle 0x504597
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x14], eax
add esi, dword [ebp - 0x18]
cmp edi, esi
jge 0x50457f
mov esi, edi
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x84]
mov eax, ebx
call fcn.0044c2d0
mov edx, esi
call fcn.0050787c
cmp edi, esi
jg 0x50454a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5045c0
lea eax, [ebp - 0x3c]
call fcn.0040519c
lea eax, [ebp - 4]
call fcn.0040519c
ret