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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0xaf8008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
push 0x2f
mov eax, dword [ebx + 0xc]
mov edi, edx
mov dword [ebp - 0x60c], eax
add eax, 0x378
mov dword [ebp - 0x634], eax
or eax, 0xffffffff
mov dword [ebp - 0x624], eax
mov dword [ebp - 0x62c], eax
lea eax, [ebp - 0x34]
push 0
push eax
mov dword [ebp - 0x63c], edi
mov dword [ebp - 0x614], ebx
call fcn.00a91e70
mov esi, dword [ebx + 0x51c]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x638], eax
mov dword [ebp - 0x620], eax
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x628], eax
mov byte [ebp - 0x60d], 1
mov dword [ebp - 0x61c], eax
test esi, esi
je 0xa7a85e
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0xa7a643
sub ecx, edx
cmp ecx, 1
jbe 0xa7a85e
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0xa7a660
sub ecx, edx
cmp ecx, 0x41
jae 0xa7a675
mov ecx, 0x41
jmp 0xa7a689
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0xa7a680
sub ecx, edx
lea eax, [ecx + 1]
push 1
push eax
call dword [0xaf898c]
add esp, 8
mov dword [ebp - 0x61c], eax
test eax, eax
jne 0xa7a6b0
mov esi, dword [ebp - 0x60c]
lea edi, [eax + 0x1b]
jmp 0xa7adcd
mov al, byte [esi]
cmp al, 0x5b
jne 0xa7a6ea
push 0x5d
push esi
call fcn.00a93f00
mov ebx, eax
add esp, 8
test ebx, ebx
je 0xa7a6dc
lea ecx, [esi + 1]
sub eax, ecx
push eax
push ecx
push dword [ebp - 0x61c]
call fcn.00a97b70
add esp, 0xc
xor esi, esi
xor edx, edx
test ebx, ebx
je 0xa7a7d1
jmp 0xa7a756
cmp al, 0x3a
jne 0xa7a6f2
mov ebx, esi
jmp 0xa7a756
push 0x3a
push esi
call fcn.00a93f00
mov ebx, eax
add esp, 8
test ebx, ebx
je 0xa7a7b1
lea eax, [ebp - 0x608]
mov edx, esi
push eax
mov ecx, 0x17
call fcn.00a859e0
add esp, 4
cmp eax, 1
jne 0xa7a742
mov ecx, dword [ebp - 0x61c]
sub ecx, esi
nop word [eax + eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0xa7a730
jmp 0xa7a7cd
mov eax, ebx
sub eax, esi
push eax
push esi
push dword [ebp - 0x61c]
call fcn.00a97b70
add esp, 0xc
push 0x3a
push ebx
call fcn.00a93f00
mov ebx, eax
add esp, 8
xor esi, esi
xor edx, edx
test ebx, ebx
je 0xa7a7d1
push 0xa
push edx
lea eax, [ebx + 1]
push eax
call fcn.00aa1b82
add esp, 0xc
mov ecx, eax
call fcn.00a4bf30
push 0x2d
push ebx
movzx esi, ax
call fcn.00a93f00
add esp, 8
test eax, eax
je 0xa7a7ad
push 0xa
inc eax
push 0
push eax
call fcn.00aa1b82
add esp, 0xc
mov ecx, eax
call fcn.00a4bf30
movzx edx, ax
jmp 0xa7a7d1
mov edx, esi
jmp 0xa7a7d1
mov ecx, dword [ebp - 0x61c]
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0xa7a7c0
xor esi, esi
xor edx, edx
xor ecx, ecx
movzx eax, dx
cmp si, dx
cmovbe ecx, eax
movzx eax, si
movzx ebx, cx
xor ecx, ecx
cmp si, dx
mov edx, dword [ebp - 0x61c]
cmovbe ecx, eax
movzx ecx, cx
cmp byte [edx], 0
je 0xa7a848
sub esp, 0x10
call fcn.00423c10
add esp, 0x10
sub eax, 0
je 0xa7a824
sub eax, 1
je 0xa7adc2
sub eax, 1
jne 0xa7a82e
lea eax, [ebp - 0x588]
mov dword [ebp - 0x638], eax
jmp 0xa7a830
mov eax, edx
mov dword [ebp - 0x638], eax
jmp 0xa7a830
xor eax, eax
mov dword [ebp - 0x630], ecx
mov esi, ebx
mov dword [ebp - 0x628], esi
test eax, eax
jne 0xa7a904
jmp 0xa7a858
mov eax, ecx
mov dword [ebp - 0x630], eax
mov eax, ebx
mov dword [ebp - 0x628], eax
mov ebx, dword [ebp - 0x614]
mov esi, dword [ebp - 0x60c]
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x608]
mov dword [ebp - 0x618], 0x80
push eax
push dword [esi + 0x120]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0xa7a8b7
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [ebp - 0x180]
mov ecx, eax
call fcn.00a6d9c0
add esp, 4
push eax
push str.getsockname___failed:__s
push ebx
call fcn.00a55cd0
add esp, 0xc
jmp 0xa7adc8
cmp word [ebp - 0x608], 0x17
lea ecx, [ebp - 0x600]
lea edx, [ebp - 0x604]
cmove edx, ecx
lea ecx, [ebp - 0x588]
push 0x401
push ecx
movzx ecx, word [ebp - 0x608]
call fcn.00a68200
add esp, 8
test eax, eax
je 0xa7adc8
lea eax, [ebp - 0x588]
mov byte [ebp - 0x60d], 0
mov dword [ebp - 0x638], eax
mov esi, dword [ebp - 0x614]
lea ecx, [ebp - 0x620]
push ecx
push 0
push 0
mov edx, eax
mov ecx, esi
call fcn.00a5feb0
add esp, 0xc
cmp eax, 1
jne 0xa7a933
lea edx, [ebp - 0x620]
mov ecx, esi
call fcn.00a56480
mov edx, dword [ebp - 0x620]
test edx, edx
je 0xa7adad
mov ebx, dword [edx]
mov ecx, esi
call fcn.00a60170
test ebx, ebx
je 0xa7adad
lea eax, [ebp - 0x62c]
mov edx, ebx
push eax
mov eax, dword [ebp - 0x60c]
movzx eax, byte [eax + 0x451]
push eax
push ecx
mov ecx, esi
call fcn.00a699e0
add esp, 0xc
test eax, eax
je 0xa7a9b3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0xa7a952
push ecx
lea edx, [ebp - 0x180]
mov ecx, eax
call fcn.00a6d9c0
add esp, 4
push eax
push str.socket_failure:__s
push esi
call fcn.00a55cd0
mov eax, dword [ebp - 0x62c]
mov dword [ebp - 0x624], eax
jmp 0xa7adbf
push dword [ebx + 0x10]
lea eax, [ebp - 0x608]
push dword [ebx + 0x18]
push eax
call fcn.00a918f0
mov eax, dword [ebx + 0x10]
add esp, 0xc
mov dword [ebp - 0x618], eax
mov eax, dword [ebp - 0x630]
cmp ax, word [ebp - 0x628]
movzx esi, ax
mov eax, dword [ebp - 0x62c]
mov dword [ebp - 0x624], eax
ja 0xa7ad98
mov eax, dword [sym.imp.WS2_32.dll_htons]
push esi
call eax
push dword [ebp - 0x618]
movzx eax, ax
mov word [ebp - 0x606], ax
lea eax, [ebp - 0x608]
push eax
push dword [ebp - 0x624]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0xa7ab19
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [ebp - 0x60d], 0
je 0xa7aab0
cmp eax, 0x2741
jne 0xa7aab0
push ecx
lea edx, [ebp - 0x180]
mov ecx, eax
call fcn.00a6d9c0
add esp, 4
push eax
movzx eax, si
mov esi, dword [ebp - 0x614]
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push esi
call fcn.00a55d90
add esp, 0x10
mov dword [ebp - 0x618], 0x80
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x608]
push eax
mov eax, dword [ebp - 0x60c]
push dword [eax + 0x120]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0xa7aac9
mov eax, dword [ebp - 0x630]
movzx esi, ax
cmp si, word [ebp - 0x628]
mov byte [ebp - 0x60d], 0
jmp 0xa7a9ed
cmp eax, 0x2740
je 0xa7aabc
cmp eax, 0xd
jne 0xa7aaeb
inc esi
cmp si, word [ebp - 0x628]
jmp 0xa7a9ed
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [ebp - 0x180]
mov ecx, eax
call fcn.00a6d9c0
add esp, 4
push eax
push str.getsockname___failed:__s
jmp 0xa7adb9
push ecx
lea edx, [ebp - 0x180]
mov ecx, eax
call fcn.00a6d9c0
add esp, 4
push eax
movzx eax, si
push eax
push str.bind_port_hu__failed:__s
push dword [ebp - 0x614]
call fcn.00a55cd0
add esp, 0x10
jmp 0xa7adc2
cmp si, word [ebp - 0x628]
ja 0xa7ad98
mov esi, dword [ebp - 0x624]
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x608]
mov dword [ebp - 0x618], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0xa7ab77
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [ebp - 0x180]
mov ecx, eax
call fcn.00a6d9c0
add esp, 4
push eax
push str.getsockname___failed:__s
push dword [ebp - 0x614]
jmp 0xa7adba
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0xa7abac
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [ebp - 0x180]
mov ecx, eax
call fcn.00a6d9c0
add esp, 4
push eax
push str.socket_failure:__s
push dword [ebp - 0x614]
jmp 0xa7adba
push 0x2f
lea edx, [ebp - 0x34]
mov ecx, ebx
call fcn.00a5f660
mov eax, dword [ebp - 0x60c]
add esp, 4
cmp byte [eax + 0x1d2], 0
jne 0xa7abda
cmp byte [eax + 0x1cc], 0
je 0xa7abda
mov byte [eax + 0x1d2], 1
cmp edi, 2
je 0xa7ac46
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [ebp - 0x608]
nop dword [eax]
cmp byte [eax + 0x1d2], 0
jne 0xa7abfd
test edi, edi
je 0xa7ac3a
cmp edi, 1
jne 0xa7ac08
cmp cx, 2
jne 0xa7ac3a
movzx eax, cx
sub eax, 2
je 0xa7ac15
sub eax, 0x15
jne 0xa7ac34
push dword [ebp - 0x606]
call esi
movzx ebx, ax
test edi, edi
je 0xa7ad25
cmp edi, 1
je 0xa7ac8a
mov cx, word [ebp - 0x608]
mov eax, dword [ebp - 0x60c]
inc edi
mov dword [ebp - 0x63c], edi
cmp edi, 2
jne 0xa7abf0
mov esi, dword [ebp - 0x634]
mov ebx, dword [ebp - 0x614]
lea eax, [ebp - 0x62c]
mov dword [esi + 0x90], edi
mov esi, dword [ebp - 0x60c]
mov edx, esi
push eax
push ecx
mov ecx, ebx
call fcn.00a6b100
mov edi, eax
add esp, 8
test edi, edi
jne 0xa7ad8a
mov dl, 0x1c
mov ecx, ebx
call fcn.00a7a3f0
jmp 0xa7adf0
lea edx, [ebp - 0x80]
mov edi, 0x2c
lea esi, [ebp - 0x34]
mov cl, byte [esi]
test cl, cl
je 0xa7acac
cmp cl, 0x2e
movzx eax, cl
cmove eax, edi
mov byte [edx], al
inc edx
add esi, 1
jne 0xa7ac95
movzx ecx, bx
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.00a590c0
mov esi, dword [ebp - 0x634]
lea eax, [ebp - 0x80]
mov ebx, dword [ebp - 0x614]
add esp, 0x14
push eax
push str.PORT
push 0xad0568
push esi
push ebx
call fcn.00a8dc60
mov edi, dword [ebp - 0x63c]
add esp, 0x14
mov dword [ebp - 0x620], eax
test eax, eax
je 0xa7ac52
mov edi, eax
mov ecx, edi
call fcn.00a6d0d0
push eax
push str.Failure_sending_PORT_command:__s
push ebx
call fcn.00a55cd0
mov esi, dword [ebp - 0x60c]
add esp, 0xc
jmp 0xa7adcd
mov esi, dword [ebp - 0x634]
movzx eax, bx
mov ebx, dword [ebp - 0x614]
push eax
lea eax, [ebp - 0x34]
push eax
xor eax, eax
cmp word [ebp - 0x608], 2
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push esi
push ebx
call fcn.00a8dc60
add esp, 0x1c
mov dword [ebp - 0x620], eax
test eax, eax
je 0xa7ac52
mov edi, eax
mov ecx, edi
call fcn.00a6d0d0
push eax
push str.Failure_sending_EPRT_command:__s
push ebx
call fcn.00a55cd0
mov esi, dword [ebp - 0x60c]
add esp, 0xc
jmp 0xa7adcd
mov eax, dword [ebp - 0x62c]
mov dword [ebp - 0x624], eax
jmp 0xa7adcd
push str.bind___failed__we_ran_out_of_ports
push dword [ebp - 0x614]
call fcn.00a55cd0
add esp, 8
jmp 0xa7adc2
mov eax, dword [ebp - 0x638]
push eax
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push esi
call fcn.00a55cd0
add esp, 0xc
mov esi, dword [ebp - 0x60c]
mov edi, 0x1e
mov ecx, dword [ebp - 0x614]
xor dl, dl
call fcn.00a7a3f0
mov eax, dword [ebp - 0x624]
cmp eax, 0xffffffff
je 0xa7adf0
push eax
mov edx, esi
call fcn.00a69a90
add esp, 4
push dword [ebp - 0x61c]
call dword [0xaf8984]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00a8f813
mov esp, ebp
pop ebp
ret