Function at 0x40a080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x457880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0xb8]
push eax
xor ebx, ebx
push 0x20019
push ebx
push str.SoftwareNVIDIA_CorporationGlobal_nViewKeystone
mov dword [ebp - 0xb8], ebx
call fcn.00403110
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a7be
push 0x4e
lea edx, [ebp - 0x56]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x58], cx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x4e
lea ecx, [ebp - 0xa6]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0xa8], ax
call sub.MSVCR90.dll_memset
fild dword [esi + 0x2ba48]
mov edx, dword [esi + 0x2be40]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
fstp dword [ebp - 0xcc]
fild dword [esi + 0x2ba4c]
mov eax, 1
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xd4], eax
mov eax, dword [esi + 0x2be3c]
fstp dword [ebp - 0xd0]
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xc4], edx
lea edx, [ebp - 0xdc]
push edx
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xc0]
push eax
push ebx
push str.KeystoneStyle
push ecx
mov dword [ebp - 0xb0], 4
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0xd8], ebx
call edi
test eax, eax
jne 0x40a1ec
mov eax, dword [ebp - 0xdc]
and eax, 0xf
mov dword [esi + 0x2be3c], eax
cmp eax, 1
jne 0x40a1f2
mov edx, dword [0x457d84]
lea eax, [esi + 0x2be48]
push eax
lea edi, [esi + 0x2be44]
push edx
call fcn.0040a970
add esp, 8
test eax, eax
jne 0x40a1c0
mov dword [edi], ebx
mov dword [esi + 0x2be48], ebx
jmp loc.004c4fb0
mov dword [esi + 0x2be3c], ebx
mov eax, dword [ebp - 0xac]
cmp dword [esi + 0x2be3c], eax
jne 0x40a21e
mov eax, dword [esi + 0x2be40]
cmp eax, ebx
jne 0x40a216
cmp dword [ebp - 0xc4], ebx
jne 0x40a21e
cmp eax, ebx
je 0x40a28e
cmp dword [ebp - 0xc4], ebx
jne 0x40a28e
mov eax, dword [esi + 0x2ba74]
cmp eax, ebx
je 0x40a236
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x2ba74], ebx
mov eax, dword [esi + 0x2ba78]
cmp eax, ebx
je 0x40a24e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x2ba78], ebx
mov eax, dword [esi + 0x2b820]
push ebx
push ebx
push ebx
push eax
call fcn.00425870
add esp, 0x10
mov ecx, 0x457da0
mov dword [esi + 0x2b7a8], ebx
call fcn.00409480
mov eax, dword [0x4835c0]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, 0x457da0
call fcn.00402160
mov ecx, esi
call fcn.00403c90
lea eax, [ebp - 0xb0]
push eax
mov eax, dword [ebp - 0xb8]
lea ecx, [esi + 0x2be28]
push ecx
lea edx, [ebp - 0xc0]
push edx
push ebx
push str.KeystoneDisableErrCheck
push eax
mov dword [ebp - 0xb0], 4
call edi
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, dword [ebp - 0xb8]
lea edx, [ebp - 0xd8]
push edx
lea eax, [ebp - 0xc0]
push eax
push ebx
push str.VSpanAtSave
push ecx
mov dword [ebp - 0xb0], 4
call edi
cmp dword [esi + 0x2be3c], 1
jne 0x40a2fd
mov dword [ebp - 0xd4], 2
mov dword [ebp - 0xc4], ebx
cmp dword [ebp - 0xd4], ebx
jbe 0x40a4f4
nop
xor edi, edi
mov eax, 1
push edi
cmp dword [esi + 0x2be3c], eax
jne 0x40a360
cmp dword [ebp - 0xc4], ebx
lea ebx, [ebp - 0xa8]
jne 0x40a345
mov dword [ebp - 0xb4], 4
mov dword [ebp - 0xbc], eax
push str.KeystoneDirectA_d
jmp 0x40a36b
mov dword [ebp - 0xb4], 8
mov dword [ebp - 0xbc], 2
push str.KeystoneDirectB_d
jmp 0x40a36b
push str.KeystoneDirect_d
lea ebx, [ebp - 0xa8]
mov eax, 0x50
call fcn.004031d0
add esp, 8
lea edx, [ebp - 0xb0]
push edx
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0xc0]
push ecx
push 0
lea edx, [ebp - 0xa8]
push edx
push eax
mov dword [ebp - 0xb0], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a4c9
cmp edi, 4
jae 0x40a3e8
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.MSVCR90.dll__wtof]
fstp dword [ebp - 0xac]
mov edx, dword [ebp - 0xb4]
fld dword [ebp - 0xac]
lea eax, [edx + edi + 0x3a38]
lea eax, [eax + eax*2]
fstp dword [esi + eax*4]
add esp, 4
jmp 0x40a4c9
cmp edi, 8
jae 0x40a41e
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.MSVCR90.dll__wtof]
fstp dword [ebp - 0xac]
mov edx, dword [ebp - 0xb4]
fld dword [ebp - 0xac]
lea eax, [edx + edi]
lea eax, [eax + eax*2]
fstp dword [esi + eax*4 + 0x2ba74]
add esp, 4
jmp 0x40a4c9
jne 0x40a43f
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.MSVCR90.dll__wtof]
mov edx, dword [ebp - 0xbc]
fstp dword [esi + edx*4 + 0x2bbc4]
add esp, 4
jmp 0x40a4c9
cmp edi, 9
jne 0x40a460
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.MSVCR90.dll__wtof]
mov ecx, dword [ebp - 0xbc]
fstp dword [esi + ecx*4 + 0x2bbd0]
add esp, 4
jmp 0x40a4c9
cmp edi, 0xa
jne 0x40a493
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.MSVCR90.dll__wtof]
fstp dword [ebp - 0xcc]
fld dword [0x451728]
add esp, 4
fcom dword [ebp - 0xcc]
fnstsw ax
test ah, 1
jne 0x40a4c7
fstp dword [ebp - 0xcc]
jmp 0x40a4c9
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.MSVCR90.dll__wtof]
fstp dword [ebp - 0xd0]
fld dword [ebp - 0xd0]
add esp, 4
fcomp qword [0x451720]
fnstsw ax
test ah, 0x41
jp 0x40a4c9
fld dword [0x451718]
fstp dword [ebp - 0xcc]
jmp 0x40a4c9
fstp st(0)
inc edi
xor ebx, ebx
cmp edi, 0xd
jb 0x40a312
mov eax, dword [ebp - 0xc4]
inc eax
mov dword [ebp - 0xc4], eax
cmp eax, dword [ebp - 0xd4]
jb 0x40a310
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, dword [ebp - 0xb8]
lea edx, [ebp - 0xc8]
push edx
lea eax, [ebp - 0xc0]
push eax
push ebx
push str.LockCorners
push ecx
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xb0], 4
call edi
test eax, eax
jne 0x40a53a
mov edx, dword [ebp - 0xc8]
mov dword [0x457d88], edx
jmp 0x40a544
mov dword [0x457d88], 1
lea eax, [ebp - 0xb0]
push eax
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0xc8]
push ecx
lea edx, [ebp - 0xc0]
push edx
push ebx
push str.Filter
push eax
mov dword [ebp - 0xb0], 4
call edi
test eax, eax
jne 0x40a582
mov ecx, dword [ebp - 0xc8]
mov dword [esi + 0x2ba58], ecx
lea edx, [ebp - 0xb0]
push edx
mov edx, dword [ebp - 0xb8]
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xc0]
push ecx
push ebx
push str.QuickZoomFactor
push edx
mov dword [ebp - 0xb0], 4
call edi
test eax, eax
jne 0x40a5ca
fild dword [ebp - 0xc8]
fdiv qword [0x451710]
fld1
fsubrp st(1)
fstp dword [esi + 0x2be34]
mov eax, dword [ebp - 0xb8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
fild dword [esi + 0x2ba48]
cmp dword [esi + 0x2be3c], 1
fld dword [ebp - 0xcc]
fld st(0)
fdivp st(2)
fxch st(1)
fst dword [ebp - 0xbc]
fild dword [esi + 0x2ba4c]
fld dword [ebp - 0xd0]
fld st(0)
fdivp st(2)
fxch st(1)
fst dword [ebp - 0xb4]
je 0x40a6a5
fstp st(3)
fstp st(1)
fstp st(1)
fstp st(0)
fld dword [esi + 0x2baa0]
fld dword [ebp - 0xbc]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esi + 0x2baa0]
fld dword [esi + 0x2baa4]
fld dword [ebp - 0xb4]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esi + 0x2baa4]
fld dword [esi + 0x2baac]
fmul st(2)
fstp dword [esi + 0x2baac]
fld dword [esi + 0x2bab0]
fmul st(1)
fstp dword [esi + 0x2bab0]
fld dword [esi + 0x2bab8]
fmul st(2)
fstp dword [esi + 0x2bab8]
fld dword [esi + 0x2babc]
fmul st(1)
fstp dword [esi + 0x2babc]
fld dword [esi + 0x2bac4]
fmulp st(2)
fxch st(1)
fstp dword [esi + 0x2bac4]
fmul dword [esi + 0x2bac8]
fstp dword [esi + 0x2bac8]
jmp 0x40a7b7
mov eax, dword [esi + 0x2be40]
cmp dword [ebp - 0xd8], ebx
je 0x40a7ce
cmp eax, ebx
je 0x40a8a0
fstp st(3)
fstp st(1)
fstp st(1)
fstp st(0)
fld dword [esi + 0x2bad0]
fld dword [ebp - 0xbc]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esi + 0x2bad0]
fld dword [ebp - 0xb4]
fld st(0)
fmul dword [esi + 0x2bad4]
fstp dword [esi + 0x2bad4]
fld dword [esi + 0x2badc]
fmul st(2)
fstp dword [esi + 0x2badc]
fld dword [esi + 0x2bae0]
fmul st(1)
fstp dword [esi + 0x2bae0]
fld st(1)
fmul dword [esi + 0x2bae8]
fstp dword [esi + 0x2bae8]
fld st(0)
fmul dword [esi + 0x2baec]
fstp dword [esi + 0x2baec]
fld dword [esi + 0x2baf4]
fmul st(2)
fstp dword [esi + 0x2baf4]
fld dword [esi + 0x2baf8]
fmul st(1)
fstp dword [esi + 0x2baf8]
fld st(1)
fmul dword [esi + 0x2bb00]
fstp dword [esi + 0x2bb00]
fld dword [esi + 0x2bb04]
fmul st(1)
fstp dword [esi + 0x2bb04]
fld dword [esi + 0x2bb0c]
fmul st(2)
fstp dword [esi + 0x2bb0c]
fld st(0)
fmul dword [esi + 0x2bb10]
fstp dword [esi + 0x2bb10]
fld st(1)
fmul dword [esi + 0x2bb18]
fstp dword [esi + 0x2bb18]
fld dword [esi + 0x2bb1c]
fmul st(1)
fstp dword [esi + 0x2bb1c]
fld dword [esi + 0x2bb24]
fmulp st(2)
fxch st(1)
fstp dword [esi + 0x2bb24]
fmul dword [esi + 0x2bb28]
fstp dword [esi + 0x2bb28]
mov ecx, esi
call fcn.00409a50
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0044d16e
mov esp, ebp
pop ebp
ret
cmp eax, ebx
je 0x40a6bf
fxch st(3)
call fcn.0044dbf0
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xac], eax
fild dword [ebp - 0xac]
fstp dword [ebp - 0xac]
fld dword [esi + 0x2bb00]
fld dword [ebp - 0xac]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [esi + 0x2bb00]
fld dword [esi + 0x2bb0c]
fsub st(1)
fstp dword [esi + 0x2bb0c]
fld dword [esi + 0x2bb18]
fsub st(1)
fstp dword [esi + 0x2bb18]
fsubr dword [esi + 0x2bb24]
fstp dword [esi + 0x2bb24]
call fcn.0044dbf0
mov dword [ebp - 0xac], eax
fild dword [ebp - 0xac]
fstp dword [ebp - 0xac]
fld dword [ebp - 0xac]
fld st(0)
fadd dword [esi + 0x2bb04]
fstp dword [esi + 0x2bb04]
fld st(0)
fadd dword [esi + 0x2bb10]
fstp dword [esi + 0x2bb10]
fld st(0)
fadd dword [esi + 0x2bb1c]
fstp dword [esi + 0x2bb1c]
fadd dword [esi + 0x2bb28]
fstp dword [esi + 0x2bb28]
fadd st(0), st(0)
fstp dword [ebp - 0xbc]
fmul qword [0x4516e0]
fstp dword [ebp - 0xb4]
jmp 0x40a6c7
fxch st(3)
call fcn.0044dbf0
mov dword [ebp - 0xac], eax
fild dword [ebp - 0xac]
fstp dword [ebp - 0xac]
fld dword [ebp - 0xac]
fld st(0)
fadd dword [esi + 0x2bb00]
fstp dword [esi + 0x2bb00]
fld st(0)
fadd dword [esi + 0x2bb0c]
fstp dword [esi + 0x2bb0c]
fld st(0)
fadd dword [esi + 0x2bb18]
fstp dword [esi + 0x2bb18]
fadd dword [esi + 0x2bb24]
fstp dword [esi + 0x2bb24]
call fcn.0044dbf0
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xac], eax
fild dword [ebp - 0xac]
fstp dword [ebp - 0xac]
fld dword [esi + 0x2bb04]
fld dword [ebp - 0xac]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [esi + 0x2bb04]
fld dword [esi + 0x2bb10]
fsub st(1)
fstp dword [esi + 0x2bb10]
fld dword [esi + 0x2bb1c]
fsub st(1)
fstp dword [esi + 0x2bb1c]
fsubr dword [esi + 0x2bb28]
fstp dword [esi + 0x2bb28]
fmul qword [0x4516e0]
fstp dword [ebp - 0xbc]
fadd st(0), st(0)
fstp dword [ebp - 0xb4]
jmp 0x40a6c7