Function at 0x429640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4692b0
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, 0x492a60
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.0042de80
cmp eax, ebx
jne 0x4296af
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.00437aa0
test eax, 0x400000
je 0x429749
push 0x104
mov dword [ebp - 4], ebx
call fcn.0045f1c6
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
jmp 0x4296ea
cmp esi, ebx
mov dword [ebp - 4], 0xffffffff
je 0x429805
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.00428c10
add esp, 0xc
test eax, eax
je 0x4297f6
cmp dword [ebp - 0x20], ebx
je 0x429749
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x14], ecx
push str.IsSetModeAfterRebootNeeded__Access_Registry_n
call fcn.0040a4a0
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 0x4297b0
push str.IsSetModeAfterRebootNeeded__impersonating_current_user_n
call fcn.0040a4a0
add esp, 4
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x4297ac
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 0x429811
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 0x4297ea
mov al, byte [ebp - 0x38]
cmp al, 0x31
mov dword [ebp - 0x24], 1
je 0x4297e3
cmp al, 0x33
jne 0x4297ea
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42981e
push str.IsSetModeAfterRebootNeeded__ImpersonateTheUser_failed_n
call fcn.0040a4a0
add esp, 4
jmp 0x429864
push str.IsSetModeAfterRebootNeeded__new_char__MAX_PATH__failed_n
call fcn.0040a4a0
jmp 0x42986e
push str.IsSetModeAfterRebootNeeded__Fail_to_get_DynaSettingsChange_n
call fcn.0040a4a0
add esp, 4
test ebx, ebx
je 0x42982c
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42985f
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x42984a
push str.__Failed_to_revert_
call fcn.0040a4a0
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 0x429871
push esi
call fcn.0045eab0
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