Function at 0x4745d0
Capabilities:
Check os version
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd570
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
xor edi, edi
test byte [0x56145c], 1
jne 0x474638
or dword [0x56145c], 1
push 0x110
push edi
push 0x56134c
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x561348
mov dword [0x561348], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x56134c], 6
jae 0x474648
xor eax, eax
jmp 0x47483d
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
push 0x2001f
push str.SOFTWARERegisteredApplications
push 0x80000002
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], edi
call fcn.00412570
mov esi, eax
cmp esi, edi
je 0x47467b
mov eax, dword [ebp - 0x54]
cmp eax, edi
jmp 0x474832
lea eax, [ebx + 0x1c]
mov edi, 8
mov dword [ebp - 0x5c], eax
cmp dword [eax + 0x14], edi
jb 0x47468d
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [ebx + 0x14], edi
jb 0x4746a1
mov eax, dword [ebx]
jmp 0x4746a3
mov eax, ebx
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp byte [ebp + 8], 0
je 0x47482d
cmp dword [ebx + 0x14], edi
jb 0x4746c2
mov eax, dword [ebx]
jmp 0x4746c4
mov eax, ebx
push 0
push 0
push 0x2001f
push 0
push 0
push eax
push 0x80000002
lea ecx, [ebp - 0x54]
call fcn.004174b0
mov esi, eax
test esi, esi
jne 0x47482d
cmp dword [ebx + 0x4c], edi
lea eax, [ebx + 0x38]
jb 0x4746f3
mov eax, dword [eax]
push 1
push eax
push str.ApplicationName
lea ecx, [ebp - 0x54]
call fcn.004176b0
cmp dword [ebx + 0x68], edi
lea eax, [ebx + 0x54]
jb 0x47470d
mov eax, dword [eax]
push 1
push eax
push str.ApplicationDescription
lea ecx, [ebp - 0x54]
call fcn.004176b0
push 0x4c7780
lea ecx, [ebp - 0x2c]
push ebx
push ecx
call fcn.0040ca60
push str.FileAssociations
push eax
lea edx, [ebp - 0x48]
push edx
mov byte [ebp - 4], 1
call fcn.0040ca00
add esp, 0x18
cmp dword [eax + 0x14], edi
jb 0x474749
mov eax, dword [eax]
push 0
push 0
push 0x2001f
push 0
push 0
push eax
push 0x80000002
lea ecx, [ebp - 0x54]
call fcn.004174b0
lea ecx, [ebp - 0x48]
mov esi, eax
call fcn.004a9f30
lea ecx, [ebp - 0x2c]
call fcn.004a9f30
test esi, esi
je 0x474787
lea ecx, [ebp - 0x54]
call fcn.00414440
jmp 0x47483b
mov ecx, dword [ebx + 0x74]
mov eax, dword [ecx]
mov dword [ebp - 0x58], eax
cmp eax, ecx
je 0x4747dd
cmp dword [eax + 0x3c], edi
lea esi, [eax + 0x28]
jb 0x47479d
mov esi, dword [esi]
cmp dword [eax + 0x20], 8
lea edi, [eax + 0xc]
jb 0x4747a8
mov edi, dword [edi]
test esi, esi
je 0x4747c8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x54]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x58]
call fcn.00446630
mov eax, dword [ebp - 0x58]
mov edi, 8
cmp eax, dword [ebx + 0x74]
jne 0x474793
push 0x2001f
push str.SOFTWARERegisteredApplications
push 0x80000002
lea ecx, [ebp - 0x54]
call fcn.00412570
mov esi, eax
test esi, esi
jne 0x47482d
cmp dword [ebx + 0x14], edi
jb 0x474803
mov ecx, dword [ebx]
jmp 0x474805
mov ecx, ebx
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x14], edi
jb 0x47480f
mov eax, dword [eax]
push 1
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.004176b0
mov esi, eax
test esi, esi
jle 0x47482d
and esi, 0xffff
or esi, 0x80070000
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x47483b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret