Function at 0x1400d5030
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, 0x3a0
mov rax, qword [0x1401990d8]
xor rax, rsp
mov qword [rsp + 0x390], rax
mov rax, qword [rsp + 0x3b0]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x60], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x6f0]
mov word [rsp + 0x34], ax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x6f4]
mov dword [rsp + 0x64], eax
mov eax, 8
imul rax, rax, 8
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx + rax + 0xbc8]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400d50ef
movzx eax, word [rsp + 0x34]
test eax, eax
jne 0x1400d50ef
xor eax, eax
jmp 0x1400d5632
mov r8d, reloc.OLEAUT32.dll_VarMonthName
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.140054ae0
cmp qword [rsp + 0x50], 0
je 0x1400d5455
mov rcx, qword [rsp + 0x50]
call fcn.140080560
cmp rax, 0xff
jae 0x1400d5455
movzx eax, byte [0x1401a9fcb]
mov byte [rsp + 0x190], al
lea rax, [rsp + 0x191]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x30], 0
mov byte [rsp + 0x38], 0
mov rcx, qword [0x14019ade8]
call fcn.140080560
mov r8, rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [0x14019ade8]
call fcn.140083680
test eax, eax
jne 0x1400d51a1
mov rcx, qword [0x14019ade8]
call fcn.140080560
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x30], 1
jmp 0x1400d51e6
mov rcx, qword [str.host_]
call fcn.140080560
mov r8, rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [str.host_]
call fcn.140083680
test eax, eax
jne 0x1400d51e6
mov rcx, qword [str.host_]
call fcn.140080560
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x38], 1
movzx eax, byte [rsp + 0x38]
test eax, eax
jne 0x1400d52b5
mov dword [rsp + 0x28], 0x100
lea rax, [rsp + 0x190]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov rax, qword [rsp + 0x3b0]
mov r8d, dword [rax + 0xb8]
mov edx, dword [rsp + 0x3c8]
mov ecx, dword [rsp + 0x3c0]
call fcn.140103520
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
je 0x1400d524a
cmp dword [rsp + 0x5c], 1
je 0x1400d5275
cmp dword [rsp + 0x5c], 2
je 0x1400d527f
jmp 0x1400d52b5
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1400d5273
mov r8, qword [rsp + 0x50]
lea rdx, str.Couldnt_bind_to_interface__s
mov rcx, qword [rsp + 0x40]
call fcn.1400d3540
mov eax, reloc.WLDAP32.dll_Ordinal_45
jmp 0x1400d5632
jmp 0x1400d52b5
mov eax, 1
jmp 0x1400d5632
mov byte [rsp + 0x30], 1
mov eax, dword [rsp + 0x3c0]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x190]
mov r8, qword [rsp + 0x50]
lea rdx, str.Local_Interface__s_is_ip__s_using_address_family__i_n
mov rcx, qword [rsp + 0x40]
call fcn.1400d2f70
mov dword [rsp + 0x58], 1
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x1400d53b7
mov rax, qword [rsp + 0x3b0]
mov eax, dword [rax + 0x3f8]
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x3c0], 2
jne 0x1400d52f0
mov rax, qword [rsp + 0x3b0]
mov dword [rax + 0x3f8], 1
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x3b0]
call fcn.1400d8420
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 1
jne 0x1400d5327
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x3b0]
call fcn.1400ea010
mov rax, qword [rsp + 0x3b0]
mov ecx, dword [rsp + 0x7c]
mov dword [rax + 0x3f8], ecx
cmp qword [rsp + 0x68], 0
je 0x1400d53af
mov r8d, 0x100
lea rdx, [rsp + 0x190]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.1400d83b0
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov eax, dword [rax + 4]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x190]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x3c0]
mov r8, qword [rsp + 0x50]
lea rdx, str.Name__s_family__i_resolved_to__s_family__i_n
mov rcx, qword [rsp + 0x40]
call fcn.1400d2f70
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call fcn.1400d8800
mov dword [rsp + 0x58], 1
jmp 0x1400d53b7
mov dword [rsp + 0x58], 0xffffffff
cmp dword [rsp + 0x58], 0
jle 0x1400d5413
cmp dword [rsp + 0x3c0], 2
jne 0x1400d5413
mov rax, qword [rsp + 0x70]
add rax, 4
mov r8, rax
lea rdx, [rsp + 0x190]
mov ecx, 2
call fcn.1401034d0
test eax, eax
jle 0x1400d5413
mov eax, 2
mov rcx, qword [rsp + 0x70]
mov word [rcx], ax
movzx ecx, word [rsp + 0x34]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0x70]
mov word [rcx + 2], ax
mov dword [rsp + 0x60], reloc.WS2_32.dll_recv
cmp dword [rsp + 0x58], 1
jge 0x1400d5453
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x146c]
and eax, 0xfffffff7
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x146c], eax
mov r8, qword [rsp + 0x50]
lea rdx, str.Couldnt_bind_to__s
mov rcx, qword [rsp + 0x40]
call fcn.1400d3540
mov eax, reloc.WLDAP32.dll_Ordinal_45
jmp 0x1400d5632
jmp 0x1400d5488
cmp dword [rsp + 0x3c0], 2
jne 0x1400d5488
mov eax, 2
mov rcx, qword [rsp + 0x70]
mov word [rcx], ax
movzx ecx, word [rsp + 0x34]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0x70]
mov word [rcx + 2], ax
mov dword [rsp + 0x60], reloc.WS2_32.dll_recv
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x3b8]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x1400d5580
mov dword [rsp + reloc.OLEAUT32.dll_VarMonthName], 0x80
mov r8d, reloc.OLEAUT32.dll_VarMonthName
xor edx, edx
lea rcx, [rsp + 0x110]
call fcn.140054ae0
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0x3b8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x1400d5540
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x48]
mov dword [rax + 0x10e8], ecx
mov r8d, reloc.OLEAUT32.dll_VarMonthName
lea rdx, [rsp + 0x290]
mov ecx, dword [rsp + 0x48]
call fcn.1401031b0
mov r9, rax
mov r8d, dword [rsp + 0x48]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x40]
call fcn.1400d3540
mov eax, reloc.WLDAP32.dll_Ordinal_45
jmp 0x1400d5632
movzx eax, word [rsp + 0x34]
mov r8d, eax
lea rdx, str.Local_port:__hu_n
mov rcx, qword [rsp + 0x40]
call fcn.1400d2f70
mov rax, qword [rsp + 0x3b0]
mov eax, dword [rax + 0x3c4]
bts eax, 0x18
mov rcx, qword [rsp + 0x3b0]
mov dword [rcx + 0x3c4], eax
xor eax, eax
jmp 0x1400d5632
mov eax, dword [rsp + 0x64]
dec eax
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jle 0x1400d55dd
movzx eax, word [rsp + 0x34]
mov r8d, eax
lea rdx, str.Bind_to_local_port__hu_failed__trying_next_n
mov rcx, qword [rsp + 0x40]
call fcn.1400d2f70
movzx eax, word [rsp + 0x34]
inc ax
mov word [rsp + 0x34], ax
mov rax, qword [rsp + 0x88]
movzx eax, word [rax]
cmp eax, 2
jne 0x1400d55db
movzx ecx, word [rsp + 0x34]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rsp + 0x70]
mov word [rcx + 2], ax
jmp 0x1400d55df
jmp 0x1400d55e4
jmp 0x1400d5488
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x48]
mov dword [rax + 0x10e8], ecx
mov r8d, reloc.OLEAUT32.dll_VarMonthName
lea rdx, [rsp + 0x310]
mov ecx, dword [rsp + 0x48]
call fcn.1401031b0
mov r9, rax
mov r8d, dword [rsp + 0x48]
lea rdx, str.bind_failed_with_errno__d:__s
mov rcx, qword [rsp + 0x40]
call fcn.1400d3540
mov eax, reloc.WLDAP32.dll_Ordinal_45
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.140051d60
add rsp, 0x3a0
pop rdi
ret