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

Disassembly:
sub esp, 0x218
mov eax, dword [0x4d315c]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x21c]
push ebx
push ebp
push esi
mov esi, dword [eax]
push edi
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x14], eax
movzx ebp, word [esi + 0x128]
mov edi, dword [esi + 0x2b4]
push 0xff
mov ebx, ecx
mov ecx, dword [esi + 0x12c]
push eax
lea edx, [esp + 0x12d]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x130], al
call fcn.0048b6e0
add esp, 0xc
test edi, edi
jne 0x47cf02
test bp, bp
je 0x47d153
push 0x80
lea eax, [esp + 0x28]
push 0
push eax
call fcn.0048b6e0
add esp, 0xc
test edi, edi
je 0x47d053
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x47cf23
sub eax, edx
cmp eax, 0xff
jae 0x47d053
push 0x100
lea ecx, [esp + 0x128]
push ecx
push edi
push ebx
call fcn.00487400
add esp, 0x10
test eax, eax
je 0x47cf71
push ebx
lea edx, [esp + 0x128]
push edx
push edi
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push esi
call fcn.0047ca30
add esp, 0x14
jmp 0x47d00a
cmp ebx, 2
mov eax, dword [esi + 0x23c]
mov dword [esp + 0x1c], eax
jne 0x47cf8a
mov dword [esi + 0x23c], 1
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0
push edi
push edx
call fcn.004739b0
add esp, 0x10
cmp eax, 1
jne 0x47cfb6
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.0047f300
add esp, 8
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x23c], edx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47d03f
mov edx, dword [eax]
push 0x100
lea ecx, [esp + 0x128]
push ecx
push edx
call fcn.00473760
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0x134]
push eax
push ebx
push edi
push str.Name__s_family__i_resolved_to__s_family__i_n
push esi
call fcn.0047ca30
mov ecx, dword [esp + 0x38]
push ecx
push esi
call fcn.00473ba0
add esp, 0x2c
cmp ebx, 2
jne 0x47d071
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x128]
push eax
push ebx
call fcn.004873d0
add esp, 0xc
test eax, eax
jle 0x47d071
push ebp
mov word [esp + 0x28], bx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x26], ax
lea edi, [ebx + 0xe]
jmp 0x47d075
push edi
push str.Couldnt_bind_to__s
push esi
call fcn.0047cac0
add esp, 0xc
jmp 0x47d180
cmp ebx, 2
jne 0x47d071
push ebp
mov word [esp + 0x28], bx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x26], ax
mov dword [esp + 0x18], 0x10
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x230]
push edi
lea ecx, [esp + 0x28]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jge 0x47d0dd
lea ecx, [ecx]
mov eax, dword [esp + 0x20]
sub eax, 1
test eax, eax
mov dword [esp + 0x20], eax
jle 0x47d157
movzx edx, bp
push edx
push str.Bind_to_local_port__d_failed__trying_next_n
push esi
call fcn.0047ca30
add esp, 0xc
add ebp, 1
cmp word [esp + 0x24], 2
jne 0x47d0cc
push ebp
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esp + 0x26], ax
push edi
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x47d090
push 0x80
lea ecx, [esp + 0xa8]
push 0
push ecx
mov dword [esp + 0x28], 0x80
call fcn.0048b6e0
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xa8]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x47d136
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x10]
mov edi, eax
push edi
push ecx
mov dword [esi + 0x8494], edi
call fcn.004871b0
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x47d177
movzx edx, bp
push edx
push str.Local_port:__d_n
push esi
call fcn.0047ca30
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov byte [eax + 0x13f], 1
xor eax, eax
jmp 0x47d185
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x10]
mov edi, eax
push edi
push ecx
mov dword [esi + 0x8494], edi
call fcn.004871b0
push eax
push edi
push str.bind_failed_with_errno__d:__s
push esi
call fcn.0047cac0
add esp, 0x18
mov eax, 0x2d
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00490045
add esp, 0x218
ret