Function at 0x1005886
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009ee0
push 0x101ce27
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
sub esp, 0xa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x20]
push eax
push 0x1009e78
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyW]
mov dword [ebp - 0xb8], eax
cmp eax, ebx
je 0x10100d7
cmp dword [0x102164c], ebx
je 0x1010121
cmp dword [0x1021650], ebx
je 0x1010121
push 0x18
call fcn.01005a7e
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
je 0x1010121
push 6
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
mov dword [esi], edi
cmp edi, ebx
jne 0x100593e
lea eax, [esi + 0xc]
push eax
push 2
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.DLL_DuplicateToken]
test eax, eax
je 0x1010121
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x28], ebx
call fcn.01005a8d
mov dword [ebp - 0x2c], eax
cmp edi, ebx
mov eax, 0x1009e34
jne 0x100595e
mov eax, 0x1009df4
push eax
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov dword [esi + 4], eax
cmp dword [ebp - 0x2c], ebx
je 0x100597c
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x1010121
push dword [esi]
push eax
call dword [sym.imp.USERENV.DLL_RegisterGPNotification]
test eax, eax
je 0x1010121
cmp dword [esi], ebx
je 0x1005a66
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
push 0x1009da0
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.USER32.DLL_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0xb4]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateWaitableTimerW]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x1010121
push ebx
push 0xffffffffffffffff
push esi
mov ebx, 0x1006f02
push ebx
push dword [esi + 4]
lea eax, [esi + 0x10]
push eax
mov edi, dword [sym.imp.KERNEL32.DLL_RegisterWaitForSingleObject]
call edi
test eax, eax
je 0x1010180
push 0
push 0xffffffffffffffff
push esi
push ebx
push dword [esi + 8]
lea eax, [esi + 0x14]
push eax
call edi
test eax, eax
je 0x1010180
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
and al, 0x92
add eax, 0x78
imul eax, eax, 0x3e8
cdq
push 0xffffffffffffffff
push 0xffffd8f0
push edx
push eax
call fcn.01005c07
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_SetWaitableTimer]
or dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
push 0x1009d50
jmp 0x10059b3
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xbc], 4
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xc0]
push eax
push ebx
push ebx
push 0x100b48c
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
mov dword [ebp - 0xb8], eax
cmp eax, ebx
je 0x1010115
mov dword [ebp - 0xc0], ebx
cmp dword [ebp - 0xc0], ebx
je 0x10058e9
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x1010179
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x1010139
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_UnregisterWaitEx]
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1010147
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x1010157
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_UnregisterWaitEx]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x1010165
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x1010173
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call fcn.01002494
xor eax, eax
jmp 0x1005a55
or dword [ebp - 4], 0xffffffff
xor ebx, ebx
jmp 0x1010125