Function at 0x4e6a80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515fa6
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x55b524]
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
push 0x51f758
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004e6350
add esp, 8
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0
push 0x2001f
push str.SOFTWARERegisteredApplications
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x44c]
mov dword [ebp - 4], 0
call fcn.00419c90
mov edi, dword [ebp - 0x44c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4e6b16
xor bl, bl
jmp 0x4e6d26
push 0x42
push str.SoftwareBiscuitZipCapabilities
push 1
push 0
push 0x51f758
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
push 0x2001f
push str.SOFTWAREBiscuitZip
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 1
call fcn.00419c90
test eax, eax
je 0x4e6b74
xor bl, bl
jmp 0x4e6d05
mov edi, dword [0x5652a4]
mov esi, dword [edi]
cmp esi, edi
je 0x4e6cf7
nop dword [eax]
nop dword [eax + eax]
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00491810
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.00491810
lea eax, [esi + 0x10]
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x4e6bc4
mov eax, dword [eax]
push eax
push 0x53cb9c
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.00409c90
add esp, 0x10
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffW]
lea eax, [ebp - 0x21c]
push eax
push 0x51f758
push 0x53cba4
lea eax, [ebp - 0x428]
push 0x104
push eax
call fcn.00409c90
mov eax, dword [ebp - 0x430]
lea ecx, [ebp - 0x440]
add esp, 0x14
mov dword [ebp - 0x440], 0
or eax, 0x2001f
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x438], 0
push 0
push 0
push eax
push 0
push 0
push str.CapabilitiesFileAssociations
push dword [ebp - 0x434]
call fcn.004e5f90
mov ebx, dword [ebp - 0x440]
test eax, eax
jne 0x4e6c80
push 0x16
push 0x51f758
push 1
push 0
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test ebx, ebx
je 0x4e6c95
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x440], 0
lea eax, [ebp - 0x428]
mov dword [ebp - 0x43c], 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004e6350
mov eax, dword [esi + 8]
add esp, 8
cmp byte [eax + 0xd], 0
je 0x4e6cd9
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4e6cd5
cmp esi, dword [eax + 8]
jne 0x4e6cd5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4e6cc5
mov esi, eax
jmp 0x4e6cef
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4e6cef
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4e6ce3
cmp esi, edi
jne 0x4e6b90
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov edi, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x4e6d1c
push eax
call esi
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
test edi, edi
je 0x4e6d2d
push edi
call esi
mov al, bl
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.00462c38
mov esp, ebp
pop ebp
ret