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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
mov eax, dword [0x496fc8]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 8], esi
je 0x40f9bc
cmp eax, dword [ebp + 0x10]
jne 0x40f9bc
cmp dword [0x496e10], ebx
je 0x40f9bc
cmp esi, ebx
je 0x40f9bc
push esi
push dword [ebp + 0xc]
mov dword [0x496e10], esi
call dword [sym.imp.USER32.dll_SetParent]
mov edi, 0x110
cmp dword [ebp + 0x10], edi
je 0x40f9f0
cmp dword [ebp + 0x10], 0x44f
je 0x40f9f0
cmp esi, ebx
je 0x40f9f0
mov eax, dword [0x496e10]
cmp eax, ebx
je 0x40f9f0
cmp eax, esi
je 0x40f9f0
push esi
push dword [ebp + 0xc]
mov dword [0x496e10], esi
call dword [sym.imp.USER32.dll_SetParent]
mov eax, dword [ebp + 0x10]
cmp eax, edi
ja 0x40fc96
je 0x40fb53
cmp eax, 5
je 0x40fb39
cmp eax, 0xf
je 0x40fab0
cmp eax, 0x14
je 0x40fa26
cmp eax, 0x7e
je 0x40fcb3
jmp 0x40fdd9
cmp dword [0x496de8], ebx
je 0x40faa3
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
call dword [0x496d88]
test eax, eax
jne 0x40faa3
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, dword [0x496df4]
push ebx
call esi
mov ebx, dword [0x496df8]
push 1
mov dword [0x496df4], eax
call esi
mov ecx, dword [0x496df4]
cmp edi, ecx
mov dword [0x496df8], eax
jne 0x40fa70
cmp ebx, eax
je 0x40fa89
push 0x16
push eax
push ecx
xor esi, esi
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x496df8]
jmp 0x40fa8b
xor esi, esi
push eax
push dword [0x496df4]
push esi
push esi
push dword [0x496de8]
push dword [ebp - 4]
call dword [0x496d8c]
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
jmp 0x40ff3b
mov eax, dword [0x496e10]
cmp eax, ebx
je 0x40facd
cmp eax, esi
je 0x40facd
push esi
push dword [ebp + 0xc]
mov dword [0x496e10], esi
call dword [sym.imp.USER32.dll_SetParent]
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_BeginPaint]
cmp byte [0x496e01], 0
jne 0x40fb1c
cmp byte [0x496e00], 0
mov dword [0x496dfc], 0x495260
jne 0x40fb00
mov dword [0x496dfc], 0x496dec
push dword [0x49a00c]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push dword [0x496dfc]
push dword [ebp - 0x48]
call dword [sym.imp.USER32.dll_FillRect]
push dword [ebp - 0x48]
mov ecx, dword [ebp + 8]
call fcn.0040b7a0
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_EndPaint]
jmp 0x40fdd9
cmp dword [ebp + 0x14], 1
jne 0x40fdd9
push 1
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40fdd9
call fcn.0042a8db
mov esi, 0x4975e4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.LogohWnd
mov ebx, str.SOFTWAREPELOGON
push ebx
mov edi, 0x80000002
push edi
call fcn.0042816f
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push str.LogohWnd
push ebx
push edi
call fcn.004280f8
add esp, 0x24
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
xor ebx, ebx
push ebx
call edi
push 1
mov dword [0x496df4], eax
call edi
mov dword [0x496df8], eax
mov eax, dword [ebp - 8]
cmp eax, ebx
mov dword [0x496e10], 0xffffeffb
je 0x40fbd1
push eax
push dword [ebp + 0xc]
mov dword [0x496e10], eax
call dword [sym.imp.USER32.dll_SetParent]
cmp byte [0x495271], 0
push 2
pop edi
mov byte [ebp + 0x10], 0xff
jl 0x40fbe4
push 3
pop edi
mov ax, word [0x495274]
cmp ax, bx
jl 0x40fbf7
or cl, 0xff
sub cl, al
mov byte [ebp + 0x10], cl
or edi, 2
push edi
push dword [ebp + 0x10]
push dword [0x49a00c]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
push ebx
push dword [0x496df8]
push dword [0x496df4]
push ebx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_MoveWindow]
mov al, byte [0x496e18]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 0x10
push dword [0x496df8]
neg al
push dword [0x496df4]
push ebx
push ebx
sbb eax, eax
push eax
push dword [ebp + 0xc]
call edi
test eax, eax
jne 0x40fc64
push 0x10
push dword [0x496df8]
push dword [0x496df4]
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
call edi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
push esi
mov dword [0x496dd0], eax
mov byte [0x496e0c], 2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push ebx
push 0x44f
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40fdd9
sub eax, 0x111
je 0x40fdaf
sub eax, 0x33e
je 0x40fda6
dec eax
jne 0x40fdd9
mov esi, 0x4975e4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0x10], 0x450
jne 0x40fd24
push 0x20a
lea ecx, [ebp + 0x10]
call fcn.0042c827
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
push edi
lea eax, [ebp + 8]
push eax
push str.LogoFile
mov word [edi], bx
push str.SOFTWAREPELOGON
push 0x80000002
mov dword [ebp + 8], ebx
mov dword [ebp + 0x14], 0x412
call fcn.00428081
add esp, 0x18
cmp word [edi], bx
mov word [edi + 0x410], bx
je 0x40fd1c
push edi
mov ecx, 0x496f4c
call fcn.0043667e
lea ecx, [ebp + 0x10]
call fcn.00427365
mov edi, dword [0x496f4c]
cmp edi, ebx
je 0x40fd5a
cmp word [edi], bx
je 0x40fd5a
mov eax, dword [0x496de8]
cmp eax, ebx
je 0x40fd49
push eax
call dword [0x496d84]
mov dword [0x496de8], ebx
mov eax, dword [0x496d90]
cmp eax, ebx
je 0x40fd5a
push 0x496de8
push edi
call eax
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
call esi
push 1
mov dword [0x496df4], eax
call esi
push 0x10
push eax
push dword [0x496df4]
mov dword [0x496df8], eax
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push 0x496dec
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov byte [0x496e0c], 0
jmp 0x40fdd9
mov byte [0x496e0c], 7
jmp 0x40fd9d
mov ebx, dword [ebp + 0x14]
cmp ebx, 0x66
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, 0x4975e4
je 0x40fec5
cmp ebx, 0x67
je 0x40fde0
cmp ebx, 2
jne 0x40fdd9
test byte [0x496bfc], 4
je 0x40fde0
xor eax, eax
jmp 0x40ff3b
push esi
call edi
add dword [0x497180], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 0x67
jne 0x40fe00
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x40fe00
mov byte [eax], 0
cmp byte [0x495271], 0
jge 0x40feb4
test byte [0x496bfc], 2
jne 0x40feb4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
fldz
fstp dword [ebp + 0x14]
mov dword [ebp + 8], eax
fldz
fstp dword [ebp + 0x10]
fld dword [ebp + 0x14]
fmul dword [0x482f08]
call fcn.0046d950
mov ecx, dword [ebp + 8]
lea ebx, [eax + ecx]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, ebx
sub ecx, eax
test ecx, ecx
jle 0x40fe72
fld dword [ebp + 0x10]
push 2
fadd qword [0x482f00]
call fcn.0046d950
xor ecx, ecx
or cl, 0xff
sub cl, al
push ecx
push 0
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
fld dword [0x482ef8]
fld dword [ebp + 0x10]
fadd st(1)
fstp dword [ebp + 0x10]
fld dword [ebp + 0x14]
fadd st(1)
fstp dword [ebp + 0x14]
fstp st(0)
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub ebx, eax
test ebx, ebx
jle 0x40fea0
push 1
push 0xb
call dword [sym.imp.KERNEL32.dll_SleepEx]
fld dword [ebp + 0x10]
fcomp dword [0x482ef4]
fnstsw ax
test ah, 0x41
jnp 0x40fe2d
push esi
call edi
sub dword [0x497180], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call edi
and byte [0x496bfc], 0xfd
push str.LogohWnd
push str.SOFTWAREPELOGON
push 0x80000002
call fcn.0042816f
xor edi, edi
add esp, 0xc
mov ecx, 0x496f4c
mov dword [0x496e10], edi
mov byte [0x495271], 0xff
call fcn.00427365
mov eax, dword [0x496de8]
cmp eax, edi
je 0x40ff0f
push eax
call dword [0x496d84]
push esi
mov dword [0x496de8], edi
mov dword [0x496dd0], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov al, byte [0x497175]
push eax
call fcn.0042a900
pop ecx
push 8
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_EndDialog]
pop edi
pop esi
pop ebx
leave
ret 0x14