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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x74b738]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov dword [ebp - 0x19c], edx
push esi
push edi
mov dword [ebp - 0x190], eax
mov edi, dword [eax]
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x194], 0
mov ebx, dword [edi + 0x354]
mov eax, dword [edi + 0x1ac]
movzx esi, word [edi + 0x1a8]
mov dword [ebp - 0x1a4], eax
test ebx, ebx
jne 0x4acf90
test si, si
je 0x4ad35c
push 0x80
lea eax, [ebp - 0x188]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test ebx, ebx
je 0x4ad1d2
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4acfb3
sub ecx, edx
cmp ecx, 0xff
jae 0x4ad1d2
push 0x100
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov byte [ebp - 0x189], 0
push 3
push ebx
push 0x6f073c
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4ad004
add ebx, 3
mov cl, 1
jmp 0x4ad12a
push 5
push ebx
push str.host_
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4ad124
add ebx, 5
cmp dword [ebp + 8], 2
mov eax, dword [ebp - 0x190]
mov ecx, dword [eax + 0x214]
mov dword [ebp - 0x1a0], ecx
jne 0x4ad042
mov dword [eax + 0x214], 1
lea ecx, [ebp - 0x194]
mov edx, ebx
push ecx
push 0
mov ecx, eax
call fcn.004aee00
add esp, 8
cmp eax, 1
jne 0x4ad06d
mov ecx, dword [ebp - 0x190]
lea edx, [ebp - 0x194]
call fcn.004b6bb0
mov eax, dword [ebp - 0x190]
mov ecx, dword [ebp - 0x1a0]
mov dword [eax + 0x214], ecx
mov eax, dword [ebp - 0x194]
test eax, eax
je 0x4ad14c
mov ecx, dword [eax]
lea edx, [ebp - 0x108]
push 0x100
call fcn.004aeaa0
mov eax, dword [ebp - 0x194]
add esp, 4
mov eax, dword [eax]
push dword [eax + 4]
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
push ebx
push str.Name__s_family__i_resolved_to__s_family__i_n
push edi
call fcn.004ac3b0
mov edx, dword [ebp - 0x194]
add esp, 0x18
mov ecx, edi
call fcn.004aef90
cmp dword [ebp + 8], 2
jne 0x4ad1ff
lea eax, [ebp - 0x184]
push eax
lea edx, [ebp - 0x108]
call fcn.004c2280
add esp, 4
test eax, eax
jle 0x4ad1ff
mov eax, 2
push esi
mov word [ebp - 0x188], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x186], ax
mov eax, 0x10
mov dword [ebp - 0x198], eax
jmp 0x4ad201
mov cl, byte [ebp - 0x189]
sub esp, 0x10
call fcn.004c2370
add esp, 0x10
sub eax, 0
je 0x4ad1a5
sub eax, 1
je 0x4ad18f
sub eax, 1
je 0x4ad171
test cl, cl
je 0x4ad020
push ebx
push str.Couldnt_bind_to__s
push edi
call fcn.004ac430
add esp, 0xc
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
push ebx
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push edi
call fcn.004ac3b0
add esp, 0x14
jmp 0x4ad0d3
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
test cl, cl
je 0x4ad020
push ebx
push str.Couldnt_bind_to_interface__s
push edi
call fcn.004ac430
add esp, 0xc
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 2
jne 0x4ad1ff
mov eax, 2
push esi
mov word [ebp - 0x188], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x186], ax
mov eax, 0x10
mov dword [ebp - 0x198], eax
jmp 0x4ad201
xor eax, eax
mov ebx, dword [sym.imp.WS2_32.dll_bind]
push eax
lea eax, [ebp - 0x188]
push eax
push dword [ebp - 0x19c]
call ebx
test eax, eax
jns 0x4ad279
nop dword [eax + eax]
mov eax, dword [ebp - 0x1a4]
dec eax
mov dword [ebp - 0x1a4], eax
test eax, eax
jle 0x4ad2fc
movzx eax, si
push eax
push str.Bind_to_local_port__hu_failed__trying_next_n
push edi
call fcn.004ac3b0
add esp, 0xc
inc esi
cmp word [ebp - 0x188], 2
jne 0x4ad260
push esi
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x186], ax
push dword [ebp - 0x198]
lea eax, [ebp - 0x188]
push eax
push dword [ebp - 0x19c]
call ebx
test eax, eax
js 0x4ad220
push 0x80
lea eax, [ebp - 0x88]
mov dword [ebp - 0x1a0], 0x80
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x19c]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x4ad33d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x190]
mov esi, eax
mov edx, esi
mov dword [edi + 0x85b4], esi
call fcn.004c21a0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.004ac430
add esp, 0x10
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x190]
mov esi, eax
mov edx, esi
mov dword [edi + 0x85b4], esi
call fcn.004c21a0
push eax
push esi
push str.bind_failed_with_errno__d:__s
push edi
call fcn.004ac430
add esp, 0x10
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
movzx eax, si
push eax
push str.Local_port:__hu_n
push edi
call fcn.004ac3b0
mov eax, dword [ebp - 0x190]
add esp, 0xc
mov byte [eax + 0x1f6], 1
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00669a1e
mov esp, ebp
pop ebp
ret