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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
push esi
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401510
sub eax, esi
cmp eax, 4
jne 0x401590
push edx
push str.SYSTEMCurrentControlSetControlClass4d36e968_e325_11ce_bfc1_08002be10318
push str._s_s
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.004023ca
add esp, 0x14
cmp eax, 0x100
jl 0x401560
mov eax, dword [0x40ea38]
or eax, 0xfffffffe
mov dword [0x40ea38], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x108]
push ecx
push 3
push 0
lea edx, [ebp - 0x104]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4015a4
add eax, 0xfffffffe
cmp eax, 1
jbe 0x401590
or dword [0x40ea38], 0xfffffffe
mov eax, dword [0x40ea38]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push 0
push 0
push str.ProviderName
push edx
mov dword [ebp - 0x10c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401614
add eax, 0xfffffffe
mov esi, 0xfffffffe
cmp eax, 1
jbe 0x4015e9
or dword [0x40ea38], esi
mov eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x401600
or dword [0x40ea38], esi
mov eax, dword [0x40ea38]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x10c], 5
jb 0x4018ba
push 5
lea ecx, [ebp - 0x104]
push str.Intel
push ecx
call fcn.00402377
add esp, 0xc
test eax, eax
jne 0x4018ba
mov eax, dword [ebp + 8]
dec eax
push ebx
push edi
je 0x40175b
dec eax
jne 0x40183f
xor edi, edi
jmp 0x401660
xor esi, esi
movzx eax, byte [0x40b9cb]
mov cl, byte [0x40b9c9]
movzx edx, byte [0x40b9ca]
shl eax, 8
or edx, eax
mov al, byte [0x40b9c8]
push edx
movzx ecx, cl
movzx edx, al
shl ecx, 8
or edx, ecx
push edx
push esi
push edi
push str.FakeEDID__d__d__x__x
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.004023ca
add esp, 0x1c
cmp eax, 0x100
jge 0x401723
lea ecx, [ebp - 0x104]
push str.FakeEDID_14_0_af0d_1723
push ecx
call fcn.0040224e
add esp, 8
test eax, eax
jne 0x4016dd
mov ebx, dword [ebp - 0x108]
call fcn.00401eb0
cmp eax, 1
jne 0x40189e
jmp 0x40170a
mov eax, dword [ebp - 0x108]
lea edx, [ebp - 0x104]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x401703
add eax, 0xfffffffe
cmp eax, 1
ja 0x40185d
jmp 0x40170a
or dword [0x40ea38], 1
inc esi
cmp esi, 4
jl 0x401662
inc edi
cmp edi, 0x14
jl 0x401660
jmp 0x40183f
mov ecx, dword [ebp - 0x108]
mov esi, 0xfffffffe
or dword [0x40ea38], esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x401745
or dword [0x40ea38], esi
mov eax, dword [0x40ea38]
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
xor ebx, ebx
lea ecx, [ecx]
xor edi, edi
mov esi, 0x40b9d8
jmp 0x401770
movzx eax, byte [0x40b9cb]
mov cl, byte [0x40b9c9]
movzx edx, byte [0x40b9ca]
shl eax, 8
or edx, eax
mov al, byte [0x40b9c8]
push edx
movzx ecx, cl
movzx edx, al
shl ecx, 8
or edx, ecx
push edx
push edi
push ebx
push str.FakeEDID__d__d__x__x
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.004023ca
add esp, 0x1c
cmp eax, 0x100
jge 0x401880
test edi, edi
je 0x4017ec
cmp byte [esi], 0
jne 0x4017ec
mov edx, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x40180e
add eax, 0xfffffffe
cmp eax, 1
ja 0x40185d
jmp 0x401815
mov ecx, dword [ebp - 0x108]
push 0x80
push esi
push 3
push 0
lea eax, [ebp - 0x104]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40185d
or dword [0x40ea38], 1
sub esi, 0xffffff80
inc edi
cmp esi, 0x40bbd8
jl 0x401770
inc ebx
cmp ebx, 0x14
jl 0x401760
mov ecx, dword [ebp - 0x108]
call fcn.00401e60
cmp eax, 1
jne 0x40189e
mov eax, dword [ebp - 0x108]
push str.EDID_RECOVERY
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeA]
test eax, eax
je 0x401897
add eax, 0xfffffffe
cmp eax, 1
jbe 0x40189e
mov eax, dword [ebp - 0x108]
or dword [0x40ea38], 0xfffffffe
call fcn.00401e40
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x108]
mov esi, 0xfffffffe
or dword [0x40ea38], esi
push edx
jmp 0x401735
or dword [0x40ea38], 1
mov eax, dword [ebp - 0x108]
call fcn.00401e40
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x401590
mov ecx, dword [ebp - 4]
or dword [0x40ea38], 0xfffffffe
mov eax, dword [0x40ea38]
xor ecx, ebp
pop esi
call fcn.004020bf
mov esp, ebp
pop ebp
ret