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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x590]
sub rsp, 0x690
mov rax, qword [0x1800ba740]
xor rax, rsp
mov qword [rbp + 0x580], rax
mov rsi, qword [rcx + 0x20]
mov r14, rcx
xor ecx, ecx
mov qword [rsp + 0x48], rsi
xorps xmm0, xmm0
mov qword [rsp + 0x50], 0xffffffffffffffff
mov edi, edx
mov byte [rbp - 0x10], 0
mov rbx, qword [r14 + 0x780]
lea rax, [rsi + 0x5d0]
mov qword [rsp + 0x68], rax
mov r12d, ecx
xor eax, eax
mov qword [rsp + 0x60], rcx
mov qword [rbp + 0x11], rax
movzx r13d, cx
mov dword [rbp + 0x19], eax
mov r15b, 1
mov word [rbp + 0x1d], ax
mov word [rsp + 0x40], cx
mov qword [rsp + 0x58], rcx
movups xmmword [rbp - 0xf], xmm0
movups xmmword [rbp + 1], xmm0
test rbx, rbx
je 0x180049d76
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], cl
jne 0x180049b21
cmp rax, 1
jbe 0x180049d76
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rbx + rax], cl
jne 0x180049b40
cmp rax, 0x16
jae 0x180049b55
mov ecx, reloc.WLDAP32.dll_Ordinal_22
jmp 0x180049b69
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp byte [rbx + rcx], r12b
jne 0x180049b60
inc rcx
mov edx, 1
call qword [fcn.180075c48]
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x180049b8b
mov ebx, reloc.WLDAP32.dll_Ordinal_27
jmp 0x180049dd3
cmp byte [rbx], 0x3a
jne 0x180049b95
mov rsi, rbx
jmp 0x180049bbd
mov edx, Ordinal_60
mov rcx, rbx
call fcn.180070700
mov rcx, qword [rsp + 0x58]
mov rsi, rax
test rax, rax
je 0x180049c23
mov r8, rax
mov rdx, rbx
sub r8, rbx
call fcn.1800776d0
mov edx, Ordinal_60
mov rcx, rsi
call fcn.180070700
mov rbx, rax
test rax, rax
je 0x180049c3e
lea rcx, [rax + 1]
xor edx, edx
mov r8d, 0xa
call fcn.1800754f8
mov ecx, eax
call fcn.18002ac20
mov edx, reloc.WLDAP32.dll_Ordinal_45
mov rcx, rbx
movzx r13d, ax
call fcn.180070700
test rax, rax
je 0x180049c1d
lea rcx, [rax + 1]
xor edx, edx
mov r8d, 0xa
call fcn.1800754f8
mov ecx, eax
call fcn.18002ac20
movzx ecx, ax
jmp 0x180049c42
movzx ecx, r13w
jmp 0x180049c42
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rbx + rcx], al
lea rbx, [rbx + 1]
test al, al
jne 0x180049c30
movzx ecx, r12w
xor edx, edx
cmp r13w, cx
mov eax, edx
mov ebx, edx
cmovbe ax, r13w
cmovbe bx, cx
movzx r13d, ax
mov rax, qword [rsp + 0x58]
cmp byte [rax], dl
je 0x180049d71
mov rsi, qword [rsp + 0x48]
lea r8, [rbp + 0x170]
mov r9d, 0x401
mov rdx, rax
mov rcx, qword [rsi + 0x58]
mov ecx, dword [rcx]
call fcn.18001c590
mov ecx, eax
test eax, eax
je 0x180049ca3
sub ecx, 1
je 0x180049dce
cmp ecx, 1
jne 0x180049ca8
lea r12, [rbp + 0x170]
jmp 0x180049ca8
mov r12, qword [rsp + 0x58]
mov word [rsp + 0x40], bx
test r12, r12
je 0x180049d76
mov rbx, rsi
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r12
mov rcx, r14
call fcn.1800308c0
cmp eax, 1
jne 0x180049ce6
lea rdx, [rsp + 0x60]
mov rcx, r14
call fcn.18001c780
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x18004a1d1
mov rsi, qword [rdx]
mov rcx, r14
call fcn.180030d30
test rsi, rsi
je 0x18004a1d1
nop dword [rax + rax]
movzx r9d, byte [rbx + 0x707]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, r14
call fcn.180059b00
test eax, eax
je 0x180049e5f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x180049d10
mov ecx, eax
lea rdx, [rbp + 0x70]
mov r8d, 0x100
call fcn.18003b590
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, r14
call fcn.1800285f0
mov rsi, qword [rsp + 0x48]
jmp 0x180049dce
mov word [rsp + 0x40], bx
mov rbx, qword [rsp + 0x48]
lea r8, [rsp + 0x44]
mov dword [rsp + 0x44], pe_nt_image_headers64
lea rdx, [rsp + 0x70]
mov rcx, qword [rbx + 0x1a8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x180049e2b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0x70]
mov ecx, eax
call fcn.18003b590
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, r14
call fcn.1800285f0
mov rsi, rbx
mov ebx, reloc.WLDAP32.dll_Ordinal_30
mov rax, qword [r14 + 0x20]
mov byte [rax + 0x6c6], 0
mov r8, qword [rsp + 0x50]
cmp r8, 0xffffffffffffffff
je 0x180049df4
mov rdx, rsi
mov rcx, r14
call fcn.180059ad0
mov rcx, qword [rsp + 0x58]
call qword [fcn.180075714]
mov eax, ebx
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.18006e460
mov rbx, qword [rsp + 0x6e0]
add rsp, 0x690
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movzx ecx, word [rsp + 0x70]
lea r8, [rbp + 0x170]
mov r9d, 0x401
lea rdx, [rsp + 0x74]
call fcn.18005e5f0
test rax, rax
je 0x180049dcb
lea r12, [rbp + 0x170]
xor r15b, r15b
jmp 0x180049cb9
movsxd r8, dword [rsi + 0x10]
lea rcx, [rsp + 0x70]
mov rdx, qword [rsi + 0x20]
call fcn.180093ef0
movzx r12d, word [rsp + 0x40]
movzx ebx, r13w
mov eax, dword [rsi + 0x10]
mov dword [rsp + 0x44], eax
cmp r13w, r12w
ja 0x180049f4d
nop dword [rax]
cmp word [rsp + 0x70], 2
jne 0x180049ea6
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x72], ax
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x180049f97
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test r15b, r15b
je 0x180049f34
cmp eax, 0x2741
jne 0x180049f34
mov r8d, 0x100
lea rdx, [rbp + 0x70]
mov ecx, eax
call fcn.18003b590
mov r9, rax
movzx r8d, bx
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s
mov rcx, r14
call fcn.1800286e0
mov rax, qword [rsp + 0x48]
lea r8, [rsp + 0x44]
mov dword [rsp + 0x44], pe_nt_image_headers64
lea rdx, [rsp + 0x70]
mov rcx, qword [rax + 0x1a8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x180049fb8
movzx ebx, r13w
xor r15b, r15b
jmp 0x180049e90
cmp eax, 0x2740
je 0x180049f40
cmp eax, 0xd
jne 0x180049f66
inc bx
cmp bx, r12w
jbe 0x180049e90
lea rdx, str.bind___failed__we_ran_out_of_ports
mov rcx, r14
call fcn.1800285f0
mov rsi, qword [rsp + 0x48]
jmp 0x180049dce
mov r8d, 0x100
lea rdx, [rbp + 0x70]
mov ecx, eax
call fcn.18003b590
mov r9, rax
movzx r8d, bx
lea rdx, str.bind_port_hu__failed:__s
mov rcx, r14
call fcn.1800285f0
mov rsi, qword [rsp + 0x48]
jmp 0x180049dce
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x44], pe_nt_image_headers64
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x180049feb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0x70]
mov ecx, eax
call fcn.18003b590
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, r14
call fcn.1800285f0
mov rsi, qword [rsp + 0x48]
jmp 0x180049dce
mov rcx, qword [rsp + 0x50]
mov edx, 1
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x18004a00a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x180049d47
mov r8d, Ordinal_50
lea rdx, [rbp - 0x10]
mov rcx, rsi
call fcn.180030890
mov rsi, qword [rsp + 0x48]
cmp edi, 2
je 0x18004a1c7
nop word [rax + rax]
cmp byte [rsi + 0x2da], 0
jne 0x18004a03d
test edi, edi
je 0x18004a06c
cmp word [rsp + 0x70], 2
jne 0x18004a06c
movzx ecx, word [rsp + 0x72]
call qword [sym.imp.WS2_32.dll_ntohs]
cmp edi, 1
jne 0x18004a05b
movzx r8d, ax
jmp 0x18004a067
movzx r8d, ax
test edi, edi
je 0x18004a15d
cmp edi, 1
je 0x18004a0ba
inc edi
cmp edi, 2
jne 0x18004a030
lea r15, [rsi + 0x5d0]
lea r9, [rsp + 0x50]
mov dword [r15 + 0xe8], edi
mov r8d, 1
mov rdx, rsi
mov rcx, r14
call fcn.1800598c0
mov ebx, eax
test eax, eax
jne 0x180049dd3
mov rax, qword [r14 + 0x20]
mov qword [rsp + 0x50], 0xffffffffffffffff
mov byte [rax + 0x6c6], 0x1c
jmp 0x180049dde
lea r10, [rbp + 0x20]
mov r9d, Ordinal_46
lea rdx, [rbp - 0x10]
movzx ecx, byte [rdx]
test cl, cl
je 0x18004a0e4
cmp cl, 0x2e
mov eax, ecx
cmove eax, r9d
mov byte [r10], al
inc r10
add rdx, 1
jne 0x18004a0c8
movzx r9d, r8w
mov edx, reloc.WS2_32.dll_sendto
movzx eax, r9b
lea r8, str.__d__d
shr r9d, 8
mov rcx, r10
mov dword [rsp + 0x20], eax
mov byte [r10], 0
call fcn.1800397a0
lea rax, [rbp + 0x20]
mov rcx, r14
lea r15, [rsi + 0x5d0]
mov qword [rsp + 0x20], rax
mov rdx, r15
lea r9, str.PORT
lea r8, [0x18009f938]
call fcn.18006a050
mov ebx, eax
test eax, eax
je 0x18004a07a
mov ecx, eax
call fcn.18003b770
mov r8, rax
lea rdx, str.Failure_sending_PORT_command:__s
mov rcx, r14
call fcn.1800285f0
jmp 0x180049dd3
cmp word [rsp + 0x70], 2
lea rax, [rbp - 0x10]
mov dword [rsp + 0x30], r8d
lea r15, [rsi + 0x5d0]
mov edx, 0
mov qword [rsp + 0x28], rax
setne dl
lea r9, str.EPRT
inc edx
lea r8, str._s__d_s_hu
mov dword [rsp + 0x20], edx
mov rcx, r14
mov rdx, r15
call fcn.18006a050
mov ebx, eax
test eax, eax
je 0x18004a07a
mov ecx, eax
call fcn.18003b770
mov r8, rax
lea rdx, str.Failure_sending_EPRT_command:__s
mov rcx, r14
call fcn.1800285f0
jmp 0x180049dd3
mov r15, qword [rsp + 0x68]
jmp 0x18004a07a
mov r8, r12
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, r14
call fcn.1800285f0
mov rsi, qword [rsp + 0x48]
jmp 0x180049dce