Function at 0x432e30
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 + 0x30c]
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 0x4330b8
mov dword [esp + 0x1c], eax
mov eax, dword [0x492078]
test eax, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0xe4
je 0x432f35
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 0x432f31
jmp 0x432ed0
mov al, byte [esp + 0xe4]
test al, 4
je 0x432edf
test al, 1
jne 0x432ef2
push 0
lea edx, [esp + 0x44]
push edx
inc esi
push esi
push 0
call ebx
test eax, eax
jne 0x432ed0
jmp 0x432f31
xor eax, eax
mov cl, byte [esp + eax + 0x44]
mov byte [esp + eax + 0x30], cl
inc eax
test cl, cl
jne 0x432ef4
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 0x432f24
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebx + 0x4ac]
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 0x432f76
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Device1
push str.CAutoDisplayProfile::UpdateFromRegistry.__s_failed._err_d_n
call fcn.0040a4a0
add esp, 0xc
jmp 0x432fef
mov eax, dword [0x492078]
test eax, eax
je 0x432fd1
lea edi, [ebx + 0x4b0]
mov esi, edi
lea eax, [esp + 0x30]
jmp 0x432f90
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x432fb4
test cl, cl
je 0x432fb0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x432fb4
add eax, 2
add esi, 2
test cl, cl
jne 0x432f90
xor eax, eax
jmp 0x432fb9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x432fd1
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 0x432fc7
lea edx, [ebx + 0x4b0]
push edx
mov ecx, 0x492a60
call fcn.0042d930
cmp eax, 0xffffffff
je 0x432fef
mov dword [esp + 0x1c], 1
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x590]
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 0x433040
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Device2
push str.CAutoDisplayProfile::UpdateFromRegistry.__s_failed._err_d_n
call fcn.0040a4a0
add esp, 0xc
jmp 0x4330b0
mov eax, dword [0x492078]
test eax, eax
je 0x43309a
lea edi, [ebx + 0x594]
mov esi, edi
lea eax, [esp + 0x20]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x433079
test cl, cl
je 0x433075
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x433079
add eax, 2
add esi, 2
test cl, cl
jne 0x433055
xor eax, eax
jmp 0x43307e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x43309a
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 0x433090
lea edx, [ebx + 0x594]
push edx
mov ecx, 0x492a60
call fcn.0042d930
cmp eax, 0xffffffff
jne 0x4330c3
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4330c3
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 + 0x10c]
push edi
lea ecx, [esp + 0x18]
push ecx
push 0
push str.DisplayLimits
push edx
mov dword [esp + 0x28], 3
mov dword [esp + 0x2c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x43311b
xor eax, eax
mov ecx, 0x80
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.0040a4a0
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 + 0x674]
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 0x43316d
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.0040a4a0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
add ebx, 0x678
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