Function at 0x40d490
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
mov ebx, 0x50
mov eax, dword [esi + 0x4e4]
push edi
cmp eax, ebp
mov dword [esp + 0x10], ebx
je 0x40d4fb
mov ecx, dword [esi + 0x4e8]
mov edi, dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
mov dword [eax + 0x6c], ecx
mov edx, dword [esi + 0x4e4]
mov eax, dword [esi + 0x4ec]
push 2
mov dword [edx + 0x70], eax
mov ecx, dword [esi + 0x4e4]
push ecx
call edi
test eax, eax
jne 0x40d4e6
mov edx, dword [esi + 0x4e4]
push 1
push edx
call edi
mov eax, dword [esi + 0x4e4]
push eax
call fcn.004304f0
add esp, 4
mov dword [esi + 0x4e4], ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
push ecx
push 0x20019
push ebp
mov dword [esp + 0x24], ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.SoftwareORLWinVNC3
push reloc.WSOCK32.dll_bind
call ebp
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.OptimizeDesktop
push edx
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40d55f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x14], 1
jne 0x40d69a
mov al, byte [esp + 0x20]
cmp al, 0x59
je 0x40d57a
cmp al, 0x79
jne 0x40d69a
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push str.Control_PanelDesktop
push reloc.WSOCK32.dll_accept
call ebp
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea eax, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push 0
push str.Wallpaper
push ecx
mov dword [esp + 0x28], ebx
call esi
mov ebp, dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea edx, [esp + 0x20]
push 2
push edx
push 0
push 0x14
call ebp
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push 0
push str.FontSmoothing
push eax
mov dword [esp + 0x28], ebx
call esi
cmp dword [esp + 0x14], 1
jne 0x40d619
cmp byte [esp + 0x20], 0x31
jne 0x40d619
push 2
push 0
push 1
push 0x4b
call ebp
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea eax, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push 0
push str.Pattern
push ecx
mov dword [esp + 0x28], ebx
call esi
lea edx, [esp + 0x20]
push 2
push edx
push 0
push 0x15
call ebp
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push 0
push str.DragFullWindows
push eax
mov dword [esp + 0x28], ebx
call esi
cmp dword [esp + 0x14], 1
jne 0x40d69a
cmp byte [esp + 0x20], 0x31
jne 0x40d69a
push 2
push 0
push 1
push 0x25
call ebp
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40d6b2
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
push reloc.WSOCK32.dll_accept
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret