Function at 0x55fc02
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 0x55fc57
test bx, bx
je 0x560031
push 0x80
push ecx
lea eax, [ebp - 0x184]
push eax
call fcn.00583860
add esp, 0xc
push 2
pop ecx
test esi, esi
je 0x55fee2
push esi
call fcn.00596af0
pop ecx
cmp eax, 0xff
jae 0x55fedf
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00583860
push dword [0x62407c]
mov byte [ebp - 0x185], 0
call fcn.00596af0
push eax
push esi
push dword [0x62407c]
call fcn.0058b370
add esp, 0x1c
test eax, eax
jne 0x55fd53
push dword [0x62407c]
call fcn.00596af0
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.0040cea0
add esp, 0x18
sub eax, 0
je 0x55fdac
sub eax, 1
je 0x55fda4
sub eax, 1
je 0x55fd86
cmp byte [ebp - 0x185], 0
jne 0x55fed4
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 0x55fdd0
mov dword [eax + 0x398], 1
jmp 0x55fddc
push dword [0x624080]
call fcn.00596af0
push eax
push esi
push dword [0x624080]
call fcn.0058b370
add esp, 0x10
test eax, eax
jne 0x55fcdb
push dword [0x624080]
call fcn.00596af0
pop ecx
add esi, eax
jmp 0x55fd26
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.0055eb66
add esp, 0x14
jmp 0x55fe6c
xor eax, eax
inc eax
jmp 0x560033
cmp byte [ebp - 0x185], 0
je 0x55fd26
push esi
push str.Couldnt_bind_to_interface__s
push edi
call fcn.0055eacb
add esp, 0xc
push 0x2d
pop eax
jmp 0x560033
cmp dword [ebp + 0x10], 0x17
jne 0x55fddc
mov dword [eax + 0x398], ecx
lea ecx, [ebp - 0x194]
push ecx
push 0
push esi
push eax
call fcn.00556e1b
add esp, 0x10
cmp eax, 1
jne 0x55fe09
lea eax, [ebp - 0x194]
push eax
mov eax, dword [ebp - 0x190]
push eax
call fcn.005565ff
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 0x55fed4
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push dword [eax]
call fcn.00556dd9
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.0055eb66
push dword [ebp - 0x194]
push edi
call fcn.00556f60
add esp, 0x2c
push 0x17
pop esi
cmp dword [ebp + 0x10], esi
jne 0x55fe98
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.005684b5
add esp, 0xc
test eax, eax
jle 0x55feff
mov word [ebp - 0x184], si
jmp 0x55fef1
push 2
pop esi
cmp dword [ebp + 0x10], esi
jne 0x55ff18
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.005684b5
add esp, 0xc
test eax, eax
jle 0x55ff18
mov word [ebp - 0x184], si
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x182], ax
push 0x10
jmp 0x55ff01
push esi
push str.Couldnt_bind_to__s
jmp 0x55fdbf
push 2
pop ecx
push 0x17
pop eax
cmp dword [ebp + 0x10], eax
jne 0x55ff0a
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 0x55ff1e
cmp dword [ebp + 0x10], ecx
jne 0x55ff18
mov word [ebp - 0x184], cx
jmp 0x55fec2
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 0x55ff88
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 0x55ffef
movzx eax, bx
push eax
push str.Bind_to_local_port__hu_failed__trying_next_n
push edi
call fcn.0055eb66
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 0x55ff39
mov eax, 0x80
push eax
mov dword [ebp - 0x198], eax
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.00583860
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 0x560012
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push dword [ebp - 0x190]
mov dword [edi + 0x4668], esi
call fcn.0056a7b8
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.0055eacb
add esp, 0x18
jmp 0x55fdc8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push dword [ebp - 0x190]
mov dword [edi + 0x4668], esi
call fcn.0056a7b8
push eax
push esi
push str.bind_failed_with_errno__d:__s
jmp 0x55ffe1
movzx eax, bx
push eax
push str.Local_port:__hu_n
push edi
call fcn.0055eb66
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.0054f54f
leave
ret