Function at 0x4c1490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x647595
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6d3438]
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 ecx, dword [ebp + 0x10]
xor esi, esi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], esi
jb 0x4c14dd
mov eax, dword [eax]
mov edi, dword [ebp + 0x14]
lea ecx, [ebp - 0x2c]
push ecx
push edi
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c150d
mov esi, dword [ebp - 0x2c]
and edi, 0x300
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], edi
mov byte [ebp - 4], 0
test eax, eax
je 0x4c151c
xor bl, bl
jmp 0x4c16a9
xor eax, eax
mov dword [ebp - 0x28], 0
push 0x108
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0042ea70
mov edx, eax
mov dword [ebp - 0x18], 0x104
xor eax, eax
mov dword [ebp - 0x14], 0x107
mov ecx, 0x82
mov edi, edx
rep stosd dword es:[edi], eax
mov word [edx + 0x208], ax
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov byte [ebp - 4], 2
cmovae edi, edx
cmp dword [ebx + 0x14], 8
jb 0x4c157f
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x18]
add eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push edi
lea eax, [ebp - 0x30]
push eax
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c15c4
mov eax, dword [ebp - 0x30]
cmp eax, 1
je 0x4c15ab
cmp eax, 2
jne 0x4c15c4
test edi, edi
je 0x4c1608
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4c1603
test al, 1
jne 0x4c15c4
shr eax, 1
cmp word [edi + eax*2 - 2], 0
je 0x4c1608
xor bl, bl
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4c1695
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c168b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c16d2
jmp 0x4c168b
xor eax, eax
mov word [edi], ax
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
cmovae edi, dword [ebp - 0x28]
test ebx, ebx
je 0x4c164a
mov eax, ebx
xor edx, edx
mov ecx, edi
test eax, eax
je 0x4c1640
cmp word [edi], dx
je 0x4c163e
nop dword [eax]
cmp eax, 1
je 0x4c1640
add ecx, 2
dec eax
cmp word [ecx], dx
jne 0x4c1630
mov edx, ecx
test edx, edx
je 0x4c164a
sub edx, edi
sar edx, 1
jmp 0x4c164d
or edx, 0xffffffff
cmp ebx, edx
jb 0x4c16d7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], edx
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax + edx*2], cx
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
cmp ecx, eax
je 0x4c1684
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0042e850
mov bl, 1
jmp 0x4c15c6
push edx
push ecx
call fcn.00608415
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x4c16b4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
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.00608185
mov esp, ebp
pop ebp
ret
call fcn.0060e0d0
call fcn.0042b9a0
int3