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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2bbc
call fcn.005c3ef0
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x310]
push 0x208
push 0
push eax
call fcn.005feb40
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 0x5e56f5
push 0x6926d8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5e56b2
lea ecx, [ebp - 0x2bb4]
mov dword [ebp - 0x2bb4], 0x2880
push ecx
lea ecx, [ebp - 0x2b90]
push ecx
call eax
test eax, eax
jne 0x5e56b2
mov eax, edi
mov dword [ebp - 0x2bb0], 3
lea ecx, [ebp - 0x2b98]
push ebx
sub eax, ecx
push esi
lea esi, [ebp - 0x2b90]
mov dword [ebp - 0x2bb8], eax
nop dword [eax + eax]
lea eax, [ebp - 0x2bac]
mov dword [ebp - 0x2b9c], 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 - 0x2ba0], 1
mov dword [ebp - 0x2bac], 0
mov dword [ebp - 0x2ba8], 0
mov dword [ebp - 0x2ba4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5e561f
lea eax, [esi + 8]
push eax
push str._sConnection
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push 0x103
push eax
call fcn.005e2870
add esp, 0x14
lea eax, [ebp - 0x2ba8]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x2bac]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5e5613
lea eax, [ebp - 0x2b9c]
mov dword [ebp - 0x2ba0], 4
push eax
lea eax, [ebp - 0x2ba4]
mov dword [ebp - 0x2b9c], 4
push eax
lea eax, [ebp - 0x2ba0]
push eax
push 0
push str.MediaSubType
push dword [ebp - 0x2ba8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5e5607
push 0x104
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x2ba0], 1
push eax
mov dword [ebp - 0x2b9c], 0x103
call fcn.005feb40
add esp, 0xc
lea eax, [ebp - 0x2b9c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x2ba0]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x2ba8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5e5607
mov eax, dword [ebp - 0x2ba4]
cmp eax, 1
jne 0x5e55f8
push ebx
lea eax, [ebp - 0x108]
push 0x6acdd0
push eax
call fcn.00619450
add esp, 0xc
test eax, eax
jne 0x5e55c6
xor ebx, ebx
jmp 0x5e5607
mov eax, dword [ebp - 0x2ba4]
cmp eax, 1
jne 0x5e55f8
push 3
lea eax, [ebp - 0x108]
push 0x6acdd0
push eax
call fcn.00619450
add esp, 0xc
test eax, eax
je 0x5e55f2
mov ebx, 2
jmp 0x5e5607
mov eax, dword [ebp - 0x2ba4]
xor ebx, ebx
cmp eax, 2
setne bl
lea ebx, [ebx*2 + 1]
push dword [ebp - 0x2ba8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x2bac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x2b98], eax
mov word [ebp - 0x2b94], ax
nop
mov ecx, dword [ebp - 0x2bb8]
lea edx, [ebp - 0x2b98]
add edx, eax
mov cl, byte [ecx + edx]
cmp cl, byte [edx]
jne 0x5e564d
inc eax
cmp eax, 6
jb 0x5e5630
jmp 0x5e5665
mov eax, dword [esi + 0x1a0]
cmp eax, 6
je 0x5e565d
cmp eax, 0x17
jne 0x5e56a6
cmp dword [ebp - 0x2bb0], ebx
jle 0x5e56a6
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 - 0x2bb0], ebx
mov esi, dword [esi]
test esi, esi
jne 0x5e5460
pop esi
pop ebx
push dword [ebp - 0x2bbc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
xor edx, edx
mov dword [ebp - 0x2b98], eax
mov word [ebp - 0x2b94], ax
lea eax, [ebp - 0x2b98]
sub edi, eax
nop word [eax + eax]
lea ecx, [ebp - 0x2b98]
add ecx, edx
mov al, byte [edi + ecx]
cmp al, byte [ecx]
jne 0x5e5706
inc edx
cmp edx, 6
jb 0x5e56e0
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
call fcn.005c358e
mov esp, ebp
pop ebp
ret