Function at 0x100464d9
Capabilities:
Get local ipv4 addresses
Set socket configuration

Disassembly:
mov eax, 0x100cfca8
call fcn.10030644
sub esp, 0x44
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov esi, ecx
jne 0x10046550
cmp dword [esi + 0x368], ebx
jne 0x10046508
lea eax, [esi + 0x358]
push eax
push ebx
push ebx
call sub.iphlpapi.dll_GetBestRoute
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jle 0x100466f0
mov ebx, dword [ebp + 0x10]
mov edi, dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp + 0xc], eax
push ebx
call edi
mov dword [esi + 0x358], eax
lea eax, [ebx + 0x40]
push eax
call edi
mov dword [esi + 0x35c], eax
lea eax, [esi + 0x358]
push eax
call sub.iphlpapi.dll_CreateIpForwardEntry
add ebx, 0x80
dec dword [ebp + 0xc]
jne 0x1004651f
jmp 0x100466f0
cmp dword [ebp + 8], 1
jne 0x100466f0
cmp byte [esi + 0x35ec], bl
jne 0x10046570
push ebx
push ebx
push 0x10101fc0
call fcn.100c5aaa
jmp 0x100465e1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
push eax
push ebx
mov dword [ebp - 0x10], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
push dword [ebp - 0x10]
call fcn.100c0da0
push dword [ebp - 0x10]
mov edi, eax
mov dword [ebp - 0x14], edi
push ebx
push edi
call fcn.10031000
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, ebx
je 0x100465e8
push eax
lea eax, [ebp + 0xc]
push 0x10101f98
push eax
call fcn.100598b6
add esp, 0xc
mov eax, dword [eax]
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x100465c7
mov eax, dword [eax]
jmp 0x100465c9
xor eax, eax
push ebx
push ebx
push eax
call fcn.100c5aaa
mov ecx, dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x100465e1
call fcn.10002801
xor al, al
jmp 0x100466f2
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 8]
add eax, 0x1b0
push eax
call fcn.10002736
lea eax, [esi + 0x36e4]
lea ecx, [ebp + 8]
push eax
mov dword [ebp - 4], 1
call fcn.10005a15
test al, al
jne 0x1004663d
mov ecx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
mov edi, dword [edi]
cmp ecx, ebx
je 0x10046628
call fcn.10002801
mov dword [ebp + 8], ebx
cmp edi, ebx
je 0x10046656
lea eax, [edi + 0x1b0]
lea ecx, [ebp + 8]
push eax
call fcn.10002736
jmp 0x100465f9
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x19c]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
mov dword [ebp - 0x18], eax
je 0x10046656
call fcn.10002801
push dword [ebp - 0x14]
call fcn.100c0dc9
pop ecx
xor eax, eax
push 0xd
lea edi, [ebp - 0x4c]
pop ecx
mov dword [ebp - 0x50], ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x18]
or edi, 0xffffffff
push eax
mov ecx, esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x40], eax
call fcn.10046703
mov esi, dword [esi + 0x36e8]
mov dword [ebp - 0x2c], eax
cmp esi, ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
je 0x100466a2
mov ecx, esi
call fcn.1000886e
jmp 0x100466a4
xor eax, eax
mov esi, dword [sym.imp.WSOCK32.dll_inet_addr]
push eax
call esi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x3c], 4
jle 0x100466f0
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push edi
call esi
mov dword [ebp - 0x50], eax
lea eax, [edi + 0x40]
push eax
call esi
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x50]
push eax
call sub.iphlpapi.dll_CreateIpForwardEntry
add edi, 0x80
dec ebx
jne 0x100466cf
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc