Function at 0x1000d825
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x154
mov eax, dword [0x1002f810]
xor eax, ebp
mov dword [ebp + 0x70], eax
push esi
push edi
mov edi, dword [ebp + 0x7c]
xor eax, eax
cmp dword [edi + 0x14], eax
mov esi, ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x68], eax
jne 0x1000d860
cmp dword [edi + 0x18], eax
jne 0x1000d860
mov byte [edi], 1
mov eax, 0x80004005
jmp 0x1000e08f
lea eax, [ebp - 0x68]
push eax
push dword [edi + 0x10]
call fcn.10002f11
test eax, eax
je 0x1000d853
push ebx
push 0x40
lea eax, [ebp - 0xc8]
push 0
push eax
call fcn.10016e50
mov eax, dword [ebp - 0x68]
add esp, 0xc
push 0x22
pop ebx
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xb8]
push eax
push 2
push dword [edi + 0x14]
mov ecx, esi
mov dword [ebp - 0xc8], ebx
call fcn.100123b8
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0xac]
push eax
push 2
push dword [edi + 0x18]
mov ecx, esi
call fcn.100123b8
mov ecx, dword [esi + 0x20]
test ecx, ecx
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xc4], 4
je 0x1000d8e0
call fcn.10001054
jmp 0x1000d8e2
xor eax, eax
push eax
mov ecx, esi
call fcn.100049ef
cmp eax, 1
jne 0x1000d8f6
or dword [ebp - 0xc4], 3
push edi
lea eax, [ebp - 0xc8]
push eax
push 0x40
push ebx
mov ecx, esi
call fcn.100044e7
test eax, eax
jl 0x1000e089
mov eax, dword [ebp - 0x9c]
test eax, eax
jbe 0x1000e089
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ebp - 0xa4]
add ecx, edx
cmp ecx, 0x3e8
ja 0x1000e089
add eax, 0x40
push eax
mov dword [ebp - 0x60], eax
call fcn.1001985b
mov ebx, eax
test ebx, ebx
pop ecx
je 0x1000e089
push dword [ebp - 0x60]
push 0
push ebx
call fcn.10016e50
mov dword [ebx], 0x22
mov eax, dword [ebp - 0x68]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x9c]
add esp, 0xc
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x10]
push eax
push 2
push dword [edi + 0x14]
mov ecx, esi
call fcn.100123b8
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x1c]
push eax
push 2
push dword [edi + 0x18]
mov ecx, esi
call fcn.100123b8
and dword [ebp - 0x64], 0
mov dword [ebx + 0x18], eax
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1000d9aa
call fcn.10001054
jmp 0x1000d9ac
xor eax, eax
push eax
mov ecx, esi
call fcn.100049ef
cmp eax, 1
jne 0x1000d9c0
or dword [ebx + 4], 3
mov dword [ebp - 0x64], eax
mov eax, dword [ebx + 0x2c]
or dword [ebx + 4], 8
push edi
push ebx
add eax, 0x40
push eax
push 0x22
mov ecx, esi
call fcn.100044e7
test eax, eax
mov dword [ebp - 0x6c], eax
jl 0x1000e084
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x20]
test ecx, ecx
mov esi, 0x1e0
mov dword [ebp - 0x5c], 8
mov dword [ebp - 0x34], 0x280
mov dword [ebp - 0x38], esi
je 0x1000da08
call fcn.10001054
jmp 0x1000da0a
xor eax, eax
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x30]
push eax
call fcn.1000af0b
cmp dword [ebp - 0x64], 1
jne 0x1000da9b
push dword [ebx + 0x10]
mov ecx, dword [ebp - 0x30]
call fcn.1001208b
test eax, eax
je 0x1000da60
movzx ecx, word [eax + 0x20]
test cx, cx
je 0x1000da60
movzx eax, word [eax + 0x22]
test ax, ax
je 0x1000da60
movzx ecx, cx
cmp ecx, dword [ebp - 0x38]
jb 0x1000da56
movzx eax, ax
cmp eax, dword [ebp - 0x34]
jae 0x1000da60
mov dword [ebp - 0x34], 0x280
mov dword [ebp - 0x38], esi
push dword [ebx + 0x1c]
mov ecx, dword [ebp - 0x30]
call fcn.1001208b
test eax, eax
je 0x1000da9b
movzx ecx, word [eax + 0x20]
test cx, cx
je 0x1000da9b
movzx eax, word [eax + 0x22]
test ax, ax
je 0x1000da9b
movzx ecx, cx
cmp ecx, dword [ebp - 0x38]
jb 0x1000da91
movzx eax, ax
cmp eax, dword [ebp - 0x34]
jae 0x1000da9b
mov dword [ebp - 0x34], 0x280
mov dword [ebp - 0x38], esi
push dword [edi + 0x14]
mov ecx, dword [ebp - 0x30]
call fcn.100033bc
cmp eax, 1
je 0x1000dabb
push dword [edi + 0x18]
mov ecx, dword [ebp - 0x30]
call fcn.100033bc
cmp eax, 1
jne 0x1000dac5
mov dword [ebp - 0x34], 0x280
mov dword [ebp - 0x38], esi
xor eax, eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov esi, dword [ebx + 0x28]
add esi, dword [ebx + 0x24]
push 0x1c
push eax
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x58], esi
call fcn.10016e50
push 0x18
lea eax, [ebp - 0xe0]
push 0
push eax
call fcn.10016e50
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0x78], eax
add esp, 0x18
lea eax, [ebp - 0x88]
push eax
call fcn.10009612
test eax, eax
mov dword [ebp - 0x6c], eax
jge 0x1000db25
and dword [ebp - 0x70], 0
and dword [ebp - 0x6c], 0
mov ecx, dword [ebp - 0x30]
call fcn.10004ea2
cmp eax, 1
jne 0x1000dbe0
test byte [ebp - 0x70], 5
je 0x1000db6c
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
cmp eax, ecx
jbe 0x1000db4c
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
test esi, esi
jbe 0x1000db6c
lea eax, [ebx + 0x32]
mov dword [ebp - 0x48], esi
movzx ecx, word [eax - 2]
mov dx, word [eax]
mov word [eax - 2], dx
mov word [eax], cx
add eax, 0x10
dec dword [ebp - 0x48]
jne 0x1000db56
xor ecx, ecx
test esi, esi
jbe 0x1000ddaf
lea esi, [edi + 0x26]
lea eax, [ebx + 0x32]
movzx edx, word [eax - 2]
cmp edx, dword [ebp - 0x34]
jb 0x1000dbd2
movzx edx, word [eax]
cmp edx, dword [ebp - 0x38]
jb 0x1000dbd2
movzx edx, word [eax + 2]
cmp edx, dword [ebp - 0x5c]
jb 0x1000dbd2
mov dx, word [eax - 2]
mov word [esi - 2], dx
mov dx, word [eax]
mov word [esi], dx
mov dx, word [eax + 4]
mov word [esi + 2], dx
mov dx, word [eax + 2]
mov word [esi + 4], dx
movzx edx, byte [eax + 6]
and edx, 1
inc dword [ebp - 0x64]
mov word [esi + 0xe], dx
add esi, 0x14
cmp ecx, dword [ebx + 0x24]
jae 0x1000dbcf
inc dword [edi + 0x1c]
jmp 0x1000dbd2
inc dword [edi + 0x20]
inc ecx
add eax, 0x10
cmp ecx, dword [ebp - 0x58]
jb 0x1000db7c
jmp 0x1000ddaf
mov ecx, dword [ebp - 0x30]
and dword [ebp - 0x3c], 0
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x60], 1
call fcn.10009612
test eax, eax
jl 0x1000dc20
cmp dword [ebp - 0x74], 0
je 0x1000dc20
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0xe0]
push eax
call fcn.10002c4c
test eax, eax
jl 0x1000dc20
cmp byte [ebp - 0xcc], 0
jne 0x1000dc24
and dword [ebp - 0x60], 0
and dword [ebp - 0x48], 0
test esi, esi
jbe 0x1000ddaf
lea eax, [edi + 0x34]
mov dword [ebp - 0x40], eax
lea eax, [edi + 0x2a]
mov dword [ebp - 0x44], eax
lea eax, [edi + 0x28]
mov dword [ebp - 0x54], eax
lea eax, [edi + 0x26]
mov dword [ebp - 0x50], eax
lea eax, [edi + 0x24]
lea esi, [ebx + 0x30]
mov dword [ebp - 0x4c], eax
movzx eax, word [esi]
cmp eax, dword [ebp - 0x34]
jb 0x1000dcb4
movzx eax, word [esi + 2]
cmp eax, dword [ebp - 0x38]
jb 0x1000dcb4
movzx eax, word [esi + 4]
cmp eax, dword [ebp - 0x5c]
jb 0x1000dcb4
mov ax, word [esi]
mov ecx, dword [ebp - 0x4c]
mov word [ecx], ax
mov ax, word [esi + 2]
mov ecx, dword [ebp - 0x50]
mov word [ecx], ax
mov ax, word [esi + 6]
mov ecx, dword [ebp - 0x54]
mov word [ecx], ax
mov ax, word [esi + 4]
mov ecx, dword [ebp - 0x44]
mov word [ecx], ax
movzx eax, byte [esi + 8]
mov ecx, dword [ebp - 0x40]
and eax, 1
inc dword [ebp - 0x3c]
push 0x14
mov word [ecx], ax
pop eax
add dword [ebp - 0x54], eax
add dword [ebp - 0x4c], eax
add dword [ebp - 0x50], eax
add dword [ebp - 0x44], eax
add dword [ebp - 0x40], eax
cmp dword [ebp - 0x60], 1
jne 0x1000dd7a
push 0x9c
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.10016e50
movzx eax, word [esi + 6]
mov ecx, dword [0x10030d08]
mov dword [ebp + 0x4c], eax
movzx eax, word [esi]
mov dword [ebp + 0x44], eax
movzx eax, word [esi + 2]
mov dword [ebp + 0x40], eax
movzx eax, word [esi + 4]
add esp, 0xc
test ecx, ecx
mov word [ebp - 8], 0x9c
mov dword [ebp + 0x3c], eax
je 0x1000dd03
call fcn.10001054
jmp 0x1000dd05
xor eax, eax
push 2
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.100032b8
add esp, 0xc
test eax, eax
jne 0x1000dd7a
movzx eax, word [esi]
cmp eax, dword [ebp - 0x34]
jb 0x1000dd7a
movzx eax, word [esi + 2]
movzx ecx, ax
cmp ecx, dword [ebp - 0x38]
jb 0x1000dd7a
movzx ecx, word [esi + 4]
cmp ecx, dword [ebp - 0x5c]
jb 0x1000dd7a
mov ecx, dword [ebp - 0x4c]
mov word [ecx], ax
mov ax, word [esi]
mov ecx, dword [ebp - 0x50]
mov word [ecx], ax
mov ax, word [esi + 6]
mov ecx, dword [ebp - 0x54]
mov word [ecx], ax
mov ax, word [esi + 4]
mov ecx, dword [ebp - 0x44]
mov word [ecx], ax
movzx eax, byte [esi + 8]
mov ecx, dword [ebp - 0x40]
and eax, 1
inc dword [ebp - 0x3c]
push 0x14
mov word [ecx], ax
pop eax
add dword [ebp - 0x54], eax
add dword [ebp - 0x4c], eax
add dword [ebp - 0x50], eax
add dword [ebp - 0x44], eax
add dword [ebp - 0x40], eax
mov eax, dword [ebx + 0x24]
dec eax
cmp dword [ebp - 0x48], eax
jne 0x1000dd8b
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0x1c], eax
jmp 0x1000dd9d
mov eax, dword [ebp - 0x58]
dec eax
cmp dword [ebp - 0x48], eax
jne 0x1000dd9d
mov eax, dword [ebp - 0x3c]
sub eax, dword [edi + 0x1c]
mov dword [edi + 0x20], eax
inc dword [ebp - 0x48]
mov eax, dword [ebp - 0x48]
add esi, 0x10
cmp eax, dword [ebp - 0x58]
jb 0x1000dc51
cmp word [edi + 0x24], 0
jne 0x1000e084
and dword [ebp - 0x48], 0
lea eax, [ebp - 0x48]
push eax
push str.SoftwareIntelDisplayigfxcuiigfxdev
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000de41
cmp dword [ebp - 0x48], eax
je 0x1000de41
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0
push str.MaxSuppXX
push dword [ebp - 0x48]
mov dword [ebp - 0x60], 4
call esi
test eax, eax
jne 0x1000de10
cmp dword [ebp - 0x3c], 4
jne 0x1000de10
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0
push str.MaxSuppYY
push dword [ebp - 0x48]
call esi
test eax, eax
jne 0x1000de38
cmp dword [ebp - 0x3c], 4
jne 0x1000de38
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x30]
call fcn.10004ea2
cmp eax, 1
jne 0x1000deff
test byte [ebp - 0x70], 5
je 0x1000de86
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
cmp ecx, eax
jbe 0x1000de68
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x58]
test edx, edx
jbe 0x1000de86
lea eax, [ebx + 0x32]
movzx ecx, word [eax - 2]
mov si, word [eax]
mov word [eax - 2], si
mov word [eax], cx
add eax, 0x10
dec edx
jne 0x1000de72
xor ecx, ecx
cmp dword [ebp - 0x58], ecx
jbe 0x1000e084
mov eax, dword [ebp - 0x64]
imul eax, eax, 0x14
lea esi, [eax + edi + 0x26]
lea eax, [ebx + 0x32]
movzx edx, word [eax - 2]
cmp edx, dword [ebp - 0x34]
jb 0x1000def1
movzx edx, word [eax]
cmp edx, dword [ebp - 0x38]
jb 0x1000def1
movzx edx, word [eax + 2]
cmp edx, dword [ebp - 0x5c]
jb 0x1000def1
mov dx, word [eax - 2]
mov word [esi - 2], dx
mov dx, word [eax]
mov word [esi], dx
mov dx, word [eax + 4]
mov word [esi + 2], dx
mov dx, word [eax + 2]
mov word [esi + 4], dx
movzx edx, byte [eax + 6]
and edx, 1
mov word [esi + 0xe], dx
add esi, 0x14
cmp ecx, dword [ebx + 0x24]
jae 0x1000deee
inc dword [edi + 0x1c]
jmp 0x1000def1
inc dword [edi + 0x20]
inc ecx
add eax, 0x10
cmp ecx, dword [ebp - 0x58]
jb 0x1000de9e
jmp 0x1000e084
xor eax, eax
cmp dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x30], eax
jbe 0x1000e084
lea eax, [edi + 0x34]
mov dword [ebp - 0x4c], eax
lea eax, [edi + 0x2a]
mov dword [ebp - 0x50], eax
lea eax, [edi + 0x28]
mov dword [ebp - 0x3c], eax
lea eax, [edi + 0x26]
mov dword [ebp - 0x44], eax
lea eax, [edi + 0x24]
lea esi, [ebx + 0x30]
mov dword [ebp - 0x40], eax
movzx eax, word [esi]
cmp eax, dword [ebp - 0x34]
jb 0x1000df94
movzx eax, word [esi + 2]
cmp eax, dword [ebp - 0x38]
jb 0x1000df94
movzx eax, word [esi + 4]
cmp eax, dword [ebp - 0x5c]
jb 0x1000df94
mov ax, word [esi]
mov ecx, dword [ebp - 0x40]
mov word [ecx], ax
mov ax, word [esi + 2]
mov ecx, dword [ebp - 0x44]
mov word [ecx], ax
mov ax, word [esi + 6]
mov ecx, dword [ebp - 0x3c]
mov word [ecx], ax
mov ax, word [esi + 4]
mov ecx, dword [ebp - 0x50]
mov word [ecx], ax
movzx eax, byte [esi + 8]
mov ecx, dword [ebp - 0x4c]
and eax, 1
inc dword [ebp - 0x54]
push 0x14
mov word [ecx], ax
pop eax
add dword [ebp - 0x3c], eax
add dword [ebp - 0x40], eax
add dword [ebp - 0x44], eax
add dword [ebp - 0x50], eax
add dword [ebp - 0x4c], eax
push 0x9c
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.10016e50
movzx eax, word [esi + 6]
mov ecx, dword [0x10030d08]
mov dword [ebp + 0x4c], eax
movzx eax, word [esi]
mov dword [ebp + 0x44], eax
movzx eax, word [esi + 2]
mov dword [ebp + 0x40], eax
movzx eax, word [esi + 4]
add esp, 0xc
test ecx, ecx
mov word [ebp - 8], 0x9c
mov dword [ebp + 0x3c], eax
je 0x1000dfd9
call fcn.10001054
jmp 0x1000dfdb
xor eax, eax
push 2
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.100032b8
add esp, 0xc
test eax, eax
jne 0x1000e050
movzx eax, word [esi]
cmp eax, dword [ebp - 0x34]
jb 0x1000e050
movzx eax, word [esi + 2]
movzx ecx, ax
cmp ecx, dword [ebp - 0x38]
jb 0x1000e050
movzx ecx, word [esi + 4]
cmp ecx, dword [ebp - 0x5c]
jb 0x1000e050
mov ecx, dword [ebp - 0x40]
mov word [ecx], ax
mov ax, word [esi]
mov ecx, dword [ebp - 0x44]
mov word [ecx], ax
mov ax, word [esi + 6]
mov ecx, dword [ebp - 0x3c]
mov word [ecx], ax
mov ax, word [esi + 4]
mov ecx, dword [ebp - 0x50]
mov word [ecx], ax
movzx eax, byte [esi + 8]
mov ecx, dword [ebp - 0x4c]
and eax, 1
inc dword [ebp - 0x54]
push 0x14
mov word [ecx], ax
pop eax
add dword [ebp - 0x3c], eax
add dword [ebp - 0x40], eax
add dword [ebp - 0x44], eax
add dword [ebp - 0x50], eax
add dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebx + 0x24]
jne 0x1000e060
mov eax, dword [ebp - 0x54]
mov dword [edi + 0x1c], eax
jmp 0x1000e072
mov eax, dword [ebp - 0x58]
dec eax
cmp dword [ebp - 0x30], eax
jne 0x1000e072
mov eax, dword [ebp - 0x54]
sub eax, dword [edi + 0x1c]
mov dword [edi + 0x20], eax
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
add esi, 0x10
cmp eax, dword [ebp - 0x58]
jb 0x1000df31
mov eax, dword [ebp - 0x6c]
jmp 0x1000e08e
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp + 0x70]
pop edi
xor ecx, ebp
pop esi
call fcn.10016eca
add ebp, 0x74
leave
ret 4