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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2bc8
call fcn.004db7a0
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x208
lea eax, [ebp - 0x310]
mov dword [ebp - 0x2bc4], edx
push 0
push eax
mov edi, ecx
call fcn.004dcc10
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 - 0x2bc8], eax
test eax, eax
je 0x4711b8
push str.GetAdaptersInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47117e
lea ecx, [ebp - 0x2bbc]
mov dword [ebp - 0x2bbc], 0x2880
push ecx
lea ecx, [ebp - 0x2b90]
push ecx
call eax
test eax, eax
jne 0x47117e
mov eax, edi
mov dword [ebp - 0x2bb8], 3
lea ecx, [ebp - 0x2ba0]
push ebx
sub eax, ecx
push esi
lea esi, [ebp - 0x2b90]
mov dword [ebp - 0x2bc0], eax
nop dword [eax]
lea eax, [ebp - 0x2bb4]
mov dword [ebp - 0x2ba4], 0x104
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, 3
mov dword [ebp - 0x2ba8], 1
mov dword [ebp - 0x2bb4], 0
mov dword [ebp - 0x2bb0], 0
mov dword [ebp - 0x2bac], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47104f
lea eax, [esi + 8]
push eax
push str._sConnection
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push 0x103
push eax
call fcn.0044aac0
add esp, 0x14
lea eax, [ebp - 0x2bb0]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x2bb4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x471043
lea eax, [ebp - 0x2ba4]
mov dword [ebp - 0x2ba8], 4
push eax
lea eax, [ebp - 0x2bac]
mov dword [ebp - 0x2ba4], 4
push eax
lea eax, [ebp - 0x2ba8]
push eax
push 0
push str.MediaSubType
push dword [ebp - 0x2bb0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x471037
push 0x104
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x2ba8], 1
push eax
mov dword [ebp - 0x2ba4], 0x103
call fcn.004dcc10
add esp, 0xc
lea eax, [ebp - 0x2ba4]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x2ba8]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x2bb0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x471037
mov eax, dword [ebp - 0x2bac]
cmp eax, 1
jne 0x471028
push ebx
lea eax, [ebp - 0x108]
push 0x532f24
push eax
call fcn.004f1ff0
add esp, 0xc
test eax, eax
jne 0x470ff6
xor ebx, ebx
jmp 0x471037
mov eax, dword [ebp - 0x2bac]
cmp eax, 1
jne 0x471028
push 3
lea eax, [ebp - 0x108]
push 0x532f24
push eax
call fcn.004f1ff0
add esp, 0xc
test eax, eax
je 0x471022
mov ebx, 2
jmp 0x471037
mov eax, dword [ebp - 0x2bac]
xor ebx, ebx
cmp eax, 2
setne bl
lea ebx, [ebx*2 + 1]
push dword [ebp - 0x2bb0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x2bb4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x2ba0], eax
mov word [ebp - 0x2b9c], ax
nop
mov ecx, dword [ebp - 0x2bc0]
lea edx, [ebp - 0x2ba0]
add edx, eax
mov cl, byte [ecx + edx]
cmp cl, byte [edx]
jne 0x47107d
inc eax
cmp eax, 6
jb 0x471060
jmp 0x471099
mov eax, dword [esi + 0x1a0]
cmp eax, 6
je 0x471091
cmp eax, 0x17
jne 0x471172
cmp dword [ebp - 0x2bb8], ebx
jle 0x4710e0
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 eax, dword [esi + 0x1a0]
mov dword [ebp - 0x2bb8], ebx
cmp eax, 6
je 0x4710ee
cmp eax, 0x17
jne 0x471172
movzx eax, byte [esi + 0x194]
mov edx, dword [ebp - 0x2bc4]
mov byte [ebp - 0x2b98], al
movzx eax, byte [esi + 0x195]
mov byte [ebp - 0x2b97], al
movzx eax, byte [esi + 0x196]
mov ecx, dword [edx + 4]
mov byte [ebp - 0x2b96], al
movzx eax, byte [esi + 0x197]
mov byte [ebp - 0x2b95], al
movzx eax, byte [esi + 0x198]
mov byte [ebp - 0x2b94], al
movzx eax, byte [esi + 0x199]
mov byte [ebp - 0x2b93], al
cmp ecx, dword [edx + 8]
je 0x471163
mov eax, dword [ebp - 0x2b98]
mov dword [ecx], eax
mov ax, word [ebp - 0x2b94]
mov word [ecx + 4], ax
add dword [edx + 4], 6
jmp 0x471172
lea eax, [ebp - 0x2b98]
push eax
push ecx
mov ecx, edx
call fcn.00471260
mov esi, dword [esi]
test esi, esi
jne 0x470e90
pop esi
pop ebx
push dword [ebp - 0x2bc8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
xor edx, edx
mov dword [ebp - 0x2ba0], eax
mov word [ebp - 0x2b9c], ax
lea eax, [ebp - 0x2ba0]
sub edi, eax
lea ecx, [ebp - 0x2ba0]
add ecx, edx
mov al, byte [edi + ecx]
cmp al, byte [ecx]
jne 0x4711c9
inc edx
cmp edx, 6
jb 0x4711a3
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
call fcn.004dafe6
mov esp, ebp
pop ebp
ret