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

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1800ac030]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rsi, qword [rcx]
xor r14d, r14d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x40], r14
mov r13, qword [rsi + 0xc58]
movzx ebx, word [rsi + 0x6f8]
mov r12d, dword [rsi + 0x6fc]
mov r15d, r8d
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x38], rcx
test r13, r13
jne 0x1800552df
test bx, bx
jne 0x1800552df
xor eax, eax
jmp 0x18005577a
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, pe_nt_image_headers64
mov qword [rsp + 0x268], rdi
call fcn.180037c60
test r13, r13
je 0x1800555fb
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 0xff
jae 0x1800555fb
lea rcx, [rbp - 0x2f]
xor edx, edx
mov r8d, 0xff
mov byte [rbp - 0x30], al
call fcn.180037c60
mov r9, qword [0x1800ad600]
or rcx, 0xffffffffffffffff
mov rdi, r9
xor eax, eax
repne scasb al, byte [rdi]
mov rdx, r13
mov dword [rsp + 0x34], r14d
not rcx
lea r8, [rcx - 1]
mov rcx, r9
call fcn.180034340
or rcx, 0xffffffffffffffff
test eax, eax
jne 0x180055456
mov rdi, qword [0x1800ad600]
xor eax, eax
mov dword [rsp + 0x34], 1
repne scasb al, byte [rdi]
not rcx
dec rcx
add r13, rcx
mov rdi, qword [rsp + 0x38]
mov edx, dword [rsp + 0x30]
lea rax, [rbp - 0x30]
mov r8d, dword [rdi + 0xb8]
mov r9, r13
mov ecx, r15d
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rax
call sym.srcore.dll_SpInitInstance
mov edx, eax
test eax, eax
je 0x1800554e1
dec edx
je 0x1800555b9
dec edx
jne 0x1800554b7
lea r9, [rbp - 0x30]
lea rdx, str.Local_Interface__s_is_ip__s_using_address_family__i_n
mov r8, r13
mov rcx, rsi
mov dword [rsp + 0x20], r15d
call fcn.180053a90
cmp r15d, 0x17
jne 0x1800555c3
lea edx, [r15 + 0xe]
lea rcx, [rbp - 0x30]
call fcn.1800435c8
mov rdi, rax
test rax, rax
je 0x18005540b
mov byte [rax], r14b
inc rdi
mov r13d, reloc.WS2_32.dll_socket
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x30]
mov ecx, r13d
call fcn.180075d30
test eax, eax
jle 0x18005544b
movzx ecx, bx
mov word [rsp + 0x50], r13w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
test rdi, rdi
je 0x18005544b
mov rcx, rdi
call fcn.1800343f8
mov dword [rsp + 0x68], eax
mov r14d, 0x1c
jmp 0x18005563b
mov r9, qword [str.host_]
xor eax, eax
mov rdx, r13
mov rdi, r9
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r9
call fcn.180034340
test eax, eax
jne 0x180055385
mov rdi, qword [str.host_]
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
mov rdi, qword [rsp + 0x38]
not rcx
dec rcx
add r13, rcx
mov eax, dword [rdi + 0x488]
mov dword [rsp + 0x30], eax
cmp r15d, 2
jne 0x180055504
mov dword [rdi + 0x488], 1
jmp 0x180055516
cmp dword [rsp + 0x34], r14d
je 0x18005549b
lea rdx, str.Couldnt_bind_to__s
mov r8, r13
mov rcx, rsi
mov dword [rsi + 0x1678], r14d
call fcn.180053b90
mov eax, Ordinal_46
jmp 0x180055772
cmp dword [rsp + 0x34], r14d
je 0x18005549b
lea rdx, str.Couldnt_bind_to_interface__s
mov r8, r13
mov rcx, rsi
call fcn.180053b90
mov eax, Ordinal_46
jmp 0x180055772
cmp r15d, 0x17
mov ecx, 2
cmove eax, ecx
mov dword [rdi + 0x488], eax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.180072450
cmp eax, 1
jne 0x180055543
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.18004fd70
mov rcx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x488], eax
test rcx, rcx
je 0x1800554be
mov rcx, qword [rcx]
lea rdx, [rbp - 0x30]
mov r8d, 0x100
call fcn.180071880
mov rdx, qword [rsp + 0x40]
mov r9d, r15d
mov rax, qword [rdx]
lea rdx, str.Name__s_family__i_resolved_to__s_family__i_n
mov r8, r13
mov ecx, dword [rax + 4]
lea rax, [rbp - 0x30]
mov dword [rsp + 0x28], ecx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.180053a90
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.180072680
mov rdx, qword [rsp + 0x40]
mov rax, qword [rdx]
cmp r15d, dword [rax + 4]
je 0x1800553e6
mov eax, 1
jmp 0x180055772
cmp r15d, 2
jne 0x180055640
lea r8, [rsp + 0x54]
lea rdx, [rbp - 0x30]
mov ecx, r15d
mov r13d, r15d
call fcn.180075d30
test eax, eax
jle 0x180055640
movzx ecx, bx
mov word [rsp + 0x50], r13w
call qword [sym.imp.WS2_32.dll_htons]
lea r14d, [r15 + 0xe]
mov word [rsp + 0x52], ax
jmp 0x180055640
cmp r15d, 0x17
jne 0x180055619
mov r13d, r15d
movzx ecx, bx
mov word [rsp + 0x50], r13w
call qword [sym.imp.WS2_32.dll_htons]
lea r14d, [r15 + 5]
jmp 0x180055636
cmp r15d, 2
jne 0x18005563b
mov eax, r15d
movzx ecx, bx
mov word [rsp + 0x50], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r14d, reloc.WS2_32.dll_recv
mov word [rsp + 0x52], ax
mov rdi, qword [rsp + 0x38]
mov r13, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov r8d, r14d
mov rcx, r13
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x1800556a5
nop word [rax + rax]
dec r12d
test r12d, r12d
jle 0x180055715
lea rdx, str.Bind_to_local_port__hu_failed__trying_next_n
movzx r8d, bx
mov rcx, rsi
call fcn.180053a90
inc bx
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_ntohs]
lea rdx, [rsp + 0x50]
mov r8d, r14d
mov rcx, r13
mov word [rsp + 0x52], ax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x180055660
lea rcx, [rbp + 0xd0]
xor edx, edx
mov r8d, pe_nt_image_headers64
mov dword [rsp + 0x30], pe_nt_image_headers64
call fcn.180037c60
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0xd0]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x180055753
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rbp - 0x30]
mov r8d, pe_nt_image_headers64
mov ecx, eax
mov edi, eax
mov dword [rsi + 0x1238], eax
call fcn.180079630
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, edi
mov r9, rax
mov rcx, rsi
call fcn.180053b90
mov eax, Ordinal_46
jmp 0x180055772
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rbp + 0xd0]
mov r8d, pe_nt_image_headers64
mov ecx, eax
mov edi, eax
mov dword [rsi + 0x1238], eax
call fcn.180079630
lea rdx, str.bind_failed_with_errno__d:__s
mov r8d, edi
mov r9, rax
mov rcx, rsi
call fcn.180053b90
mov eax, Ordinal_46
jmp 0x180055772
lea rdx, str.Local_port:__hu_n
movzx r8d, bx
mov rcx, rsi
call fcn.180053a90
mov dword [rdi + 0x434], 1
xor eax, eax
mov rdi, qword [rsp + 0x268]
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1800334b0
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret