Function at 0x7ff7f79bf7a4
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xa8
mov rax, qword [0x7ff7f7a3d168]
xor rax, rsp
mov qword [rbp - 9], rax
mov r15d, r9d
mov r12d, r8d
mov r14, rdx
mov rsi, rcx
mov rdi, qword [rbp + 0x7f]
mov qword [rbp - 0x31], rdi
mov r13, qword [rbp + 0x87]
xor ebx, ebx
xor edx, edx
lea r8d, [rbx + 0x30]
lea rcx, [rbp - 0x61]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x59], 1
and dword [rbp - 0x55], ebx
cmp qword [r14 + 0x10], rbx
je 0x7ff7f79bf821
mov rbx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x7ff7f79bf814
mov rbx, qword [r14]
xor r14d, r14d
mov qword [rbp - 0x61], 4
jmp 0x7ff7f79bf841
xor r14d, r14d
cmp qword [rsi + 0x10], r14
je 0x7ff7f79bf837
mov rbx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x7ff7f79bf837
mov rbx, qword [rsi]
mov dword [rbp - 0x5d], r15d
mov eax, dword [rbp + 0x6f]
mov dword [rbp - 0x61], eax
mov edx, r12d
lea rcx, [rbp - 0x29]
call fcn.7ff7f79bc918
nop
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0x10
cmovae rdx, qword [rbp - 0x29]
lea r9, [rbp - 0x69]
lea r8, [rbp - 0x61]
mov rcx, rbx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x7ff7f79bf8db
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x7ff7f79bf8ac
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7f79bf8a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff7f79bfa04
call fcn.7ff7f7a05c7c
movdqa xmm0, xmmword [0x7ff7f7a21050]
movdqu xmmword [rbp - 0x19], xmm0
mov byte [rbp - 0x29], r14b
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x7ff7f79bfaac
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
jmp 0x7ff7f79bfaa8
mov rbx, qword [rbp - 0x69]
test rbx, rbx
je 0x7ff7f79bf9c0
mov r15d, 4
lea r12d, [r15 - 3]
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.ws2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x7ff7f79bf934
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.ws2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x7ff7f79bf9af
cmp byte [rbp + 0x77], r14b
je 0x7ff7f79bf958
mov dword [rbp - 0x71], r12d
mov dword [rsp + 0x20], r15d
lea r9, [rbp - 0x71]
mov r8d, r12d
mov edx, 6
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x7ff7f79bf96f
mov qword [rbp - 0x71], rsi
mov rax, qword [rcx]
lea rdx, [rbp - 0x71]
call qword [rax + 0x10]
cmp dword [rbx + 4], 0x17
jne 0x7ff7f79bf994
mov dword [rbp - 0x71], r14d
mov dword [rsp + 0x20], r15d
lea r9, [rbp - 0x71]
mov edx, 0x29
lea r8d, [rdx - 0xe]
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_setsockopt]
mov r8, rbx
mov rdx, rsi
mov rcx, r13
call fcn.7ff7f79cdb3c
test al, al
jne 0x7ff7f79bfa0b
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x7ff7f79bf8f2
mov rbx, qword [rbp - 0x69]
mov rcx, rbx
call qword [sym.imp.ws2_32.dll_FreeAddrInfoW]
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x7ff7f79bfa81
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7f79bfa7c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7f79bfa7c
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ws2_32.dll_FreeAddrInfoW]
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x7ff7f79bfa4d
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7f79bfa48
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff7f79bfa04
call fcn.7ff7f7a05c7c
movdqa xmm0, xmmword [0x7ff7f7a21050]
movdqu xmmword [rbp - 0x19], xmm0
mov byte [rbp - 0x29], r14b
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x7ff7f79bfa77
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], r14
mov rax, rsi
jmp 0x7ff7f79bfab0
call fcn.7ff7f7a05c7c
movdqa xmm0, xmmword [0x7ff7f7a21050]
movdqu xmmword [rbp - 0x19], xmm0
mov byte [rbp - 0x29], r14b
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x7ff7f79bfaac
mov r8, qword [rcx]
cmp rcx, rdi
setne dl
call qword [r8 + 0x20]
mov qword [rdi + 0x38], r14
or rax, 0xffffffffffffffff
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.7ff7f7a057e0
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret