Function at 0x100450e
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
mov edx, dword [ebp + 0xc]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], ecx
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], edx
call fcn.01002958
mov ebx, eax
xor esi, esi
cmp ebx, esi
jl 0x100457d
mov ecx, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
push edi
push 1
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push ebx
call fcn.01002380
mov edi, eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [edi + 0x18]
jl 0x100457c
push dword [ebp - 0x634]
call fcn.010045c0
test eax, eax
jne 0x1004753
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01001b01
leave
ret 0xc
push dword [ebp - 0x668]
mov ecx, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
push dword [ebp - 0x634]
call fcn.01004430
cmp eax, esi
jl 0x100457c
push dword [ebp + 0x10]
mov ecx, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
push eax
push ebx
call fcn.010043e4
cmp dword [edi], esi
je 0x100457c
mov ecx, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
push ebx
call fcn.010029a7
mov ecx, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
push 1
push esi
push eax
call fcn.01002380
lea ecx, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push ecx
push esi
push dword [eax + 0x14]
push 2
push 0x42
call dword [sym.imp.SHLWAPI.dll_AssocQueryKeyW]
test eax, eax
jl 0x100457c
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push 0x20019
push esi
push 0x100497c
push dword [ebp - 0x63c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004957
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push esi
push esi
push esi
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], esi
push esi
jmp 0x100492d
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push 0x20019
push esi
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004909
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push esi
push esi
push 0x1004968
push dword [ebp - 0x630]
mov ebx, 0x208
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], ebx
call edi
test eax, eax
jne 0x10048fd
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], esi
call dword [sym.imp.SHLWAPI.dll_PathParseIconLocationW]
push 1
lea ecx, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push ecx
push esi
push eax
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
cmp dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], esi
je 0x10048fd
push dword [ebp - 0x634]
push dword [ebp - 0x628]
call dword [sym.imp.SHLWAPI.dll_Ordinal_548]
test eax, eax
jne 0x1024129
push dword [ebp - 0x628]
call dword [sym.imp.USER32.dll_DestroyIcon]
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push esi
push esi
push esi
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push dword [ebp - 0x638]
push dword [ebp - 0x624]
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x100484a
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x63c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100457c
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push esi
push esi
push 0x1029c04
push dword [ebp - 0x630]
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], ebx
call edi
test eax, eax
jne 0x10048f1
mov eax, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
push esi
push esi
push 0x418
push dword [eax + 0x3c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
jmp 0x10241a2
mov ecx, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
push 1
push esi
push ebx
call fcn.01002380
mov edi, eax
cmp dword [edi], esi
jne 0x10241a2
push dword [edi + 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, esi
je 0x10241a2
lea ecx, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10241aa
dec ebx
jns 0x102416e
jmp 0x10048f1
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeW]
test eax, eax
je 0x10048f1
push dword [edi + 0x14]
mov ecx, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
push dword [ebp - 0x648]
call fcn.0102f18e
jmp 0x10048f1