Function at 0x40f7b1
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 0x40f7f1
cmp eax, dword [ebp + 0x10]
jne 0x40f7f1
cmp dword [0x496e10], ebx
je 0x40f7f1
cmp esi, ebx
je 0x40f7f1
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 0x40f825
cmp dword [ebp + 0x10], 0x44f
je 0x40f825
cmp esi, ebx
je 0x40f825
mov eax, dword [0x496e10]
cmp eax, ebx
je 0x40f825
cmp eax, esi
je 0x40f825
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 0x40facb
je 0x40f988
cmp eax, 5
je 0x40f96e
cmp eax, 0xf
je 0x40f8e5
cmp eax, 0x14
je 0x40f85b
cmp eax, 0x7e
je 0x40fae8
jmp 0x40fc0e
cmp dword [0x496de8], ebx
je 0x40f8d8
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
call dword [0x496d88]
test eax, eax
jne 0x40f8d8
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 0x40f8a5
cmp ebx, eax
je 0x40f8be
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 0x40f8c0
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 0x40fd70
mov eax, dword [0x496e10]
cmp eax, ebx
je 0x40f902
cmp eax, esi
je 0x40f902
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 0x40f951
cmp byte [0x496e00], 0
mov dword [0x496dfc], 0x495260
jne 0x40f935
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.0040b5e6
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_EndPaint]
jmp 0x40fc0e
cmp dword [ebp + 0x14], 1
jne 0x40fc0e
push 1
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40fc0e
call fcn.0042a51b
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.00427e20
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push str.LogohWnd
push ebx
push edi
call fcn.00427da9
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 0x40fa06
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 0x40fa19
push 3
pop edi
mov ax, word [0x495274]
cmp ax, bx
jl 0x40fa2c
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 0x40fa99
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 0x40fc0e
sub eax, 0x111
je 0x40fbe4
sub eax, 0x33e
je 0x40fbdb
dec eax
jne 0x40fc0e
mov esi, 0x4975e4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0x10], 0x450
jne 0x40fb59
push 0x20a
lea ecx, [ebp + 0x10]
call fcn.0042c415
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.00427d32
add esp, 0x18
cmp word [edi], bx
mov word [edi + 0x410], bx
je 0x40fb51
push edi
mov ecx, 0x496f4c
call fcn.004362a2
lea ecx, [ebp + 0x10]
call fcn.0042704a
mov edi, dword [0x496f4c]
cmp edi, ebx
je 0x40fb8f
cmp word [edi], bx
je 0x40fb8f
mov eax, dword [0x496de8]
cmp eax, ebx
je 0x40fb7e
push eax
call dword [0x496d84]
mov dword [0x496de8], ebx
mov eax, dword [0x496d90]
cmp eax, ebx
je 0x40fb8f
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 0x40fc0e
mov byte [0x496e0c], 7
jmp 0x40fbd2
mov ebx, dword [ebp + 0x14]
cmp ebx, 0x66
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, 0x4975e4
je 0x40fcfa
cmp ebx, 0x67
je 0x40fc15
cmp ebx, 2
jne 0x40fc0e
test byte [0x496bfc], 4
je 0x40fc15
xor eax, eax
jmp 0x40fd70
push esi
call edi
add dword [0x497180], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 0x67
jne 0x40fc35
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x40fc35
mov byte [eax], 0
cmp byte [0x495271], 0
jge 0x40fce9
test byte [0x496bfc], 2
jne 0x40fce9
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.0046d480
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 0x40fca7
fld dword [ebp + 0x10]
push 2
fadd qword [0x482f00]
call fcn.0046d480
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 [0x482efc]
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 0x40fcd5
push 1
push 0xb
call dword [sym.imp.KERNEL32.dll_SleepEx]
fld dword [ebp + 0x10]
fcomp dword [0x482ef8]
fnstsw ax
test ah, 0x41
jnp 0x40fc62
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.00427e20
xor edi, edi
add esp, 0xc
mov ecx, 0x496f4c
mov dword [0x496e10], edi
mov byte [0x495271], 0xff
call fcn.0042704a
mov eax, dword [0x496de8]
cmp eax, edi
je 0x40fd44
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.0042a540
pop ecx
push 8
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_EndDialog]
pop edi
pop esi
pop ebx
leave
ret 0x14