Function at 0x459688
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.0044b138
push dword [ebp + 0x18]
lea edi, [ebp - 0x210]
push dword [ebp + 0x14]
push str.__s___s____L_
call fcn.0044b138
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 0x459742
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4596f3
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 0x459898
push dword [ebp + 0xc]
push eax
push str.CapabilitiesFileTypes
call fcn.00444a92
jmp 0x4597ce
push dword [ebp + 0x10]
lea edi, [ebp - 0x418]
push dword [ebp + 0xc]
push str.SoftwareClasses_sShell_scommand
call fcn.0044b138
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 0x4597ce
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x459784
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 0x459898
push dword [ebp + 0xc]
push eax
push str.CapabilitiesFileTypes
call fcn.00444b22
mov eax, dword [ebp + 8]
cmp word [eax], bx
je 0x459898
push dword [ebp + 0x10]
lea edi, [ebp - 0x418]
push eax
push str.SystemFileAssociations_sShell_scommand
call fcn.0044b138
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 0x459826
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x45981a
jmp 0x459872
push dword [ebp + 0x10]
lea edi, [ebp - 0x418]
push dword [ebp + 8]
push str.SoftwareClassesSystemFileAssociations_sShell_scommand
call fcn.0044b138
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 0x459898
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x459868
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