Function at 0x140311050
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x14057c500]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov r15, rcx
mov rsi, rdx
mov ecx, 0x28
call fcn.1404e17f4
xor r12d, r12d
lea rcx, [0x140003dd8]
mov rbx, rax
mov dword [rax], r12d
lea edx, [r12 + 0xd]
call fcn.140367c40
mov qword [rbx + 8], rax
or rdi, 0xffffffffffffffff
lea rax, [0x140049658]
mov rcx, rsi
mov qword [rbx + 0x10], rax
lea rax, [0x1400495e0]
mov qword [rbx + 0x18], rax
mov qword [r15], rbx
mov dword [rbx + 0x20], edi
call fcn.140303e20
lea r13d, [r12 + 2]
mov rcx, rsi
test eax, eax
jne 0x140311111
xor eax, eax
lea rbx, [rsp + 0x58]
mov qword [rsp + 0x58], rax
lea r14d, [r12 + 0x10]
mov word [rsp + 0x58], r13w
mov qword [rsp + 0x60], rax
call fcn.140310450
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x5c], eax
jmp 0x140311149
xor eax, eax
lea rdx, [rbp - 0x78]
mov qword [rsp + 0x68], rax
lea rbx, [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
lea r14d, [rax + 0x1c]
mov dword [rbp - 0x80], eax
mov eax, 0x17
mov word [rsp + 0x68], ax
call fcn.1403043d0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x30], r12d
lea r8, [rbp - 0x60]
mov dword [rsp + 0x28], r12d
mov r9d, 0x401
mov edx, r14d
mov qword [rsp + 0x20], r12
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x1403111d6
lea rax, [rbp - 0x60]
mov rdx, rdi
nop dword [rax]
inc rdx
cmp byte [rax + rdx], r12b
jne 0x140311180
lea rcx, [rbp - 0x60]
call fcn.140367c40
mov rcx, qword [r15]
lea rdx, [rsp + 0x48]
add rcx, 0x18
mov qword [rsp + 0x48], rax
call fcn.140363940
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx]
test eax, eax
je 0x1403111c8
cmp eax, 0xffffffff
je 0x1403111d6
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1403111d6
mov rcx, qword [rsp + 0x48]
mov r8d, 8
mov rdx, r13
call fcn.140379300
mov rcx, qword [r15]
mov rcx, qword [rcx + 0x18]
mov eax, dword [rcx]
inc eax
cmp eax, 1
jbe 0x1403111e9
lock inc dword [rcx]
mov eax, dword [rcx]
mov ebx, dword [rcx + 4]
test eax, eax
je 0x140311202
cmp eax, 0xffffffff
je 0x140311210
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140311210
mov r8d, 8
mov rdx, r13
call fcn.140379300
test ebx, ebx
jne 0x14031125e
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1403043e0
mov rcx, qword [r15]
mov rdx, rax
add rcx, 0x18
call fcn.140363940
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x140311250
cmp eax, 0xffffffff
je 0x14031125e
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14031125e
mov rcx, qword [rsp + 0x50]
mov r8d, 8
mov rdx, r13
call fcn.140379300
cmp dword [0x140049658], 1
lea rax, [0x140049658]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
jbe 0x14031128a
mov edx, 0x7fffffff
mov r8d, 1
call fcn.1402ff490
jmp 0x14031128f
call fcn.140379820
mov ecx, 8
mov rbx, rax
call fcn.1404e17f4
mov rdx, rsi
mov rcx, rax
call fcn.140446950
mov qword [rbx], rax
lea rdx, [rsp + 0x40]
mov rcx, qword [r15]
add rcx, 0x10
call fcn.1402fd580
mov rsi, qword [rsp + 0x40]
mov eax, dword [rsi]
test eax, eax
je 0x1403112d9
cmp eax, 0xffffffff
je 0x14031132f
lock xadd dword [rsi], edi
cmp edi, 1
jne 0x14031132f
mov rsi, qword [rsp + 0x40]
movsxd rbx, dword [rsi + 0xc]
movsxd r14, dword [rsi + 8]
add rbx, r13
add r14, r13
lea rbx, [rsi + rbx*8]
lea r14, [rsi + r14*8]
cmp r14, rbx
je 0x140311327
nop dword [rax]
nop dword [rax + rax]
mov rdi, qword [rbx - 8]
sub rbx, 8
test rdi, rdi
je 0x140311322
mov rcx, rdi
call fcn.140302c20
mov edx, 8
mov rcx, rdi
call fcn.1404e1830
cmp rbx, r14
jne 0x140311300
mov rcx, rsi
call fcn.1404e1e20
mov rax, r15
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.1404e17d0
mov rbx, qword [rsp + 0x510]
add rsp, 0x4c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret