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

Disassembly:
sub esp, 0x214
mov eax, dword [0x47e494]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
push ebx
push ebp
push esi
push edi
mov edi, dword [eax]
xor ebp, ebp
push 0xff
mov dword [esp + 0x18], ebp
movzx ebx, word [edi + 0x140]
mov esi, dword [edi + 0x354]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x144]
lea ecx, [esp + 0x125]
push ebp
push ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], eax
mov byte [esp + 0x12c], 0
call fcn.0044e160
add esp, 0xc
cmp esi, ebp
jne 0x41a4f1
cmp bx, bp
je 0x41a7f7
push 0x80
lea edx, [esp + 0x24]
push ebp
push edx
call fcn.0044e160
add esp, 0xc
cmp esi, ebp
je 0x41a6de
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41a511
sub eax, edx
cmp eax, 0xff
jae 0x41a6de
mov edx, dword [0x47d014]
mov eax, edx
lea ebp, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41a532
sub eax, ebp
push eax
push esi
push edx
call fcn.0044fa8d
add esp, 0xc
test eax, eax
jne 0x41a566
mov eax, dword [0x47d014]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41a554
sub eax, edx
add esi, eax
jmp 0x41a68a
mov edx, dword [str.host_]
mov eax, edx
lea ebp, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41a571
sub eax, ebp
push eax
push esi
push edx
call fcn.0044fa8d
add esp, 0xc
test eax, eax
jne 0x41a679
mov eax, dword [str.host_]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41a597
sub eax, edx
add esi, eax
cmp dword [esp + 0x230], 2
mov eax, dword [esp + 0x10]
mov ebp, dword [eax + 0x21c]
jne 0x41a5c2
mov dword [eax + 0x21c], 1
lea edx, [esp + 0x14]
push edx
push 0
push esi
push eax
call fcn.0040fbf0
add esp, 0x10
cmp eax, 1
jne 0x41a5ea
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.0040f610
add esp, 8
mov eax, dword [esp + 0x14]
test eax, eax
mov edx, dword [esp + 0x10]
mov dword [edx + 0x21c], ebp
je 0x41a6ca
mov edx, dword [eax]
push 0x100
lea ecx, [esp + 0x124]
push ecx
push edx
call fcn.0040f970
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x23c]
push edx
lea eax, [esp + 0x130]
push eax
push ecx
push esi
push str.Name__s_family__i_resolved_to__s_family__i_n
push edi
call fcn.00419e40
mov edx, dword [esp + 0x38]
push edx
push edi
call fcn.0040fde0
mov ebp, dword [esp + 0x25c]
add esp, 0x2c
cmp ebp, 2
jne 0x41a703
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x124]
push ecx
push ebp
call fcn.004202e0
add esp, 0xc
test eax, eax
jle 0x41a703
jmp 0x41a6e8
push esi
call fcn.0042c850
add esp, 4
test eax, eax
je 0x41a5a4
mov ebp, dword [esp + 0x230]
push 0x100
lea eax, [esp + 0x124]
push eax
push esi
push ebp
call fcn.0042c850
add esp, 0x10
test eax, eax
je 0x41a824
push ebp
lea ecx, [esp + 0x124]
push ecx
push esi
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push edi
call fcn.00419e40
add esp, 0x14
jmp 0x41a650
push esi
push str.Couldnt_bind_to__s
push edi
call fcn.00419ed0
add esp, 0xc
jmp 0x41a824
cmp dword [esp + 0x230], 2
jne 0x41a703
push ebx
mov word [esp + 0x24], 2
call dword [sym.imp.WS2_32.dll_htons]
mov dword [esp + 0x1c], 0x10
mov word [esp + 0x22], ax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x22c]
mov esi, dword [sym.imp.WS2_32.dll_bind]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
call esi
test eax, eax
jge 0x41a777
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
mov eax, dword [esp + 0x18]
sub eax, 1
test eax, eax
mov dword [esp + 0x18], eax
jle 0x41a7fb
movzx edx, bx
push edx
push str.Bind_to_local_port__hu_failed__trying_next_n
push edi
call fcn.00419e40
add esp, 0xc
add ebx, 1
cmp word [esp + 0x20], 2
jne 0x41a75f
push ebx
call ebp
mov word [esp + 0x22], ax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x22c]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
call esi
test eax, eax
jl 0x41a727
push 0x80
lea eax, [esp + 0xa4]
push 0
push eax
mov dword [esp + 0x24], 0x80
call fcn.0044e160
mov eax, dword [esp + 0x238]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xa4]
push edx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x41a7d7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x10]
mov esi, eax
push esi
push ecx
mov dword [edi + 0x858c], esi
call fcn.0040f200
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x41a81b
movzx edx, bx
push edx
push str.Local_port:__hu_n
push edi
call fcn.00419e40
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [eax + 0x1fc], 1
xor eax, eax
jmp 0x41a829
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x10]
mov esi, eax
push esi
push ecx
mov dword [edi + 0x858c], esi
call fcn.0040f200
push eax
push esi
push str.bind_failed_with_errno__d:__s
push edi
call fcn.00419ed0
add esp, 0x18
mov eax, 0x2d
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044ba98
add esp, 0x214
ret