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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [0x1046080]
push ebx
push esi
mov ebx, ecx
xor esi, esi
cmp dword [ebx + 0x544], esi
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x634], ebx
jne 0x100b996
cmp dword [ebx + 0x548], esi
je 0x100b996
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x628]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push 0x100b868
push 0x80000002
call edi
test eax, eax
jne 0x100b996
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x100ba28
push 0x100ba1c
push 2
push 0x10
mov dword [ebp - 0x624], 0x104
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
jl 0x100b98a
cmp word [ebp - 0x20c], si
je 0x100b98a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0x104
lea eax, [ebp - 0x414]
push eax
call fcn.010047c4
push 0x100ba00
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x101804a
push dword [ebp - 0x628]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [ebx + 0x54c]
mov eax, dword [edi]
cmp eax, esi
je 0x100b9ab
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 0x100b9e8
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100b9db
push 1
push dword [ebx + 0x550]
push 5
push 1
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01001b2f
leave
ret
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x620]
push eax
push esi
push 0x20006
push esi
push esi
push esi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x628]
call edi
test eax, eax
jne 0x100b98a
cmp dword [ebp - 0x62c], 1
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
je 0x10222dc
lea eax, [ebp - 0x630]
push eax
push esi
push 0x10180fc
push dword [ebp - 0x620]
mov dword [ebp - 0x630], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
cmp eax, 2
jne 0x10180e4
lea eax, [ebp - 0x414]
push eax
call ebx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x414]
push eax
push 1
push esi
push esi
push dword [ebp - 0x628]
call edi
push 0x100b868
push esi
push 0x1a
call dword [sym.imp.SHLWAPI.dll_SHSendMessageBroadcastW]
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x634]
jmp 0x100b98a
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x61c]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push 4
push 0x52
mov dword [ebp - 0x624], 0x104
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
jl 0x1018091
mov eax, dword [ebp - 0x624]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x61c]
push eax
push 1
push esi
push 0x102655c
push dword [ebp - 0x620]
call edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push esi
push 0x102236c
push dword [ebp - 0x620]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
jmp 0x1018091