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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x490
mov rax, qword [0x1400dc020]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x4a0]
movzx eax, word [rax + 0x238]
mov word [rsp + 0x34], ax
mov rax, qword [rsp + 0x4a0]
mov eax, dword [rax + 0x23c]
mov dword [rsp + 0x54], eax
mov eax, 8
imul rax, rax, 8
mov rcx, qword [rsp + 0x4a0]
mov rax, qword [rcx + rax + 0x740]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14007106e
movzx eax, word [rsp + 0x34]
test eax, eax
jne 0x14007106e
xor eax, eax
jmp 0x140071526
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.140028c20
cmp qword [rsp + 0x40], 0
je 0x140071378
mov rcx, qword [rsp + 0x40]
call fcn.140035aa0
cmp rax, 0xff
jae 0x140071378
mov al, byte [0x1400e458d]
mov byte [rsp + 0x180], al
lea rax, [rsp + 0x181]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov dword [rsp + 0x48], 0
mov byte [rsp + 0x30], 0
mov byte [rsp + 0x38], 0
mov rcx, qword [0x1400dda80]
call fcn.140035aa0
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [0x1400dda80]
call fcn.1400368a0
test eax, eax
jne 0x14007111f
mov rcx, qword [0x1400dda80]
call fcn.140035aa0
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x30], 1
jmp 0x140071164
mov rcx, qword [str.host_]
call fcn.140035aa0
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [str.host_]
call fcn.1400368a0
test eax, eax
jne 0x140071164
mov rcx, qword [str.host_]
call fcn.140035aa0
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x38], 1
movzx eax, byte [rsp + 0x38]
test eax, eax
jne 0x1400711f6
mov r9d, 0x100
lea r8, [rsp + 0x180]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x4b0]
call fcn.1400a4304
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x1400711ab
cmp dword [rsp + 0x4c], 1
je 0x1400711d9
cmp dword [rsp + 0x4c], 2
je 0x1400711e3
jmp 0x1400711f6
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1400711d7
mov r8, qword [rsp + 0x40]
lea rdx, str.Couldnt_bind_to_interface__s
mov rcx, qword [rsp + 0x4a0]
call fcn.14006f3b4
mov eax, 0x2d
jmp 0x140071526
jmp 0x1400711f6
mov eax, 1
jmp 0x140071526
mov byte [rsp + 0x30], 1
xor eax, eax
test eax, eax
jne 0x1400711e8
mov dword [rsp + 0x48], 1
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x1400712e1
mov rax, qword [rsp + 0x68]
mov al, byte [rax + 0x18c]
mov byte [rsp + 0x39], al
cmp dword [rsp + 0x4b0], 2
jne 0x140071228
mov rax, qword [rsp + 0x68]
mov byte [rax + 0x18c], 1
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x4a0]
call fcn.1400997b8
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 1
jne 0x140071267
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x4a0]
call fcn.140081124
mov rax, qword [rsp + 0x68]
mov cl, byte [rsp + 0x39]
mov byte [rax + 0x18c], cl
cmp qword [rsp + 0x58], 0
je 0x1400712d9
mov r8d, 0x100
lea rdx, [rsp + 0x180]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
call fcn.140099734
xor eax, eax
test eax, eax
jne 0x140071299
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x4a0]
call fcn.140099bac
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x4b0], eax
je 0x1400712cf
mov eax, 1
jmp 0x140071526
mov dword [rsp + 0x48], 1
jmp 0x1400712e1
mov dword [rsp + 0x48], 0xffffffff
cmp dword [rsp + 0x48], 0
jle 0x14007133d
cmp dword [rsp + 0x4b0], 2
jne 0x14007133d
mov rax, qword [rsp + 0x60]
add rax, 4
mov r8, rax
lea rdx, [rsp + 0x180]
mov ecx, 2
call fcn.1400a42b8
test eax, eax
jle 0x14007133d
mov eax, 2
mov rcx, qword [rsp + 0x60]
mov word [rcx], ax
movzx ecx, word [rsp + 0x34]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0x60]
mov word [rcx + 2], ax
mov dword [rsp + 0x50], reloc.WS2_32.dll_recv
cmp dword [rsp + 0x48], 1
jge 0x140071376
mov rax, qword [rsp + 0x4a0]
mov byte [rax + 0x1263], 0
mov r8, qword [rsp + 0x40]
lea rdx, str.Couldnt_bind_to__s
mov rcx, qword [rsp + 0x4a0]
call fcn.14006f3b4
mov eax, 0x2d
jmp 0x140071526
jmp 0x1400713ab
cmp dword [rsp + 0x4b0], 2
jne 0x1400713ab
mov eax, 2
mov rcx, qword [rsp + 0x60]
mov word [rcx], ax
movzx ecx, word [rsp + 0x34]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0x60]
mov word [rcx + 2], ax
mov dword [rsp + 0x50], reloc.WS2_32.dll_recv
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x4a8]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x140071479
mov dword [rsp + 0x74], 0x80
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x100]
call fcn.140028c20
lea r8, [rsp + 0x74]
lea rdx, [rsp + 0x100]
mov rcx, qword [rsp + 0x4a8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x140071460
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x4a0]
mov ecx, dword [rsp + 0x3c]
mov dword [rax + 0xd34], ecx
mov r8d, 0x100
lea rdx, [rsp + 0x280]
mov ecx, dword [rsp + 0x3c]
call fcn.1400a399c
mov r9, rax
mov r8d, dword [rsp + 0x3c]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x4a0]
call fcn.14006f3b4
mov eax, 0x2d
jmp 0x140071526
xor eax, eax
test eax, eax
jne 0x140071460
mov rax, qword [rsp + 0x68]
mov byte [rax + 0x3d7], 1
xor eax, eax
jmp 0x140071526
mov eax, dword [rsp + 0x54]
dec eax
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jle 0x1400714cb
movzx eax, word [rsp + 0x34]
inc ax
mov word [rsp + 0x34], ax
movzx eax, word [rsp + 0x34]
test eax, eax
jne 0x1400714a2
jmp 0x1400714d2
xor eax, eax
test eax, eax
jne 0x1400714a2
mov rax, qword [rsp + 0x78]
movzx eax, word [rax]
cmp eax, 2
jne 0x1400714c9
movzx ecx, word [rsp + 0x34]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rsp + 0x60]
mov word [rcx + 2], ax
jmp 0x1400714cd
jmp 0x1400714d2
jmp 0x1400713ab
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x4a0]
mov ecx, dword [rsp + 0x3c]
mov dword [rax + 0xd34], ecx
mov r8d, 0x100
lea rdx, [rsp + 0x380]
mov ecx, dword [rsp + 0x3c]
call fcn.1400a399c
mov r9, rax
mov r8d, dword [rsp + 0x3c]
lea rdx, str.bind_failed_with_errno__d:__s
mov rcx, qword [rsp + 0x4a0]
call fcn.14006f3b4
mov eax, 0x2d
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140026bb0
add rsp, 0x490
pop rdi
ret