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

Disassembly:
mov eax, 0x4c9048
call fcn.0045d534
sub esp, 0x120
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov esi, SysReAllocStringLen
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x414522
lea eax, [ebp - 0x10]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x414522
xor eax, eax
jmp 0x414722
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x41460c
and byte [ebp - 0x12c], 0
call fcn.004c43c0
mov eax, dword [eax + 4]
push esi
push edi
lea ecx, [ebp - 0x14]
push str.filetypes
push ecx
mov ecx, eax
call fcn.004c4611
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], esi
mov ebx, 0x50dea8
cmp dword [eax - 8], esi
jne 0x4145e5
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.004bdf30
push ebx
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
call fcn.0045ec94
pop ecx
test eax, eax
pop ecx
jne 0x4145bb
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.0045dfd0
add esp, 0xc
xor esi, esi
call fcn.004c43c0
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x12c]
push ecx
mov ecx, eax
push dword [ebp + 8]
push str.filetypes
call fcn.004c1f1d
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004bdec2
push dword [ebp + 0x10]
call fcn.0045d7a0
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 0x414711
call fcn.004c43c0
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.004c4611
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 2
cmp dword [eax - 8], esi
je 0x4146f5
mov eax, dword [0x505810]
mov dword [ebp + 0x10], eax
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 3
call fcn.004bdc37
lea eax, [ebp - 0x18]
push eax
call fcn.004147a4
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 4
call fcn.004bdffb
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004bdec2
push str.PPS_NULL
push dword [ebp + 0x10]
call fcn.0045ec94
pop ecx
test eax, eax
pop ecx
je 0x4146be
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 8]
lea ecx, [eax + 1]
push ecx
push eax
lea ecx, [ebp + 0x10]
call fcn.004be2f2
push eax
push 1
mov ebx, 0x50dea8
push esi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0xffffffffffffffff
lea ecx, [ebp + 0x10]
call fcn.004be341
jmp 0x4146d3
mov ebx, 0x50dea8
push 1
push ebx
push 1
push esi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call fcn.004c43c0
mov eax, dword [eax + 4]
push ebx
push dword [ebp + 8]
mov ecx, eax
push edi
call fcn.004c1f1d
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.004bdec2
jmp 0x41470a
mov ebx, 0x50dea8
push 1
push ebx
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 + 0xc]
call fcn.004bdec2
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