Function at 0x546e23
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov ebx, 0x104
push dword [ebp + 0xc]
mov eax, ebx
push str._sShell_scommand
lea edi, [ebp - 0x418]
call fcn.005383cd
push dword [ebp + 0x18]
mov eax, ebx
push dword [ebp + 0x14]
lea edi, [ebp - 0x210]
push str.__s___s____L_
call fcn.005383cd
add esp, 0x18
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
push 2
push esi
push esi
push esi
lea eax, [ebp - 0x418]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x546ee1
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x546e92
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
cmp word [eax], si
je 0x54703d
push dword [ebp + 0xc]
push eax
push str.CapabilitiesFileTypes
call fcn.00531e66
jmp 0x546f6f
push dword [ebp + 0x10]
mov eax, ebx
push dword [ebp + 0xc]
lea edi, [ebp - 0x418]
push str.SoftwareClasses_sShell_scommand
call fcn.005383cd
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 2
push esi
push esi
push esi
mov eax, edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x546f6f
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x546f25
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
cmp word [eax], si
je 0x54703d
push dword [ebp + 0xc]
push eax
push str.CapabilitiesFileTypes
call fcn.00531ef6
mov eax, dword [ebp + 8]
cmp word [eax], si
je 0x54703d
push dword [ebp + 0x10]
lea edi, [ebp - 0x418]
push eax
push str.SystemFileAssociations_sShell_scommand
mov eax, ebx
call fcn.005383cd
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 2
push esi
push esi
push esi
mov eax, edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x546fc9
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x546fbd
jmp 0x547017
push dword [ebp + 0x10]
mov eax, ebx
push dword [ebp + 8]
lea edi, [ebp - 0x418]
push str.SoftwareClassesSystemFileAssociations_sShell_scommand
call fcn.005383cd
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 2
push esi
push esi
push esi
mov eax, edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x54703d
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x54700d
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 0x14