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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468b30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x23ec
call fcn.0045f430
cmp dword [0x491098], 8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
jae 0x40dac4
test byte [0x49116c], 2
je 0x40dac4
mov ecx, 0x491a60
call fcn.0042dc10
cmp eax, dword [0x492b3c]
mov dword [ebp - 0x14], eax
jae 0x40dac4
push eax
mov ecx, 0x491a60
call fcn.00430950
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x34], ebx
je 0x40dac4
mov ecx, ebx
call fcn.00437620
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d1e0
sub eax, edx
mov esi, eax
mov dword [ebp - 0x30], esi
je 0x40dac4
lea eax, [esi + 1]
push eax
mov dword [ebp - 4], 0
call fcn.0045ec66
add esp, 4
mov dword [ebp - 0x1c], eax
jmp 0x40d21f
mov eax, dword [ebp - 0x1c]
test eax, eax
mov dword [ebp - 4], 0xffffffff
je 0x40dac4
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.00437620
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0045e560
mov eax, 4
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xb8], eax
mov eax, dword [0x491098]
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 0x40d2bf
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, 0x491a60
call fcn.0042d780
xor ebx, ebx
push ebx
lea ecx, [ebp - 0xc4]
push ecx
add eax, 4
push eax
call fcn.0044c920
add esp, 0xc
test eax, eax
je 0x40dab8
cmp dword [ebp - 0x38], ebx
jne 0x40dab8
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 0x40dab8
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 0x40dab8
cmp dword [ebp - 0x3c], ebx
je 0x40dab8
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 0x46eb98
push ecx
mov dword [ebp - 0x133c], 0x10c0
call fcn.0045f36d
xor ecx, ecx
add esp, 8
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40d518
cmp dword [0x4900e8], ebx
je 0x40d42e
push eax
push str.InitVLDSetting___width__s
call fcn.0040aab0
add esp, 8
push eax
call fcn.0045f27d
mov esi, eax
push 0x46eb98
push ebx
mov dword [ebp - 0x210], esi
call fcn.0045f36d
add esp, 0xc
cmp eax, ebx
je 0x40d456
cmp esi, ebx
jne 0x40d532
cmp dword [0x4900e8], ebx
je 0x40d4c0
push str.InitVLDSetting___error_with_height
call fcn.0040aab0
add esp, 4
cmp dword [0x4900e8], ebx
je 0x40d4c0
push str.InitVLDSetting___error_with_bpp
call fcn.0040aab0
add esp, 4
cmp dword [0x4900e8], ebx
je 0x40d4c0
push str.InitVLDSetting___error_with_hz
call fcn.0040aab0
add esp, 4
cmp dword [0x4900e8], ebx
je 0x40d4c0
push str.InitVLDSetting___error_with_conig
call fcn.0040aab0
add esp, 4
mov eax, dword [0x4900e8]
test eax, eax
je 0x40d4c0
push str.InitialVLDSetting___Incorrect_info_in_SetVLDInitialMode
call fcn.0040aab0
add esp, 4
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40dab8
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x34]
xor edi, edi
push edx
mov ecx, 0x491a60
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
call fcn.0042d780
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x20]
push edx
add eax, 4
push esi
push eax
call fcn.00423e60
add esp, 0x10
test eax, eax
mov eax, dword [0x4900e8]
jne 0x40daa7
cmp eax, edi
je 0x40dab8
push str.InitVLDSetting___Cannot_set_PruningMode_value
jmp 0x40dab0
cmp dword [0x4900e8], ebx
je 0x40d4c0
push str.InitVLDSetting___error_with_width
call fcn.0040aab0
add esp, 4
jmp 0x40d456
cmp dword [0x4900e8], ebx
je 0x40d548
push eax
push str.InitVLDSetting___height__s
call fcn.0040aab0
add esp, 8
push eax
call fcn.0045f27d
mov esi, eax
push 0x46eb98
push ebx
mov dword [ebp - 0x20c], esi
call fcn.0045f36d
add esp, 0xc
cmp eax, ebx
je 0x40d46b
cmp esi, ebx
je 0x40d46b
cmp dword [0x4900e8], ebx
je 0x40d58a
push eax
push str.InitVLDSetting___bpp__s
call fcn.0040aab0
add esp, 8
push eax
call fcn.0045f27d
mov esi, eax
push 0x46eb98
push ebx
mov dword [ebp - 0x214], esi
call fcn.0045f36d
add esp, 0xc
cmp eax, ebx
je 0x40d480
cmp esi, ebx
je 0x40d480
cmp dword [0x4900e8], ebx
je 0x40d5cc
push eax
push str.InitVLDSetting___hz__s
call fcn.0040aab0
add esp, 8
push eax
call fcn.0045f27d
mov esi, eax
push 0x46eb98
push ebx
mov dword [ebp - 0x204], esi
call fcn.0045f36d
add esp, 0xc
cmp eax, ebx
je 0x40d495
cmp esi, ebx
je 0x40d495
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 0x40d610
lea eax, [ebp - 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d620
sub eax, edx
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [0x4900e8]
sbb eax, eax
neg eax
cmp ecx, ebx
je 0x40d64c
lea edx, [ebp - 0x2c]
push edx
push str.InitVLDSetting___config__s
call fcn.0040aab0
add esp, 8
cmp eax, ebx
je 0x40d4aa
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 0x40d680
sub eax, edx
mov dword [ebp - 0x18], eax
je 0x40d6f2
mov edx, dword [ebp - 0x138]
mov al, byte [ebp + edi - 0x2c]
cmp al, 0x20
jne 0x40d6a4
inc dword [ebp - 0x13c]
jmp 0x40d6de
cmp al, 0x30
jl 0x40d4aa
cmp al, 0x39
jg 0x40d4aa
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 0x40d6e5
sub eax, esi
cmp edi, eax
jb 0x40d694
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, 0x491a60
mov dword [ebp - 0x23fc], 0x10c0
call fcn.0042d780
push 0
lea edx, [ebp - 0x23fc]
push edx
add eax, 4
push eax
call fcn.0044cb00
add esp, 0xc
test eax, eax
je 0x40d4aa
test byte [ebp - 0x23f8], 4
je 0x40d4aa
mov esi, dword [ebp - 0x23ac]
cmp esi, dword [ebp - 0x138]
jb 0x40d4aa
xor edx, edx
xor eax, eax
test esi, esi
jbe 0x40d775
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 0x40d760
and edx, ebx
cmp edx, ebx
jne 0x40d4aa
mov esi, dword [ebp - 0x14]
push esi
mov ecx, 0x491a60
call fcn.0042d780
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x30]
push edx
add eax, 4
push 0
push eax
call fcn.00423e60
add esp, 0x10
test eax, eax
mov eax, dword [0x4900e8]
jne 0x40d7b7
test eax, eax
je 0x40d7c8
push str.InitVLDSetting___Cannot_set_PruningMode_value
jmp 0x40d7c0
test eax, eax
je 0x40d7c8
push str.InitVLDSetting___PruningMode_value_Set
call fcn.0040aab0
add esp, 4
push esi
mov ecx, 0x491a60
call fcn.0042d780
push 0
lea ecx, [ebp - 0x133c]
push ecx
lea edx, [ebp - 0x144]
push edx
add eax, 4
push eax
call fcn.0044cad0
add esp, 0x10
test eax, eax
je 0x40d4c0
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 0x40d860
cmp dword [ebp - 0x20], 3
jae 0x40d949
push ebx
mov ecx, 0x491a60
xor esi, esi
call fcn.0042d780
push 2
lea ecx, [ebp - 0x1e0]
push ecx
add eax, 4
push esi
push eax
call fcn.00409df0
add esp, 0x10
test eax, eax
je 0x40d935
jmp 0x40d8a0
mov edx, dword [ebp - 0x214]
cmp dword [ebp - 0x178], edx
jne 0x40d8d8
mov eax, dword [ebp - 0x20c]
cmp dword [ebp - 0x170], eax
jne 0x40d8d8
mov ecx, dword [ebp - 0x210]
cmp dword [ebp - 0x174], ecx
jne 0x40d8d8
mov edx, dword [ebp - 0x204]
cmp dword [ebp - 0x168], edx
je 0x40d918
xor eax, eax
mov ecx, 0x27
lea edi, [ebp - 0x1e0]
rep stosd dword es:[edi], eax
push ebx
mov ecx, 0x491a60
mov word [ebp - 0x1bc], 0x9c
inc esi
call fcn.0042d780
push 2
lea ecx, [ebp - 0x1e0]
push ecx
add eax, 4
push esi
push eax
call fcn.00409df0
add esp, 0x10
test eax, eax
jne 0x40d8a0
jmp 0x40d935
mov eax, dword [0x4900e8]
test eax, eax
mov dword [ebp - 0x18], 1
je 0x40d935
push str.InitVLDSetting___Specified_VLD_Mode_found_in_mode_list
call fcn.0040aab0
add esp, 4
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
inc ecx
test eax, eax
mov dword [ebp - 0x20], ecx
je 0x40d860
jmp 0x40d954
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40da11
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, 0x491a60
call fcn.0042d780
push 0
lea ecx, [ebp - 0x240]
push ecx
add eax, 4
push eax
call fcn.0044cb30
add esp, 0xc
test eax, eax
je 0x40d9b4
mov eax, dword [ebp - 0x238]
test eax, eax
jne 0x40d9b4
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x40d9be
push 0x3e8
call esi
dec ebx
jne 0x40d960
mov edx, dword [ebp - 0x14]
push edx
mov ecx, 0x491a60
call fcn.0042d780
push 0x40000001
lea ecx, [ebp - 0x1e0]
push ecx
add eax, 4
push eax
call fcn.00409e50
add esp, 0xc
test eax, eax
mov eax, dword [0x4900e8]
jne 0x40d9ff
test eax, eax
je 0x40dab8
push str.InitVLDSetting___ChangeDisplaySettingsEx_passed
jmp 0x40dab0
test eax, eax
je 0x40dab8
push str.InitVLDSetting___ChangeDisplaySettingsEx_failed__1_
jmp 0x40dab0
mov eax, dword [0x4900e8]
test eax, eax
je 0x40da27
push str.InitVLDSetting___Specified_VLD_Mode_is_not_in_OS_mode_list
call fcn.0040aab0
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, 0x491a60
mov dword [ebp - 0x133c], 0x10c0
mov dword [ebp - 0x144], 0x80
mov dword [ebp - 0x140], 1
call fcn.0042d780
push 0
lea edx, [ebp - 0x133c]
push edx
lea ecx, [ebp - 0x144]
push ecx
add eax, 4
push eax
call fcn.0044cad0
add esp, 0x10
test eax, eax
je 0x40d4c0
mov eax, dword [0x4900e8]
test eax, eax
je 0x40d4c0
push str.InitVLDSetting___VLD_mode_UNSET
jmp 0x40d4b8
cmp eax, edi
je 0x40dab8
push str.InitVLDSetting___PruningMode_value_Set
call fcn.0040aab0
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0045e550
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