Function at 0x4c7400
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc530
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x840
push ebx
push esi
push edi
mov esi, 0x100
mov dword [ebp - 0x10], esp
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x34], ebx
call fcn.004f266a
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
push esi
call fcn.004f266a
add esp, 4
mov esi, eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x20], esi
push eax
push 0xf003f
push ebx
push str.SYSTEMCurrentControlSetControlNetwork
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4c77ae
mov dword [ebp - 0x38], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x38]
mov eax, 0x100
mov byte [edi], 0
mov edx, dword [ebp - 0x2c]
push eax
push edi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edx, eax
cmp edx, 0x103
mov dword [ebp - 0x4c], edx
je 0x4c779b
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jle 0x4c7798
mov byte [ebp - 0x24c], al
mov eax, dword [ebp - 0x24]
push eax
push str.SYSTEMCurrentControlSetControlNetwork
lea ecx, [ebp - 0x24c]
push str._s_s
push ecx
call fcn.004f175f
add esp, 0x10
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x24c]
push edx
push 0x20019
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c7786
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
mov eax, 0x100
push eax
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edx, eax
cmp edx, 0x103
mov dword [ebp - 0x48], edx
je 0x4c776e
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jle 0x4c776e
lea eax, [ebp - 0x24c]
push esi
push eax
lea ecx, [ebp - 0x44c]
push str._s_s
push ecx
call fcn.004f175f
add esp, 0x10
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x44c]
push edx
push 1
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c7761
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x14c], al
mov byte [ebp - 0x64c], al
lea edx, [ebp - 0x64c]
push ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push str.ComponentId
push ecx
call ebx
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x64c]
push edx
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 0
push str.ComponentId
push edx
call ebx
lea edi, [ebp - 0x64c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
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]
lea edi, [ebp - 0x14c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jle 0x4c775e
lea ecx, [ebp - 0x14c]
push 0x52b598
push ecx
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x4c7750
lea edx, [ebp - 0x14c]
push 0x52b594
push edx
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x4c7750
mov byte [ebp - 0x34c], al
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x84c]
push eax
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x1c]
push ecx
push edx
push 0
push str.Description
push eax
call ebx
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x84c]
push ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push str.Description
push ecx
call ebx
lea edi, [ebp - 0x84c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x34c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp - 0x18]
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]
lea edi, [ebp - 0x34c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jle 0x4c76f2
mov ecx, dword [ebp + 8]
lea edi, [ebp - 0x34c]
shl edx, 8
lea esi, [edx + ecx]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x3c], esi
mov esi, edi
mov edi, dword [ebp - 0x3c]
mov eax, ecx
jmp 0x4c7716
mov ecx, dword [ebp + 8]
lea edi, [ebp - 0x14c]
shl edx, 8
xor eax, eax
lea esi, [edx + ecx]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x3c], esi
mov esi, edi
mov edi, dword [ebp - 0x3c]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 0xc]
push eax
push str.SYSTEMCurrentControlSetControlNetwork
add edx, ecx
push str.HKLM_s_s_s_ndi
push edx
call fcn.004f175f
mov eax, dword [ebp - 0x18]
add esp, 0x14
inc eax
cmp eax, 0x28
mov dword [ebp - 0x18], eax
je 0x4c7783
jmp 0x4c775e
mov eax, dword [ebp - 0x34]
inc eax
cmp eax, 0xc8
mov dword [ebp - 0x34], eax
je 0x4c7783
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x28]
inc ecx
cmp edx, 0x103
mov dword [ebp - 0x28], ecx
jne 0x4c7518
jmp 0x4c7786
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x4c]
jmp 0x4c779b
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x38]
inc ecx
cmp edx, 0x103
mov dword [ebp - 0x38], ecx
jne 0x4c7491
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x14]
push edi
mov dword [edx], eax
mov edx, dword [ebp - 0x34]
mov dword [ecx], edx
call fcn.004f265f
add esp, 4
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