Function at 0x4c7820
Capabilities:
Get common file path
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc540
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6a8
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push 0x100
mov dword [ebp - 4], esi
mov ebx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x30], 0x200
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x14], esi
call fcn.004f266a
add esp, 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x3b4]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [ebp - 0x3b4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov dword [ebp - 0x28], edx
cmp eax, edx
jge 0x4c78b3
mov cl, byte [ebp + eax - 0x3b4]
cmp cl, 0x5c
mov byte [ebp + eax - 0x74], cl
je 0x4c78b3
inc eax
jmp 0x4c789c
mov byte [ebp + eax - 0x73], 0
lea edi, [ebp - 0x74]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x6b4]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x6b4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Program_Files
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x24]
mov ecx, edx
push eax
push 0xf003f
and ecx, 3
push 0
push ebx
push closesocket
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c7c76
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov eax, 0x100
mov byte [esi], 0
mov edx, dword [ebp - 0x24]
push eax
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, eax
cmp ebx, 0x103
mov dword [ebp - 0x34], ebx
je 0x4c7c12
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jle 0x4c7c12
mov byte [ebp - 0x4b4], al
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths
lea eax, [ebp - 0x4b4]
push str._s_s
push eax
call fcn.004f175f
add esp, 0x10
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x4b4]
push ecx
push 0x20019
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c7c08
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x274]
push eax
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x2c]
push ecx
push edx
push 0
push 0
push eax
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x30], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c7c08
lea edi, [ebp - 0x274]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov al, byte [ebp - 0x274]
mov byte [ebp - 4], 1
not ecx
dec ecx
cmp al, 0x22
mov edi, ecx
jne 0x4c7a26
xor eax, eax
cmp eax, edi
jge 0x4c7a1e
mov cl, byte [ebp + eax - 0x273]
mov byte [ebp + eax - 0x274], cl
inc eax
jmp 0x4c7a09
mov byte [ebp + edi - 0x276], 0
cmp byte [ebp - 0x274], 0x25
jne 0x4c7b95
cmp byte [ebp - 0x273], 0x50
jne 0x4c7a6c
lea eax, [edi + 1]
test eax, eax
jle 0x4c7a54
mov dl, byte [ebp + eax - 0x274]
mov byte [ebp + eax - 0x272], dl
dec eax
jmp 0x4c7a3f
xor eax, eax
cmp eax, 0x10
jge 0x4c7a6c
mov cl, byte [ebp + eax - 0x6b4]
mov byte [ebp + eax - 0x274], cl
inc eax
jmp 0x4c7a56
cmp byte [ebp - 0x273], 0x70
jne 0x4c7aa5
lea eax, [edi + 1]
test eax, eax
jle 0x4c7a8d
mov dl, byte [ebp + eax - 0x274]
mov byte [ebp + eax - 0x272], dl
dec eax
jmp 0x4c7a78
xor eax, eax
cmp eax, 0x10
jge 0x4c7aa5
mov cl, byte [ebp + eax - 0x6b4]
mov byte [ebp + eax - 0x274], cl
inc eax
jmp 0x4c7a8f
cmp byte [ebp - 0x273], 0x53
jne 0x4c7b08
xor edx, edx
mov eax, 0xc
lea ecx, [edi + 1]
cmp eax, ecx
jg 0x4c7acb
mov cl, byte [ebp + eax - 0x274]
inc edx
mov byte [ebp + eax - 0x80], cl
inc eax
jmp 0x4c7ab5
xor eax, eax
mov esi, dword [ebp - 0x28]
cmp eax, esi
jge 0x4c7ae5
mov cl, byte [ebp + eax - 0x3b4]
mov byte [ebp + eax - 0x274], cl
inc eax
jmp 0x4c7acd
xor eax, eax
cmp eax, edx
jge 0x4c7afc
mov bl, byte [ebp + eax - 0x74]
lea ecx, [esi + eax]
inc eax
mov byte [ebp + ecx - 0x274], bl
jmp 0x4c7ae7
add edx, esi
mov byte [ebp + edx - 0x274], 0
jmp 0x4c7b0b
mov esi, dword [ebp - 0x28]
cmp byte [ebp - 0x273], 0x73
jne 0x4c7b6f
xor edx, edx
mov eax, 0xc
lea ecx, [edi + 1]
cmp eax, ecx
jg 0x4c7b34
mov cl, byte [ebp + eax - 0x274]
inc edx
mov byte [ebp + eax - 0x2c0], cl
inc eax
jmp 0x4c7b1b
xor eax, eax
cmp eax, esi
jge 0x4c7b4b
mov cl, byte [ebp + eax - 0x3b4]
mov byte [ebp + eax - 0x274], cl
inc eax
jmp 0x4c7b36
xor eax, eax
cmp eax, edx
jge 0x4c7b65
mov bl, byte [ebp + eax - 0x2b4]
lea ecx, [esi + eax]
inc eax
mov byte [ebp + ecx - 0x274], bl
jmp 0x4c7b4d
add edx, esi
mov byte [ebp + edx - 0x274], 0
lea edi, [ebp - 0x274]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + ecx - 0x275]
mov cl, byte [ebp + ecx - 0x275]
cmp cl, 0x5c
jne 0x4c7b95
mov byte [eax], 0
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov edx, ebx
lea edi, [ebp - 0x274]
shl edx, 8
or ecx, 0xffffffff
lea esi, [edx + eax]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x14], esi
mov eax, ecx
mov esi, edi
mov edi, dword [ebp - 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0xc]
and ecx, 3
add edx, eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x18]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths
push str.HKLM_s_s
push edx
call fcn.004f175f
add esp, 0x10
inc ebx
cmp ebx, 0xc8
mov dword [ebp - 0x14], ebx
jne 0x4c7bfb
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 0
jmp 0x4c7c28
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x20]
inc ecx
cmp ebx, 0x103
mov dword [ebp - 0x20], ecx
jne 0x4c7930
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x10]
push ebx
mov ecx, 0xf558a0
mov dword [eax], ebx
call fcn.004f0458
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
push esi
call fcn.004f265f
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
jmp 0x4c7c28