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

Disassembly:
sub esp, 0x2a0
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x29c], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], edx
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ecx
movzx eax, word [edi + 0x18a]
mov esi, dword [edi + 0x504]
movzx ebx, word [edi + 0x188]
mov dword [esp + 0x1c], eax
test esi, esi
jne 0x49ba2c
test bx, bx
je 0x49bda1
push 0x80
push ecx
lea eax, [esp + 0x30]
push eax
call fcn.0051c010
add esp, 0xc
push 2
pop eax
test esi, esi
je 0x49bc4d
push esi
call fcn.00520660
pop ecx
mov ecx, 0xff
cmp eax, ecx
jae 0x49bc4a
push ecx
lea eax, [esp + 0xad]
mov byte [esp + 0xac], 0
push 0
push eax
call fcn.0051c010
add esp, 0xc
mov ebp, 0x59a7f0
push ebp
call fcn.00520660
pop ecx
push eax
push esi
push ebp
call fcn.00527fe0
add esp, 0xc
test eax, eax
jne 0x49bab4
push ebp
call fcn.00520660
pop ecx
add esi, eax
push esi
push str.Couldnt_bind_to_interface__s
push edi
call fcn.0048c1c7
add esp, 0xc
push 0x2d
pop eax
jmp 0x49bda3
mov ebp, str.host_
push ebp
call fcn.00520660
pop ecx
push eax
push esi
push ebp
call fcn.00527fe0
add esp, 0xc
test eax, eax
jne 0x49bad8
push ebp
call fcn.00520660
pop ecx
add esi, eax
mov ecx, dword [esp + 0x24]
push 0x17
pop ebp
push 2
mov al, byte [ecx + 0x34c]
mov byte [esp + 0x1b], al
mov eax, dword [esp + 0x2bc]
pop edx
cmp eax, edx
jne 0x49bb00
mov byte [ecx + 0x34c], 1
jmp 0x49bb0a
cmp eax, ebp
jne 0x49bb0a
mov byte [ecx + 0x34c], dl
lea eax, [esp + 0x18]
mov edx, esi
push eax
push 0
push 0x50
mov ecx, edi
call fcn.0048f2ec
add esp, 0xc
cmp eax, 1
jne 0x49bb31
push eax
lea edx, [esp + 0x1c]
mov ecx, edi
call fcn.0048d271
pop ecx
mov eax, dword [esp + 0x24]
mov cl, byte [esp + 0x17]
mov byte [eax + 0x34c], cl
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49bc38
mov ecx, dword [eax]
lea edx, [esp + 0xa8]
push 0x100
call fcn.0048eb3c
mov eax, dword [esp + 0x1c]
pop ecx
mov eax, dword [eax]
push dword [eax + 4]
lea eax, [esp + 0xac]
push eax
push dword [esp + 0x2c0]
push esi
push str.Name__s_family__i_resolved_to__s_family__i
push edi
call fcn.0048c275
mov esi, dword [esp + 0x30]
add esp, 0x18
mov edx, esi
mov ecx, edi
call fcn.0048f618
mov ecx, dword [esi]
mov eax, dword [esp + 0x2b8]
cmp eax, dword [ecx + 4]
je 0x49bba9
xor eax, eax
inc eax
jmp 0x49bda3
cmp eax, ebp
jne 0x49bc08
lea eax, [esp + 0xa8]
push 0x25
push eax
call fcn.0051c170
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x49bbc8
mov byte [esi], 0
inc esi
lea edx, [esp + 0x30]
lea ecx, [esp + 0xa8]
call fcn.0048ddc0
test eax, eax
jle 0x49bc6a
push ebx
mov word [esp + 0x2c], bp
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
test esi, esi
je 0x49bc6a
push 0xa
push 0
push esi
call fcn.0052d289
add esp, 0xc
mov dword [esp + 0x40], eax
jmp 0x49bc6a
push 2
pop ebp
cmp eax, ebp
jne 0x49bc7f
lea edx, [esp + 0x2c]
lea ecx, [esp + 0xa8]
call fcn.0048dd0e
test eax, eax
jle 0x49bc7f
mov word [esp + 0x28], bp
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
push 0x10
jmp 0x49bc6c
push esi
mov byte [edi + 0xd6f], 0
push str.Couldnt_bind_to__s
jmp 0x49baa3
push 2
pop eax
push 0x17
pop ebp
cmp dword [esp + 0x2b8], ebp
jne 0x49bc6f
push ebx
mov word [esp + 0x2c], bp
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
push 0x1c
pop esi
jmp 0x49bc83
cmp dword [esp + 0x2b8], eax
jne 0x49bc7f
mov word [esp + 0x28], ax
jmp 0x49bc28
mov esi, dword [esp + 0x20]
push esi
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x2bc]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x49bcf0
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x49bd5d
inc ebx
test bx, bx
je 0x49bd5d
movzx eax, bx
dec eax
push eax
push str.Bind_to_local_port__d_failed__trying_next
push edi
call fcn.0048c275
add esp, 0xc
push 2
pop eax
push ebx
call ebp
mov word [esp + 0x2a], ax
lea eax, [esp + 0x28]
push esi
push eax
push dword [esp + 0x2bc]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x49bca0
mov eax, 0x80
push eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0xac]
push 0
push eax
call fcn.0051c010
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0xac]
push eax
push dword [esp + 0x2bc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x49bd84
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea edx, [esp + 0x1a8]
push ecx
mov ecx, esi
mov dword [edi + 0x934], esi
call fcn.00477b48
pop ecx
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.0048c1c7
add esp, 0x10
jmp 0x49baac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea edx, [esp + 0xa8]
push ecx
mov ecx, esi
mov dword [edi + 0x934], esi
call fcn.00477b48
pop ecx
push eax
push esi
push str.bind_failed_with_errno__d:__s
jmp 0x49bd4f
movzx eax, bx
push eax
push str.Local_port:__hu
push edi
call fcn.0048c275
mov eax, dword [esp + 0x30]
add esp, 0xc
mov byte [eax + 0x1f6], 1
xor eax, eax
mov ecx, dword [esp + 0x2ac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x2a0
ret