Function at 0x4659c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x224
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, dword [esi]
movzx ebx, word [ebp + 0x140]
mov ecx, dword [ebp + 0x144]
push edi
mov edi, dword [ebp + 0x35c]
xor eax, eax
push 0xff
push eax
lea edx, [esp + 0x131]
push edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ecx
mov byte [esp + 0x134], al
call fcn.004add60
add esp, 0xc
test edi, edi
jne 0x465a2f
test bx, bx
je 0x465cd9
push 0x80
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.004add60
add esp, 0xc
test edi, edi
je 0x465c87
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x465a50
sub eax, edx
cmp eax, 0xff
jae 0x465c87
push 3
push edi
push 0x5d9634
call fcn.004a7440
add esp, 0xc
test eax, eax
jne 0x465a80
add edi, 3
jmp 0x465c43
push 5
push edi
push str.host_
call fcn.004a7440
add esp, 0xc
test eax, eax
jne 0x465c36
add edi, 5
cmp dword [esp + 0x23c], 2
mov ebx, dword [esi + 0x240]
jne 0x465ab5
mov dword [esi + 0x240], 1
lea eax, [esp + 0x1c]
push eax
push 0
push edi
push esi
call fcn.0046aa60
add esp, 0x10
cmp eax, 1
jne 0x465ad4
lea eax, [esp + 0x1c]
call fcn.00465370
mov dword [esi + 0x240], ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x465c75
mov ecx, dword [ebx]
push pe_nt_image_headers32
lea esi, [esp + 0x12c]
call fcn.0046a800
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x240]
add esp, 4
push edx
mov eax, esi
push eax
push ecx
push edi
push str.Name__s_family__i_resolved_to__s_family__i_n
mov esi, ebp
call fcn.00475a40
add esp, 0x14
mov edi, ebx
mov eax, ebp
call fcn.0046ac20
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0x23c], 2
jne 0x465b66
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x128]
call fcn.00470c70
test eax, eax
jle 0x465b66
mov edx, 2
push ebx
mov word [esp + 0x2c], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x18], 0x10
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x238]
push ecx
lea edx, [esp + 0x2c]
push edx
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jge 0x465bd8
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
test eax, eax
jle 0x465cdd
movzx eax, bx
push eax
push str.Bind_to_local_port__hu_failed__trying_next_n
mov esi, ebp
call fcn.00475a40
add esp, 8
inc ebx
cmp word [esp + 0x28], 2
jne 0x465bbf
push ebx
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esp + 0x2a], ax
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push edi
call dword [sym.imp.WS2_32.dll_bind]
mov esi, dword [esp + 0x14]
test eax, eax
jl 0x465b86
push 0x80
lea eax, [esp + 0xac]
push 0
push eax
mov dword [esp + 0x2c], 0x80
call fcn.004add60
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xac]
push edx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x465cb8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push esi
mov dword [ebp + 0x85d4], edi
call fcn.0047be40
add esp, 4
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x465cfb
call fcn.00487120
test eax, eax
je 0x465a9b
call fcn.00487120
test eax, eax
je 0x465d05
mov ecx, dword [esp + 0x23c]
push ecx
lea edx, [esp + 0x12c]
push edx
push edi
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
mov esi, ebp
call fcn.00475a40
add esp, 0x10
jmp 0x465b2a
push edi
push str.Couldnt_bind_to__s
mov esi, ebp
call fcn.00475ac0
add esp, 8
jmp 0x465d05
cmp dword [esp + 0x23c], 2
jne 0x465b6a
mov eax, 2
push ebx
mov word [esp + 0x2c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x18], 0x10
jmp 0x465b6a
movzx eax, bx
push eax
push str.Local_port:__hu_n
mov esi, ebp
call fcn.00475a40
mov ecx, dword [esp + 0x1c]
add esp, 8
mov dword [ecx + 0x220], 1
xor eax, eax
jmp 0x465d0a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push esi
mov dword [ebp + 0x85d4], edi
call fcn.0047be40
add esp, 4
push eax
push edi
push str.bind_failed_with_errno__d:__s
mov esi, ebp
call fcn.00475ac0
add esp, 0xc
mov eax, 0x2d
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a314d
add esp, 0x224
ret