Function at 0x4326c0
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 0x432948
mov dword [esp + 0x1c], eax
mov eax, dword [0x491078]
test eax, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0xe4
je 0x4327c5
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 0x4327c1
jmp 0x432760
mov al, byte [esp + 0xe4]
test al, 4
je 0x43276f
test al, 1
jne 0x432782
push 0
lea edx, [esp + 0x44]
push edx
inc esi
push esi
push 0
call ebx
test eax, eax
jne 0x432760
jmp 0x4327c1
xor eax, eax
mov cl, byte [esp + eax + 0x44]
mov byte [esp + eax + 0x30], cl
inc eax
test cl, cl
jne 0x432784
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 0x4327b4
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 0x432806
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 0x43287f
mov eax, dword [0x491078]
test eax, eax
je 0x432861
lea edi, [ebx + 0x258]
mov esi, edi
lea eax, [esp + 0x30]
jmp 0x432820
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x432844
test cl, cl
je 0x432840
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x432844
add eax, 2
add esi, 2
test cl, cl
jne 0x432820
xor eax, eax
jmp 0x432849
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x432861
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 0x432857
lea edx, [ebx + 0x258]
push edx
mov ecx, 0x491a60
call fcn.0042d130
cmp eax, 0xffffffff
je 0x43287f
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 0x4328d0
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 0x432940
mov eax, dword [0x491078]
test eax, eax
je 0x43292a
lea edi, [ebx + 0x33c]
mov esi, edi
lea eax, [esp + 0x20]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x432909
test cl, cl
je 0x432905
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x432909
add eax, 2
add esi, 2
test cl, cl
jne 0x4328e5
xor eax, eax
jmp 0x43290e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x43292a
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 0x432920
lea edx, [ebx + 0x33c]
push edx
mov ecx, 0x491a60
call fcn.0042d130
cmp eax, 0xffffffff
jne 0x432953
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x432953
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 0x4329a8
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 0x4329fa
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