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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x4467a4]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
mov ecx, 0x312
mov dword [esp + 0x14], ebx
push edi
mov edi, edx
mov dword [esp + 0x20], edi
cmp eax, ecx
ja 0x40b846
je 0x40b5b3
sub eax, 0x7e
je 0x40b4fc
sub eax, 0x95
je 0x40b4dd
sub eax, 0x126
je 0x40b4a4
mov esi, dword [ebp + 0xc]
sub eax, 1
jne 0x40b8fd
fld dword [0x404e90]
and dword [ebx + 0x94], 0
fstp dword [ebx + 0x1c]
jmp 0x40b8fd
fld dword [0x404e84]
lea ecx, [ebx + 0xf0]
xor eax, eax
inc eax
push eax
fstp dword [ebx + 0x1c]
mov dword [ebx + 0x94], eax
call fcn.0040d73c
mov ecx, dword [ebx + 8]
push 1
call fcn.00415721
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0xe8], eax
jmp 0x40b8fa
mov esi, dword [ebp + 0xc]
cmp esi, 0x837
jne 0x40b8fd
lea ecx, [ebx + 0xac]
call fcn.0041de6b
jmp 0x40b8fd
fld dword [ebx + 0x48]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld qword [0x405090]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x40b51e
fld dword [0x405208]
jmp 0x40b524
fld dword [0x404ea4]
mov esi, dword [ebx + 4]
fstp dword [esp + 0x14]
push ecx
fadd dword [esp + 0x18]
mov ecx, dword [esi]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
call dword [0x448860]
lea ecx, [ebx + 4]
call dword [esi]
push 0x4f
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4e
mov ebx, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4d
mov esi, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4c
mov edi, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
fld dword [esp + 0x10]
lea ecx, [eax + esi]
lea eax, [edi + ebx]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
lea esi, [esp + 0x24]
mov eax, dword [esp + 0x18]
push ecx
fstp dword [esp]
lea edi, [eax + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [eax + 4]
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x448860]
mov ecx, edi
call esi
jmp 0x40b8fa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
xor esi, esi
sub ecx, dword [ebx + 0xf68]
mov eax, dword [ebp + 0xc]
cmp ecx, 0xc8
jge 0x40b612
cmp eax, dword [ebx + 0xf6c]
jne 0x40b612
fld qword [ebx + 0xf70]
fmul qword [0x404ff0]
fst qword [ebx + 0xf70]
mov edx, dword [0x446098]
cmp edx, 0x446098
je 0x40b655
test byte [edx + 0x1c], 0x10
je 0x40b655
push ecx
push ecx
fstp qword [esp]
push ecx
push dword [edx + 0x14]
push dword [edx + 0x10]
call fcn.0040956f
mov eax, dword [ebp + 0xc]
jmp 0x40b657
mov edx, dword [0x446098]
cmp edx, 0x446098
je 0x40b641
test byte [edx + 0x1c], 0x10
je 0x40b641
push dword [ebx + 0xf6c]
push eax
push ecx
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x402bb0
push 0x16
pop ecx
call fcn.0040953f
fld qword [0x404f30]
fstp qword [ebx + 0xf70]
mov dword [ebx + 0xf6c], esi
jmp 0x40b60d
fstp st(0)
push 3
pop ecx
sub eax, ecx
je 0x40b802
sub eax, 1
je 0x40b7d3
sub eax, 1
je 0x40b7a3
sub eax, 1
je 0x40b770
sub eax, 0xa
jne 0x40b835
cmp dword [ebx + 0xb0], esi
jne 0x40b835
fld1
fcomp dword [ebx + 0x48]
fnstsw ax
test ah, 5
jp 0x40b835
mov ecx, dword [ebx + 0xa8]
test ecx, ecx
je 0x40b835
call fcn.00419ebc
test eax, eax
jne 0x40b835
add ebx, 0xac
push 1
mov ecx, ebx
call fcn.0041dfbe
mov esi, dword [esp + 0x18]
sub esp, 0x10
add esi, 0x5c
mov edi, esp
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0041dc05
push 1
mov ecx, ebx
call fcn.0041e083
mov eax, dword [0x446098]
cmp eax, 0x446098
je 0x40b711
test byte [eax + 0x1c], 0x10
je 0x40b711
push dword [eax + 0x14]
mov edx, 0x402bb0
push dword [eax + 0x10]
push 0x17
pop ecx
call fcn.00406b76
mov ebx, dword [esp + 0x18]
lea ecx, [ebx + 0xf0]
mov byte [ebx + 0xf79], 1
call fcn.0040fa9a
fld qword [0x404fb8]
lea esi, [ebx + 0xc]
sub esp, 0x18
mov ecx, dword [ebx + 0xa8]
mov edi, esp
fstp qword [esp + 0x10]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebx + 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0041933d
test byte [0x447240], 1
je 0x40b835
mov edx, 0x4022c0
call fcn.00408369
jmp 0x40b835
mov dword [ebx + 0xf6c], 6
mov eax, dword [ebx + 0x68]
sub eax, dword [ebx + 0x60]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
push ecx
fstp qword [esp + 0x1c]
fld qword [esp + 0x1c]
fmul qword [ebx + 0xf70]
call fcn.00442070
push eax
push esi
jmp 0x40b82e
mov dword [ebx + 0xf6c], 5
mov eax, dword [ebx + 0x68]
sub eax, dword [ebx + 0x60]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
push ecx
fstp qword [esp + 0x1c]
fld qword [esp + 0x1c]
fmul qword [ebx + 0xf70]
call fcn.00442070
neg eax
jmp 0x40b79c
mov dword [ebx + 0xf6c], 4
mov eax, dword [ebx + 0x64]
sub eax, dword [ebx + 0x5c]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
push ecx
push esi
fstp qword [esp + 0x20]
fld qword [esp + 0x20]
fmul qword [ebx + 0xf70]
call fcn.00442070
jmp 0x40b82d
mov dword [ebx + 0xf6c], ecx
mov eax, dword [ebx + 0x64]
sub eax, dword [ebx + 0x5c]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
push ecx
push esi
fstp qword [esp + 0x20]
fld qword [esp + 0x20]
fmul qword [ebx + 0xf70]
call fcn.00442070
neg eax
push eax
mov ecx, ebx
call fcn.0040b35f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0xf68], eax
jmp 0x40b8fa
sub eax, 0x31e
je 0x40b90a
sub eax, 0x1e2
je 0x40b87c
sub eax, 0x100
je 0x40b86b
sub eax, 1
jne 0x40b8fa
push eax
jmp 0x40b86d
push 1
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp + 0xc]
call fcn.0040b978
jmp 0x40b8fa
mov ecx, dword [ebx + 0xa8]
mov dword [ebx + 0xa4], 1
test ecx, ecx
je 0x40b8e8
call fcn.0041949d
mov ecx, dword [ebx + 0x44]
call fcn.004162b8
mov eax, dword [0x446098]
cmp eax, 0x446098
je 0x40b8c2
test byte [eax + 0x1c], 0x10
je 0x40b8c2
push dword [eax + 0x14]
mov edx, 0x402bb0
push dword [eax + 0x10]
push 0x18
pop ecx
call fcn.00406b76
lea ecx, [ebx + 0xf0]
call fcn.0040fa9a
fld1
push ecx
push ecx
mov ecx, dword [ebx + 0xa8]
fstp dword [esp + 4]
fld dword [ebx + 0x48]
fstp dword [esp]
call fcn.0041920e
jmp 0x40b8fa
mov eax, dword [ebx + 8]
xor esi, esi
push esi
push esi
push 0x10
push dword [eax + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [ebp + 0xc]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
push dword [esp + 0x2c]
jmp 0x40b95e
lea eax, [esp + 0x10]
xor esi, esi
push eax
mov dword [esp + 0x14], esi
call dword [sym.imp.dwmapi.dll_DwmIsCompositionEnabled]
cmp dword [esp + 0x10], esi
je 0x40b93b
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 2
push eax
push 8
push edi
call dword [sym.imp.dwmapi.dll_DwmSetWindowAttribute]
jmp 0x40b952
mov eax, dword [ebx + 8]
push esi
push esi
push 0x10
mov dword [ebx + 0x28], 2
push dword [eax + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x31e
push edi
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004406d0
mov esp, ebp
pop ebp
ret 0xc