Function at 0x40cb70
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469090
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x23ec
call fcn.0045f540
cmp dword [0x492098], 8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
jae 0x40d4d4
test byte [0x49216c], 2
je 0x40d4d4
mov ecx, 0x492a60
call fcn.0042df10
cmp eax, dword [0x49eaf0]
mov dword [ebp - 0x14], eax
jae 0x40d4d4
push eax
mov ecx, 0x492a60
call fcn.00430c50
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x34], ebx
je 0x40d4d4
mov ecx, ebx
call fcn.00437890
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40cbf0
sub eax, edx
mov esi, eax
mov dword [ebp - 0x30], esi
je 0x40d4d4
lea eax, [esi + 1]
push eax
mov dword [ebp - 4], 0
call fcn.0045f1c6
add esp, 4
mov dword [ebp - 0x1c], eax
jmp 0x40cc2f
mov eax, dword [ebp - 0x1c]
test eax, eax
mov dword [ebp - 4], 0xffffffff
je 0x40d4d4
xor edx, edx
xor eax, eax
mov dword [ebp - 0xc4], edx
mov ecx, 0xf
lea edi, [ebp - 0xc0]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x38], edx
lea ecx, [esi + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push esi
mov ecx, ebx
call fcn.00437890
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0045eac0
mov eax, 4
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xb8], eax
mov eax, dword [0x492098]
add esp, 0xc
cmp eax, 6
lea ecx, [ebp - 0x38]
mov dword [ebp - 0xc4], 0x40
mov dword [ebp - 0xbc], str.DisableVLD
mov dword [ebp - 0xb4], ecx
jae 0x40cccf
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0xac], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, 0x492a60
call fcn.0042da80
xor ebx, ebx
push ebx
lea ecx, [ebp - 0xc4]
push ecx
add eax, 4
push eax
call fcn.0044cbc0
add esp, 0xc
test eax, eax
je 0x40d4c8
cmp dword [ebp - 0x38], ebx
jne 0x40d4c8
lea edx, [ebp - 0x24]
push edx
push 0x2001f
push ebx
push str.SoftwareATI_TechnologiesDriver
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d4c8
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x64]
push edx
mov byte [ebp - 0x44], al
lea eax, [ebp - 0x40]
push eax
push ebx
push str.SetVLDInitialMode
push ecx
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 0x21
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d4c8
cmp dword [ebp - 0x3c], ebx
je 0x40d4c8
xor edx, edx
xor eax, eax
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x144], ebx
mov ecx, 0x1f
lea edi, [ebp - 0x140]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], edx
push 0x20
mov dword [ebp - 0x133c], ebx
mov ecx, 0x42f
lea edi, [ebp - 0x1338]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x7c], edx
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 0x78], edx
push 1
mov dword [ebp - 0x74], edx
push ebx
mov dword [ebp - 0x70], edx
push str.SetVLDInitialMode
mov dword [ebp - 0x6c], edx
push ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x68], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x24]
push str.SetVLDInitialMode
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x64]
push 0x46e9d0
push ecx
mov dword [ebp - 0x133c], 0x10c0
call fcn.0045f91d
xor ecx, ecx
add esp, 8
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40cf28
cmp dword [0x4910e8], ebx
je 0x40ce3e
push eax
push str.InitVLDSetting___width__s
call fcn.0040a4a0
add esp, 8
push eax
call fcn.0045f82d
mov esi, eax
push 0x46e9d0
push ebx
mov dword [ebp - 0x210], esi
call fcn.0045f91d
add esp, 0xc
cmp eax, ebx
je 0x40ce66
cmp esi, ebx
jne 0x40cf42
cmp dword [0x4910e8], ebx
je 0x40ced0
push str.InitVLDSetting___error_with_height
call fcn.0040a4a0
add esp, 4
cmp dword [0x4910e8], ebx
je 0x40ced0
push str.InitVLDSetting___error_with_bpp
call fcn.0040a4a0
add esp, 4
cmp dword [0x4910e8], ebx
je 0x40ced0
push str.InitVLDSetting___error_with_hz
call fcn.0040a4a0
add esp, 4
cmp dword [0x4910e8], ebx
je 0x40ced0
push str.InitVLDSetting___error_with_conig
call fcn.0040a4a0
add esp, 4
mov eax, dword [0x4910e8]
test eax, eax
je 0x40ced0
push str.InitialVLDSetting___Incorrect_info_in_SetVLDInitialMode
call fcn.0040a4a0
add esp, 4
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40d4c8
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x34]
xor edi, edi
push edx
mov ecx, 0x492a60
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
call fcn.0042da80
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x20]
push edx
add eax, 4
push esi
push eax
call fcn.004241c0
add esp, 0x10
test eax, eax
mov eax, dword [0x4910e8]
jne 0x40d4b7
cmp eax, edi
je 0x40d4c8
push str.InitVLDSetting___Cannot_set_PruningMode_value
jmp 0x40d4c0
cmp dword [0x4910e8], ebx
je 0x40ced0
push str.InitVLDSetting___error_with_width
call fcn.0040a4a0
add esp, 4
jmp 0x40ce66
cmp dword [0x4910e8], ebx
je 0x40cf58
push eax
push str.InitVLDSetting___height__s
call fcn.0040a4a0
add esp, 8
push eax
call fcn.0045f82d
mov esi, eax
push 0x46e9d0
push ebx
mov dword [ebp - 0x20c], esi
call fcn.0045f91d
add esp, 0xc
cmp eax, ebx
je 0x40ce7b
cmp esi, ebx
je 0x40ce7b
cmp dword [0x4910e8], ebx
je 0x40cf9a
push eax
push str.InitVLDSetting___bpp__s
call fcn.0040a4a0
add esp, 8
push eax
call fcn.0045f82d
mov esi, eax
push 0x46e9d0
push ebx
mov dword [ebp - 0x214], esi
call fcn.0045f91d
add esp, 0xc
cmp eax, ebx
je 0x40ce90
cmp esi, ebx
je 0x40ce90
cmp dword [0x4910e8], ebx
je 0x40cfdc
push eax
push str.InitVLDSetting___hz__s
call fcn.0040a4a0
add esp, 8
push eax
call fcn.0045f82d
mov esi, eax
push 0x46e9d0
push ebx
mov dword [ebp - 0x204], esi
call fcn.0045f91d
add esp, 0xc
cmp eax, ebx
je 0x40cea5
cmp esi, ebx
je 0x40cea5
xor edx, edx
mov dword [ebp - 0x2c], edx
mov word [ebp - 0x28], dx
mov byte [ebp - 0x26], dl
lea edx, [ebp - 0x2c]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40d020
lea eax, [ebp - 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d030
sub eax, edx
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [0x4910e8]
sbb eax, eax
neg eax
cmp ecx, ebx
je 0x40d05c
lea edx, [ebp - 0x2c]
push edx
push str.InitVLDSetting___config__s
call fcn.0040a4a0
add esp, 8
cmp eax, ebx
je 0x40ceba
lea eax, [ebp - 0x2c]
xor ebx, ebx
mov dword [ebp - 0x144], 0x80
mov dword [ebp - 0x140], 3
mov dword [ebp - 0x13c], 1
xor edi, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d090
sub eax, edx
mov dword [ebp - 0x18], eax
je 0x40d102
mov edx, dword [ebp - 0x138]
mov al, byte [ebp + edi - 0x2c]
cmp al, 0x20
jne 0x40d0b4
inc dword [ebp - 0x13c]
jmp 0x40d0ee
cmp al, 0x30
jl 0x40ceba
cmp al, 0x39
jg 0x40ceba
movsx eax, al
sub eax, 0x30
mov dword [ebp + edx*4 - 0x134], eax
mov edx, dword [ebp - 0x138]
mov ecx, dword [ebp + edx*4 - 0x134]
mov eax, 1
shl eax, cl
or ebx, eax
inc edx
mov dword [ebp - 0x138], edx
lea eax, [ebp - 0x2c]
inc edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d0f5
sub eax, esi
cmp edi, eax
jb 0x40d0a4
xor eax, eax
mov ecx, 0x42f
lea edi, [ebp - 0x23f8]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, 0x492a60
mov dword [ebp - 0x23fc], 0x10c0
call fcn.0042da80
push 0
lea edx, [ebp - 0x23fc]
push edx
add eax, 4
push eax
call fcn.0044cda0
add esp, 0xc
test eax, eax
je 0x40ceba
test byte [ebp - 0x23f8], 4
je 0x40ceba
mov esi, dword [ebp - 0x23ac]
cmp esi, dword [ebp - 0x138]
jb 0x40ceba
xor edx, edx
xor eax, eax
test esi, esi
jbe 0x40d185
lea ecx, [ecx]
mov ecx, dword [ebp + eax*4 - 0x23a8]
mov edi, 1
shl edi, cl
or edx, edi
inc eax
cmp eax, esi
jb 0x40d170
and edx, ebx
cmp edx, ebx
jne 0x40ceba
mov esi, dword [ebp - 0x14]
push esi
mov ecx, 0x492a60
call fcn.0042da80
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x30]
push edx
add eax, 4
push 0
push eax
call fcn.004241c0
add esp, 0x10
test eax, eax
mov eax, dword [0x4910e8]
jne 0x40d1c7
test eax, eax
je 0x40d1d8
push str.InitVLDSetting___Cannot_set_PruningMode_value
jmp 0x40d1d0
test eax, eax
je 0x40d1d8
push str.InitVLDSetting___PruningMode_value_Set
call fcn.0040a4a0
add esp, 4
push esi
mov ecx, 0x492a60
call fcn.0042da80
push 0
lea ecx, [ebp - 0x133c]
push ecx
lea edx, [ebp - 0x144]
push edx
add eax, 4
push eax
call fcn.0044cd70
add esp, 0x10
test eax, eax
je 0x40ced0
mov ebx, dword [ebp - 0x14]
xor edx, edx
xor eax, eax
mov dword [ebp - 0x1df], eax
mov dword [ebp - 0x1db], eax
mov dword [ebp - 0x1d7], eax
mov dword [ebp - 0x1d3], eax
mov dword [ebp - 0x1cf], eax
mov dword [ebp - 0x1cb], eax
mov dword [ebp - 0x1c7], eax
mov word [ebp - 0x1c3], ax
mov ecx, 0x1f
lea edi, [ebp - 0x1c0]
mov byte [ebp - 0x1e0], dl
mov byte [ebp - 0x1c1], al
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], edx
rep stosd dword es:[edi], eax
mov word [ebp - 0x1bc], 0x9c
jmp 0x40d270
cmp dword [ebp - 0x20], 3
jae 0x40d359
push ebx
mov ecx, 0x492a60
xor esi, esi
call fcn.0042da80
push 2
lea ecx, [ebp - 0x1e0]
push ecx
add eax, 4
push esi
push eax
call fcn.004097e0
add esp, 0x10
test eax, eax
je 0x40d345
jmp 0x40d2b0
mov edx, dword [ebp - 0x214]
cmp dword [ebp - 0x178], edx
jne 0x40d2e8
mov eax, dword [ebp - 0x20c]
cmp dword [ebp - 0x170], eax
jne 0x40d2e8
mov ecx, dword [ebp - 0x210]
cmp dword [ebp - 0x174], ecx
jne 0x40d2e8
mov edx, dword [ebp - 0x204]
cmp dword [ebp - 0x168], edx
je 0x40d328
xor eax, eax
mov ecx, 0x27
lea edi, [ebp - 0x1e0]
rep stosd dword es:[edi], eax
push ebx
mov ecx, 0x492a60
mov word [ebp - 0x1bc], 0x9c
inc esi
call fcn.0042da80
push 2
lea ecx, [ebp - 0x1e0]
push ecx
add eax, 4
push esi
push eax
call fcn.004097e0
add esp, 0x10
test eax, eax
jne 0x40d2b0
jmp 0x40d345
mov eax, dword [0x4910e8]
test eax, eax
mov dword [ebp - 0x18], 1
je 0x40d345
push str.InitVLDSetting___Specified_VLD_Mode_found_in_mode_list
call fcn.0040a4a0
add esp, 4
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
inc ecx
test eax, eax
mov dword [ebp - 0x20], ecx
je 0x40d270
jmp 0x40d364
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40d421
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 0x2d
nop
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x240], 0
mov ecx, 0x17
lea edi, [ebp - 0x23c]
rep stosd dword es:[edi], eax
push edx
mov ecx, 0x492a60
call fcn.0042da80
push 0
lea ecx, [ebp - 0x240]
push ecx
add eax, 4
push eax
call fcn.0044cdd0
add esp, 0xc
test eax, eax
je 0x40d3c4
mov eax, dword [ebp - 0x238]
test eax, eax
jne 0x40d3c4
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x40d3ce
push 0x3e8
call esi
dec ebx
jne 0x40d370
mov edx, dword [ebp - 0x14]
push edx
mov ecx, 0x492a60
call fcn.0042da80
push 0x40000001
lea ecx, [ebp - 0x1e0]
push ecx
add eax, 4
push eax
call fcn.00409840
add esp, 0xc
test eax, eax
mov eax, dword [0x4910e8]
jne 0x40d40f
test eax, eax
je 0x40d4c8
push str.InitVLDSetting___ChangeDisplaySettingsEx_passed
jmp 0x40d4c0
test eax, eax
je 0x40d4c8
push str.InitVLDSetting___ChangeDisplaySettingsEx_failed__1_
jmp 0x40d4c0
mov eax, dword [0x4910e8]
test eax, eax
je 0x40d437
push str.InitVLDSetting___Specified_VLD_Mode_is_not_in_OS_mode_list
call fcn.0040a4a0
add esp, 4
xor eax, eax
mov ecx, 0x20
lea edi, [ebp - 0x144]
rep stosd dword es:[edi], eax
mov ecx, 0x430
lea edi, [ebp - 0x133c]
rep stosd dword es:[edi], eax
push ebx
mov ecx, 0x492a60
mov dword [ebp - 0x133c], 0x10c0
mov dword [ebp - 0x144], 0x80
mov dword [ebp - 0x140], 1
call fcn.0042da80
push 0
lea edx, [ebp - 0x133c]
push edx
lea ecx, [ebp - 0x144]
push ecx
add eax, 4
push eax
call fcn.0044cd70
add esp, 0x10
test eax, eax
je 0x40ced0
mov eax, dword [0x4910e8]
test eax, eax
je 0x40ced0
push str.InitVLDSetting___VLD_mode_UNSET
jmp 0x40cec8
cmp eax, edi
je 0x40d4c8
push str.InitVLDSetting___PruningMode_value_Set
call fcn.0040a4a0
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0045eab0
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret