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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x78ebd8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
push esi
push edi
mov edi, dword [eax]
mov dword [ebp - 0x194], ecx
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x18c], ecx
mov esi, dword [edi + 0x550]
mov eax, dword [edi + 0x1ac]
movzx ebx, word [edi + 0x1a8]
mov dword [ebp - 0x19c], eax
test esi, esi
jne 0x5a9915
test bx, bx
je 0x5a9cf6
push 0x80
push ecx
lea eax, [ebp - 0x184]
push eax
call fcn.005077d5
add esp, 0xc
push 2
pop ecx
test esi, esi
je 0x5a9ba7
push esi
call fcn.006909d0
pop ecx
cmp eax, 0xff
jae 0x5a9ba4
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.005077d5
push dword [0x78c094]
mov byte [ebp - 0x185], 0
call fcn.006909d0
push eax
push esi
push dword [0x78c094]
call fcn.006a3610
add esp, 0x1c
test eax, eax
jne 0x5a9a11
push dword [0x78c094]
call fcn.006909d0
pop ecx
add esi, eax
mov byte [ebp - 0x185], 1
push 0x100
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 0x190]
push esi
push dword [eax + 0x90]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00413570
add esp, 0x18
sub eax, 0
je 0x5a9a6a
sub eax, 1
je 0x5a9a62
sub eax, 1
je 0x5a9a44
cmp byte [ebp - 0x185], 0
jne 0x5a9b92
mov eax, dword [ebp - 0x190]
push 2
mov ecx, dword [eax + 0x2c8]
mov dword [ebp - 0x198], ecx
pop ecx
cmp dword [ebp + 0x10], ecx
jne 0x5a9a8e
mov dword [eax + 0x2c8], 1
jmp 0x5a9a9a
push dword [0x78c098]
call fcn.006909d0
push eax
push esi
push dword [0x78c098]
call fcn.006a3610
add esp, 0x10
test eax, eax
jne 0x5a9999
push dword [0x78c098]
call fcn.006909d0
pop ecx
add esi, eax
jmp 0x5a99e4
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push eax
push esi
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push edi
call fcn.0059b99f
add esp, 0x14
jmp 0x5a9b2a
xor eax, eax
inc eax
jmp 0x5a9cf8
cmp byte [ebp - 0x185], 0
je 0x5a99e4
push esi
push str.Couldnt_bind_to_interface__s
push edi
call fcn.0059b8d5
add esp, 0xc
push 0x2d
pop eax
jmp 0x5a9cf8
cmp dword [ebp + 0x10], 0x17
jne 0x5a9a9a
mov dword [eax + 0x2c8], ecx
lea ecx, [ebp - 0x194]
push ecx
push 0
push esi
push eax
call fcn.005a209b
add esp, 0x10
cmp eax, 1
jne 0x5a9ac7
lea eax, [ebp - 0x194]
push eax
mov eax, dword [ebp - 0x190]
push eax
call fcn.005a16d9
pop ecx
pop ecx
mov eax, dword [ebp - 0x190]
mov ecx, dword [ebp - 0x198]
mov dword [eax + 0x2c8], ecx
mov eax, dword [ebp - 0x194]
test eax, eax
je 0x5a9b92
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push dword [eax]
call fcn.005a2059
mov eax, dword [ebp - 0x194]
mov eax, dword [eax]
push dword [eax + 4]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
push esi
push str.Name__s_family__i_resolved_to__s_family__i_n
push edi
call fcn.0059b99f
push dword [ebp - 0x194]
push edi
call fcn.005a2221
add esp, 0x2c
push 0x17
pop esi
cmp dword [ebp + 0x10], esi
jne 0x5a9b56
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.005b4b7a
add esp, 0xc
test eax, eax
jle 0x5a9bc4
mov word [ebp - 0x184], si
jmp 0x5a9bb6
push 2
pop esi
cmp dword [ebp + 0x10], esi
jne 0x5a9bdd
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.005b4b7a
add esp, 0xc
test eax, eax
jle 0x5a9bdd
mov word [ebp - 0x184], si
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x182], ax
push 0x10
jmp 0x5a9bc6
push esi
mov byte [edi + 0x48c0], 0
push str.Couldnt_bind_to__s
jmp 0x5a9a7d
push 2
pop ecx
push 0x17
pop eax
cmp dword [ebp + 0x10], eax
jne 0x5a9bcf
mov word [ebp - 0x184], ax
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x182], ax
push 0x1c
pop eax
mov dword [ebp - 0x18c], eax
jmp 0x5a9be3
cmp dword [ebp + 0x10], ecx
jne 0x5a9bdd
mov word [ebp - 0x184], cx
jmp 0x5a9b80
mov eax, dword [ebp - 0x18c]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x5a9c4d
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
mov eax, dword [ebp - 0x19c]
dec eax
mov dword [ebp - 0x19c], eax
test eax, eax
jle 0x5a9cb4
movzx eax, bx
push eax
push str.Bind_to_local_port__hu_failed__trying_next_n
push edi
call fcn.0059b99f
add esp, 0xc
inc ebx
push 2
pop eax
push ebx
call esi
push dword [ebp - 0x18c]
mov word [ebp - 0x182], ax
lea eax, [ebp - 0x184]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x5a9bfe
mov eax, 0x80
push eax
mov dword [ebp - 0x198], eax
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.005077d5
add esp, 0xc
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x5a9cd7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push dword [ebp - 0x190]
mov dword [edi + 0x48c4], esi
call fcn.005aaf73
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.0059b8d5
add esp, 0x18
jmp 0x5a9a86
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push dword [ebp - 0x190]
mov dword [edi + 0x48c4], esi
call fcn.005aaf73
push eax
push esi
push str.bind_failed_with_errno__d:__s
jmp 0x5a9ca6
movzx eax, bx
push eax
push str.Local_port:__hu_n
push edi
call fcn.0059b99f
mov eax, dword [ebp - 0x190]
add esp, 0xc
mov byte [eax + 0x293], 1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0068a492
mov esp, ebp
pop ebp
ret