Function at 0x10188dc
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 0x1018ab9
cmp dword [ebx + 0x548], esi
je 0x1018ab9
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 0x1003c88
push reloc.SHELL32.dll_SHChangeNotifyRegister
call edi
test eax, eax
jne 0x1018ab9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x220]
push eax
push 0x1003db0
push 0x1003da4
push 2
push 0x10
mov dword [ebp - 0xc], 0x104
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
jl 0x1018ab0
cmp word [ebp - 0x220], si
je 0x1018ab0
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.0101884c
push 0x1003d88
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1018ab0
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 0x1018ab0
cmp dword [ebp - 0x10], 1
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
jne 0x1018a5d
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 0x1018a5d
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x630]
push eax
push 1
push esi
push 0x1003d68
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 0x1003d40
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0x14]
push eax
push esi
push 0x1003d28
push dword [ebp - 4]
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
cmp eax, 2
jne 0x1018aa4
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 0x1003c88
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]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [ebx + 0x54c]
mov eax, dword [edi]
cmp eax, esi
je 0x1018ace
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 0x1003d10
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1018afe
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