Function at 0x41fb00
Capabilities:
Check os version
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push pe_nt_image_headers32
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push 0
push eax
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], 0x11c
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], 6
jne 0x41fd3d
mov eax, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
test eax, eax
je 0x41fb56
cmp eax, 1
jne 0x41fd3d
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [ebp - 4]
push edx
push 0x20019
push 0
push str.Control_PanelDesktopWindowMetrics
push 0x80000001
call edi
test eax, eax
jne 0x41fd3c
push 0x100
push eax
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push edx
lea eax, [ebp - 8]
push eax
push 0
push str.Shell_Icon_Size
push ecx
mov dword [ebp - 0xc], 0x100
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41fd3c
mov edx, dword [ebp - 4]
push ebx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
mov ebx, dword [sym.imp.MSVCR100.dll__itoa]
push 0xa
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
lea esi, [eax - 1]
push ecx
push esi
call ebx
add esp, 0x10
lea edx, [ebp - 4]
push edx
push 0x20006
push 0
push str.Control_PanelDesktopWindowMetrics
push 0x80000001
call edi
test eax, eax
jne 0x41fd3a
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41fc20
mov ecx, dword [ebp - 4]
sub eax, edx
push eax
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
push 1
push 0
push str.Shell_Icon_Size
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x41fd3a
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0xc8
push 0
push 0
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
push 0xa
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
inc esi
push esi
call ebx
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push 0x20006
push 0
push str.Control_PanelDesktopWindowMetrics
push 0x80000001
call edi
test eax, eax
je 0x41fcba
lea edx, [ebp - 4]
push edx
push 0x20006
push 0
push str.Control_PanelDesktopWindowMetrics
push 0x80000001
call edi
test eax, eax
jne 0x41fd3a
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41fcc3
mov ecx, dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub eax, edx
push eax
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
push 1
push 0
push str.Shell_Icon_Size
push ecx
call esi
test eax, eax
je 0x41fd16
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41fcf6
sub eax, edx
push eax
mov eax, dword [ebp - 4]
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push edx
push 1
push 0
push str.Shell_Icon_Size
push eax
call esi
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0xc8
push 0
push 0
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret