Function at 0x5a7ed0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5df1b6
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x64f494]
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 0x5e8ab0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.005a77a0
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.0041b380
mov edi, dword [ebp - 0x44c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x5a7f66
xor bl, bl
jmp 0x5a8176
push 0x42
push str.SoftwareBiscuitZipCapabilities
push 1
push 0
push 0x5e8ab0
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.0041b380
test eax, eax
je 0x5a7fc4
xor bl, bl
jmp 0x5a8155
mov edi, dword [0x65c17c]
mov esi, dword [edi]
cmp esi, edi
je 0x5a8147
nop dword [eax]
nop dword [eax + eax]
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00520870
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.00520870
lea eax, [esi + 0x10]
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x5a8014
mov eax, dword [eax]
push eax
push 0x621e44
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.0040d390
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 0x5e8ab0
push 0x621e4c
lea eax, [ebp - 0x428]
push 0x104
push eax
call fcn.0040d390
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.005a73e0
mov ebx, dword [ebp - 0x440]
test eax, eax
jne 0x5a80d0
push 0x16
push 0x5e8ab0
push 1
push 0
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test ebx, ebx
je 0x5a80e5
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.005a77a0
mov eax, dword [esi + 8]
add esp, 8
cmp byte [eax + 0xd], 0
je 0x5a8129
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x5a8125
cmp esi, dword [eax + 8]
jne 0x5a8125
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x5a8115
mov esi, eax
jmp 0x5a813f
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x5a813f
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x5a8133
cmp esi, edi
jne 0x5a7fe0
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 0x5a816c
push eax
call esi
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
test edi, edi
je 0x5a817d
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.00465208
mov esp, ebp
pop ebp
ret