Function at 0x40c097
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x460]
sub esp, 0x460
push 0xffffffffffffffff
push 0x41bd8d
mov eax, dword fs:[0]
push eax
sub esp, 0xbc4
mov eax, dword [0x4213f0]
xor eax, ebp
mov dword [ebp + 0x45c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp + 0x2e8]
mov byte [ebp - 0x1c], 1
call fcn.00402ae4
mov esi, 0x174
xor ebx, ebx
push esi
lea eax, [ebp + 0x2e8]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040f480
push 0x16c
lea eax, [ebp - 0x198]
push ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.0040f480
mov edi, dword [sym.imp.ole32.dll_CoCreateInstance]
add esp, 0x18
lea eax, [ebp - 0x14]
push eax
push 0x41c9cc
push 0x15
push ebx
push 0x41ca2c
call edi
cmp eax, ebx
jl 0x40c148
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40c148
mov ecx, dword [eax]
lea edx, [ebp - 0x198]
push edx
push 0x16c
push eax
call dword [ecx + 0x10]
mov ecx, dword [0x422760]
lea eax, [ebp + 0x2e8]
push eax
cmp byte [ebp + 0x468], bl
je 0x40c16d
cmp byte [0x42270b], 1
jne 0x40c16d
call fcn.00404a81
jmp 0x40c172
call fcn.00405040
lea ecx, [ebp + 0x174]
mov dword [ebp - 0x20], ebx
call fcn.00402ae4
push esi
lea eax, [ebp + 0x174]
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.0040f480
push esi
lea eax, [ebp + 0x2e8]
push eax
lea eax, [ebp + 0x174]
push eax
call fcn.0040f630
mov ecx, dword [0x422760]
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x174]
push eax
call fcn.00401f43
mov byte [ebp - 0xd], al
cmp al, 1
jne 0x40c426
mov ecx, dword [0x422760]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x174]
push eax
call fcn.0040208b
mov byte [ebp - 0xd], al
cmp al, 1
jne 0x40c1fe
push esi
lea eax, [ebp + 0x174]
push eax
lea eax, [ebp + 0x2e8]
push eax
call fcn.0040f630
add esp, 0xc
test byte [ebp - 0x20], 2
je 0x40c20d
test byte [ebp - 0x20], 4
je 0x40c20d
mov byte [ebp - 0x1c], bl
cmp byte [ebp - 0xd], 1
jne 0x40c426
cmp dword [ebp + 0x2e8], ebx
je 0x40c426
cmp dword [ebp + 0x458], ebx
je 0x40c426
mov ecx, dword [0x422760]
lea eax, [ebp + 0x2e8]
push eax
call fcn.00401375
cmp al, 1
jne 0x40c426
push dword [ebp - 0x1c]
mov ecx, dword [0x422760]
lea eax, [ebp + 0x2e8]
push eax
call fcn.0040146b
mov byte [ebp - 0xd], al
cmp al, bl
jne 0x40c426
lea eax, [ebp - 0x18]
push eax
push 1
push ebx
push str.SoftwareIntelDisplayigfxcuiigfxcfg
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c2bb
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push str.TimeDelay
push dword [ebp - 0x18]
mov dword [ebp - 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c2bb
push dword [ebp - 0x24]
jmp 0x40c2c0
push 0x2bc
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x18], ebx
je 0x40c2d4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14]
push eax
push 0x41c9cc
push 0x15
push ebx
push 0x41ca2c
call edi
cmp eax, ebx
jl 0x40c340
cmp dword [ebp - 0x14], ebx
je 0x40c340
push 0xa38
lea eax, [ebp - 0xbd0]
push ebx
push eax
call fcn.0040f480
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
add esp, 0xc
lea edx, [ebp - 0xbd0]
push edx
push 0xa38
push eax
call dword [ecx + 0x6c]
lea eax, [ebp - 0xbc0]
push eax
call fcn.0040752f
lea eax, [ebp - 0xabc]
push eax
call fcn.0040752f
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x14], ebx
lea ecx, [ebp]
call fcn.00402ae4
push esi
lea eax, [ebp]
push ebx
push eax
mov byte [ebp - 4], 2
call fcn.0040f480
add esp, 0xc
lea eax, [ebp + 0x2e8]
push eax
lea ecx, [ebp]
mov dword [ebp + 0x170], 1
call fcn.0040bfe3
push dword [ebp - 0x1c]
mov ecx, dword [0x422760]
lea eax, [ebp]
push eax
call fcn.0040146b
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x14]
push eax
push 0x41c9cc
push 0x15
push ebx
push 0x41ca2c
call edi
cmp eax, ebx
jl 0x40c3f9
cmp dword [ebp - 0x14], ebx
je 0x40c3f9
mov esi, 0xa38
push esi
lea eax, [ebp - 0xbd0]
push ebx
push eax
call fcn.0040f480
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
add esp, 0xc
lea edx, [ebp - 0xbd0]
push edx
push esi
push eax
call dword [ecx + 0x6c]
lea eax, [ebp - 0xbc0]
push eax
call fcn.0040752f
lea eax, [ebp - 0xabc]
push eax
call fcn.0040752f
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x14], ebx
push dword [ebp - 0x1c]
mov ecx, dword [0x422760]
lea eax, [ebp + 0x2e8]
push eax
call fcn.0040146b
mov byte [ebp - 0xd], al
cmp al, bl
jne 0x40c41a
call fcn.0040c054
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.00402b14
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40c436
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x14], ebx
lea ecx, [ebp + 0x174]
call fcn.00402b14
lea ecx, [ebp + 0x2e8]
call fcn.00402b14
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 + 0x45c]
xor ecx, ebp
call fcn.0040f4fa
add ebp, 0x460
leave
ret