Function at 0x4c7930
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d5c95
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x634254]
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 eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x64], eax
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x58]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x60], SysStringLen
call fcn.004c6a70
add esp, 4
cmp dword [ebx + 0x14], 8
jb 0x4c79a9
mov ebx, dword [ebx]
mov dword [ebp - 0x5c], ebx
mov esi, ebx
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4c79d0
sub esi, ecx
mov edi, 0xa
sar esi, 1
cmp esi, 7
ja 0x4c7a08
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x28]
add esi, esi
push esi
push ebx
push eax
call fcn.00570d00
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x28], ax
jmp 0x4c7aac
cmp esi, 0x7ffffffe
ja 0x4c7d25
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x4c7a2d
mov ebx, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4c7a49
cmp ebx, edi
cmovb ebx, edi
lea eax, [ebx + 1]
cmp eax, 0x7fffffff
ja 0x4c7d20
add eax, eax
cmp eax, 0x1000
jb 0x4c7a70
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4c7d20
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4c7d2a
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4c7a8b
test eax, eax
je 0x4c7a89
push eax
call fcn.005a1c68
mov edi, eax
add esp, 4
test edi, edi
je 0x4c7d38
jmp 0x4c7a8b
xor edi, edi
mov dword [ebp - 0x18], esi
add esi, esi
push esi
push dword [ebp - 0x5c]
mov dword [ebp - 0x14], ebx
push edi
call fcn.00570780
add esp, 0xc
mov dword [ebp - 0x28], edi
xor eax, eax
mov word [edi + esi], ax
lea edi, [eax + 0xa]
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x40], 0
cmovae ebx, dword [ebp - 0x58]
mov esi, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x2c], 7
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4c7ad1
sub esi, ecx
sar esi, 1
cmp esi, 7
ja 0x4c7b0a
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x40]
add esi, esi
push esi
push ebx
push eax
call fcn.00570d00
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x40], ax
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x40]
jmp 0x4c7bac
cmp esi, 0x7ffffffe
ja 0x4c7d46
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x4c7b2f
mov ebx, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4c7b4c
cmp ebx, 0xa
cmovb ebx, edi
lea eax, [ebx + 1]
cmp eax, 0x7fffffff
ja 0x4c7d20
add eax, eax
cmp eax, 0x1000
jb 0x4c7b73
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4c7d20
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4c7d4b
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4c7b8e
test eax, eax
je 0x4c7b8c
push eax
call fcn.005a1c68
mov edi, eax
add esp, 4
test edi, edi
je 0x4c7d59
jmp 0x4c7b8e
xor edi, edi
mov dword [ebp - 0x30], esi
add esi, esi
push esi
push dword [ebp - 0x5c]
mov dword [ebp - 0x2c], ebx
push edi
call fcn.00570780
add esp, 0xc
mov dword [ebp - 0x40], edi
xor eax, eax
mov word [edi + esi], ax
mov ecx, dword [ebp - 0x64]
cmp ebx, 8
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5c], 0
mov dword [ecx], eax
lea ecx, [ebp - 0x5c]
push ecx
push 0x20019
lea eax, [ebp - 0x40]
push 0
cmovae eax, edi
push eax
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c7c2e
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x60]
mov esi, dword [ebp - 0x5c]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push dword [ebp - 0x64]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x60], 4
push ecx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c7c23
cmp dword [ebp - 0x64], 4
jne 0x4c7c23
test esi, esi
je 0x4c7c1c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x4c7c30
test esi, esi
je 0x4c7c2e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4c7c6a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c7c60
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7d67
push edx
push ecx
call fcn.0056d0c8
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x4c7cb8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c7cae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7d67
push edx
push ecx
call fcn.0056d0c8
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x4c7d02
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c7cf8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7d67
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d855
mov esp, ebp
pop ebp
ret
call fcn.00407541
call fcn.004072dc
push 0x630328
lea eax, [ebp - 0x65]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x66]
push eax
call fcn.0057134b
call fcn.004072dc
push 0x630328
lea eax, [ebp - 0x67]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x68]
push eax
call fcn.0057134b
call fcn.0057b201
int3