Function at 0x40af70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x3fc
lea ebp, [esp - 4]
mov eax, dword [0x420450]
xor eax, ebp
mov dword [ebp + 0x3fc], eax
push 0xf4
mov eax, 0x41a967
call fcn.0040ea07
lea ecx, [ebp + 0x2a8]
mov byte [ebp - 0x1c], 1
call fcn.004032d6
mov edi, 0x154
xor ebx, ebx
push edi
lea eax, [ebp + 0x2a8]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040e0c0
lea esi, [edi - 0x80]
push esi
lea eax, [ebp - 0x100]
push ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.0040e0c0
add esp, 0x18
lea eax, [ebp - 0x14]
push eax
push 0x41b978
push 0x15
push ebx
push 0x41b9c8
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x40b005
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40b005
mov ecx, dword [eax]
lea edx, [ebp - 0x100]
push edx
push esi
push eax
call dword [ecx + 0x10]
mov ecx, dword [0x4217cc]
lea eax, [ebp + 0x2a8]
push eax
call fcn.0040518d
lea ecx, [ebp + 0x154]
mov dword [ebp - 0x18], ebx
call fcn.004032d6
push edi
lea eax, [ebp + 0x154]
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.0040e0c0
push edi
lea eax, [ebp + 0x2a8]
push eax
lea eax, [ebp + 0x154]
push eax
call fcn.0040e270
mov ecx, dword [0x4217cc]
add esp, 0x18
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x154]
push eax
call fcn.00401e87
mov byte [ebp - 0xd], al
cmp al, 1
jne 0x40b213
mov ecx, dword [0x4217cc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x154]
push eax
call fcn.00401f9b
mov byte [ebp - 0xd], al
cmp al, 1
jne 0x40b0a3
push edi
lea eax, [ebp + 0x154]
push eax
lea eax, [ebp + 0x2a8]
push eax
call fcn.0040e270
add esp, 0xc
test byte [ebp - 0x18], 2
je 0x40b0b2
test byte [ebp - 0x18], 4
je 0x40b0b2
mov byte [ebp - 0x1c], bl
cmp byte [ebp - 0xd], 1
jne 0x40b213
cmp dword [ebp + 0x2a8], ebx
je 0x40b213
cmp dword [ebp + 0x3f8], ebx
je 0x40b213
mov ecx, dword [0x4217cc]
lea eax, [ebp + 0x2a8]
push eax
call fcn.00401354
cmp al, 1
jne 0x40b213
push dword [ebp - 0x1c]
mov ecx, dword [0x4217cc]
lea eax, [ebp + 0x2a8]
push eax
call fcn.00401437
mov byte [ebp - 0xd], al
cmp al, bl
jne 0x40b213
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
push str.SoftwareIntelDisplayigfxcuiigfxcfg
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b169
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push str.TimeDelay
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b169
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x28]
jmp 0x40b16e
push 0x2bc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, str..Display1
push esi
call fcn.0040682f
mov dword [esp], str..Display2
call fcn.0040682f
pop ecx
lea ecx, [ebp]
call fcn.004032d6
push edi
lea eax, [ebp]
push ebx
push eax
mov byte [ebp - 4], 2
call fcn.0040e0c0
add esp, 0xc
lea eax, [ebp + 0x2a8]
push eax
lea ecx, [ebp]
mov dword [ebp + 0x150], 1
call fcn.0040aec8
push dword [ebp - 0x1c]
mov ecx, dword [0x4217cc]
lea eax, [ebp]
push eax
call fcn.00401437
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.0040682f
pop ecx
push dword [ebp - 0x1c]
mov ecx, dword [0x4217cc]
lea eax, [ebp + 0x2a8]
push eax
call fcn.00401437
mov byte [ebp - 0xd], al
cmp al, bl
jne 0x40b207
call fcn.0040af2d
mov byte [ebp - 0xd], al
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.00403306
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40b223
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x14], ebx
lea ecx, [ebp + 0x154]
call fcn.00403306
lea ecx, [ebp + 0x2a8]
call fcn.00403306
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3fc]
xor ecx, ebp
call fcn.0040e13a
add ebp, 0x400
leave
ret