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

Disassembly:
mov eax, 0x4e85dc
call fcn.0047b598
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 0x419ae8
lea eax, [ebp - 0x10]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x419ae8
xor eax, eax
jmp 0x419cac
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x419bc3
and byte [ebp - 0x12c], 0
push esi
push esi
push edi
lea eax, [ebp - 0x14]
push str.filetypes
push eax
mov dword [ebp - 0x1c], 0x104
call fcn.0040dc30
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], esi
mov ebx, 0x534198
cmp dword [eax - 8], esi
jne 0x419b9c
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.004dc6dc
push ebx
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
call fcn.0047db34
pop ecx
test eax, eax
pop ecx
jne 0x419b7b
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.0047bb20
add esp, 0xc
xor esi, esi
lea eax, [ebp - 0x12c]
push esi
push eax
push dword [ebp + 8]
push str.filetypes
call fcn.0040db6c
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004dc66e
push dword [ebp + 0x10]
call fcn.0047baa0
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 0x419c9b
push esi
push esi
push edi
mov edi, str.filetypes
lea eax, [ebp + 0xc]
push edi
push eax
call fcn.0040dc30
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 2
cmp dword [eax - 8], esi
je 0x419c94
mov eax, dword [0x52ba98]
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.004dc3e3
lea eax, [ebp - 0x18]
push eax
call fcn.00419d2e
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 4
call fcn.004dc7a7
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004dc66e
push str.PPS_NULL
push dword [ebp + 0x10]
call fcn.0047b904
pop ecx
test eax, eax
pop ecx
je 0x419c68
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
push dword [eax - 8]
push esi
call fcn.004dca9e
push eax
push 1
mov ebx, 0x534198
push esi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0xffffffffffffffff
lea ecx, [ebp + 0x10]
call fcn.004dcaed
jmp 0x419c7d
mov ebx, 0x534198
push 1
push ebx
push 1
push esi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
push ebx
push dword [ebp + 8]
push edi
call fcn.0040db6c
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.004dc66e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004dc66e
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