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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x623fcc]
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 + 0x390]
mov eax, dword [edi + 0x16c]
movzx ebx, word [edi + 0x168]
mov dword [ebp - 0x19c], eax
test esi, esi
jne 0x55fad7
test bx, bx
je 0x55feb1
push 0x80
push ecx
lea eax, [ebp - 0x184]
push eax
call fcn.005836e0
add esp, 0xc
push 2
pop ecx
test esi, esi
je 0x55fd62
push esi
call fcn.00596970
pop ecx
cmp eax, 0xff
jae 0x55fd5f
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.005836e0
push dword [0x62407c]
mov byte [ebp - 0x185], 0
call fcn.00596970
push eax
push esi
push dword [0x62407c]
call fcn.0058b1f0
add esp, 0x1c
test eax, eax
jne 0x55fbd3
push dword [0x62407c]
call fcn.00596970
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 + 0x88]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0040cd30
add esp, 0x18
sub eax, 0
je 0x55fc2c
sub eax, 1
je 0x55fc24
sub eax, 1
je 0x55fc06
cmp byte [ebp - 0x185], 0
jne 0x55fd54
mov eax, dword [ebp - 0x190]
push 2
mov ecx, dword [eax + 0x398]
mov dword [ebp - 0x198], ecx
pop ecx
cmp dword [ebp + 0x10], ecx
jne 0x55fc50
mov dword [eax + 0x398], 1
jmp 0x55fc5c
push dword [0x624080]
call fcn.00596970
push eax
push esi
push dword [0x624080]
call fcn.0058b1f0
add esp, 0x10
test eax, eax
jne 0x55fb5b
push dword [0x624080]
call fcn.00596970
pop ecx
add esi, eax
jmp 0x55fba6
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.0055e9e6
add esp, 0x14
jmp 0x55fcec
xor eax, eax
inc eax
jmp 0x55feb3
cmp byte [ebp - 0x185], 0
je 0x55fba6
push esi
push str.Couldnt_bind_to_interface__s
push edi
call fcn.0055e94b
add esp, 0xc
push 0x2d
pop eax
jmp 0x55feb3
cmp dword [ebp + 0x10], 0x17
jne 0x55fc5c
mov dword [eax + 0x398], ecx
lea ecx, [ebp - 0x194]
push ecx
push 0
push esi
push eax
call fcn.00556c9b
add esp, 0x10
cmp eax, 1
jne 0x55fc89
lea eax, [ebp - 0x194]
push eax
mov eax, dword [ebp - 0x190]
push eax
call fcn.0055647f
pop ecx
pop ecx
mov eax, dword [ebp - 0x190]
mov ecx, dword [ebp - 0x198]
mov dword [eax + 0x398], ecx
mov eax, dword [ebp - 0x194]
test eax, eax
je 0x55fd54
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push dword [eax]
call fcn.00556c59
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.0055e9e6
push dword [ebp - 0x194]
push edi
call fcn.00556de0
add esp, 0x2c
push 0x17
pop esi
cmp dword [ebp + 0x10], esi
jne 0x55fd18
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.00568335
add esp, 0xc
test eax, eax
jle 0x55fd7f
mov word [ebp - 0x184], si
jmp 0x55fd71
push 2
pop esi
cmp dword [ebp + 0x10], esi
jne 0x55fd98
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.00568335
add esp, 0xc
test eax, eax
jle 0x55fd98
mov word [ebp - 0x184], si
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x182], ax
push 0x10
jmp 0x55fd81
push esi
push str.Couldnt_bind_to__s
jmp 0x55fc3f
push 2
pop ecx
push 0x17
pop eax
cmp dword [ebp + 0x10], eax
jne 0x55fd8a
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 0x55fd9e
cmp dword [ebp + 0x10], ecx
jne 0x55fd98
mov word [ebp - 0x184], cx
jmp 0x55fd42
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 0x55fe08
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 0x55fe6f
movzx eax, bx
push eax
push str.Bind_to_local_port__hu_failed__trying_next_n
push edi
call fcn.0055e9e6
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 0x55fdb9
mov eax, 0x80
push eax
mov dword [ebp - 0x198], eax
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.005836e0
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 0x55fe92
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push dword [ebp - 0x190]
mov dword [edi + 0x4668], esi
call fcn.0056a638
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.0055e94b
add esp, 0x18
jmp 0x55fc48
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push dword [ebp - 0x190]
mov dword [edi + 0x4668], esi
call fcn.0056a638
push eax
push esi
push str.bind_failed_with_errno__d:__s
jmp 0x55fe61
movzx eax, bx
push eax
push str.Local_port:__hu_n
push edi
call fcn.0055e9e6
mov eax, dword [ebp - 0x190]
add esp, 0xc
mov byte [eax + 0x36f], 1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054f3d2
leave
ret