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

Disassembly:
sub esp, 0x298
mov eax, dword [0x84dfc0]
xor eax, esp
mov dword [esp + 0x294], eax
mov eax, dword [esp + 0x29c]
push ebx
push ebp
mov ebp, dword [eax]
xor ebx, ebx
push esi
mov dword [esp + 0x10], ebx
mov esi, dword [ebp + 0x9dc]
push edi
movzx edi, word [ebp + 0x5f8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x5fc]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
cmp esi, ebx
jne 0x4c2617
cmp di, bx
je 0x4c2a57
push 0x80
lea ecx, [esp + 0x28]
push ebx
push ecx
call fcn.0048d310
add esp, 0xc
cmp esi, ebx
je 0x4c29e2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c2637
sub eax, edx
cmp eax, 0xff
jae 0x4c29e2
push 0xff
lea edx, [esp + 0xa9]
push ebx
push edx
mov byte [esp + 0xb0], bl
call fcn.0048d310
mov edx, dword [0x84f490]
mov eax, edx
add esp, 0xc
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c2673
sub eax, edi
push eax
push esi
push edx
call fcn.004918be
add esp, 0xc
test eax, eax
jne 0x4c2704
mov eax, dword [0x84f490]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c2693
sub eax, edx
add esi, eax
mov ebx, 1
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x2f4]
mov edi, dword [esp + 0x2b4]
push 0x100
lea eax, [esp + 0xa8]
push eax
mov eax, dword [esp + 0x2c0]
push esi
push edx
push eax
push edi
call fcn.0051db30
add esp, 0x18
sub eax, 0
je 0x4c274b
sub eax, 1
je 0x4c2741
sub eax, 1
jne 0x4c2763
push edi
lea ecx, [esp + 0xa8]
push ecx
push esi
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push ebp
call fcn.004bd2f0
add esp, 0x14
jmp 0x4c2836
mov edx, dword [str.host_]
mov eax, edx
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c2710
sub eax, edi
push eax
push esi
push edx
call fcn.004918be
add esp, 0xc
test eax, eax
jne 0x4c26a3
mov eax, dword [str.host_]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c2734
sub eax, edx
add esi, eax
jmp 0x4c276b
mov eax, 1
jmp 0x4c2a91
test ebx, ebx
je 0x4c276b
push esi
push str.Couldnt_bind_to_interface__s
push ebp
call fcn.004bd3d0
add esp, 0xc
jmp 0x4c2a8c
test ebx, ebx
jne 0x4c29c4
mov eax, dword [esp + 0x2b4]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + 0x5f8]
cmp eax, 2
jne 0x4c278f
mov ebx, edx
mov dword [ebx + 0x5f8], 1
jmp 0x4c27a6
cmp eax, 0x17
jne 0x4c27a4
mov eax, edx
mov dword [eax + 0x5f8], 2
mov ebx, eax
jmp 0x4c27a6
mov ebx, edx
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push esi
push ebx
call fcn.004e5a20
add esp, 0x14
cmp eax, 1
jne 0x4c27cc
lea edx, [esp + 0x14]
push edx
push ebx
call fcn.004b3af0
add esp, 8
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x5f8], edi
test eax, eax
je 0x4c29c4
mov edx, dword [eax]
push 0x100
lea ecx, [esp + 0xa8]
push ecx
push edx
call fcn.004e4fa0
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov edi, dword [esp + 0x2c0]
push edx
lea eax, [esp + 0xb4]
push eax
push edi
push esi
push str.Name__s_family__i_resolved_to__s_family__i_n
push ebp
call fcn.004bd2f0
mov ecx, dword [esp + 0x38]
push ecx
push ebp
call fcn.004e5cb0
mov edx, dword [esp + 0x40]
mov eax, dword [edx]
add esp, 0x2c
cmp edi, dword [eax + 4]
jne 0x4c2741
cmp edi, 0x17
jne 0x4c2979
lea ecx, [esp + 0xa4]
push 0x25
push ecx
call fcn.00491800
mov esi, eax
add esp, 8
test esi, esi
je 0x4c285b
mov byte [esi], 0
inc esi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0xa8]
push eax
push 0x17
call fcn.004ec250
add esp, 0xc
test eax, eax
jle 0x4c28a1
mov edx, dword [esp + 0x1c]
mov ecx, 0x17
push edx
mov word [esp + 0x28], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x26], ax
test esi, esi
je 0x4c28a1
push esi
call fcn.0048e2eb
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], 0x1c
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x2b0]
push eax
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jge 0x4c2911
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
nop
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
test eax, eax
jle 0x4c2a5b
movzx edx, di
push edx
push str.Bind_to_local_port__hu_failed__trying_next_n
push ebp
call fcn.004bd2f0
add esp, 0xc
inc edi
push edi
call ebx
mov word [esp + 0x26], ax
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x4c28d0
push 0x80
lea edx, [esp + 0xa8]
push 0
push edx
mov dword [esp + 0x2c], 0x80
call fcn.0048d310
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xa8]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x4c2a37
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea edx, [esp + 0x1a8]
mov esi, eax
push edx
push esi
mov dword [ebp + 0xeb4], esi
call fcn.004eb470
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x4c2a83
cmp edi, 2
jne 0x4c28a9
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xa8]
push ecx
push edi
call fcn.004ec250
add esp, 0xc
test eax, eax
jle 0x4c28a9
mov eax, dword [esp + 0x1c]
mov edx, edi
push eax
mov word [esp + 0x28], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x26], ax
mov dword [esp + 0x18], 0x10
jmp 0x4c28a9
push esi
push str.Couldnt_bind_to__s
push ebp
mov dword [ebp + 0x1248], 0
call fcn.004bd3d0
add esp, 0xc
jmp 0x4c2a8c
mov eax, dword [esp + 0x2b4]
cmp eax, 0x17
jne 0x4c2a0e
mov ecx, eax
push edi
mov word [esp + 0x28], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x26], ax
mov dword [esp + 0x18], 0x1c
jmp 0x4c28ad
cmp eax, 2
jne 0x4c28ad
mov edx, eax
push edi
mov word [esp + 0x28], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x26], ax
mov dword [esp + 0x18], 0x10
jmp 0x4c28ad
movzx eax, di
push eax
push str.Local_port:__hu_n
push ebp
call fcn.004bd2f0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dword [ecx + 0x59c], 1
xor eax, eax
jmp 0x4c2a91
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea edx, [esp + 0x1a8]
mov esi, eax
push edx
push esi
mov dword [ebp + 0xeb4], esi
call fcn.004eb470
push eax
push esi
push str.bind_failed_with_errno__d:__s
push ebp
call fcn.004bd3d0
add esp, 0x1c
mov eax, 0x2d
mov ecx, dword [esp + 0x2a4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048d1f2
add esp, 0x298
ret