Function at 0x429330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468d50
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.0042db80
cmp eax, ebx
jne 0x42939f
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.00437830
test eax, 0x400000
je 0x429439
push 0x104
mov dword [ebp - 4], ebx
call fcn.0045ec66
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
jmp 0x4293da
cmp esi, ebx
mov dword [ebp - 4], 0xffffffff
je 0x4294f5
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.00428a20
add esp, 0xc
test eax, eax
je 0x4294e6
cmp dword [ebp - 0x20], ebx
je 0x429439
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 0x4294a0
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 0x42949c
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 0x429501
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 0x4294da
mov al, byte [ebp - 0x38]
cmp al, 0x31
mov dword [ebp - 0x24], 1
je 0x4294d3
cmp al, 0x33
jne 0x4294da
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42950e
push str.IsSetModeAfterRebootNeeded__ImpersonateTheUser_failed_n
call fcn.0040aab0
add esp, 4
jmp 0x429554
push str.IsSetModeAfterRebootNeeded__new_char__MAX_PATH__failed_n
call fcn.0040aab0
jmp 0x42955e
push str.IsSetModeAfterRebootNeeded__Fail_to_get_DynaSettingsChange_n
call fcn.0040aab0
add esp, 4
test ebx, ebx
je 0x42951c
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42954f
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x42953a
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 0x429561
push esi
call fcn.0045e550
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