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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4899b0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x504a70]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0045d0cd
call fcn.0045e8af
xor ecx, ecx
xor ebp, ebp
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x407fe0
push 0x80004005
call fcn.00401440
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x4f2070
lea ecx, [esp + 0x18]
push str.TechPowerUp_GPU_Z__s
push ecx
mov dword [esp + 0x44], ebp
call fcn.00405230
mov edx, dword [esp + 0x20]
add esp, 0xc
push edx
mov ecx, esi
call fcn.0045c3f0
cmp esi, ebp
jne 0x40801f
xor eax, eax
jmp 0x408022
mov eax, dword [esi + 0x20]
push ebp
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov edi, eax
cmp edi, ebp
je 0x408076
mov ebx, dword [sym.imp.USER32.dll_InsertMenuW]
push 0x4f1164
push ebp
push 0x800
push 0x10
push edi
call ebx
push 0x4f20a8
push 0x403
push ebp
push 0x10
push edi
call ebx
push 0x4f1164
push ebp
push 0x800
push 0x10
push edi
call ebx
push 0x4f20d0
push 0x401
push ebp
push 0x10
push edi
call ebx
mov eax, dword [esi + 0x74]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov eax, dword [esi + 0x20]
push 1
push 0x80
push eax
call edi
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x20]
push eax
push ebp
push 0x80
push ecx
call edi
mov ecx, dword [0x507158]
mov eax, dword [ecx + 4]
mov edx, dword [eax + 8]
test edx, edx
jle 0x40816d
test ebp, ebp
jl 0x4084f3
cmp ebp, dword [eax + 8]
jge 0x4084f3
mov edx, dword [eax + 4]
mov ebx, dword [edx + ebp*4]
lea eax, [edx + ebp*4]
call fcn.0045e8af
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x407fd6
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x38], 1
mov ecx, dword [ebx + 0x34]
push ecx
lea edx, [esp + 0x1c]
push 0x4f20e4
push edx
call fcn.00405230
mov ebx, dword [esp + 0x24]
mov eax, dword [esi + 0x1d08]
add esp, 0xc
push ebx
push 0
push 0x143
push eax
call edi
mov edx, dword [esi + 0x1d08]
mov ecx, ebp
or ecx, 0x20000
push ecx
push eax
push 0x151
push edx
call edi
lea eax, [ebx - 0x10]
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408158
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x507158]
mov eax, dword [ecx + 4]
add ebp, 1
cmp ebp, dword [eax + 8]
jl 0x4080b1
mov eax, dword [ecx + 0x18]
xor ebp, ebp
cmp dword [eax + 8], ebp
jle 0x408237
test ebp, ebp
jl 0x4084f3
cmp ebp, dword [eax + 8]
jge 0x4084f3
mov ecx, dword [eax + 4]
mov ebx, dword [ecx + ebp*4]
lea eax, [ecx + ebp*4]
call fcn.0045e8af
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x407fd6
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x38], 2
mov ecx, dword [ebx + 0x34]
push ecx
lea edx, [esp + 0x1c]
push 0x4f20e4
push edx
call fcn.00405230
mov ebx, dword [esp + 0x24]
mov eax, dword [esi + 0x1d08]
add esp, 0xc
push ebx
push 0
push 0x143
push eax
call edi
mov edx, dword [esi + 0x1d08]
mov ecx, ebp
or ecx, 0x10000
push ecx
push eax
push 0x151
push edx
call edi
lea eax, [ebx - 0x10]
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408222
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x507158]
mov eax, dword [ecx + 0x18]
add ebp, 1
cmp ebp, dword [eax + 8]
jl 0x40817b
mov ecx, dword [ecx + 8]
xor ebp, ebp
cmp dword [ecx + 8], ebp
jle 0x408301
test ebp, ebp
jl 0x4084f3
cmp ebp, dword [ecx + 8]
jge 0x4084f3
mov ecx, dword [ecx + 4]
mov ebx, dword [ecx + ebp*4]
lea eax, [ecx + ebp*4]
call fcn.0045e8af
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x407fd6
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x38], 3
mov ecx, dword [ebx + 0x34]
push ecx
lea edx, [esp + 0x1c]
push 0x4f20e4
push edx
call fcn.00405230
mov ebx, dword [esp + 0x24]
mov eax, dword [esi + 0x1d08]
add esp, 0xc
push ebx
push 0
push 0x143
push eax
call edi
mov edx, dword [esi + 0x1d08]
mov ecx, ebp
or ecx, 0x30000
push ecx
push eax
push 0x151
push edx
call edi
lea eax, [ebx - 0x10]
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4082ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x507158]
mov ecx, dword [ecx + 8]
add ebp, 1
cmp ebp, dword [ecx + 8]
jl 0x408245
mov edx, dword [esi + 0x1d08]
push 0
push 0
push 0x14e
push edx
call edi
mov ecx, dword [esi + 0x9c]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.0045e1dc
push 0x16
push 1
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esi + 0xd0]
mov eax, dword [edx + 0x134]
sub dword [esp + 0x24], 4
sub dword [esp + 0x28], 0x18
lea edi, [esi + 0xd0]
push esi
push 0x81
mov ecx, edi
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x24]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, edi
call fcn.0045c431
push 1
mov ecx, edi
call fcn.0045c46f
mov eax, dword [esi + 0x1474]
mov edx, dword [eax + 0x134]
lea edi, [esi + 0x1474]
push esi
push 0x8e
mov ecx, edi
call edx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x24]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, edi
call fcn.0045c431
mov eax, dword [esi + 0x1b14]
mov edx, dword [eax + 0x134]
lea edi, [esi + 0x1b14]
push esi
push 0x92
mov ecx, edi
call edx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub ecx, eax
push 1
push ecx
mov ecx, dword [esp + 0x24]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, edi
call fcn.0045c431
push 0
push 0
push str._faS
push 0x63
lea edi, [esi + 0x7c]
push 1
mov ecx, edi
call fcn.00460b05
push 0
push 0
push 0x4f2108
push 0x63
push 1
mov ecx, edi
mov dword [esi + 0x1d90], eax
call fcn.00460b05
push 0
push 0
push 0x4f2118
push 0x63
push 1
mov ecx, edi
mov dword [esi + 0x1d98], eax
call fcn.00460b05
mov ecx, esi
mov dword [esi + 0x1d94], eax
call fcn.004087b0
mov eax, dword [esi + 0x20]
push 0
push 0x9c4
push 0x45
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x78], eax
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
sub eax, dword [0x54a248]
cmp eax, 0x3e8
jae 0x4084a6
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
call edi
call esi
sub eax, dword [0x54a248]
cmp eax, 0x3e8
jb 0x408493
push 0
mov ecx, 0x54a200
call fcn.00412c10
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4084da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.0045d951