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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0xb0a008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2a0], edx
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 0
movzx eax, word [edi + 0x18a]
mov ebx, dword [edi + 0x50c]
movzx esi, word [edi + 0x188]
mov dword [ebp - 0x29c], eax
test ebx, ebx
jne 0xa7a259
test si, si
je 0xa7a6ce
push 0x80
lea eax, [ebp - 0x28c]
push 0
push eax
call fcn.00aa2520
add esp, 0xc
test ebx, ebx
je 0xa7a53b
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0xa7a280
sub ecx, edx
cmp ecx, 0xff
jae 0xa7a53b
push 0x100
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.00aa2520
add esp, 0xc
mov byte [ebp - 0x28d], 0
push 3
push ebx
push 0xade22c
call fcn.00ab1ce0
add esp, 0xc
test eax, eax
jne 0xa7a2cd
add ebx, 3
mov cl, 1
jmp 0xa7a314
push 5
push ebx
push str.host_
call fcn.00ab1ce0
add esp, 0xc
test eax, eax
jne 0xa7a30e
add ebx, 5
mov ecx, dword [ebp - 0x2a0]
mov al, byte [ecx + 0x452]
mov byte [ebp - 0x28d], al
mov eax, dword [ebp + 0xc]
cmp eax, 2
jne 0xa7a433
mov byte [ecx + 0x452], 1
jmp 0xa7a43f
mov cl, byte [ebp - 0x28d]
sub esp, 0x10
call fcn.00423c10
add esp, 0x10
sub eax, 0
je 0xa7a406
sub eax, 1
je 0xa7a4de
sub eax, 1
je 0xa7a366
test cl, cl
je 0xa7a2e4
push ebx
push str.Couldnt_bind_to__s
push edi
mov byte [edi + 0xd3b], 0
call fcn.00a66380
add esp, 0xc
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00a9fec3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push ecx
push eax
push ebx
push str.Local_Interface__s_is_ip__s_using_address_family__i
push edi
call fcn.00a66440
add esp, 0x14
mov eax, dword [ebp + 0xc]
cmp eax, 0x17
jne 0xa7a4f4
lea eax, [ebp - 0x10c]
push 0x25
push eax
call fcn.00aa45b0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0xa7a3a7
mov byte [ebx], 0
inc ebx
lea eax, [ebp - 0x284]
mov ecx, 0x17
push eax
lea edx, [ebp - 0x10c]
call fcn.00a96090
add esp, 4
test eax, eax
jle 0xa7a3f6
mov eax, 0x17
push esi
mov word [ebp - 0x28c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x28a], ax
test ebx, ebx
je 0xa7a3f6
push 0xa
push 0
push ebx
call fcn.00ab2232
add esp, 0xc
mov dword [ebp - 0x274], eax
mov eax, 0x1c
mov dword [ebp - 0x298], eax
jmp 0xa7a575
test cl, cl
je 0xa7a2e4
push ebx
push str.Couldnt_bind_to_interface__s
push edi
call fcn.00a66380
add esp, 0xc
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00a9fec3
mov esp, ebp
pop ebp
ret
cmp eax, 0x17
jne 0xa7a43f
mov byte [ecx + 0x452], 2
lea eax, [ebp - 0x294]
mov edx, ebx
push eax
push 0
push 0x50
mov ecx, edi
call fcn.00a70560
add esp, 0xc
cmp eax, 1
jne 0xa7a468
lea edx, [ebp - 0x294]
mov ecx, edi
call fcn.00a66b30
mov ecx, dword [ebp - 0x2a0]
mov al, byte [ebp - 0x28d]
mov byte [ecx + 0x452], al
mov eax, dword [ebp - 0x294]
test eax, eax
je 0xa7a33a
mov ecx, dword [eax]
lea edx, [ebp - 0x10c]
push 0x100
call fcn.00a6fd10
mov eax, dword [ebp - 0x294]
add esp, 4
mov eax, dword [eax]
push dword [eax + 4]
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0xc]
push ebx
push str.Name__s_family__i_resolved_to__s_family__i
push edi
call fcn.00a66440
mov ebx, dword [ebp - 0x294]
add esp, 0x18
mov edx, ebx
mov ecx, edi
call fcn.00a70820
mov eax, dword [ebx]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + 4]
je 0xa7a380
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00a9fec3
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0xa7a573
lea eax, [ebp - 0x288]
mov ebx, 2
push eax
lea edx, [ebp - 0x10c]
mov ecx, ebx
call fcn.00a96090
add esp, 4
test eax, eax
jle 0xa7a573
mov word [ebp - 0x28c], bx
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x28a], ax
mov eax, 0x10
mov dword [ebp - 0x298], eax
jmp 0xa7a575
mov eax, dword [ebp + 0xc]
cmp eax, 0x17
jne 0xa7a565
push esi
mov word [ebp - 0x28c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x28a], ax
mov eax, 0x1c
mov dword [ebp - 0x298], eax
jmp 0xa7a575
cmp eax, 2
jne 0xa7a573
mov word [ebp - 0x28c], ax
jmp 0xa7a520
xor eax, eax
push eax
lea eax, [ebp - 0x28c]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0xa7a5e6
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
mov eax, dword [ebp - 0x29c]
dec eax
mov dword [ebp - 0x29c], eax
test eax, eax
jle 0xa7a66a
inc esi
test si, si
je 0xa7a66a
movzx eax, si
dec eax
push eax
push str.Bind_to_local_port__hu_failed__trying_next
push edi
call fcn.00a66440
add esp, 0xc
push esi
call ebx
push dword [ebp - 0x298]
mov word [ebp - 0x28a], ax
lea eax, [ebp - 0x28c]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0xa7a590
push 0x80
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x29c], 0x80
push 0
push eax
call fcn.00aa2520
add esp, 0xc
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x8c]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0xa7a6af
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea edx, [ebp - 0x20c]
push ecx
mov ecx, esi
mov dword [edi + 0x920], esi
call fcn.00a7e080
add esp, 4
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00a66380
add esp, 0x10
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00a9fec3
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea edx, [ebp - 0x10c]
push ecx
mov ecx, esi
mov dword [edi + 0x920], esi
call fcn.00a7e080
add esp, 4
push eax
push esi
push str.bind_failed_with_errno__d:__s
push edi
call fcn.00a66380
add esp, 0x10
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00a9fec3
mov esp, ebp
pop ebp
ret
movzx eax, si
push eax
push str.Local_port:__hu
push edi
call fcn.00a66440
mov eax, dword [ebp - 0x2a0]
add esp, 0xc
mov byte [eax + 0x1d6], 1
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a9fec3
mov esp, ebp
pop ebp
ret