Function at 0x432ea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
push ebx
push esi
mov ebx, ecx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x30c]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.DeviceProfile
mov esi, 3
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0x1a0
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x432eed
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x49b618]
test eax, eax
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], esi
mov dword [ebp - 8], 0xe4
je 0x432fc3
mov ebx, dword [sym.imp.USER32.dll_EnumDisplayDevicesA]
xor eax, eax
xor esi, esi
mov ecx, 0x6a
lea edi, [ebp - 0x1d8]
rep stosd dword es:[edi], eax
push esi
lea ecx, [ebp - 0x1d8]
push ecx
push esi
push esi
mov dword [ebp - 0x1d8], 0x1a8
call ebx
test eax, eax
je 0x432fc0
mov al, byte [ebp - 0x134]
test al, 4
je 0x432f4f
test al, 1
jne 0x432f64
push 0
lea edx, [ebp - 0x1d8]
push edx
inc esi
push esi
push 0
call ebx
test eax, eax
jne 0x432f41
jmp 0x432fc0
xor eax, eax
jmp 0x432f70
mov cl, byte [ebp + eax - 0x1d4]
mov byte [ebp + eax - 0x30], cl
inc eax
test cl, cl
jne 0x432f70
xor eax, eax
push eax
mov ecx, 0x6a
lea edi, [ebp - 0x1d8]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1d8]
push eax
inc esi
push esi
push 0
mov dword [ebp - 0x1d8], 0x1a8
call ebx
xor eax, eax
lea esp, [esp]
mov cl, byte [ebp + eax - 0x1d4]
mov byte [ebp + eax - 0x20], cl
inc eax
test cl, cl
jne 0x432fb0
mov ebx, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebx + 0x4ac]
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.Device1
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x433002
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Device1
push str.CAutoDisplayProfile::UpdateFromRegistry.__s_failed._err_d_n
call fcn.0040acd0
add esp, 0xc
jmp 0x433077
mov eax, dword [0x49b618]
test eax, eax
je 0x43305a
lea edi, [ebx + 0x4b0]
mov esi, edi
lea eax, [ebp - 0x30]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x43303a
test cl, cl
je 0x433036
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x43303a
add eax, 2
add esi, 2
test cl, cl
jne 0x433016
xor eax, eax
jmp 0x43303f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x43305a
lea eax, [ebp - 0x30]
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 0x433050
lea edx, [ebx + 0x4b0]
push edx
mov ecx, 0x49c088
call fcn.00430380
cmp eax, 0xffffffff
je 0x433077
mov dword [ebp - 0x10], 1
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x590]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.Device2
push eax
mov dword [ebp - 4], 3
mov dword [ebp - 8], 0xe4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4330c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Device2
push str.CAutoDisplayProfile::UpdateFromRegistry.__s_failed._err_d_n
call fcn.0040acd0
add esp, 0xc
jmp 0x433130
mov eax, dword [0x49b618]
test eax, eax
je 0x43311a
lea edi, [ebx + 0x594]
mov esi, edi
lea eax, [ebp - 0x20]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4330fc
test cl, cl
je 0x4330f8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4330fc
add eax, 2
add esi, 2
test cl, cl
jne 0x4330d8
xor eax, eax
jmp 0x433101
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x43311a
lea eax, [ebp - 0x20]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x433110
lea edx, [ebx + 0x594]
push edx
mov ecx, 0x49c088
call fcn.00430380
cmp eax, 0xffffffff
jne 0x433142
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x433142
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
lea edi, [ebx + 0x10c]
push edi
lea ecx, [ebp - 4]
push ecx
push 0
push str.DisplayLimits
push edx
mov dword [ebp - 4], 3
mov dword [ebp - 8], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x433196
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.0040acd0
add esp, 0xc
mov edi, dword [ebp + 8]
mov eax, 4
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea esi, [ebx + 0x674]
push esi
lea ecx, [ebp - 4]
push ecx
push 0
push str.ProfileFlags
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4331e4
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.0040acd0
add esp, 0xc
lea edx, [ebp - 8]
push edx
add ebx, 0x678
push ebx
lea eax, [ebp - 4]
push eax
push 0
push str.Timestamp
push edi
mov dword [ebp - 8], 0x10
mov dword [ebp - 4], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4