Function at 0x6974e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1d34
call fcn.006d70a0
mov byte [ebp - 0xc], 0
push 8
push 0
lea eax, [ebp - 8]
push eax
call fcn.006d6da0
add esp, 0xc
mov dword [ebp - 8], 8
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x18], 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 8
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0x41018
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
je 0x69753e
mov cl, byte [ebp - 4]
mov byte [ebp - 0x18], cl
jmp 0x697545
xor eax, eax
jmp 0x697897
movsx edx, byte [ebp - 0x18]
push edx
push 0x7ad7ec
lea ecx, [ebp - 0x934]
call fcn.00686b30
mov ecx, eax
call fcn.00686b60
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.006d6ef0
add esp, 0xc
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x218]
push edx
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x69788f
mov dword [ebp - 0x420], 0x200
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x418]
push ecx
push 0
push 0
push 0x7ad818
lea ecx, [ebp - 0xd34]
call fcn.00686b30
mov ecx, eax
call fcn.00686b60
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x6977b1
lea eax, [ebp - 0x418]
push eax
push 0x7ad824
lea ecx, [ebp - 0x1134]
call fcn.00686b30
mov ecx, eax
call fcn.00686b60
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.006d6ef0
add esp, 0xc
mov dword [ebp - 0x428], 0
lea edx, [ebp - 0x428]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x218]
push eax
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6977b1
mov dword [ebp - 0x420], 0x100
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
push 0
push 0x7ad850
lea ecx, [ebp - 0x1534]
call fcn.00686b30
mov ecx, eax
call fcn.00686b60
push eax
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x6976ae
mov byte [ebp - 0xc], 1
lea ecx, [ebp - 0x218]
push ecx
call fcn.006e2290
add esp, 4
push eax
mov edx, dword [ebp + 0xc]
add edx, 0x381
push edx
call fcn.006d6e00
add esp, 8
mov dword [ebp - 0x430], 1
mov dword [ebp - 0x42c], 0
mov eax, dword [ebp - 0x42c]
cmp eax, dword [ebp - 0x430]
jge 0x697701
mov ecx, dword [ebp - 0x42c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x418]
push eax
call fcn.00696f80
add esp, 0xc
mov dword [ebp - 0x430], eax
mov ecx, dword [ebp - 0x42c]
add ecx, 1
mov dword [ebp - 0x42c], ecx
jmp 0x6976c2
push 1
mov edx, dword [ebp + 0xc]
add edx, 0x381
push edx
call fcn.00695940
add esp, 8
test eax, eax
jne 0x6977a4
mov eax, dword [ebp + 0xc]
add eax, 0x481
push eax
lea ecx, [ebp - 0x534]
push ecx
call fcn.006d6e00
add esp, 8
push 0x2e
lea edx, [ebp - 0x534]
push edx
call fcn.006d6fe0
add esp, 8
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
je 0x69775e
mov eax, dword [ebp - 0x434]
mov byte [eax], 0
push 0x7ad860
lea ecx, [ebp - 0x534]
push ecx
call fcn.006d6e10
add esp, 8
push 1
lea edx, [ebp - 0x534]
push edx
call fcn.00695940
add esp, 8
test eax, eax
je 0x6977a4
lea eax, [ebp - 0x534]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x381
push ecx
call fcn.006d6e00
add esp, 8
mov byte [ebp - 0xc], 1
mov edx, dword [ebp - 0x428]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 4
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x424]
push ecx
push 0
push 0
push 0x7ad868
lea ecx, [ebp - 0x1934]
call fcn.00686b30
mov ecx, eax
call fcn.00686b60
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x69780e
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x424]
mov dword [eax + 0x695], ecx
jmp 0x69781b
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x695], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x420], 4
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x41c]
push ecx
push 0
push 0
push 0x7ad878
lea ecx, [ebp - 0x1d34]
call fcn.00686b30
mov ecx, eax
call fcn.00686b60
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x697878
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x41c]
mov dword [eax + 0x699], ecx
jmp 0x697885
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x699], 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
and eax, 0xff
mov esp, ebp
pop ebp
ret