Function at 0x5f7e40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1d34
call fcn.00637690
mov byte [ebp - 0xc], 0
push 8
push 0
lea eax, [ebp - 8]
push eax
call fcn.00637390
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 0x5f7e9e
mov cl, byte [ebp - 4]
mov byte [ebp - 0x18], cl
jmp 0x5f7ea5
xor eax, eax
jmp 0x5f81f7
movsx edx, byte [ebp - 0x18]
push edx
push 0x6fc1dc
lea ecx, [ebp - 0x934]
call fcn.005e5400
mov ecx, eax
call fcn.005e5430
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.006374e0
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 0x5f81ef
mov dword [ebp - 0x420], 0x200
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x418]
push ecx
push 0
push 0
push 0x6fc208
lea ecx, [ebp - 0xd34]
call fcn.005e5400
mov ecx, eax
call fcn.005e5430
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x5f8111
lea eax, [ebp - 0x418]
push eax
push 0x6fc214
lea ecx, [ebp - 0x1134]
call fcn.005e5400
mov ecx, eax
call fcn.005e5430
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.006374e0
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 0x5f8111
mov dword [ebp - 0x420], 0x100
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
push 0
push 0x6fc240
lea ecx, [ebp - 0x1534]
call fcn.005e5400
mov ecx, eax
call fcn.005e5430
push eax
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x5f800e
mov byte [ebp - 0xc], 1
lea ecx, [ebp - 0x218]
push ecx
call fcn.005f8220
add esp, 4
push eax
mov edx, dword [ebp + 0xc]
add edx, 0x381
push edx
call fcn.006373f0
add esp, 8
mov dword [ebp - 0x430], 1
mov dword [ebp - 0x42c], 0
mov eax, dword [ebp - 0x42c]
cmp eax, dword [ebp - 0x430]
jge 0x5f8061
mov ecx, dword [ebp - 0x42c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x418]
push eax
call fcn.005f78e0
add esp, 0xc
mov dword [ebp - 0x430], eax
mov ecx, dword [ebp - 0x42c]
add ecx, 1
mov dword [ebp - 0x42c], ecx
jmp 0x5f8022
push 1
mov edx, dword [ebp + 0xc]
add edx, 0x381
push edx
call fcn.005f62a0
add esp, 8
test eax, eax
jne 0x5f8104
mov eax, dword [ebp + 0xc]
add eax, 0x481
push eax
lea ecx, [ebp - 0x534]
push ecx
call fcn.006373f0
add esp, 8
push 0x2e
lea edx, [ebp - 0x534]
push edx
call fcn.006375d0
add esp, 8
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
je 0x5f80be
mov eax, dword [ebp - 0x434]
mov byte [eax], 0
push 0x6fc250
lea ecx, [ebp - 0x534]
push ecx
call fcn.00637400
add esp, 8
push 1
lea edx, [ebp - 0x534]
push edx
call fcn.005f62a0
add esp, 8
test eax, eax
je 0x5f8104
lea eax, [ebp - 0x534]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x381
push ecx
call fcn.006373f0
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 0x6fc258
lea ecx, [ebp - 0x1934]
call fcn.005e5400
mov ecx, eax
call fcn.005e5430
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x5f816e
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x424]
mov dword [eax + 0x695], ecx
jmp 0x5f817b
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 0x6fc268
lea ecx, [ebp - 0x1d34]
call fcn.005e5400
mov ecx, eax
call fcn.005e5430
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x5f81d8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x41c]
mov dword [eax + 0x699], ecx
jmp 0x5f81e5
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