Function at 0x140179fc0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push r12
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xb0
mov rax, qword [0x140fb3878]
xor rax, rsp
mov qword [rbp - 9], rax
mov rsi, qword [rbp + 0x77]
xor r12d, r12d
xorps xmm0, xmm0
mov r15, qword [rbp + 0x7f]
xorps xmm1, xmm1
mov ebx, r12d
movdqu xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x51], 1
movdqu xmmword [rbp - 0x39], xmm1
cmp qword [rdx + 0x10], r12
je 0x14017a025
cmp qword [rdx + 0x18], 0x10
mov rbx, rdx
jb 0x14017a01b
mov rbx, qword [rdx]
mov qword [rbp - 0x59], 4
jmp 0x14017a042
cmp qword [rcx + 0x10], rbx
je 0x14017a038
cmp qword [rcx + 0x18], 0x10
mov rbx, rcx
jb 0x14017a038
mov rbx, qword [rcx]
mov eax, dword [rbp + 0x67]
mov dword [rbp - 0x59], eax
mov dword [rbp - 0x55], r9d
mov qword [rsp + 0xa8], rdi
lea rcx, [rbp - 0x29]
mov edx, r8d
mov qword [rsp + 0xa0], r14
call fcn.1401bbe10
cmp qword [rbp - 0x11], 0x10
lea rdx, [rbp - 0x29]
lea r9, [rbp - 0x61]
mov rcx, rbx
cmovae rdx, qword [rbp - 0x29]
lea r8, [rbp - 0x59]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14017a11c
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x14017a0c0
mov rcx, qword [rbp - 0x29]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14017a0bb
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14017a252
call fcn.140384ad0
mov rcx, qword [rsi + 0x38]
movdqa xmm0, xmmword [0x14039b8a0]
mov byte [rbp - 0x29], r12b
movdqu xmmword [rbp - 0x19], xmm0
test rcx, rcx
je 0x14017a0ea
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r12
mov rax, 0xffffffffffffffff
mov r14, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0xa8]
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.140384b70
add rsp, 0xb0
pop r15
pop r12
pop rsi
pop rbx
pop rbp
ret
mov rbx, qword [rbp - 0x61]
test rbx, rbx
je 0x14017a20b
movzx r14d, byte [rbp + 0x6f]
nop
mov r8d, dword [rbx + 0xc]
xor r9d, r9d
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], r12d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14017a176
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14017a1fa
test r14b, r14b
je 0x14017a1a0
mov edx, 6
mov dword [rbp - 0x69], 1
lea r9, [rbp - 0x69]
mov dword [rsp + 0x20], 4
mov rcx, rdi
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14017a1b7
mov qword [rbp - 0x69], rdi
lea rdx, [rbp - 0x69]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
cmp dword [rbx + 4], 0x17
jne 0x14017a1df
mov edx, 0x29
mov dword [rbp - 0x69], r12d
lea r9, [rbp - 0x69]
mov dword [rsp + 0x20], 4
mov rcx, rdi
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8, rbx
mov rdx, rdi
mov rcx, r15
call fcn.140187960
test al, al
jne 0x14017a259
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14017a130
mov rbx, qword [rbp - 0x61]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x14017a0c0
mov rcx, qword [rbp - 0x29]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14017a0bb
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14017a0bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x14017a29a
mov rcx, qword [rbp - 0x29]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14017a295
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14017a252
call fcn.140384ad0
mov rcx, qword [rsi + 0x38]
movdqa xmm0, xmmword [0x14039b8a0]
mov byte [rbp - 0x29], r12b
movdqu xmmword [rbp - 0x19], xmm0
test rcx, rcx
je 0x14017a2c4
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r12
mov rax, rdi
jmp 0x14017a0f1