Function at 0x140027dd0
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x110
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400c1ed0]
xor rax, rsp
mov qword [rbp], rax
mov r14, r9
mov rsi, rdx
mov r15, qword [rbp + 0x60]
xor r12d, r12d
mov dword [rsp + 0x20], r12d
mov qword [rsp + 0x28], r12
lea rdx, [rbp - 0x20]
mov rcx, r9
call fcn.140028a00
mov rdi, rax
lea rdx, [rbp - 0x40]
mov rcx, r14
call fcn.140025970
mov rbx, rax
cmp qword [rdi + 0x18], 0x10
jb 0x140027e44
mov rdi, qword [rdi]
cmp qword [rax + 0x18], 0x10
jb 0x140027e4e
mov rbx, qword [rax]
test rbx, rbx
je 0x140027e58
cmp byte [rbx], 0
jne 0x140027e5b
mov rbx, r12
test rdi, rdi
je 0x140027e65
cmp byte [rdi], 0
jne 0x140027e68
mov rdi, r12
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r9, [rsp + 0x28]
mov r8, r14
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.14002a190
movups xmm0, xmmword [rax]
movups xmmword [r15], xmm0
cmp qword [rbp - 0x28], 0x10
jb 0x140027ea7
mov rcx, qword [rbp - 0x40]
call fcn.140046814
mov qword [rbp - 0x28], setsockopt
mov qword [rbp - 0x30], r12
mov byte [rbp - 0x40], 0
cmp qword [rbp - 8], 0x10
jb 0x140027ec7
mov rcx, qword [rbp - 0x20]
call fcn.140046814
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
cmp byte [r15 + 4], 0
je 0x140027ef2
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
lea r8, [rsp + 0x30]
mov ebx, 1
jmp 0x140027f3b
lea rdx, [rbp - 0x60]
mov rcx, r14
call fcn.140028a00
mov rbx, rax
mov dword [rsp + 0x20], 2
lea rdx, [rbp - 0x80]
mov rcx, r14
call fcn.140025970
nop
mov dword [rsp + 0x20], 6
mov r9, rbx
mov r8, rax
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x58]
call fcn.1400237a0
mov r8, rax
mov ebx, reloc.WS2_32.dll_ntohl
mov qword [rsi], r12
mov qword [rsi + 8], r12
cmp rsi, r8
je 0x140027f5f
mov rcx, qword [r8 + 8]
mov qword [rsi + 8], rcx
mov qword [r8 + 8], r12
mov rcx, qword [rsi]
mov rax, qword [r8]
mov qword [rsi], rax
mov qword [r8], rcx
mov rax, qword [r8 + 0x10]
mov qword [rsi + 0x10], rax
mov qword [r8 + 0x10], r12
or ebx, 0x10
mov dword [rsp + 0x20], ebx
test bl, 8
je 0x140027fa9
and ebx, 0xfffffff7
mov dword [rsp + 0x20], ebx
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x140027fa9
lock dec dword [rdi + 8]
jne 0x140027fa5
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock dec dword [rdi + 0xc]
jne 0x140027fa5
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov ebx, dword [rsp + 0x20]
test bl, 4
je 0x140027fd5
and ebx, 0xfffffffb
mov dword [rsp + 0x20], ebx
cmp qword [rbp - 0x68], 0x10
jb 0x140027fc5
mov rcx, qword [rbp - 0x80]
call fcn.140046814
mov qword [rbp - 0x68], setsockopt
mov qword [rbp - 0x70], r12
mov byte [rbp - 0x80], 0
test bl, 2
je 0x140028001
and ebx, 0xfffffffd
mov dword [rsp + 0x20], ebx
cmp qword [rbp - 0x48], 0x10
jb 0x140027ff1
mov rcx, qword [rbp - 0x60]
call fcn.140046814
mov qword [rbp - 0x48], setsockopt
mov qword [rbp - 0x50], r12
mov byte [rbp - 0x60], 0
test bl, 1
je 0x140028035
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140028035
lock dec dword [rcx + 8]
jne 0x140028035
mov rbx, qword [rsp + 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock dec dword [rbx + 0xc]
jne 0x140028035
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140028045
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, rsi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140046830
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret