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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x81f390]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov ebx, dword [ecx]
push edi
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x218], 0
mov eax, dword [ebx + 0x144]
movzx esi, word [ebx + 0x140]
mov edi, dword [ebx + 0x354]
push 0xff
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x103]
push 0
push eax
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x214], 0
mov byte [ebp - 0x104], 0
call fcn.006f87a0
add esp, 0xc
test edi, edi
jne 0x55dce1
test si, si
je 0x55e12d
push 0x80
lea eax, [ebp - 0x184]
push 0
push eax
call fcn.006f87a0
add esp, 0xc
test edi, edi
je 0x55df89
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x55dd04
sub ecx, edx
cmp ecx, 0xff
jae 0x55df89
mov edx, dword [0x8057f0]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x208], eax
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x55dd30
sub ecx, dword [ebp - 0x208]
push ecx
push edi
push edx
call fcn.00700d70
add esp, 0xc
test eax, eax
jne 0x55dd62
mov ecx, dword [0x8057f0]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x55dd55
sub ecx, edx
add edi, ecx
jmp 0x55ddd9
mov edx, dword [str.host_]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x208], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x55dd73
sub ecx, dword [ebp - 0x208]
push ecx
push edi
push edx
call fcn.00700d70
add esp, 0xc
test eax, eax
jne 0x55ddcc
mov ecx, dword [str.host_]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x55dd98
sub ecx, edx
add edi, ecx
mov ecx, dword [ebp - 0x210]
mov eax, dword [ecx + 0x29c]
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x20c]
cmp eax, 2
jne 0x55de1d
mov dword [ecx + 0x29c], 1
jmp 0x55de2c
push edi
call fcn.006ac970
add esp, 4
test eax, eax
je 0x55dda3
push 0x100
lea eax, [ebp - 0x104]
push eax
push edi
push dword [ebp - 0x20c]
call fcn.006ac970
add esp, 0x10
test eax, eax
je 0x55df73
push dword [ebp - 0x20c]
lea eax, [ebp - 0x104]
push eax
push edi
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push ebx
call fcn.0055d170
add esp, 0x14
jmp 0x55debf
cmp eax, 0x17
jne 0x55de2c
mov dword [ecx + 0x29c], 2
lea eax, [ebp - 0x218]
push eax
push 0
push edi
push ecx
call fcn.005548a0
add esp, 0x10
cmp eax, 1
jne 0x55de59
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x210]
call fcn.005540c0
add esp, 8
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x208]
mov dword [eax + 0x29c], ecx
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x55df64
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push dword [eax]
call fcn.00554850
mov eax, dword [ebp - 0x218]
mov eax, dword [eax]
push dword [eax + 4]
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x20c]
push edi
push str.Name__s_family__i_resolved_to__s_family__i_n
push ebx
call fcn.0055d170
push dword [ebp - 0x218]
push ebx
call fcn.00554a60
add esp, 0x2c
mov eax, dword [ebp - 0x20c]
cmp eax, 0x17
jne 0x55df14
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x17
call fcn.00562c40
add esp, 0xc
test eax, eax
jle 0x55dfdd
mov eax, 0x17
push esi
mov word [ebp - 0x184], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x182], ax
mov eax, 0x1c
mov dword [ebp - 0x214], eax
jmp 0x55dfdf
cmp eax, 2
jne 0x55dfdd
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x104]
push eax
push 2
call fcn.00562c40
add esp, 0xc
test eax, eax
jle 0x55dfdd
mov eax, 2
push esi
mov word [ebp - 0x184], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x182], ax
mov eax, 0x10
mov dword [ebp - 0x214], eax
jmp 0x55dfdf
push edi
push str.Couldnt_bind_to__s
push ebx
call fcn.0055d0d0
add esp, 0xc
pop edi
pop esi
mov eax, 0x2d
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006f7ca4
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20c]
cmp eax, 0x17
jne 0x55dfb6
push esi
mov word [ebp - 0x184], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x182], ax
mov eax, 0x1c
mov dword [ebp - 0x214], eax
jmp 0x55dfdf
cmp eax, 2
jne 0x55dfdd
push esi
mov word [ebp - 0x184], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x182], ax
mov eax, 0x10
mov dword [ebp - 0x214], eax
jmp 0x55dfdf
xor eax, eax
push eax
lea eax, [ebp - 0x184]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x55e04c
mov edi, dword [sym.imp.WS2_32.dll_ntohs]
lea ebx, [ebx]
mov eax, dword [ebp - 0x21c]
dec eax
mov dword [ebp - 0x21c], eax
test eax, eax
jle 0x55e0cb
movzx eax, si
push eax
push str.Bind_to_local_port__hu_failed__trying_next_n
push ebx
call fcn.0055d170
add esp, 0xc
inc esi
push esi
call edi
push dword [ebp - 0x214]
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 0x55e000
push 0x80
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], 0x80
push 0
push eax
call fcn.006f87a0
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x55e10b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push dword [ebp - 0x210]
mov dword [ebx + 0x8594], esi
call fcn.0054fda0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0055d0d0
add esp, 0x18
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006f7ca4
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push dword [ebp - 0x210]
mov dword [ebx + 0x8594], esi
call fcn.0054fda0
push eax
push esi
push str.bind_failed_with_errno__d:__s
push ebx
call fcn.0055d0d0
add esp, 0x18
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006f7ca4
mov esp, ebp
pop ebp
ret
movzx eax, si
push eax
push str.Local_port:__hu_n
push ebx
call fcn.0055d170
mov eax, dword [ebp - 0x210]
add esp, 0xc
mov dword [eax + 0x27c], 1
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006f7ca4
mov esp, ebp
pop ebp
ret