Function at 0x428e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468820
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], esp
push eax
mov ecx, 0x491a60
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], SysReAllocString
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x30], 1
mov byte [ebp - 0x38], bl
mov dword [ebp - 0x37], ebx
mov dword [ebp - 0x2c], 5
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], ebx
call fcn.0042d680
cmp eax, ebx
jne 0x428e9f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, eax
call fcn.00437330
test eax, 0x400000
je 0x428f39
push 0x104
mov dword [ebp - 4], ebx
call fcn.0045e736
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
jmp 0x428eda
cmp esi, ebx
mov dword [ebp - 4], 0xffffffff
je 0x428ff5
xor eax, eax
mov ecx, 0x41
mov edi, esi
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
push esi
lea edx, [ebp - 0x58]
mov dword [ebp - 0x44], ecx
push edx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x40], ecx
push eax
mov dword [ebp - 0x3c], ecx
call fcn.00428520
add esp, 0xc
test eax, eax
je 0x428fe6
cmp dword [ebp - 0x20], ebx
je 0x428f39
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x14], ecx
push str.IsSetModeAfterRebootNeeded__Access_Registry_n
call fcn.0040aab0
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 4
lea edx, [ebp - 0x1c]
push edx
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionControls_FolderDisplay
push eax
call edi
mov esi, eax
test esi, esi
je 0x428fa0
push str.IsSetModeAfterRebootNeeded__impersonating_current_user_n
call fcn.0040aab0
add esp, 4
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x428f9c
lea edx, [ebp - 0x1c]
push edx
mov ebx, 1
push ebx
push eax
mov eax, dword [ebp - 0x14]
push str.SoftwareMicrosoftWindowsCurrentVersionControls_FolderDisplay
push eax
call edi
mov esi, eax
test esi, esi
jne 0x429001
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x30]
push eax
push 0
push str.DynaSettingsChange
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x428fda
mov al, byte [ebp - 0x38]
cmp al, 0x31
mov dword [ebp - 0x24], 1
je 0x428fd3
cmp al, 0x33
jne 0x428fda
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42900e
push str.IsSetModeAfterRebootNeeded__ImpersonateTheUser_failed_n
call fcn.0040aab0
add esp, 4
jmp 0x429054
push str.IsSetModeAfterRebootNeeded__new_char__MAX_PATH__failed_n
call fcn.0040aab0
jmp 0x42905e
push str.IsSetModeAfterRebootNeeded__Fail_to_get_DynaSettingsChange_n
call fcn.0040aab0
add esp, 4
test ebx, ebx
je 0x42901c
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42904f
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x42903a
push str.__Failed_to_revert_
call fcn.0040aab0
add esp, 4
mov ecx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x18]
xor ebx, ebx
cmp esi, ebx
je 0x429061
push esi
call fcn.0045e020
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret