Function at 0x432bc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1dc
push ebx
push esi
push edi
mov ebx, ecx
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0xb4]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push str.DeviceProfile
mov esi, 3
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 0x1a0
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x432e48
mov dword [esp + 0x1c], eax
mov eax, dword [0x491078]
test eax, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0xe4
je 0x432cc5
mov ebx, dword [sym.imp.USER32.dll_EnumDisplayDevicesA]
xor eax, eax
xor esi, esi
mov ecx, 0x6a
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
push esi
lea ecx, [esp + 0x44]
push ecx
push esi
push esi
mov dword [esp + 0x50], 0x1a8
call ebx
test eax, eax
je 0x432cc1
jmp 0x432c60
mov al, byte [esp + 0xe4]
test al, 4
je 0x432c6f
test al, 1
jne 0x432c82
push 0
lea edx, [esp + 0x44]
push edx
inc esi
push esi
push 0
call ebx
test eax, eax
jne 0x432c60
jmp 0x432cc1
xor eax, eax
mov cl, byte [esp + eax + 0x44]
mov byte [esp + eax + 0x30], cl
inc eax
test cl, cl
jne 0x432c84
xor eax, eax
push eax
mov ecx, 0x6a
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x44]
push eax
inc esi
push esi
push 0
mov dword [esp + 0x50], 0x1a8
call ebx
xor eax, eax
mov cl, byte [esp + eax + 0x44]
mov byte [esp + eax + 0x20], cl
inc eax
test cl, cl
jne 0x432cb4
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebx + 0x254]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.Device1
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x432d06
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Device1
push str.CAutoDisplayProfile::UpdateFromRegistry.__s_failed._err_d_n
call fcn.0040aab0
add esp, 0xc
jmp 0x432d7f
mov eax, dword [0x491078]
test eax, eax
je 0x432d61
lea edi, [ebx + 0x258]
mov esi, edi
lea eax, [esp + 0x30]
jmp 0x432d20
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x432d44
test cl, cl
je 0x432d40
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x432d44
add eax, 2
add esi, 2
test cl, cl
jne 0x432d20
xor eax, eax
jmp 0x432d49
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x432d61
lea eax, [esp + 0x30]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x432d57
lea edx, [ebx + 0x258]
push edx
mov ecx, 0x491a60
call fcn.0042d630
cmp eax, 0xffffffff
je 0x432d7f
mov dword [esp + 0x1c], 1
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x338]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push str.Device2
push eax
mov dword [esp + 0x28], 3
mov dword [esp + 0x2c], 0xe4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x432dd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Device2
push str.CAutoDisplayProfile::UpdateFromRegistry.__s_failed._err_d_n
call fcn.0040aab0
add esp, 0xc
jmp 0x432e40
mov eax, dword [0x491078]
test eax, eax
je 0x432e2a
lea edi, [ebx + 0x33c]
mov esi, edi
lea eax, [esp + 0x20]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x432e09
test cl, cl
je 0x432e05
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x432e09
add eax, 2
add esi, 2
test cl, cl
jne 0x432de5
xor eax, eax
jmp 0x432e0e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x432e2a
lea eax, [esp + 0x20]
mov edx, edi
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x432e20
lea edx, [ebx + 0x33c]
push edx
mov ecx, 0x491a60
call fcn.0042d630
cmp eax, 0xffffffff
jne 0x432e53
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x432e53
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
lea edi, [ebx + 0x44]
push edi
lea ecx, [esp + 0x18]
push ecx
push 0
push str.DisplayLimits
push edx
mov dword [esp + 0x28], 3
mov dword [esp + 0x2c], 0x70
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x432ea8
xor eax, eax
mov ecx, 0x1c
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DisplayLimits
push str.CAutoDisplayProfile::UpdateFromRegistry.__s_value_is_not_found._err_d_n
call fcn.0040aab0
add esp, 0xc
mov edi, dword [ebp + 8]
mov eax, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea esi, [ebx + 0x41c]
push esi
lea ecx, [esp + 0x18]
push ecx
push 0
push str.ProfileFlags
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x432efa
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ProfileFlags
push str.CAutoDisplayProfile::UpdateFromRegistry.__s_failed._err_d_n
call fcn.0040aab0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
add ebx, 0x420
push ebx
lea eax, [esp + 0x18]
push eax
push 0
push str.Timestamp
push edi
mov dword [esp + 0x2c], 0x10
mov dword [esp + 0x28], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4