Function at 0x4e9e86
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576ff0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x83c
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x82c], 0
mov dword [ebp - 4], 3
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 1
push 0x400
push 0
lea eax, [ebp - 0x820]
push eax
call fcn.005370b0
add esp, 0xc
mov dword [ebp - 0x10], 0
push 0x5ce710
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00537cf5
add esp, 8
mov dword [ebp - 0x830], eax
xor edx, edx
cmp dword [ebp - 0x830], 0
sete dl
and edx, 0xff
test edx, edx
je 0x4e9f5c
lea eax, [ebp - 0x10]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x824], esp
lea edx, [ebp + 0x10]
push edx
call fcn.0054d095
mov dword [ebp - 0x83c], eax
mov ecx, dword [ebp - 0x838]
call fcn.004e99fe
mov dword [ebp - 0x840], eax
mov eax, dword [ebp - 0x840]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], 1
jmp 0x4e9fe5
lea ecx, [ebp - 0x10]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x828], esp
lea edx, [ebp + 0x10]
push edx
call fcn.0054d095
mov dword [ebp - 0x844], eax
mov ecx, dword [ebp - 0x838]
call fcn.004e99fe
mov dword [ebp - 0x848], eax
mov eax, dword [ebp - 0x848]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
je 0x4e9fe5
cmp dword [ebp - 0x14], 2
je 0x4e9fe5
lea ecx, [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0054d095
mov edx, dword [ebp - 0x82c]
or edx, 1
mov dword [ebp - 0x82c], edx
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.0054d328
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.0054d328
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.0054d328
mov eax, dword [ebp + 8]
jmp 0x4ea152
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x838]
mov edx, dword [ecx + 0x40060]
mov dword [ebp - 0x834], edx
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x834]
push ecx
mov edx, dword [ebp - 0x838]
mov eax, dword [edx + 0x40050]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x838]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x838]
cmp dword [edx + 4], 0
je 0x4ea07e
lea eax, [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.0054d095
mov ecx, dword [ebp - 0x82c]
or ecx, 1
mov dword [ebp - 0x82c], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.0054d328
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.0054d328
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.0054d328
mov eax, dword [ebp + 8]
jmp 0x4ea152
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x820]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x838]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x838]
cmp dword [edx + 4], 0
je 0x4ea0b9
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 0
jne 0x4ea10d
lea ecx, [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0054d095
mov edx, dword [ebp - 0x82c]
or edx, 1
mov dword [ebp - 0x82c], edx
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.0054d328
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.0054d328
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.0054d328
mov eax, dword [ebp + 8]
jmp 0x4ea152
lea eax, [ebp - 0x820]
push eax
mov ecx, dword [ebp + 8]
call fcn.0054d39c
mov ecx, dword [ebp - 0x82c]
or ecx, 1
mov dword [ebp - 0x82c], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.0054d328
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.0054d328
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.0054d328
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10