Function at 0x10195a0
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 + 0x544], esi
push edi
mov dword [ebp - 0x18], ebx
jne 0x1019670
cmp dword [ebx + 0x548], esi
je 0x1019670
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 0x101b1e8
push 0x80000002
call edi
test eax, eax
jne 0x1019670
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x220]
push eax
push 0x101afd4
push 0x101b1d8
push 2
push 0x10
mov dword [ebp - 0xc], 0x104
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
jl 0x1019667
cmp word [ebp - 0x220], si
je 0x1019667
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.010196ba
push 0x101b1bc
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x101f4a5
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [ebx + 0x54c]
mov eax, dword [edi]
cmp eax, esi
je 0x1019685
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 0x101b1a4
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10196b5
push 1
push dword [ebx + 0x550]
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 0x1019667
cmp dword [ebp - 0x10], 1
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
je 0x101f5b7
lea eax, [ebp - 0x14]
push eax
push esi
push 0x101f638
push dword [ebp - 4]
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
cmp eax, 2
jne 0x101f527
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 0x101b1e8
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 0x1019667
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 0x101f4e0
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x630]
push eax
push 1
push esi
push 0x101f678
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 0x101f650
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
jmp 0x101f4e0