Function at 0x417be4
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x4de6a0
call fcn.00471fb4
sub esp, 0x120
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov esi, bind
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x417c26
lea eax, [ebp - 0x10]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x417c26
xor eax, eax
jmp 0x417e12
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x417d17
and byte [ebp - 0x12c], 0
mov dword [ebp - 0x1c], 0x104
call fcn.004d92e7
mov eax, dword [eax + 4]
push esi
push edi
lea ecx, [ebp - 0x14]
push str.filetypes
push ecx
mov ecx, eax
call fcn.004d9538
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], esi
mov ebx, 0x527a08
cmp dword [eax - 8], esi
jne 0x417cf0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x12c]
push eax
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x12c]
lea ecx, [ebp + 0xc]
push eax
call fcn.004d2cf7
push ebx
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
call fcn.004736d4
pop ecx
test eax, eax
pop ecx
jne 0x417cc6
mov esi, str.PPS_NULL
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x28]
push 9
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x12c]
push eax
movsb byte es:[edi], byte [esi]
call fcn.00472430
add esp, 0xc
xor esi, esi
call fcn.004d92e7
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x12c]
push ecx
mov ecx, eax
push dword [ebp + 8]
push str.filetypes
call fcn.004d6f0b
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004d2c89
push dword [ebp + 0x10]
call fcn.004723b0
pop ecx
inc eax
push eax
push dword [ebp + 0x10]
push 1
push esi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
jmp 0x417e01
call fcn.004d92e7
mov eax, dword [eax + 4]
push esi
push edi
mov edi, str.filetypes
lea ecx, [ebp + 0xc]
push edi
push ecx
mov ecx, eax
call fcn.004d9538
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 2
cmp dword [eax - 8], esi
je 0x417dfa
mov eax, dword [0x51f320]
mov dword [ebp + 0x10], eax
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 3
call fcn.004d29fe
lea eax, [ebp - 0x18]
push eax
call fcn.00417e94
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 4
call fcn.004d2dc2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004d2c89
push str.PPS_NULL
push dword [ebp + 0x10]
call fcn.00472218
pop ecx
test eax, eax
pop ecx
je 0x417dc5
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
push dword [eax - 8]
push esi
call fcn.004d30b9
push eax
push 1
mov ebx, 0x527a08
push esi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0xffffffffffffffff
lea ecx, [ebp + 0x10]
call fcn.004d3108
jmp 0x417dda
mov ebx, 0x527a08
push 1
push ebx
push 1
push esi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call fcn.004d92e7
mov eax, dword [eax + 4]
push ebx
push dword [ebp + 8]
mov ecx, eax
push edi
call fcn.004d6f0b
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.004d2c89
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004d2c89
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret