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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468420
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x23ec
call fcn.0045ed20
cmp dword [0x491098], 8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
jae 0x40dad4
test byte [0x49116c], 2
je 0x40dad4
mov ecx, 0x491a60
call fcn.0042d710
cmp eax, dword [0x492b3c]
mov dword [ebp - 0x14], eax
jae 0x40dad4
push eax
mov ecx, 0x491a60
call fcn.00430450
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x34], ebx
je 0x40dad4
mov ecx, ebx
call fcn.00437120
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d1f0
sub eax, edx
mov esi, eax
mov dword [ebp - 0x30], esi
je 0x40dad4
lea eax, [esi + 1]
push eax
mov dword [ebp - 4], 0
call fcn.0045e556
add esp, 4
mov dword [ebp - 0x1c], eax
jmp 0x40d22f
mov eax, dword [ebp - 0x1c]
test eax, eax
mov dword [ebp - 4], 0xffffffff
je 0x40dad4
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.00437120
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0045de50
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 0x40d2cf
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.0042d280
xor ebx, ebx
push ebx
lea ecx, [ebp - 0xc4]
push ecx
add eax, 4
push eax
call fcn.0044bfb0
add esp, 0xc
test eax, eax
je 0x40dac8
cmp dword [ebp - 0x38], ebx
jne 0x40dac8
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 0x40dac8
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 0x40dac8
cmp dword [ebp - 0x3c], ebx
je 0x40dac8
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.0045ec5d
xor ecx, ecx
add esp, 8
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40d528
cmp dword [0x4900e8], ebx
je 0x40d43e
push eax
push str.InitVLDSetting___width__s
call fcn.0040aac0
add esp, 8
push eax
call fcn.0045eb6d
mov esi, eax
push 0x46eb98
push ebx
mov dword [ebp - 0x210], esi
call fcn.0045ec5d
add esp, 0xc
cmp eax, ebx
je 0x40d466
cmp esi, ebx
jne 0x40d542
cmp dword [0x4900e8], ebx
je 0x40d4d0
push str.InitVLDSetting___error_with_height
call fcn.0040aac0
add esp, 4
cmp dword [0x4900e8], ebx
je 0x40d4d0
push str.InitVLDSetting___error_with_bpp
call fcn.0040aac0
add esp, 4
cmp dword [0x4900e8], ebx
je 0x40d4d0
push str.InitVLDSetting___error_with_hz
call fcn.0040aac0
add esp, 4
cmp dword [0x4900e8], ebx
je 0x40d4d0
push str.InitVLDSetting___error_with_conig
call fcn.0040aac0
add esp, 4
mov eax, dword [0x4900e8]
test eax, eax
je 0x40d4d0
push str.InitialVLDSetting___Incorrect_info_in_SetVLDInitialMode
call fcn.0040aac0
add esp, 4
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40dac8
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.0042d280
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x20]
push edx
add eax, 4
push esi
push eax
call fcn.00423db0
add esp, 0x10
test eax, eax
mov eax, dword [0x4900e8]
jne 0x40dab7
cmp eax, edi
je 0x40dac8
push str.InitVLDSetting___Cannot_set_PruningMode_value
jmp 0x40dac0
cmp dword [0x4900e8], ebx
je 0x40d4d0
push str.InitVLDSetting___error_with_width
call fcn.0040aac0
add esp, 4
jmp 0x40d466
cmp dword [0x4900e8], ebx
je 0x40d558
push eax
push str.InitVLDSetting___height__s
call fcn.0040aac0
add esp, 8
push eax
call fcn.0045eb6d
mov esi, eax
push 0x46eb98
push ebx
mov dword [ebp - 0x20c], esi
call fcn.0045ec5d
add esp, 0xc
cmp eax, ebx
je 0x40d47b
cmp esi, ebx
je 0x40d47b
cmp dword [0x4900e8], ebx
je 0x40d59a
push eax
push str.InitVLDSetting___bpp__s
call fcn.0040aac0
add esp, 8
push eax
call fcn.0045eb6d
mov esi, eax
push 0x46eb98
push ebx
mov dword [ebp - 0x214], esi
call fcn.0045ec5d
add esp, 0xc
cmp eax, ebx
je 0x40d490
cmp esi, ebx
je 0x40d490
cmp dword [0x4900e8], ebx
je 0x40d5dc
push eax
push str.InitVLDSetting___hz__s
call fcn.0040aac0
add esp, 8
push eax
call fcn.0045eb6d
mov esi, eax
push 0x46eb98
push ebx
mov dword [ebp - 0x204], esi
call fcn.0045ec5d
add esp, 0xc
cmp eax, ebx
je 0x40d4a5
cmp esi, ebx
je 0x40d4a5
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 0x40d620
lea eax, [ebp - 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d630
sub eax, edx
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [0x4900e8]
sbb eax, eax
neg eax
cmp ecx, ebx
je 0x40d65c
lea edx, [ebp - 0x2c]
push edx
push str.InitVLDSetting___config__s
call fcn.0040aac0
add esp, 8
cmp eax, ebx
je 0x40d4ba
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 0x40d690
sub eax, edx
mov dword [ebp - 0x18], eax
je 0x40d702
mov edx, dword [ebp - 0x138]
mov al, byte [ebp + edi - 0x2c]
cmp al, 0x20
jne 0x40d6b4
inc dword [ebp - 0x13c]
jmp 0x40d6ee
cmp al, 0x30
jl 0x40d4ba
cmp al, 0x39
jg 0x40d4ba
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 0x40d6f5
sub eax, esi
cmp edi, eax
jb 0x40d6a4
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.0042d280
push 0
lea edx, [ebp - 0x23fc]
push edx
add eax, 4
push eax
call fcn.0044c190
add esp, 0xc
test eax, eax
je 0x40d4ba
test byte [ebp - 0x23f8], 4
je 0x40d4ba
mov esi, dword [ebp - 0x23ac]
cmp esi, dword [ebp - 0x138]
jb 0x40d4ba
xor edx, edx
xor eax, eax
test esi, esi
jbe 0x40d785
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 0x40d770
and edx, ebx
cmp edx, ebx
jne 0x40d4ba
mov esi, dword [ebp - 0x14]
push esi
mov ecx, 0x491a60
call fcn.0042d280
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x30]
push edx
add eax, 4
push 0
push eax
call fcn.00423db0
add esp, 0x10
test eax, eax
mov eax, dword [0x4900e8]
jne 0x40d7c7
test eax, eax
je 0x40d7d8
push str.InitVLDSetting___Cannot_set_PruningMode_value
jmp 0x40d7d0
test eax, eax
je 0x40d7d8
push str.InitVLDSetting___PruningMode_value_Set
call fcn.0040aac0
add esp, 4
push esi
mov ecx, 0x491a60
call fcn.0042d280
push 0
lea ecx, [ebp - 0x133c]
push ecx
lea edx, [ebp - 0x144]
push edx
add eax, 4
push eax
call fcn.0044c160
add esp, 0x10
test eax, eax
je 0x40d4d0
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 0x40d870
cmp dword [ebp - 0x20], 3
jae 0x40d959
push ebx
mov ecx, 0x491a60
xor esi, esi
call fcn.0042d280
push 2
lea ecx, [ebp - 0x1e0]
push ecx
add eax, 4
push esi
push eax
call fcn.00409e00
add esp, 0x10
test eax, eax
je 0x40d945
jmp 0x40d8b0
mov edx, dword [ebp - 0x214]
cmp dword [ebp - 0x178], edx
jne 0x40d8e8
mov eax, dword [ebp - 0x20c]
cmp dword [ebp - 0x170], eax
jne 0x40d8e8
mov ecx, dword [ebp - 0x210]
cmp dword [ebp - 0x174], ecx
jne 0x40d8e8
mov edx, dword [ebp - 0x204]
cmp dword [ebp - 0x168], edx
je 0x40d928
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.0042d280
push 2
lea ecx, [ebp - 0x1e0]
push ecx
add eax, 4
push esi
push eax
call fcn.00409e00
add esp, 0x10
test eax, eax
jne 0x40d8b0
jmp 0x40d945
mov eax, dword [0x4900e8]
test eax, eax
mov dword [ebp - 0x18], 1
je 0x40d945
push str.InitVLDSetting___Specified_VLD_Mode_found_in_mode_list
call fcn.0040aac0
add esp, 4
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
inc ecx
test eax, eax
mov dword [ebp - 0x20], ecx
je 0x40d870
jmp 0x40d964
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40da21
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.0042d280
push 0
lea ecx, [ebp - 0x240]
push ecx
add eax, 4
push eax
call fcn.0044c1c0
add esp, 0xc
test eax, eax
je 0x40d9c4
mov eax, dword [ebp - 0x238]
test eax, eax
jne 0x40d9c4
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x40d9ce
push 0x3e8
call esi
dec ebx
jne 0x40d970
mov edx, dword [ebp - 0x14]
push edx
mov ecx, 0x491a60
call fcn.0042d280
push 0x40000001
lea ecx, [ebp - 0x1e0]
push ecx
add eax, 4
push eax
call fcn.00409e60
add esp, 0xc
test eax, eax
mov eax, dword [0x4900e8]
jne 0x40da0f
test eax, eax
je 0x40dac8
push str.InitVLDSetting___ChangeDisplaySettingsEx_passed
jmp 0x40dac0
test eax, eax
je 0x40dac8
push str.InitVLDSetting___ChangeDisplaySettingsEx_failed__1_
jmp 0x40dac0
mov eax, dword [0x4900e8]
test eax, eax
je 0x40da37
push str.InitVLDSetting___Specified_VLD_Mode_is_not_in_OS_mode_list
call fcn.0040aac0
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.0042d280
push 0
lea edx, [ebp - 0x133c]
push edx
lea ecx, [ebp - 0x144]
push ecx
add eax, 4
push eax
call fcn.0044c160
add esp, 0x10
test eax, eax
je 0x40d4d0
mov eax, dword [0x4900e8]
test eax, eax
je 0x40d4d0
push str.InitVLDSetting___VLD_mode_UNSET
jmp 0x40d4c8
cmp eax, edi
je 0x40dac8
push str.InitVLDSetting___PruningMode_value_Set
call fcn.0040aac0
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0045de40
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