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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470510
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x23ec
call fcn.00461300
cmp dword [0x49b638], 8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
jae 0x40dea4
test byte [0x49b70c], 2
je 0x40dea4
mov ecx, 0x49c088
call fcn.0042de70
cmp eax, dword [0x4a812c]
mov dword [ebp - 0x14], eax
jae 0x40dea4
push eax
mov ecx, 0x49c088
call fcn.00430bd0
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x34], ebx
je 0x40dea4
mov ecx, ebx
call fcn.00437850
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d5c0
sub eax, edx
mov esi, eax
mov dword [ebp - 0x30], esi
je 0x40dea4
lea eax, [esi + 1]
push eax
mov dword [ebp - 4], 0
call fcn.00460f8e
add esp, 4
mov dword [ebp - 0x1c], eax
jmp 0x40d5ff
mov eax, dword [ebp - 0x1c]
test eax, eax
mov dword [ebp - 4], 0xffffffff
je 0x40dea4
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.00437850
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00460860
mov eax, 4
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xb8], eax
mov eax, dword [0x49b638]
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 0x40d69f
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0xac], 0x80000002
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, 0x49c088
call fcn.0042d920
xor ebx, ebx
push ebx
lea ecx, [ebp - 0xc4]
push ecx
add eax, 4
push eax
call fcn.0044d6b0
add esp, 0xc
test eax, eax
je 0x40de98
cmp dword [ebp - 0x38], ebx
jne 0x40de98
lea edx, [ebp - 0x24]
push edx
push 0x2001f
push ebx
push str.SoftwareATI_TechnologiesDriver
push 0x80000002
mov dword [ebp - 0x24], ebx
call dword [0x472074]
test eax, eax
jne 0x40de98
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 [0x472078]
test eax, eax
jne 0x40de98
cmp dword [ebp - 0x3c], ebx
je 0x40de98
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 [0x472040]
mov edx, dword [ebp - 0x24]
push str.SetVLDInitialMode
push edx
call dword [0x472060]
mov eax, dword [ebp - 0x24]
push eax
call dword [0x47207c]
lea ecx, [ebp - 0x64]
push 0x476c48
push ecx
mov dword [ebp - 0x133c], 0x10c0
call fcn.0046170d
xor ecx, ecx
add esp, 8
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40d8f8
cmp dword [0x49a0e8], ebx
je 0x40d80e
push eax
push str.InitVLDSetting___width__s
call fcn.0040acd0
add esp, 8
push eax
call fcn.00461605
mov esi, eax
push 0x476c48
push ebx
mov dword [ebp - 0x210], esi
call fcn.0046170d
add esp, 0xc
cmp eax, ebx
je 0x40d836
cmp esi, ebx
jne 0x40d912
cmp dword [0x49a0e8], ebx
je 0x40d8a0
push str.InitVLDSetting___error_with_height
call fcn.0040acd0
add esp, 4
cmp dword [0x49a0e8], ebx
je 0x40d8a0
push str.InitVLDSetting___error_with_bpp
call fcn.0040acd0
add esp, 4
cmp dword [0x49a0e8], ebx
je 0x40d8a0
push str.InitVLDSetting___error_with_hz
call fcn.0040acd0
add esp, 4
cmp dword [0x49a0e8], ebx
je 0x40d8a0
push str.InitVLDSetting___error_with_conig
call fcn.0040acd0
add esp, 4
mov eax, dword [0x49a0e8]
test eax, eax
je 0x40d8a0
push str.InitialVLDSetting___Incorrect_info_in_SetVLDInitialMode
call fcn.0040acd0
add esp, 4
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40de98
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x34]
xor edi, edi
push edx
mov ecx, 0x49c088
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
call fcn.0042d920
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x20]
push edx
add eax, 4
push esi
push eax
call fcn.00428250
add esp, 0x10
test eax, eax
mov eax, dword [0x49a0e8]
jne 0x40de87
cmp eax, edi
je 0x40de98
push str.InitVLDSetting___Cannot_set_PruningMode_value
jmp 0x40de90
cmp dword [0x49a0e8], ebx
je 0x40d8a0
push str.InitVLDSetting___error_with_width
call fcn.0040acd0
add esp, 4
jmp 0x40d836
cmp dword [0x49a0e8], ebx
je 0x40d928
push eax
push str.InitVLDSetting___height__s
call fcn.0040acd0
add esp, 8
push eax
call fcn.00461605
mov esi, eax
push 0x476c48
push ebx
mov dword [ebp - 0x20c], esi
call fcn.0046170d
add esp, 0xc
cmp eax, ebx
je 0x40d84b
cmp esi, ebx
je 0x40d84b
cmp dword [0x49a0e8], ebx
je 0x40d96a
push eax
push str.InitVLDSetting___bpp__s
call fcn.0040acd0
add esp, 8
push eax
call fcn.00461605
mov esi, eax
push 0x476c48
push ebx
mov dword [ebp - 0x214], esi
call fcn.0046170d
add esp, 0xc
cmp eax, ebx
je 0x40d860
cmp esi, ebx
je 0x40d860
cmp dword [0x49a0e8], ebx
je 0x40d9ac
push eax
push str.InitVLDSetting___hz__s
call fcn.0040acd0
add esp, 8
push eax
call fcn.00461605
mov esi, eax
push 0x476c48
push ebx
mov dword [ebp - 0x204], esi
call fcn.0046170d
add esp, 0xc
cmp eax, ebx
je 0x40d875
cmp esi, ebx
je 0x40d875
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 0x40d9f0
lea eax, [ebp - 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40da00
sub eax, edx
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [0x49a0e8]
sbb eax, eax
neg eax
cmp ecx, ebx
je 0x40da2c
lea edx, [ebp - 0x2c]
push edx
push str.InitVLDSetting___config__s
call fcn.0040acd0
add esp, 8
cmp eax, ebx
je 0x40d88a
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 0x40da60
sub eax, edx
mov dword [ebp - 0x18], eax
je 0x40dad2
mov edx, dword [ebp - 0x138]
mov al, byte [ebp + edi - 0x2c]
cmp al, 0x20
jne 0x40da84
inc dword [ebp - 0x13c]
jmp 0x40dabe
cmp al, 0x30
jl 0x40d88a
cmp al, 0x39
jg 0x40d88a
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 0x40dac5
sub eax, esi
cmp edi, eax
jb 0x40da74
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, 0x49c088
mov dword [ebp - 0x23fc], 0x10c0
call fcn.0042d920
push 0
lea edx, [ebp - 0x23fc]
push edx
add eax, 4
push eax
call fcn.0044d890
add esp, 0xc
test eax, eax
je 0x40d88a
test byte [ebp - 0x23f8], 4
je 0x40d88a
mov esi, dword [ebp - 0x23ac]
cmp esi, dword [ebp - 0x138]
jb 0x40d88a
xor edx, edx
xor eax, eax
test esi, esi
jbe 0x40db55
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 0x40db40
and edx, ebx
cmp edx, ebx
jne 0x40d88a
mov esi, dword [ebp - 0x14]
push esi
mov ecx, 0x49c088
call fcn.0042d920
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x30]
push edx
add eax, 4
push 0
push eax
call fcn.00428250
add esp, 0x10
test eax, eax
mov eax, dword [0x49a0e8]
jne 0x40db97
test eax, eax
je 0x40dba8
push str.InitVLDSetting___Cannot_set_PruningMode_value
jmp 0x40dba0
test eax, eax
je 0x40dba8
push str.InitVLDSetting___PruningMode_value_Set
call fcn.0040acd0
add esp, 4
push esi
mov ecx, 0x49c088
call fcn.0042d920
push 0
lea ecx, [ebp - 0x133c]
push ecx
lea edx, [ebp - 0x144]
push edx
add eax, 4
push eax
call fcn.0044d860
add esp, 0x10
test eax, eax
je 0x40d8a0
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 0x40dc40
cmp dword [ebp - 0x20], 3
jae 0x40dd29
push ebx
mov ecx, 0x49c088
xor esi, esi
call fcn.0042d920
push 2
lea ecx, [ebp - 0x1e0]
push ecx
add eax, 4
push esi
push eax
call fcn.00409f60
add esp, 0x10
test eax, eax
je 0x40dd15
jmp 0x40dc80
mov edx, dword [ebp - 0x214]
cmp dword [ebp - 0x178], edx
jne 0x40dcb8
mov eax, dword [ebp - 0x20c]
cmp dword [ebp - 0x170], eax
jne 0x40dcb8
mov ecx, dword [ebp - 0x210]
cmp dword [ebp - 0x174], ecx
jne 0x40dcb8
mov edx, dword [ebp - 0x204]
cmp dword [ebp - 0x168], edx
je 0x40dcf8
xor eax, eax
mov ecx, 0x27
lea edi, [ebp - 0x1e0]
rep stosd dword es:[edi], eax
push ebx
mov ecx, 0x49c088
mov word [ebp - 0x1bc], 0x9c
inc esi
call fcn.0042d920
push 2
lea ecx, [ebp - 0x1e0]
push ecx
add eax, 4
push esi
push eax
call fcn.00409f60
add esp, 0x10
test eax, eax
jne 0x40dc80
jmp 0x40dd15
mov eax, dword [0x49a0e8]
test eax, eax
mov dword [ebp - 0x18], 1
je 0x40dd15
push str.InitVLDSetting___Specified_VLD_Mode_found_in_mode_list
call fcn.0040acd0
add esp, 4
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
inc ecx
test eax, eax
mov dword [ebp - 0x20], ecx
je 0x40dc40
jmp 0x40dd34
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40ddf1
mov esi, dword [0x4722b0]
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, 0x49c088
call fcn.0042d920
push 0
lea ecx, [ebp - 0x240]
push ecx
add eax, 4
push eax
call fcn.0044d8c0
add esp, 0xc
test eax, eax
je 0x40dd94
mov eax, dword [ebp - 0x238]
test eax, eax
jne 0x40dd94
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x40dd9e
push 0x3e8
call esi
dec ebx
jne 0x40dd40
mov edx, dword [ebp - 0x14]
push edx
mov ecx, 0x49c088
call fcn.0042d920
push 0x40000001
lea ecx, [ebp - 0x1e0]
push ecx
add eax, 4
push eax
call fcn.00409fc0
add esp, 0xc
test eax, eax
mov eax, dword [0x49a0e8]
jne 0x40dddf
test eax, eax
je 0x40de98
push str.InitVLDSetting___ChangeDisplaySettingsEx_passed
jmp 0x40de90
test eax, eax
je 0x40de98
push str.InitVLDSetting___ChangeDisplaySettingsEx_failed__1_
jmp 0x40de90
mov eax, dword [0x49a0e8]
test eax, eax
je 0x40de07
push str.InitVLDSetting___Specified_VLD_Mode_is_not_in_OS_mode_list
call fcn.0040acd0
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, 0x49c088
mov dword [ebp - 0x133c], 0x10c0
mov dword [ebp - 0x144], 0x80
mov dword [ebp - 0x140], 1
call fcn.0042d920
push 0
lea edx, [ebp - 0x133c]
push edx
lea ecx, [ebp - 0x144]
push ecx
add eax, 4
push eax
call fcn.0044d860
add esp, 0x10
test eax, eax
je 0x40d8a0
mov eax, dword [0x49a0e8]
test eax, eax
je 0x40d8a0
push str.InitVLDSetting___VLD_mode_UNSET
jmp 0x40d898
cmp eax, edi
je 0x40de98
push str.InitVLDSetting___PruningMode_value_Set
call fcn.0040acd0
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00460851
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