Function at 0x4a777d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov esi, 0x104
push dword [ebp + 0xc]
lea edi, [ebp - 0x418]
push str._sShell_scommand
call fcn.004a9039
push dword [ebp + 0x18]
lea edi, [ebp - 0x210]
push dword [ebp + 0x14]
push str.__s___s____L_
call fcn.004a9039
add esp, 0x18
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push 2
push ebx
push ebx
push ebx
lea eax, [ebp - 0x418]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4a7837
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4a77e8
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push ebx
push ebx
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], bx
je 0x4a798d
push dword [ebp + 0xc]
push eax
push str.CapabilitiesFileTypes
call fcn.00457ac7
jmp 0x4a78c3
push dword [ebp + 0x10]
lea edi, [ebp - 0x418]
push dword [ebp + 0xc]
push str.SoftwareClasses_sShell_scommand
call fcn.004a9039
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
mov eax, edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4a78c3
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4a7879
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push ebx
push ebx
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], bx
je 0x4a798d
push dword [ebp + 0xc]
push eax
push str.CapabilitiesFileTypes
call fcn.00457b57
mov eax, dword [ebp + 8]
cmp word [eax], bx
je 0x4a798d
push dword [ebp + 0x10]
lea edi, [ebp - 0x418]
push eax
push str.SystemFileAssociations_sShell_scommand
call fcn.004a9039
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
mov eax, edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4a791b
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4a790f
jmp 0x4a7967
push dword [ebp + 0x10]
lea edi, [ebp - 0x418]
push dword [ebp + 8]
push str.SoftwareClassesSystemFileAssociations_sShell_scommand
call fcn.004a9039
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
mov eax, edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4a798d
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4a795d
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push ebx
push ebx
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