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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2bbc
call fcn.0060a2d0
mov eax, dword [0x6feae4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x208
lea eax, [ebp - 0x310]
mov edi, ecx
push 0
push eax
call fcn.0062b160
add esp, 0xc
lea eax, [ebp - 0x310]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.iphlpapi.dll
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2bbc], eax
test eax, eax
je 0x4c4bd5
push str.GetAdaptersInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c4b92
lea ecx, [ebp - 0x2ba0]
mov dword [ebp - 0x2ba0], 0x2880
push ecx
lea ecx, [ebp - 0x2b90]
push ecx
call eax
test eax, eax
jne 0x4c4b92
mov eax, edi
mov dword [ebp - 0x2bb4], 3
lea ecx, [ebp - 0x2bb0]
push ebx
sub eax, ecx
push esi
lea esi, [ebp - 0x2b90]
mov dword [ebp - 0x2bb8], eax
nop word [eax + eax]
lea eax, [ebp - 0x2ba8]
mov dword [ebp - 0x2b94], 0x104
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.WS2_32.dll_bind
mov ebx, 3
mov dword [ebp - 0x2b98], 1
mov dword [ebp - 0x2ba8], 0
mov dword [ebp - 0x2ba4], 0
mov dword [ebp - 0x2b9c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c4aff
lea eax, [esi + 8]
push eax
push str._sConnection
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push 0x103
push eax
call fcn.004c0680
add esp, 0x14
lea eax, [ebp - 0x2ba4]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x2ba8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c4af3
lea eax, [ebp - 0x2b94]
mov dword [ebp - 0x2b98], 4
push eax
lea eax, [ebp - 0x2b9c]
mov dword [ebp - 0x2b94], 4
push eax
lea eax, [ebp - 0x2b98]
push eax
push 0
push str.MediaSubType
push dword [ebp - 0x2ba4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c4ae7
push 0x104
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x2b98], 1
push eax
mov dword [ebp - 0x2b94], 0x103
call fcn.0062b160
add esp, 0xc
lea eax, [ebp - 0x2b94]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x2b98]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x2ba4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c4ae7
mov eax, dword [ebp - 0x2b9c]
cmp eax, 1
jne 0x4c4ad8
push ebx
lea eax, [ebp - 0x108]
push 0x6eac54
push eax
call fcn.00633030
add esp, 0xc
test eax, eax
jne 0x4c4aa6
xor ebx, ebx
jmp 0x4c4ae7
mov eax, dword [ebp - 0x2b9c]
cmp eax, 1
jne 0x4c4ad8
push 3
lea eax, [ebp - 0x108]
push 0x6eac54
push eax
call fcn.00633030
add esp, 0xc
test eax, eax
je 0x4c4ad2
mov ebx, 2
jmp 0x4c4ae7
mov eax, dword [ebp - 0x2b9c]
xor ebx, ebx
cmp eax, 2
setne bl
lea ebx, [ebx*2 + 1]
push dword [ebp - 0x2ba4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x2ba8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x2bb0], eax
mov word [ebp - 0x2bac], ax
nop
mov ecx, dword [ebp - 0x2bb8]
lea edx, [ebp - 0x2bb0]
add edx, eax
mov cl, byte [ecx + edx]
cmp cl, byte [edx]
jne 0x4c4b2d
inc eax
cmp eax, 6
jb 0x4c4b10
jmp 0x4c4b45
mov eax, dword [esi + 0x1a0]
cmp eax, 6
je 0x4c4b3d
cmp eax, 0x17
jne 0x4c4b86
cmp dword [ebp - 0x2bb4], ebx
jle 0x4c4b86
movzx eax, byte [esi + 0x194]
mov byte [edi], al
movzx eax, byte [esi + 0x195]
mov byte [edi + 1], al
movzx eax, byte [esi + 0x196]
mov byte [edi + 2], al
movzx eax, byte [esi + 0x197]
mov byte [edi + 3], al
movzx eax, byte [esi + 0x198]
mov byte [edi + 4], al
movzx eax, byte [esi + 0x199]
mov byte [edi + 5], al
mov dword [ebp - 0x2bb4], ebx
mov esi, dword [esi]
test esi, esi
jne 0x4c4940
pop esi
pop ebx
push dword [ebp - 0x2bbc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
xor edx, edx
mov dword [ebp - 0x2bb0], eax
mov word [ebp - 0x2bac], ax
lea eax, [ebp - 0x2bb0]
sub edi, eax
nop word [eax + eax]
lea ecx, [ebp - 0x2bb0]
add ecx, edx
mov al, byte [edi + ecx]
cmp al, byte [ecx]
jne 0x4c4be6
inc edx
cmp edx, 6
jb 0x4c4bc0
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060963b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
call fcn.0060963b
mov esp, ebp
pop ebp
ret