Function at 0x4c0160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0f82
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x61ce74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2d4], 0
mov eax, dword [0x62a16c]
test al, 1
jne 0x4c01d2
or eax, 1
mov dword [0x62a164], 0
mov dword [0x62a16c], eax
xor eax, eax
push 0x5adb10
mov dword [0x62a168], 7
mov word [0x62a154], ax
call fcn.0053d46e
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0
mov word [ebp - 0x2b4], ax
xor esi, esi
mov dword [ebp - 0x2d0], eax
mov edi, 7
lea eax, [ebp - 0x2cc]
mov dword [ebp - 0x2a4], esi
push eax
mov dword [ebp - 0x2a0], edi
mov dword [ebp - 0x2d4], 1
call fcn.004c6050
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4c021c
mov eax, dword [eax]
lea ecx, [ebp - 0x2d0]
push ecx
push 0x20019
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x2b8]
mov ebx, eax
cmp edx, 8
jb 0x4c0278
mov ecx, dword [ebp - 0x2cc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c026e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c0433
push edx
push ecx
call fcn.0053d0af
add esp, 8
xor eax, eax
mov dword [ebp - 0x2bc], esi
mov dword [ebp - 0x2b8], edi
mov word [ebp - 0x2cc], ax
test ebx, ebx
jne 0x4c032a
push 0x20a
mov dword [ebp - 0x2dc], eax
lea eax, [ebp - 0x29c]
push ebx
push eax
mov dword [ebp - 0x2d8], 0x208
call fcn.00540d70
add esp, 0xc
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x2dc]
push eax
push ebx
push str.infoGUID
push dword [ebp - 0x2d0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c031e
lea ecx, [ebp - 0x29c]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c02f0
sub ecx, edx
lea eax, [ebp - 0x29c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00439df0
mov edi, dword [ebp - 0x2a0]
mov esi, dword [ebp - 0x2a4]
push dword [ebp - 0x2d0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x62a168]
cmp ecx, 8
jb 0x4c0369
mov eax, dword [0x62a154]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4c035f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c0433
mov eax, edx
push ecx
push eax
call fcn.0053d0af
add esp, 8
mov eax, dword [ebp - 0x2b4]
mov dword [0x62a154], eax
mov eax, dword [ebp - 0x2b0]
mov dword [0x62a158], eax
mov eax, dword [ebp - 0x2ac]
mov dword [0x62a15c], eax
mov eax, dword [ebp - 0x2a8]
mov dword [0x62a160], eax
mov dword [0x62a164], esi
mov dword [0x62a168], edi
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x4c0412
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x4c0412
push 0x80
lea eax, [ebp - 0x90]
push esi
push eax
call fcn.00540d70
add esp, 0xc
lea eax, [ebp - 0x90]
push 0x40
push eax
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea ecx, [ebp - 0x90]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c03f1
sub ecx, edx
sar ecx, 1
push ecx
lea ecx, [ebp - 0x90]
push ecx
mov ecx, 0x62a154
call fcn.00439df0
mov eax, 0x62a154
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053d079
mov esp, ebp
pop ebp
ret
call fcn.0054b0c3
int3