Function at 0x1400b6c70
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xc0
mov rax, qword [0x140205040]
xor rax, rsp
mov qword [rbp - 9], rax
mov rsi, qword [rbp + 0x77]
mov qword [rsp + 0x30], rsi
mov r15, qword [rbp + 0x7f]
xor r12d, r12d
mov ebx, r12d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x31], xmm1
mov qword [rbp - 0x49], 1
cmp qword [rdx + 0x10], r12
je 0x1400b6cdd
mov rbx, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x1400b6cd3
mov rbx, qword [rdx]
mov qword [rbp - 0x51], 4
jmp 0x1400b6cf8
cmp qword [rcx + 0x10], rbx
je 0x1400b6cf0
mov rbx, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x1400b6cf0
mov rbx, qword [rcx]
mov dword [rbp - 0x4d], r9d
mov dword [rbp - 0x51], r12d
lea r9, [rbp - 0xc]
test r8d, r8d
jns 0x1400b6d50
neg r8d
nop dword [rax]
nop dword [rax + rax]
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x1400b6d10
dec r9
mov byte [r9], 0x2d
jmp 0x1400b6d7a
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x1400b6d50
lea r8, [rbp - 0xc]
mov rdx, r9
lea rcx, [rbp - 0x71]
call fcn.140043ae0
nop
lea rdx, [rbp - 0x71]
cmp qword [rbp - 0x59], 0xf
cmova rdx, qword [rbp - 0x71]
lea r9, [rsp + 0x38]
lea r8, [rbp - 0x51]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x1400b6eba
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x1400b6eb0
movzx r14d, byte [rbp + 0x6f]
nop word [rax + rax]
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], r12d
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 rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400b6e16
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 0x1400b6e9e
test r14b, r14b
je 0x1400b6e42
mov dword [rbp - 0x79], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x79]
mov edx, 6
mov r8d, 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x1400b6e59
mov qword [rbp - 0x79], rdi
mov rax, qword [rcx]
lea rdx, [rbp - 0x79]
call qword [rax + reloc.WS2_32.dll_recv]
cmp dword [rbx + 4], 0x17
jne 0x1400b6e83
mov dword [rbp - 0x79], r12d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x79]
mov edx, 0x29
mov r8d, 0x1b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8, rbx
mov rdx, rdi
mov rcx, r15
call fcn.1400a84f0
test al, al
jne 0x1400b6f02
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1400b6dd0
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
lea rcx, [rbp - 0x71]
call fcn.140040580
nop
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x1400b6edd
cmp rcx, rsi
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r12
mov rax, 0xffffffffffffffff
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1400c4480
add rsp, 0xc0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
lea rcx, [rbp - 0x71]
call fcn.140040580
nop
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x1400b6f31
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r12
mov rax, rdi
jmp 0x1400b6ee4