Function at 0x6fe330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [0x76cab0]
push esi
lea eax, [ebp - 0x10]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 1
push 0
push ecx
push reloc.ijl15.dll_Ordinal_2
call edi
mov edx, dword [ebp - 0x10]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x6fe36c
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x76cab0]
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push ecx
push reloc.ijl15.dll_Ordinal_2
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6fe65d
mov eax, 4
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [0x80fe3c]
lea edx, [ebp - 4]
cmp eax, 0xf
push edx
lea eax, [ebp - 8]
push 0x83a408
push eax
push 0
push str.ISFULLSCREENMODE
push ecx
jne 0x6fe3cb
call esi
test eax, eax
je 0x6fe3cd
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call esi
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push 0x83a40c
push eax
push 0
push str.WIDTH
push ecx
call esi
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push 0x83a410
push eax
push 0
push str.HEIGHT
push ecx
call esi
mov eax, dword [0x83a408]
test eax, eax
jne 0x6fe420
mov edx, dword [0x83a40c]
mov eax, dword [0x83a410]
mov dword [0x797c28], edx
mov dword [0x797c2c], eax
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push 0x83a414
push edx
push 0
push str.BITPERPIXEL
push eax
call esi
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push 0x83a418
push edx
push 0
push str.DEVICECNT
push eax
call esi
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push 0x83a41c
push edx
push 0
push str.MODECNT
push eax
call esi
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push 0x83a420
push edx
push 0
push str.ISVOODOO
push eax
call esi
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push 0x797c3c
push edx
push 0
push str.SHOWTIPSATSTARTUP
push eax
call esi
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push 0x797c40
push edx
push 0
push str.ISLIGHTMAP
push eax
call esi
test eax, eax
je 0x6fe4d4
mov edi, 1
mov byte [0x835b09], 1
mov dword [0x797c40], edi
jmp 0x6fe4f7
cmp dword [0x797c40], 1
jne 0x6fe4eb
mov edi, 1
mov byte [0x835b09], 1
jmp 0x6fe4f7
mov byte [0x835b09], 0
mov edi, 1
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push 0x83a42c
push edx
push 0
push str.TRILINEARFILTER
push eax
call esi
test eax, eax
je 0x6fe51f
mov dword [0x83a42c], 0
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push 0x83a424
push edx
push 0
push str.SPRITEMODE
push eax
call esi
test eax, eax
je 0x6fe547
mov dword [0x83a424], 2
mov eax, dword [0x83a424]
sub eax, 0
je 0x6fe56a
dec eax
je 0x6fe570
mov dword [0x83a88c], 0
mov dword [0x83a890], 0
jmp 0x6fe576
mov dword [0x83a88c], edi
mov dword [0x83a890], edi
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push 0x83a428
push edx
push 0
push str.TEXTUREMODE
push eax
call esi
test eax, eax
je 0x6fe59e
mov dword [0x83a428], 2
mov eax, dword [0x83a428]
sub eax, 0
je 0x6fe5bf
dec eax
je 0x6fe5b3
mov dword [0x797c30], edi
jmp 0x6fe5c9
mov dword [0x797c30], 2
jmp 0x6fe5c9
mov dword [0x797c30], 4
mov eax, dword [0x797c3c]
cmp eax, edi
je 0x6fe5dc
test eax, eax
je 0x6fe5dc
mov dword [0x797c3c], edi
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push 0x83a3e0
push edx
push 0
push str.DEVICENAME
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], 0x28
call esi
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push 0x83a3c0
push edx
push 0
mov edi, 0x10
push str.GUIDDEVICE
push eax
mov dword [ebp - 8], 3
mov dword [ebp - 4], edi
call esi
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push 0x83a3d0
push edx
push 0
push str.GUIDDRIVER
push eax
mov dword [ebp - 8], 3
mov dword [ebp - 4], edi
call esi
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [0x76cab0]
mov edx, dword [0x83a420]
lea eax, [ebp - 0xc]
mov dword [0x83a884], edx
push eax
push 1
push 0
push ecx
push reloc.ijl15.dll_Ordinal_2
call edi
test eax, eax
jne 0x6fe754
mov ecx, dword [ebp - 0xc]
mov eax, 4
lea edx, [ebp - 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
push edx
lea eax, [ebp - 8]
push 0x83a430
push eax
push 0
push str.SOUNDMODE
push ecx
call esi
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push 0x83a434
push eax
push 0
push str.SPEAKERTYPE
push ecx
call esi
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push 0x83a438
push eax
push 0
push str.DIGITALRATETYPE
push ecx
call esi
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push 0x83a440
push eax
push 0
push str.DIGITALBITSTYPE
push ecx
call esi
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push 0x83a43c
push eax
push 0
push str.NUMSAMPLETYPE
push ecx
call esi
test eax, eax
je 0x6fe722
mov dword [0x83a43c], 2
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push 0x83a448
push eax
push 0
push str.PROVIDERNAME
push ecx
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0x400
call esi
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x83a430]
pop edi
mov dword [0x765d34], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret