Function at 0x4a87c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x6534
call fcn.004e7170
mov byte [ebp - 0xc], 0
push 8
push 0
lea eax, [ebp - 8]
push eax
call fcn.004e6e70
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 0x4a881e
mov cl, byte [ebp - 4]
mov byte [ebp - 0x18], cl
jmp 0x4a8825
xor eax, eax
jmp 0x4a8b77
movsx edx, byte [ebp - 0x18]
push edx
push 0x5caf9c
lea ecx, [ebp - 0x1534]
call fcn.00497e20
mov ecx, eax
call fcn.00497e50
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004e6fc0
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 0x4a8b6f
mov dword [ebp - 0x420], 0x200
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x418]
push ecx
push 0
push 0
push 0x5cafc8
lea ecx, [ebp - 0x2534]
call fcn.00497e20
mov ecx, eax
call fcn.00497e50
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a8a91
lea eax, [ebp - 0x418]
push eax
push 0x5cafd4
lea ecx, [ebp - 0x3534]
call fcn.00497e20
mov ecx, eax
call fcn.00497e50
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.004e6fc0
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 0x4a8a91
mov dword [ebp - 0x420], 0x100
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
push 0
push 0x5cb000
lea ecx, [ebp - 0x4534]
call fcn.00497e20
mov ecx, eax
call fcn.00497e50
push eax
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a898e
mov byte [ebp - 0xc], 1
lea ecx, [ebp - 0x218]
push ecx
call fcn.004f24a0
add esp, 4
push eax
mov edx, dword [ebp + 0xc]
add edx, 0x381
push edx
call fcn.004e6ed0
add esp, 8
mov dword [ebp - 0x430], 1
mov dword [ebp - 0x42c], 0
mov eax, dword [ebp - 0x42c]
cmp eax, dword [ebp - 0x430]
jge 0x4a89e1
mov ecx, dword [ebp - 0x42c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x418]
push eax
call fcn.004a8260
add esp, 0xc
mov dword [ebp - 0x430], eax
mov ecx, dword [ebp - 0x42c]
add ecx, 1
mov dword [ebp - 0x42c], ecx
jmp 0x4a89a2
push 1
mov edx, dword [ebp + 0xc]
add edx, 0x381
push edx
call fcn.004a6c20
add esp, 8
test eax, eax
jne 0x4a8a84
mov eax, dword [ebp + 0xc]
add eax, 0x481
push eax
lea ecx, [ebp - 0x534]
push ecx
call fcn.004e6ed0
add esp, 8
push 0x2e
lea edx, [ebp - 0x534]
push edx
call fcn.004e70b0
add esp, 8
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
je 0x4a8a3e
mov eax, dword [ebp - 0x434]
mov byte [eax], 0
push 0x5cb010
lea ecx, [ebp - 0x534]
push ecx
call fcn.004e6ee0
add esp, 8
push 1
lea edx, [ebp - 0x534]
push edx
call fcn.004a6c20
add esp, 8
test eax, eax
je 0x4a8a84
lea eax, [ebp - 0x534]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x381
push ecx
call fcn.004e6ed0
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 0x5cb018
lea ecx, [ebp - 0x5534]
call fcn.00497e20
mov ecx, eax
call fcn.00497e50
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a8aee
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x424]
mov dword [eax + 0x695], ecx
jmp 0x4a8afb
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 0x5cb028
lea ecx, [ebp - 0x6534]
call fcn.00497e20
mov ecx, eax
call fcn.00497e50
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a8b58
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x41c]
mov dword [eax + 0x699], ecx
jmp 0x4a8b65
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