Function at 0x40f9a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afe1b
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x4e5114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x82c], 0
mov eax, dword [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x828]
call fcn.004020b0
mov dword [ebp - 4], 0
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x844], 0
mov dword [ebp - 0x840], 0
mov dword [ebp - 0x83c], 0
mov dword [ebp - 0x830], 0
lea ecx, [ebp - 0x834]
push ecx
push 0x20119
push 0
mov edx, dword [ebp + 0x10]
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x830], eax
cmp dword [ebp - 0x830], 0
je 0x40fa81
lea eax, [ebp - 0x828]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401c10
mov ecx, dword [ebp - 0x82c]
or ecx, 1
mov dword [ebp - 0x82c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.004022e0
mov eax, dword [ebp + 8]
jmp 0x40fd46
lea edx, [ebp - 0x844]
push edx
push 0x20119
push 0
push 0x4d1e4c
mov eax, dword [ebp - 0x834]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x830], eax
cmp dword [ebp - 0x830], 0
je 0x40faf5
mov ecx, dword [ebp - 0x834]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x828]
push edx
mov ecx, dword [ebp + 8]
call fcn.00401c10
mov eax, dword [ebp - 0x82c]
or eax, 1
mov dword [ebp - 0x82c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.004022e0
mov eax, dword [ebp + 8]
jmp 0x40fd46
lea ecx, [ebp - 0x840]
push ecx
push 0x20119
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x844]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x830], eax
cmp dword [ebp - 0x830], 0
je 0x40fb75
mov ecx, dword [ebp - 0x844]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x834]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x828]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401c10
mov ecx, dword [ebp - 0x82c]
or ecx, 1
mov dword [ebp - 0x82c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.004022e0
mov eax, dword [ebp + 8]
jmp 0x40fd46
lea edx, [ebp - 0x83c]
push edx
push 0x20119
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x840]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x830], eax
cmp dword [ebp - 0x830], 0
je 0x40fc02
mov edx, dword [ebp - 0x83c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x840]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x834]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x828]
push edx
mov ecx, dword [ebp + 8]
call fcn.00401c10
mov eax, dword [ebp - 0x82c]
or eax, 1
mov dword [ebp - 0x82c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.004022e0
mov eax, dword [ebp + 8]
jmp 0x40fd46
push 0x800
push 0
lea ecx, [ebp - 0x810]
push ecx
call fcn.0048e340
add esp, 0xc
mov dword [ebp - 0x84c], 0x400
lea edx, [ebp - 0x84c]
push edx
lea eax, [ebp - 0x810]
push eax
push 0
push 0
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x83c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x83c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x840]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x844]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x834]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x838], ecx
mov edx, dword [ebp - 0x838]
add edx, 2
mov dword [ebp - 0x850], edx
mov eax, dword [ebp - 0x838]
mov cx, word [eax]
mov word [ebp - 0x846], cx
add dword [ebp - 0x838], 2
cmp word [ebp - 0x846], 0
jne 0x40fc94
mov edx, dword [ebp - 0x838]
sub edx, dword [ebp - 0x850]
sar edx, 1
mov dword [ebp - 0x854], edx
mov eax, dword [ebp - 0x854]
mov dword [ebp - 0x858], eax
cmp dword [ebp - 0x858], 0
jne 0x40fd13
lea ecx, [ebp - 0x828]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401c10
mov edx, dword [ebp - 0x82c]
or edx, 1
mov dword [ebp - 0x82c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.004022e0
mov eax, dword [ebp + 8]
jmp 0x40fd46
lea eax, [ebp - 0x810]
push eax
mov ecx, dword [ebp + 8]
call fcn.004020b0
mov ecx, dword [ebp - 0x82c]
or ecx, 1
mov dword [ebp - 0x82c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.004022e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b588
mov esp, ebp
pop ebp
ret