Function at 0x4c6100
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d5bad
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x634254]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x2c]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ecx
lea eax, [ebp + 0x14]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], SysReAllocString
cmp edi, eax
je 0x4c619f
cmp dword [ebp + 0x28], 8
mov ecx, dword [edi + 0x14]
cmovae eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
cmp eax, ecx
ja 0x4c6300
mov dword [ebp - 0x28], edi
mov edx, edi
cmp ecx, 8
jb 0x4c6180
mov edx, dword [edi]
mov dword [ebp - 0x28], edx
lea esi, [eax + eax]
mov dword [edi + 0x10], eax
push esi
push dword [ebp - 0x10]
push edx
call fcn.00570d00
mov eax, dword [ebp - 0x28]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 8
jb 0x4c61b9
mov eax, dword [eax]
mov esi, dword [ebp + 0x30]
lea edx, [ebp - 0x10]
push edx
push esi
push 0
push eax
push ecx
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c656f
mov eax, dword [ebp - 0x10]
and esi, 0x300
cmp dword [ebx + 0x14], 8
mov ecx, ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], esi
jb 0x4c61f6
mov ecx, dword [ebx]
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push edx
push 0
lea edx, [ebp - 0x1c]
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c656f
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x4c622a
cmp eax, 2
jne 0x4c656f
mov esi, dword [ebp - 0x10]
shr esi, 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
push ecx
lea eax, [esi + 1]
mov dword [ebp - 0x1c], 0
push eax
lea ecx, [ebp - 0x38]
call fcn.004c9af0
cmp dword [ebx + 0x14], 8
jb 0x4c626a
mov ebx, dword [ebx]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x38]
lea eax, [esi + esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push 0
push dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c62c1
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x4c629c
cmp eax, 2
jne 0x4c62c1
test ebx, ebx
je 0x4c6405
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4c6400
test al, 1
jne 0x4c62c1
shr eax, 1
cmp word [ebx + eax*2 - 2], 0
je 0x4c6405
xor esi, esi
test ebx, ebx
je 0x4c6571
mov ecx, dword [ebp - 0x30]
mov eax, ebx
sub ecx, ebx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x4c62f1
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c6610
push ecx
push ebx
call fcn.0056d0c8
add esp, 8
jmp 0x4c6571
cmp eax, 0x7ffffffe
ja 0x4c65c9
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4c6324
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4c635c
mov eax, dword [ebp - 0x18]
mov edx, ecx
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4c633d
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4c635c
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4c65ea
add eax, eax
cmp eax, 0x1000
jb 0x4c6383
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4c65ea
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4c65ce
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x4c639e
test eax, eax
je 0x4c639c
push eax
call fcn.005a1c68
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4c65dc
jmp 0x4c639e
xor ebx, ebx
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], eax
lea esi, [eax + eax]
push esi
push dword [ebp - 0x10]
push ebx
call fcn.00570780
mov ecx, dword [ebp - 0x2c]
xor eax, eax
add esp, 0xc
mov word [esi + ebx], ax
cmp ecx, 8
jb 0x4c63f6
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4c63ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c6610
mov eax, edx
push ecx
push eax
call fcn.0056d0c8
add esp, 8
mov dword [edi], ebx
mov ebx, dword [ebp - 0x14]
jmp 0x4c619c
xor eax, eax
mov word [ebx], ax
mov esi, ebx
lea ecx, [esi + 2]
nop word [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4c6410
mov eax, dword [edi + 0x14]
sub esi, ecx
sar esi, 1
mov dword [ebp - 0x1c], eax
cmp esi, eax
ja 0x4c6459
mov dword [ebp - 0x10], edi
mov ecx, edi
cmp eax, 8
jb 0x4c6438
mov ecx, dword [edi]
mov dword [ebp - 0x10], ecx
mov dword [edi + 0x10], esi
add esi, esi
push esi
push ebx
push ecx
call fcn.00570d00
mov eax, dword [ebp - 0x10]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi], cx
lea esi, [ecx + 1]
jmp 0x4c62c3
cmp esi, 0x7ffffffe
ja 0x4c65ef
mov ecx, esi
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x4c6481
mov eax, SysReAllocString
mov dword [ebp - 0x18], eax
mov eax, 0xfffffffe
jmp 0x4c64bd
mov edx, eax
shr edx, 1
sub dword [ebp - 0x18], edx
cmp eax, dword [ebp - 0x18]
jbe 0x4c649c
mov eax, SysReAllocString
mov dword [ebp - 0x18], eax
mov eax, 0xfffffffe
jmp 0x4c64bd
add eax, edx
cmp ecx, eax
cmovb ecx, eax
mov dword [ebp - 0x18], ecx
lea eax, [ecx + 1]
cmp eax, 0x7fffffff
ja 0x4c65ea
add eax, eax
cmp eax, 0x1000
jb 0x4c64e9
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4c65ea
push ecx
call fcn.005a1c68
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4c65f4
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp - 0x18]
jmp 0x4c6508
test eax, eax
je 0x4c6506
push eax
call fcn.005a1c68
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4c6602
mov ecx, dword [ebp - 0x18]
jmp 0x4c650b
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [edi + 0x10], esi
add esi, esi
push esi
push ebx
push eax
mov dword [edi + 0x14], ecx
call fcn.00570780
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add esp, 0xc
mov word [eax + esi], cx
mov ecx, dword [ebp - 0x1c]
cmp ecx, 8
jb 0x4c6563
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4c6556
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c6610
mov eax, edx
push ecx
push eax
call fcn.0056d0c8
mov eax, dword [ebp - 0x14]
add esp, 8
mov dword [edi], eax
mov esi, 1
jmp 0x4c62c3
xor esi, esi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4c657f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x28]
cmp edx, 8
jb 0x4c65b5
mov ecx, dword [ebp + 0x14]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c65ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c6610
push edx
push ecx
call fcn.0056d0c8
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004072dc
push 0x630328
lea eax, [ebp - 0x1d]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x1e]
push eax
call fcn.0057134b
call fcn.00407541
call fcn.004072dc
push 0x630328
lea eax, [ebp - 0x1e]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x1d]
push eax
call fcn.0057134b
call fcn.0057b201
int3