Function at 0x1800633a0
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, 0x3b0
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
mov rax, qword [rsp + 0x3c0]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x54], 0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x6f0]
mov word [rsp + 0x30], ax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x6f4]
mov dword [rsp + 0x5c], eax
mov eax, 8
imul rax, rax, 8
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax + 0xbc8]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x18006346c
movzx eax, word [rsp + 0x30]
test eax, eax
jne 0x18006346c
xor eax, eax
jmp 0x180063ad1
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.18012a620
cmp qword [rsp + 0x48], 0
je 0x1800638a9
mov rcx, qword [rsp + 0x48]
call fcn.1800fb030
cmp rax, 0xff
jae 0x1800638a9
movzx eax, byte [0x1801759e0]
mov byte [rsp + 0x1a0], al
lea rax, [rsp + 0x1a1]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov dword [rsp + 0x50], 0
mov byte [rsp + 0x34], 0
mov byte [rsp + 0x35], 0
mov rcx, qword [0x1801593f0]
call fcn.1800fb030
mov r8, rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [0x1801593f0]
call fcn.1800fb0f0
test eax, eax
jne 0x18006351e
mov rcx, qword [0x1801593f0]
call fcn.1800fb030
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x34], 1
jmp 0x180063563
mov rcx, qword [str.host_]
call fcn.1800fb030
mov r8, rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [str.host_]
call fcn.1800fb0f0
test eax, eax
jne 0x180063563
mov rcx, qword [str.host_]
call fcn.1800fb030
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x35], 1
movzx eax, byte [rsp + 0x35]
test eax, eax
jne 0x180063632
mov dword [rsp + 0x28], 0x100
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x48]
mov rax, qword [rsp + 0x3c0]
mov r8d, dword [rax + 0xb8]
mov edx, dword [rsp + 0x3d8]
mov ecx, dword [rsp + 0x3d0]
call fcn.1800c4300
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x1800635c7
cmp dword [rsp + 0x58], 1
je 0x1800635f2
cmp dword [rsp + 0x58], 2
je 0x1800635fc
jmp 0x180063632
movzx eax, byte [rsp + 0x34]
test eax, eax
je 0x1800635f0
mov r8, qword [rsp + 0x48]
lea rdx, str.Couldnt_bind_to_interface__s
mov rcx, qword [rsp + 0x38]
call fcn.180060120
mov eax, reloc.WLDAP32.dll_Ordinal_45
jmp 0x180063ad1
jmp 0x180063632
mov eax, 1
jmp 0x180063ad1
mov byte [rsp + 0x34], 1
mov eax, dword [rsp + 0x3d0]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x1a0]
mov r8, qword [rsp + 0x48]
lea rdx, str.Local_Interface__s_is_ip__s_using_address_family__i_n
mov rcx, qword [rsp + 0x38]
call fcn.18005ffc0
mov dword [rsp + 0x50], 1
movzx eax, byte [rsp + 0x34]
test eax, eax
jne 0x18006375e
mov rax, qword [rsp + 0x3c0]
mov eax, dword [rax + 0x3f8]
mov dword [rsp + 0x84], eax
cmp dword [rsp + 0x3d0], 2
jne 0x180063672
mov rax, qword [rsp + 0x3c0]
mov dword [rax + 0x3f8], 1
jmp 0x18006368e
cmp dword [rsp + 0x3d0], 0x17
jne 0x18006368e
mov rax, qword [rsp + 0x3c0]
mov dword [rax + 0x3f8], 2
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x3c0]
call fcn.18004cb60
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 1
jne 0x1800636cb
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x3c0]
call fcn.18004c060
mov rax, qword [rsp + 0x3c0]
mov ecx, dword [rsp + 0x84]
mov dword [rax + 0x3f8], ecx
cmp qword [rsp + 0x68], 0
je 0x180063756
mov r8d, 0x100
lea rdx, [rsp + 0x1a0]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.18004d080
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov eax, dword [rax + 4]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x3d0]
mov r8, qword [rsp + 0x48]
lea rdx, str.Name__s_family__i_resolved_to__s_family__i_n
mov rcx, qword [rsp + 0x38]
call fcn.18005ffc0
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
call fcn.18004ce60
mov dword [rsp + 0x50], 1
jmp 0x18006375e
mov dword [rsp + 0x50], 0xffffffff
cmp dword [rsp + 0x50], 0
jle 0x180063867
cmp dword [rsp + 0x3d0], 0x17
jne 0x180063812
mov edx, Ordinal_41
lea rcx, [rsp + 0x1a0]
call fcn.1800ea994
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x1800637ab
mov rax, qword [rsp + 0x70]
mov byte [rax], 0
mov rax, qword [rsp + 0x70]
inc rax
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x60]
add rax, 8
mov r8, rax
lea rdx, [rsp + 0x1a0]
mov ecx, reloc.WS2_32.dll_socket
call fcn.1800927f0
test eax, eax
jle 0x180063808
mov eax, reloc.WS2_32.dll_socket
mov rcx, qword [rsp + 0x60]
mov word [rcx], ax
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0x60]
mov word [rcx + 2], ax
cmp qword [rsp + 0x70], 0
je 0x180063808
mov rcx, qword [rsp + 0x70]
call fcn.1800fbf74
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0x18], eax
mov dword [rsp + 0x54], Ordinal_33
jmp 0x180063867
cmp dword [rsp + 0x3d0], 2
jne 0x180063867
mov rax, qword [rsp + 0x78]
add rax, 4
mov r8, rax
lea rdx, [rsp + 0x1a0]
mov ecx, 2
call fcn.1800927f0
test eax, eax
jle 0x180063867
mov eax, 2
mov rcx, qword [rsp + 0x78]
mov word [rcx], ax
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0x78]
mov word [rcx + 2], ax
mov dword [rsp + 0x54], reloc.WS2_32.dll_recv
cmp dword [rsp + 0x50], 1
jge 0x1800638a7
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x146c]
and eax, 0xfffffff7
mov rcx, qword [rsp + 0x38]
mov dword [rcx + 0x146c], eax
mov r8, qword [rsp + 0x48]
lea rdx, str.Couldnt_bind_to__s
mov rcx, qword [rsp + 0x38]
call fcn.180060120
mov eax, reloc.WLDAP32.dll_Ordinal_45
jmp 0x180063ad1
jmp 0x180063911
cmp dword [rsp + 0x3d0], 0x17
jne 0x1800638de
mov eax, reloc.WS2_32.dll_socket
mov rcx, qword [rsp + 0x60]
mov word [rcx], ax
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0x60]
mov word [rcx + 2], ax
mov dword [rsp + 0x54], Ordinal_33
jmp 0x180063911
cmp dword [rsp + 0x3d0], 2
jne 0x180063911
mov eax, 2
mov rcx, qword [rsp + 0x78]
mov word [rcx], ax
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0x78]
mov word [rcx + 2], ax
mov dword [rsp + 0x54], reloc.WS2_32.dll_recv
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x3c8]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x180063a09
mov dword [rsp + 0x88], 0x80
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x120]
call fcn.18012a620
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x3c8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x1800639c9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x40]
mov dword [rax + 0x10e8], ecx
mov r8d, 0x80
lea rdx, [rsp + 0x2a0]
mov ecx, dword [rsp + 0x40]
call fcn.1800c2ee0
mov r9, rax
mov r8d, dword [rsp + 0x40]
lea rdx, [0x1801594b0]
mov rcx, qword [rsp + 0x38]
call fcn.180060120
mov eax, reloc.WLDAP32.dll_Ordinal_45
jmp 0x180063ad1
movzx eax, word [rsp + 0x30]
mov r8d, eax
lea rdx, str.Local_port:__hu_n
mov rcx, qword [rsp + 0x38]
call fcn.18005ffc0
mov rax, qword [rsp + 0x3c0]
mov eax, dword [rax + 0x3c4]
bts eax, 0x18
mov rcx, qword [rsp + 0x3c0]
mov dword [rcx + 0x3c4], eax
xor eax, eax
jmp 0x180063ad1
mov eax, dword [rsp + 0x5c]
dec eax
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
jle 0x180063a7c
movzx eax, word [rsp + 0x30]
mov r8d, eax
lea rdx, str.Bind_to_local_port__hu_failed__trying_next_n
mov rcx, qword [rsp + 0x38]
call fcn.18005ffc0
movzx eax, word [rsp + 0x30]
inc ax
mov word [rsp + 0x30], ax
mov rax, qword [rsp + 0x90]
movzx eax, word [rax]
cmp eax, 2
jne 0x180063a66
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rsp + 0x78]
mov word [rcx + 2], ax
jmp 0x180063a7a
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rsp + 0x60]
mov word [rcx + 2], ax
jmp 0x180063a7e
jmp 0x180063a83
jmp 0x180063911
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x40]
mov dword [rax + 0x10e8], ecx
mov r8d, 0x80
lea rdx, [rsp + 0x320]
mov ecx, dword [rsp + 0x40]
call fcn.1800c2ee0
mov r9, rax
mov r8d, dword [rsp + 0x40]
lea rdx, str.bind_failed_with_errno__d:__s
mov rcx, qword [rsp + 0x38]
call fcn.180060120
mov eax, reloc.WLDAP32.dll_Ordinal_45
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0x3b0
pop rdi
ret