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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
push ebx
push esi
mov ebx, ecx
xor esi, esi
cmp dword [ebx + reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], esi
mov dword [ebp - 4], eax
push edi
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], ebx
jne 0x101c37d
cmp dword [ebx + reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], esi
je 0x101c37d
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push 0x101c428
push 0x80000002
call edi
test eax, eax
jne 0x101c37d
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push 0x10119c4
push 0x101c418
push 2
push 0x10
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], 0x104
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
jl 0x101c371
cmp word [ebp - 0x20c], si
je 0x101c371
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0x104
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
call fcn.01004cfc
push dword [ebp - 0x620]
call fcn.0101bf0e
push 0x101c3fc
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x101c371
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push esi
push 0x20006
push esi
push esi
push esi
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push dword [ebp - 0x620]
call edi
test eax, eax
jne 0x101c371
cmp dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], 1
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
je 0x1025d92
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push esi
push 0x101c3e4
push dword [ebp - 0x628]
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
cmp eax, 2
jne 0x101c35f
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
call ebx
lea eax, [eax + eax + 2]
push eax
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push 1
push esi
push esi
push dword [ebp - 0x620]
call edi
push 0x101c428
push esi
push 0x1a
call dword [sym.imp.SHLWAPI.dll_SHSendMessageBroadcastW]
push dword [ebp - 0x628]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
mov eax, dword [edi]
cmp eax, esi
jne 0x1025e21
push esi
push edi
push esi
push 0x1b
push esi
push esi
push esi
push 0x101c3cc
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x101c3bd
push 1
push dword [ebx + 0x554]
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.01001b01
leave
ret
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push esi
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push 4
push 0x52
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], 0x104
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
jl 0x101c30c
mov eax, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
lea eax, [eax + eax + 2]
push eax
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push 1
push esi
push 0x1029dac
push dword [ebp - 0x628]
call edi
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
call ebx
lea eax, [eax + eax + 2]
push eax
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push 1
push esi
push 0x1025e30
push dword [ebp - 0x628]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
jmp 0x101c30c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi], esi
jmp 0x101c38d