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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
push ebx
push esi
mov ebx, ecx
xor esi, esi
cmp dword [ebx + 0x53c], esi
push edi
mov dword [ebp - 0x18], ebx
jne 0x10148c6
cmp dword [ebx + 0x540], esi
je 0x10148c6
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push 0x1016b18
push 0x80000002
call edi
test eax, eax
jne 0x10148c6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x220]
push eax
push 0x101690c
push 0x1016b0c
push 2
push 0x10
mov dword [ebp - 0xc], 0x104
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
jl 0x10148bd
cmp word [ebp - 0x220], si
je 0x10148bd
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp - 8]
call fcn.01014910
push 0x1016af0
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x101f7c2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [ebx + 0x544]
mov eax, dword [edi]
cmp eax, esi
je 0x10148db
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi], esi
push esi
push edi
push esi
push 0x1b
push esi
push esi
push esi
push 0x1016ad8
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x101490b
push 1
push dword [ebx + 0x548]
push 5
push 1
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 8]
call edi
test eax, eax
jne 0x10148bd
cmp dword [ebp - 0x10], 1
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
je 0x102208c
lea eax, [ebp - 0x14]
push eax
push esi
push 0x101f858
push dword [ebp - 4]
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
cmp eax, 2
jne 0x101f844
lea eax, [ebp - 0x428]
push eax
call ebx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x428]
push eax
push 1
push esi
push esi
push dword [ebp - 8]
call edi
push 0x1016b18
push esi
push 0x1a
call dword [sym.imp.SHLWAPI.dll_SHSendMessageBroadcastW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x18]
jmp 0x10148bd
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x630]
push eax
push esi
lea eax, [ebp - 0x220]
push eax
push 4
push 0x52
mov dword [ebp - 0xc], 0x104
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
jl 0x101f7fd
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x630]
push eax
push 1
push esi
push 0x1039a5c
push dword [ebp - 4]
call edi
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
lea eax, [ebp - 0x220]
push eax
call ebx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x220]
push eax
push 1
push esi
push 0x1027194
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
jmp 0x101f7fd