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

Disassembly:
sub esp, 0x19c
mov eax, dword [0x6a21bc]
xor eax, esp
mov dword [esp + 0x198], eax
mov eax, dword [esp + 0x1a0]
push ebx
push ebp
mov ebp, dword [eax]
push esi
push edi
xor edi, edi
mov dword [esp + 0x24], edi
movzx ebx, word [ebp + 0x198]
mov esi, dword [ebp + 0x5c0]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x19c]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
cmp esi, edi
jne 0x5c295b
cmp bx, di
je 0x5c2cf3
push 0x80
lea ecx, [esp + 0x2c]
push edi
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
cmp esi, edi
je 0x5c2c92
mov eax, esi
lea edx, [eax + 1]
jmp 0x5c2980
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5c2980
sub eax, edx
cmp eax, 0xff
jae 0x5c2c92
push 0xff
lea edx, [esp + 0xad]
push edi
push edx
mov byte [esp + 0xb4], cl
call sub.msvcrt.dll_memset
mov edx, dword [0x6a2b5c]
mov eax, edx
add esp, 0xc
xor ebx, ebx
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5c29c0
sub eax, edi
mov edi, dword [sym.imp.msvcrt.dll_strncmp]
push eax
push esi
push edx
call edi
add esp, 0xc
test eax, eax
jne 0x5c2a56
mov eax, dword [0x6a2b5c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5c29e3
sub eax, edx
add esi, eax
mov ebx, 1
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x90]
mov ebp, dword [esp + 0x1b8]
push 0x100
lea eax, [esp + 0xac]
push eax
mov eax, dword [esp + 0x1c4]
push esi
push edx
push eax
push ebp
call fcn.005d3e20
add esp, 0x18
sub eax, 0
je 0x5c2aa0
dec eax
je 0x5c2a96
dec eax
je 0x5c2b28
test ebx, ebx
jne 0x5c2c7a
mov ebx, dword [esp + 0x18]
mov edi, dword [ebx + 0x318]
cmp ebp, 2
jne 0x5c2abc
mov dword [ebx + 0x318], 1
jmp 0x5c2acb
mov edx, dword [str.host_]
mov eax, edx
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5c2a61
sub eax, ebp
push eax
push esi
push edx
call edi
add esp, 0xc
test eax, eax
jne 0x5c29f3
mov eax, dword [str.host_]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5c2a82
mov ebp, dword [esp + 0x1b8]
sub eax, edx
add esi, eax
jmp 0x5c2a3b
mov eax, 1
jmp 0x5c2d25
test ebx, ebx
je 0x5c2a3b
mov ecx, dword [esp + 0x10]
push esi
push str.Couldnt_bind_to_interface__s
push ecx
call fcn.005bfec0
add esp, 0xc
jmp 0x5c2d20
cmp ebp, 0x17
jne 0x5c2acb
mov dword [ebx + 0x318], 2
lea edx, [esp + 0x24]
push edx
push 0
push esi
push ebx
call fcn.005b7a80
add esp, 0x10
cmp eax, 1
jne 0x5c2aef
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.005b7350
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x318], edi
test eax, eax
je 0x5c2c7a
mov edx, dword [eax]
push 0x100
lea ecx, [esp + 0xac]
push ecx
push edx
call fcn.005b7750
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.005b7ef0
add esp, 0x14
cmp ebp, 0x17
jne 0x5c2c2f
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0xac]
push eax
push ebp
call fcn.005cf3b0
add esp, 0xc
test eax, eax
jle 0x5c2b62
mov edx, dword [esp + 0x1c]
mov ecx, ebp
push edx
mov word [esp + 0x2c], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x14], 0x1c
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1b4]
mov edi, dword [sym.imp.WS2_32.dll_bind]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
call edi
test eax, eax
jns 0x5c2bc8
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
test eax, eax
jle 0x5c2cf7
inc ebx
push ebx
call esi
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
mov word [esp + 0x2e], ax
mov eax, dword [esp + 0x1b8]
push edx
push eax
call edi
test eax, eax
js 0x5c2b96
push 0x80
lea ecx, [esp + 0xac]
push 0
push ecx
mov dword [esp + 0x2c], 0x80
call sub.msvcrt.dll_memset
mov ecx, dword [esp + 0x1c0]
add esp, 0xc
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0xac]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x5c2ce5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x18]
mov esi, eax
push esi
push edx
mov dword [ebp + 0x108a4], esi
call fcn.005d3360
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x5c2d17
cmp ebp, 2
jne 0x5c2b6a
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xac]
push ecx
push ebp
call fcn.005cf3b0
add esp, 0xc
test eax, eax
jle 0x5c2b6a
mov eax, dword [esp + 0x1c]
mov edx, ebp
push eax
mov word [esp + 0x2c], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x14], 0x10
jmp 0x5c2b6a
mov ecx, dword [esp + 0x10]
push esi
push str.Couldnt_bind_to__s
push ecx
call fcn.005bfec0
add esp, 0xc
jmp 0x5c2d20
mov eax, dword [esp + 0x1b8]
cmp eax, 0x17
jne 0x5c2cbe
mov edx, eax
push ebx
mov word [esp + 0x2c], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x14], 0x1c
jmp 0x5c2b72
cmp eax, 2
jne 0x5c2b72
push ebx
mov word [esp + 0x2c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x14], 0x10
jmp 0x5c2b72
mov eax, dword [esp + 0x18]
mov dword [eax + 0x2dc], 1
xor eax, eax
jmp 0x5c2d25
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x18]
mov esi, eax
push esi
push ecx
mov dword [ebp + 0x108a4], esi
call fcn.005d3360
push eax
push esi
push str.bind_failed_with_errno__d:__s
push ebp
call fcn.005bfec0
add esp, 0x18
mov eax, 0x2d
mov ecx, dword [esp + 0x1a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005211a0
add esp, 0x19c
ret