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

Disassembly:
sub esp, 0x218
mov eax, dword [0x78f694]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x21c]
push ebx
push ebp
push esi
push edi
mov edi, dword [eax]
xor ebx, ebx
mov dword [esp + 0x14], ebx
movzx ebp, word [edi + 0x140]
mov esi, dword [edi + 0x354]
push 0xff
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x144]
lea ecx, [esp + 0x129]
push ebx
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], eax
mov byte [esp + 0x130], bl
call fcn.00630180
add esp, 0xc
cmp esi, ebx
jne 0x5e6af4
cmp bp, bx
je 0x5e6e26
push 0x80
lea edx, [esp + 0x28]
push ebx
push edx
call fcn.00630180
add esp, 0xc
test esi, esi
je 0x5e6cfe
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5e6b14
sub eax, edx
cmp eax, 0xff
jae 0x5e6cfe
mov edx, dword [0x78e22c]
mov eax, edx
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5e6b33
sub eax, ebp
push eax
push esi
push edx
call fcn.006308d5
add esp, 0xc
test eax, eax
jne 0x5e6bb5
mov eax, dword [0x78e22c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5e6b53
sub eax, edx
add esi, eax
mov ebx, 1
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x70]
mov ebp, dword [esp + 0x234]
push 0x100
lea eax, [esp + 0x128]
push eax
push esi
push edx
push ebp
call fcn.005dbae0
add esp, 0x14
sub eax, 0
je 0x5e6bf7
sub eax, 1
je 0x5e6bed
sub eax, 1
jne 0x5e6c0f
push ebp
lea eax, [esp + 0x128]
push eax
push esi
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push edi
call fcn.005e4fa0
add esp, 0x14
jmp 0x5e6cbd
mov edx, dword [str.host_]
mov eax, edx
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5e6bc0
sub eax, ebp
push eax
push esi
push edx
call fcn.006308d5
add esp, 0xc
test eax, eax
jne 0x5e6b63
mov eax, dword [str.host_]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5e6be0
sub eax, edx
add esi, eax
jmp 0x5e6c17
mov eax, 1
jmp 0x5e6e58
test ebx, ebx
je 0x5e6c17
push esi
push str.Couldnt_bind_to_interface__s
push edi
call fcn.005e5030
add esp, 0xc
jmp 0x5e6e53
test ebx, ebx
jne 0x5e6cea
cmp dword [esp + 0x234], 2
mov ecx, dword [esp + 0x10]
mov ebp, dword [ecx + 0x220]
mov ebx, ecx
jne 0x5e6c37
mov dword [ebx + 0x220], 1
lea edx, [esp + 0x14]
push edx
push 0
push esi
push ebx
call fcn.005dc360
add esp, 0x10
cmp eax, 1
jne 0x5e6c5b
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.005dbdf0
add esp, 8
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x220], ebp
test eax, eax
je 0x5e6cea
mov edx, dword [eax]
push 0x100
lea ecx, [esp + 0x128]
push ecx
push edx
call fcn.005dc100
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x240]
push edx
lea eax, [esp + 0x134]
push eax
push ecx
push esi
push str.Name__s_family__i_resolved_to__s_family__i_n
push edi
call fcn.005e4fa0
mov edx, dword [esp + 0x38]
push edx
push edi
call fcn.005dc550
mov ebp, dword [esp + 0x260]
add esp, 0x2c
cmp ebp, 2
jne 0x5e6d26
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x128]
push ecx
push ebp
call fcn.005e93e0
add esp, 0xc
test eax, eax
jle 0x5e6d26
mov eax, dword [esp + 0x18]
mov edx, ebp
mov word [esp + 0x24], dx
push eax
jmp 0x5e6d13
push esi
push str.Couldnt_bind_to__s
push edi
call fcn.005e5030
add esp, 0xc
jmp 0x5e6e53
cmp dword [esp + 0x234], 2
jne 0x5e6d26
mov ecx, 2
mov word [esp + 0x24], cx
push ebp
call dword [sym.imp.WS2_32.dll_htons]
mov dword [esp + 0x1c], 0x10
mov word [esp + 0x26], ax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x230]
mov esi, dword [sym.imp.WS2_32.dll_bind]
push edx
lea eax, [esp + 0x28]
push eax
push ecx
call esi
test eax, eax
jge 0x5e6da4
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
lea ebx, [ebx]
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
test eax, eax
jle 0x5e6e2a
mov ebx, dword [esp + 0x18]
movzx edx, bx
push edx
push str.Bind_to_local_port__hu_failed__trying_next_n
push edi
call fcn.005e4fa0
inc ebx
add esp, 0xc
cmp word [esp + 0x24], 2
mov dword [esp + 0x18], ebx
jne 0x5e6d8c
push ebx
call ebp
mov word [esp + 0x26], ax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x230]
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
call esi
test eax, eax
jl 0x5e6d50
push 0x80
lea eax, [esp + 0xa8]
push 0
push eax
mov dword [esp + 0x2c], 0x80
call fcn.00630180
mov eax, dword [esp + 0x23c]
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xa8]
push edx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x5e6e04
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x10]
mov esi, eax
push esi
push ecx
mov dword [edi + 0x8594], esi
call fcn.005db390
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x5e6e4a
movzx edx, word [esp + 0x18]
push edx
push str.Local_port:__hu_n
push edi
call fcn.005e4fa0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [eax + 0x200], 1
xor eax, eax
jmp 0x5e6e58
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x10]
mov esi, eax
push esi
push ecx
mov dword [edi + 0x8594], esi
call fcn.005db390
push eax
push esi
push str.bind_failed_with_errno__d:__s
push edi
call fcn.005e5030
add esp, 0x18
mov eax, 0x2d
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0062cbd3
add esp, 0x218
ret