Function at 0x575bf0
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
test dword [rcx], 0x40000
mov rsi, rcx
je 0x575d0b
mov r11d, dword [rcx + 4]
test r11d, r11d
jne 0x575d0b
lea rcx, str.ihplapi.dll
mov dword [rsp + 0x38], 0x10
mov dword [rsp + 0x3c], 0x1c
call fcn.00575b30
test rax, rax
mov rbp, rax
je 0x575d24
lea rdx, str.GetAdaptersAddresses
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rbx, rax
je 0x575d1b
mov ecx, 0x3c00
mov dword [rsp + 0x80], 0x3c00
call fcn.0056d130
test rax, rax
mov r12, rax
je 0x575d1b
lea rdi, [rsp + 0x80]
xor r8d, r8d
xor ecx, ecx
mov r9, rax
mov edx, 0xe
mov qword [rsp + 0x20], rdi
call rbx
cmp eax, 0x6f
je 0x575e98
test eax, eax
jne 0x575fae
mov rdi, r12
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x575cd2
nop dword [rax]
mov rcx, qword [rbx + 0x10]
call fcn.00573330
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x575cc0
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x575cb0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, r12
call fcn.0056f680
mov edx, dword [0x0073057c]
mov eax, dword [0x00730578]
test edx, edx
jne 0x575e84
test eax, eax
je 0x575d0b
mov dword [rsi + 4], 0x17
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rbx, [rsp + 0x40]
xor r9d, r9d
mov r10d, 2
mov qword [rsp + 0x42], 0
mov word [rsp + 0x40], r10w
mov ecx, 0x35
mov word [rbx + 0xe], r9w
mov dword [rbx + 0xa], 0
mov rbp, qword [sym.imp.WS2_32.dll_htons]
call rbp
lea r8, [rbx + 4]
lea rdx, str.18.244.0.188
mov ecx, 2
mov word [rsp + 0x42], ax
call fcn.005749c0
test eax, eax
je 0x575f42
lea rdi, [rsp + 0x60]
xor ecx, ecx
mov r8d, 0x17
mov qword [rsp + 0x62], 0
mov qword [rsp + 0x6a], 0
mov word [rsp + 0x60], r8w
mov word [rdi + 0x1a], cx
mov ecx, 0x35
mov qword [rdi + 0x12], 0
call rbp
lea r8, [rdi + 8]
lea rdx, str.2001:4860:b002::68
mov ecx, 0x17
mov word [rsp + 0x62], ax
call fcn.005749c0
test eax, eax
je 0x575f78
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov r8d, 0x11
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
mov edx, 2
mov qword [rsp + 0x90], 0
mov dword [rsp + 0x98], 0
mov ecx, 2
mov rbp, qword [sym.imp.WS2_32.dll_socket]
lea r13, [rsp + 0x50]
call rbp
test rax, rax
mov r12, rax
jns 0x575ed1
mov r8d, 0x11
mov edx, 2
mov ecx, 0x17
call rbp
test rax, rax
mov rbx, rax
js 0x575cec
mov r8d, 0x1c
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x575ef5
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x575cec
test eax, eax
jne 0x575d0b
mov dword [rsi + 4], 2
jmp 0x575d0b
mov rcx, r12
call fcn.0056f680
mov ecx, dword [rsp + 0x80]
call fcn.0056d130
test rax, rax
mov r12, rax
je 0x575d1b
mov qword [rsp + 0x20], rdi
mov r9, rax
xor r8d, r8d
mov edx, 0xe
xor ecx, ecx
call rbx
jmp 0x575ca5
mov r8d, 0x10
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x575f23
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x575e42
lea rdi, [rsp + 0x80]
lea r8, [rsp + 0x3c]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x575e76
mov rcx, rdi
call fcn.00573330
jmp 0x575e76
lea r8, [rsp + 0x38]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x575ee7
mov rcx, r13
call fcn.00573330
jmp 0x575ee7
lea rax, str.evutil_check_interfaces
lea r8, str.evutil.c
lea rdx, [0x006c8da0]
mov r9d, 0x2f3
mov ecx, 0xdeaddead
mov qword [rsp + 0x28], rax
lea rax, [0x006c90c3]
mov qword [rsp + 0x20], rax
call fcn.005771e0
lea rax, str.evutil_check_interfaces
lea r8, str.evutil.c
lea rdx, [0x006c8da0]
mov r9d, 0x2f9
mov ecx, 0xdeaddead
mov qword [rsp + 0x28], rax
lea rax, [0x006c90c3]
mov qword [rsp + 0x20], rax
call fcn.005771e0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, r12
call fcn.0056f680
jmp 0x575d24