Function at 0x406120
Capabilities:
Get local ipv4 addresses
Get mac address on windows
Get networking parameters

Disassembly:
sub esp, 0x10c
push ebx
push esi
lea eax, [esp + 8]
push edi
xor ebx, ebx
push eax
push ebx
mov dword [esp + 0x18], ebx
mov dword [0x41bc24], ebx
mov dword [0x41adb8], ebx
mov dword [0x41adc0], ebx
mov dword [0x41adbc], ebx
mov dword [0x41adc4], ebx
mov dword [0x41adc8], ebx
mov dword [esp + 0x14], ebx
call sub.iphlpapi.dll_GetNetworkParams
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
push ecx
call edi
add esp, 4
lea edx, [esp + 0xc]
mov esi, eax
push edx
push esi
call sub.iphlpapi.dll_GetNetworkParams
lea eax, [esi + 0x110]
push eax
call fcn.00406600
mov dword [0x41adb8], eax
mov eax, dword [esi + 0x10c]
add esp, 4
cmp eax, ebx
je 0x4061ae
add eax, 4
push eax
call fcn.00406600
add esp, 4
mov dword [0x41adc0], eax
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], ebx
push ecx
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
mov edx, dword [esp + 0xc]
push edx
call edi
add esp, 4
mov edi, eax
lea eax, [esp + 0xc]
mov dword [esp + 0x14], edi
push eax
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
xor ecx, ecx
xor edx, edx
mov dword [0x418610], ecx
mov dword [0x41ad78], edx
mov word [0x418614], cx
cmp edi, ebx
mov byte [0x418616], cl
mov word [0x41ad7c], dx
je 0x40643d
push ebp
jmp 0x406213
xor ebx, ebx
lea eax, [edi + 8]
push ebx
push eax
call fcn.00406100
lea ecx, [edi + 0x10c]
push ebx
push ecx
call fcn.00406100
lea eax, [edi + 0x1b0]
push ebx
push eax
call fcn.00406100
add esp, 0x18
xor esi, esi
lea ebp, [esp + 0x1c]
lea ebx, [edi + 0x194]
xor edx, edx
mov dl, byte [ebx + esi]
push edx
push str._02X_
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
inc esi
add ebp, 3
cmp esi, 6
jl 0x406246
lea eax, [esp + esi + 0x1c]
lea ecx, [esp + 0x1c]
push 0
push ecx
mov byte [eax + esi*2 - 1], 0
call fcn.00406100
lea ebp, [edi + 0x1b0]
push ebp
call fcn.00406600
add esp, 0xc
test eax, eax
je 0x406430
lea esi, [edi + 0x1d8]
push esi
call fcn.00406600
add esp, 4
test eax, eax
je 0x406430
cmp dword [edi + 0x190], 6
jne 0x406430
mov eax, dword [ebx]
mov edx, str.DEST
cmp eax, dword [edx]
je 0x406430
push 0
push esi
call fcn.00406100
mov al, byte [0x418610]
add esp, 8
test al, al
jne 0x4062eb
mov ecx, ebx
mov edx, dword [ecx]
mov dword [0x418611], edx
mov ax, word [ecx + 4]
mov word [0x418615], ax
mov eax, dword [0x41ad8c]
test eax, eax
je 0x406315
push ebp
call fcn.00406600
mov ecx, dword [0x41ad8c]
add esp, 4
cmp eax, ecx
jne 0x406315
push esi
call fcn.00406600
add esp, 4
mov dword [0x41bc24], eax
test dword [0x41bc38], 0x40000
je 0x406359
mov eax, dword [0x41ad8c]
test eax, eax
je 0x406359
push ebp
call fcn.00406600
mov ecx, dword [0x41ad8c]
add esp, 4
cmp eax, ecx
jne 0x406359
mov ecx, ebx
mov dword [esp + 0x14], 1
mov edx, dword [ecx]
mov dword [0x418611], edx
mov ax, word [ecx + 4]
mov word [0x418615], ax
mov cl, byte [0x418610]
inc cl
mov byte [0x418610], cl
mov eax, dword [edi + 0x1a4]
test eax, eax
je 0x406385
lea ecx, [edi + 0x200]
push ecx
call fcn.00406600
add esp, 4
mov dword [0x41adbc], eax
mov eax, dword [edi + 0x224]
test eax, eax
je 0x4063b4
lea edx, [edi + 0x22c]
push edx
call fcn.00406600
mov dword [0x41adc4], eax
lea eax, [edi + 0x254]
push eax
call fcn.00406600
add esp, 8
mov dword [0x41adc8], eax
mov eax, dword [edi + 0x1a4]
test eax, eax
je 0x406430
push ebp
call fcn.00406600
mov ecx, dword [0x41ad8c]
add esp, 4
cmp eax, ecx
jne 0x406430
mov ecx, dword [edi + 0x19c]
mov dword [0x41ad80], ecx
mov edx, dword [ebx]
mov dword [0x41ad78], edx
mov ax, word [ebx + 4]
or byte [0x41bc90], 1
mov word [0x41ad7c], ax
mov eax, dword [0x41ad88]
test eax, eax
je 0x40641f
lea ecx, [edi + 0x200]
push ecx
call fcn.00406600
mov ecx, dword [0x41ad88]
add esp, 4
cmp ecx, eax
je 0x40641f
or byte [0x41bc90], 4
mov edx, dword [0x41ad80]
push edx
push 2
call fcn.00408530
add esp, 8
mov edi, dword [edi]
test edi, edi
jne 0x406211
xor ebx, ebx
pop ebp
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
call fcn.00403500
mov al, byte [0x418619]
mov cx, word [0x418614]
mov edx, dword [0x418610]
test al, al
mov al, byte [0x418616]
jne 0x40647d
mov dword [0x418619], edx
mov word [0x41861d], cx
mov byte [0x41861f], al
cmp dword [esp + 0x10], 1
jne 0x406496
mov dword [0x418619], edx
mov word [0x41861d], cx
mov byte [0x41861f], al
xor esi, esi
lea edi, [esp + 0x18]
xor ecx, ecx
mov cl, byte [esi + 0x41861a]
push ecx
push str._02X_
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
inc esi
add edi, 3
cmp esi, 6
jl 0x40649c
mov ecx, dword [0x418619]
lea edx, [esp + esi + 0x18]
lea eax, [esp + 0x18]
and ecx, 0xff
mov byte [edx + esi*2 - 1], 0
push eax
push ecx
lea edx, [esp + 0xa0]
push 0x414264
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0xa8]
push ebx
push eax
call fcn.00406100
add esp, 0x18
mov eax, 0x418619
pop edi
pop esi
pop ebx
add esp, 0x10c
ret