Function at 0x14011f030
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, 0x570
lea rdi, [rsp + 0x30]
mov ecx, 0x150
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x580]
mov rax, qword [0x14021ab88]
xor rax, rsp
mov qword [rsp + 0x568], rax
mov rax, qword [rsp + 0x580]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0xe0], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0xe8], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0x108], 0
mov rax, qword [rsp + 0x580]
movzx eax, word [rax + 0x238]
mov word [rsp + 0x114], ax
mov rax, qword [rsp + 0x580]
mov eax, dword [rax + 0x23c]
mov dword [rsp + 0x118], eax
mov eax, 8
imul rax, rax, 8
mov rcx, qword [rsp + 0x580]
mov rax, qword [rcx + rax + 0x750]
mov qword [rsp + 0x120], rax
cmp qword [rsp + 0x120], 0
jne 0x14011f131
movzx eax, word [rsp + 0x114]
test eax, eax
jne 0x14011f131
xor eax, eax
jmp 0x14011f8c9
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.14009a1ac
cmp qword [rsp + 0x120], 0
je 0x14011f63b
mov rcx, qword [rsp + 0x120]
call fcn.140099469
cmp rax, 0xff
jae 0x14011f63b
movzx eax, byte [0x14021b9bc]
mov byte [rsp + 0x140], al
lea rax, [rsp + 0x141]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov dword [rsp + 0x244], 0
mov byte [rsp + 0x248], 0
mov byte [rsp + 0x249], 0
mov rcx, qword [0x14020bac0]
call fcn.140099469
mov r8, rax
mov rdx, qword [rsp + 0x120]
mov rcx, qword [0x14020bac0]
call qword [sym.imp.ucrtbased.dll_strncmp]
test eax, eax
jne 0x14011f1fc
mov rcx, qword [0x14020bac0]
call fcn.140099469
mov rcx, qword [rsp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x120], rax
mov byte [rsp + 0x248], 1
jmp 0x14011f24e
mov rcx, qword [str.host_]
call fcn.140099469
mov r8, rax
mov rdx, qword [rsp + 0x120]
mov rcx, qword [str.host_]
call qword [sym.imp.ucrtbased.dll_strncmp]
test eax, eax
jne 0x14011f24e
mov rcx, qword [str.host_]
call fcn.140099469
mov rcx, qword [rsp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x120], rax
mov byte [rsp + 0x249], 1
movzx eax, byte [rsp + 0x249]
test eax, eax
jne 0x14011f344
mov dword [rsp + 0x28], pe_nt_image_headers64
lea rax, [rsp + 0x140]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x120]
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 0x808]
mov edx, dword [rsp + 0x598]
mov ecx, dword [rsp + 0x590]
call fcn.14009a7b0
mov dword [rsp + 0x560], eax
cmp dword [rsp + 0x560], 0
je 0x14011f2c4
cmp dword [rsp + 0x560], 1
je 0x14011f2f8
cmp dword [rsp + 0x560], 2
je 0x14011f302
jmp 0x14011f344
movzx eax, byte [rsp + 0x248]
test eax, eax
je 0x14011f2f6
mov r8, qword [rsp + 0x120]
lea rdx, str.Couldnt_bind_to_interface__s
mov rcx, qword [rsp + 0x580]
call fcn.14009b14c
mov eax, reloc.WLDAP32.dll_Ordinal_45
jmp 0x14011f8c9
jmp 0x14011f344
mov eax, 1
jmp 0x14011f8c9
mov byte [rsp + 0x248], 1
mov eax, dword [rsp + 0x590]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x140]
mov r8, qword [rsp + 0x120]
lea rdx, str.Local_Interface__s_is_ip__s_using_address_family__i
mov rcx, qword [rsp + 0x580]
call fcn.14009a8f0
mov dword [rsp + 0x244], 1
movzx eax, byte [rsp + 0x248]
test eax, eax
jne 0x14011f4b4
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x812]
mov byte [rsp + 0x24a], al
cmp dword [rsp + 0x590], 2
jne 0x14011f37f
mov rax, qword [rsp + 0x30]
mov byte [rax + 0x812], 1
jmp 0x14011f395
cmp dword [rsp + 0x590], 0x17
jne 0x14011f395
mov rax, qword [rsp + 0x30]
mov byte [rax + 0x812], 2
lea rax, [rsp + 0x108]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x580]
call fcn.140098b9a
mov dword [rsp + 0x24c], eax
cmp dword [rsp + 0x24c], 1
jne 0x14011f3e3
lea rdx, [rsp + 0x108]
mov rcx, qword [rsp + 0x580]
call fcn.14009a11b
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rsp + 0x24a]
mov byte [rax + 0x812], cl
cmp qword [rsp + 0x108], 0
je 0x14011f4a9
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x140]
mov rax, qword [rsp + 0x108]
mov rcx, qword [rax]
call fcn.14009a09e
mov rax, qword [rsp + 0x108]
mov rax, qword [rax]
mov eax, dword [rax + 4]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x140]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x590]
mov r8, qword [rsp + 0x120]
lea rdx, str.Name__s_family__i_resolved_to__s_family__i
mov rcx, qword [rsp + 0x580]
call fcn.14009a8f0
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x580]
call fcn.14009aed1
mov rax, qword [rsp + 0x108]
mov rax, qword [rax]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x590], eax
je 0x14011f49c
mov eax, 1
jmp 0x14011f8c9
mov dword [rsp + 0x244], 1
jmp 0x14011f4b4
mov dword [rsp + 0x244], 0xffffffff
cmp dword [rsp + 0x244], 0
jle 0x14011f5f7
cmp dword [rsp + 0x590], 0x17
jne 0x14011f593
mov edx, Ordinal_41
lea rcx, [rsp + 0x140]
call fcn.140098226
mov qword [rsp + 0x250], rax
cmp qword [rsp + 0x250], 0
je 0x14011f513
mov rax, qword [rsp + 0x250]
mov byte [rax], 0
mov rax, qword [rsp + 0x250]
inc rax
mov qword [rsp + 0x250], rax
mov rax, qword [rsp + 0xf0]
add rax, 8
mov r8, rax
lea rdx, [rsp + 0x140]
mov ecx, reloc.WS2_32.dll_socket
call fcn.14009841f
test eax, eax
jle 0x14011f586
mov eax, reloc.WS2_32.dll_socket
mov rcx, qword [rsp + 0xf0]
mov word [rcx], ax
movzx ecx, word [rsp + 0x114]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0xf0]
mov word [rcx + 2], ax
cmp qword [rsp + 0x250], 0
je 0x14011f586
mov rcx, qword [rsp + 0x250]
call qword [sym.imp.ucrtbased.dll_atoi]
mov rcx, qword [rsp + 0xf0]
mov dword [rcx + 0x18], eax
mov dword [rsp + 0xe0], Ordinal_32
jmp 0x14011f5f7
cmp dword [rsp + 0x590], 2
jne 0x14011f5f7
mov rax, qword [rsp + 0xe8]
add rax, 4
mov r8, rax
lea rdx, [rsp + 0x140]
mov ecx, 2
call fcn.14009841f
test eax, eax
jle 0x14011f5f7
mov eax, 2
mov rcx, qword [rsp + 0xe8]
mov word [rcx], ax
movzx ecx, word [rsp + 0x114]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0xe8]
mov word [rcx + 2], ax
mov dword [rsp + 0xe0], reloc.WS2_32.dll_recv
cmp dword [rsp + 0x244], 1
jge 0x14011f636
mov rax, qword [rsp + 0x580]
mov byte [rax + 0x1313], 0
mov r8, qword [rsp + 0x120]
lea rdx, str.Couldnt_bind_to__s
mov rcx, qword [rsp + 0x580]
call fcn.14009b14c
mov eax, reloc.WLDAP32.dll_Ordinal_45
jmp 0x14011f8c9
jmp 0x14011f6bb
cmp dword [rsp + 0x590], 0x17
jne 0x14011f67c
mov eax, reloc.WS2_32.dll_socket
mov rcx, qword [rsp + 0xf0]
mov word [rcx], ax
movzx ecx, word [rsp + 0x114]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0xf0]
mov word [rcx + 2], ax
mov dword [rsp + 0xe0], Ordinal_32
jmp 0x14011f6bb
cmp dword [rsp + 0x590], 2
jne 0x14011f6bb
mov eax, 2
mov rcx, qword [rsp + 0xe8]
mov word [rcx], ax
movzx ecx, word [rsp + 0x114]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0xe8]
mov word [rcx + 2], ax
mov dword [rsp + 0xe0], reloc.WS2_32.dll_recv
mov r8d, dword [rsp + 0xe0]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x588]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x14011f7ba
mov dword [rsp + 0x304], 0x80
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x270]
call fcn.14009a1ac
lea r8, [rsp + 0x304]
lea rdx, [rsp + 0x270]
mov rcx, qword [rsp + 0x588]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x14011f788
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x128], eax
mov rax, qword [rsp + 0x580]
mov ecx, dword [rsp + 0x128]
mov dword [rax + 0xda4], ecx
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x330]
mov ecx, dword [rsp + 0x128]
call fcn.14009a2ec
mov r9, rax
mov r8d, dword [rsp + 0x128]
lea rdx, [0x14020bb70]
mov rcx, qword [rsp + 0x580]
call fcn.14009b14c
mov eax, reloc.WLDAP32.dll_Ordinal_45
jmp 0x14011f8c9
movzx eax, word [rsp + 0x114]
mov r8d, eax
lea rdx, str.Local_port:__hu
mov rcx, qword [rsp + 0x580]
call fcn.14009a8f0
mov rax, qword [rsp + 0x30]
mov byte [rax + 0x3bb], 1
xor eax, eax
jmp 0x14011f8c9
mov eax, dword [rsp + 0x118]
dec eax
mov dword [rsp + 0x118], eax
cmp dword [rsp + 0x118], 0
jle 0x14011f862
movzx eax, word [rsp + 0x114]
inc ax
mov word [rsp + 0x114], ax
movzx eax, word [rsp + 0x114]
test eax, eax
jne 0x14011f7f9
jmp 0x14011f869
movzx eax, word [rsp + 0x114]
dec eax
mov r8d, eax
lea rdx, str.Bind_to_local_port__hu_failed__trying_next
mov rcx, qword [rsp + 0x580]
call fcn.14009a8f0
mov rax, qword [rsp + 0xd8]
movzx eax, word [rax]
cmp eax, 2
jne 0x14011f846
movzx ecx, word [rsp + 0x114]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rsp + 0xe8]
mov word [rcx + 2], ax
jmp 0x14011f860
movzx ecx, word [rsp + 0x114]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rsp + 0xf0]
mov word [rcx + 2], ax
jmp 0x14011f864
jmp 0x14011f869
jmp 0x14011f6bb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x128], eax
mov rax, qword [rsp + 0x580]
mov ecx, dword [rsp + 0x128]
mov dword [rax + 0xda4], ecx
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x450]
mov ecx, dword [rsp + 0x128]
call fcn.14009a2ec
mov r9, rax
mov r8d, dword [rsp + 0x128]
lea rdx, str.bind_failed_with_errno__d:__s
mov rcx, qword [rsp + 0x580]
call fcn.14009b14c
mov eax, reloc.WLDAP32.dll_Ordinal_45
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_getsockopt
call fcn.14009a508
mov rax, rdi
mov rcx, qword [rsp + 0x568]
xor rcx, rsp
call fcn.1400995fe
add rsp, 0x570
pop rdi
ret