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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2bc8
call fcn.004dec30
mov eax, dword [0x550144]
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.004e0230
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 0x4712d8
push str.GetAdaptersInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47129e
lea ecx, [ebp - 0x2bbc]
mov dword [ebp - 0x2bbc], 0x2880
push ecx
lea ecx, [ebp - 0x2b90]
push ecx
call eax
test eax, eax
jne 0x47129e
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 0x47116f
lea eax, [esi + 8]
push eax
push str._sConnection
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push 0x103
push eax
call fcn.0044ab40
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 0x471163
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 0x471157
push 0x104
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x2ba8], 1
push eax
mov dword [ebp - 0x2ba4], 0x103
call fcn.004e0230
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 0x471157
mov eax, dword [ebp - 0x2bac]
cmp eax, 1
jne 0x471148
push ebx
lea eax, [ebp - 0x108]
push 0x537024
push eax
call fcn.004f5700
add esp, 0xc
test eax, eax
jne 0x471116
xor ebx, ebx
jmp 0x471157
mov eax, dword [ebp - 0x2bac]
cmp eax, 1
jne 0x471148
push 3
lea eax, [ebp - 0x108]
push 0x537024
push eax
call fcn.004f5700
add esp, 0xc
test eax, eax
je 0x471142
mov ebx, 2
jmp 0x471157
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 0x47119d
inc eax
cmp eax, 6
jb 0x471180
jmp 0x4711b9
mov eax, dword [esi + 0x1a0]
cmp eax, 6
je 0x4711b1
cmp eax, 0x17
jne 0x471292
cmp dword [ebp - 0x2bb8], ebx
jle 0x471200
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 0x47120e
cmp eax, 0x17
jne 0x471292
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 0x471283
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 0x471292
lea eax, [ebp - 0x2b98]
push eax
push ecx
mov ecx, edx
call fcn.00471380
mov esi, dword [esi]
test esi, esi
jne 0x470fb0
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 0x4712e9
inc edx
cmp edx, 6
jb 0x4712c3
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de46d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
call fcn.004de46d
mov esp, ebp
pop ebp
ret