Function at 0x1400865a0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov r15, rcx
xor r12d, r12d
mov ecx, 0x28
mov dword [rbp + 0x67], r12d
mov r14, rdx
call fcn.140229da8
mov edx, reloc.WS2_32.dll_listen
lea rcx, [0x14026bcb0]
mov rdi, rax
mov dword [rax], r12d
call fcn.1400ba5a0
mov qword [rdi + 8], rax
lea rbx, [0x140484e18]
mov qword [rdi + 0x10], rbx
lea r13, [0x140484d90]
mov qword [rdi + 0x18], r13
lea rcx, [rbp + 0x7f]
mov qword [r15], rdi
mov esi, 0xffffffff
mov rdx, r14
mov dword [rdi + 0x20], esi
call fcn.1400d7aa0
mov rcx, qword [r15]
mov rdx, r14
add rcx, 0x18
call fcn.1400b6400
mov rax, qword [rbp + 0x7f]
cmp dword [rax + 4], r12d
jne 0x140086752
mov rax, qword [r15]
lea r8, str.No_host_name_given
mov ebx, 2
mov dword [rsp + 0x20], esi
lea rcx, [rbp + 0x77]
mov dword [rax], 1
mov rax, qword [r14]
mov edx, dword [rax + 4]
test edx, edx
mov eax, 4
lea rdx, str.QHostInfoAgent
cmovne ebx, eax
lea rax, str.Invalid_hostname
cmovne r8, rax
lea rax, [rbp - 0x31]
cmove rcx, rax
xor r9d, r9d
call fcn.1400d1f10
mov rcx, qword [r15]
mov rdx, rax
add rcx, 8
call fcn.1400b6400
test bl, 4
je 0x1400866cf
mov rax, qword [rbp + 0x77]
and ebx, 0xfffffffb
mov ecx, dword [rax]
test ecx, ecx
je 0x1400866bb
cmp ecx, esi
je 0x1400866cf
mov rax, qword [rbp + 0x77]
mov ecx, esi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400866cf
mov rcx, qword [rbp + 0x77]
mov edx, 2
mov r8d, 8
call fcn.1400affb0
test bl, 2
je 0x140086705
mov rax, qword [rbp - 0x31]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400866f1
cmp ecx, esi
je 0x140086705
mov rax, qword [rbp - 0x31]
mov ecx, esi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140086705
mov rcx, qword [rbp - 0x31]
mov r8d, 8
mov edx, 2
call fcn.1400affb0
mov rax, qword [rbp + 0x7f]
mov ecx, dword [rax]
test ecx, ecx
je 0x140086720
cmp ecx, esi
je 0x140086734
mov rax, qword [rbp + 0x7f]
lock xadd dword [rax], esi
cmp esi, 1
jne 0x140086734
mov rcx, qword [rbp + 0x7f]
mov r8d, 8
mov edx, 1
call fcn.1400affb0
mov rbx, qword [rsp + 0xe8]
mov rax, r15
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xorps xmm0, xmm0
mov qword [rbp - 0x19], r12
movups xmmword [rbp - 0x11], xmm0
lea r9, [rbp - 0x19]
xor edx, edx
movups xmmword [rbp - 1], xmm0
lea r8, [rbp - 0x11]
movups xmmword [rbp + 0xf], xmm0
mov rcx, qword [rax + 0x10]
add rcx, rax
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r8d, eax
test eax, eax
jne 0x140086a67
mov r14, qword [rbp - 0x19]
mov qword [rbp + 0x77], rbx
test r14, r14
je 0x140086962
nop dword [rax + rax]
mov eax, dword [r14 + 4]
cmp eax, 2
je 0x1400868e0
cmp eax, 0x17
je 0x140086826
mov rax, qword [r15]
lea r8, str.Unknown_address_type
xor r9d, r9d
mov dword [rsp + 0x20], esi
lea rdx, str.QHostInfoAgent
lea rcx, [rbp - 0x29]
mov dword [rax], 2
call fcn.1400d1f10
mov rcx, qword [r15]
mov rdx, rax
add rcx, 8
call fcn.1400b6400
mov rax, qword [rbp - 0x29]
mov ecx, dword [rax]
test ecx, ecx
je 0x14008680d
cmp ecx, esi
je 0x140086951
mov rax, qword [rbp - 0x29]
mov ecx, esi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140086951
mov rcx, qword [rbp - 0x29]
mov edx, 2
mov r8d, 8
call fcn.1400affb0
jmp 0x140086951
lea rcx, [rbp - 0x39]
call fcn.1400481e0
mov rbx, qword [r14 + 0x20]
lea rcx, [rbp - 0x39]
lea rdx, [rbx + 8]
call fcn.140049770
mov edx, dword [rbx + 0x18]
test edx, edx
je 0x140086893
mov r8d, 0xa
lea rcx, [rbp - 0x21]
call fcn.1400bbaa0
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.140049940
mov rax, qword [rbp - 0x21]
mov ecx, dword [rax]
test ecx, ecx
je 0x14008687f
cmp ecx, esi
je 0x140086893
mov rax, qword [rbp - 0x21]
mov ecx, esi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140086893
mov rcx, qword [rbp - 0x21]
mov edx, 2
mov r8d, 8
call fcn.1400affb0
mov rax, qword [rbp + 0x77]
movsxd rdi, dword [rax + 0xc]
movsxd rbx, dword [rax + 8]
add rdi, 2
add rbx, 2
lea rdi, [rax + rdi*8]
lea rbx, [rax + rbx*8]
cmp rbx, rdi
je 0x1400868cd
mov rcx, qword [rbx]
lea rdx, [rbp - 0x39]
call fcn.140048360
test al, al
jne 0x1400868da
add rbx, 8
cmp rbx, rdi
jne 0x1400868b4
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0x77]
call fcn.1400134d0
lea rcx, [rbp - 0x39]
jmp 0x14008694c
lea rcx, [rbp - 0x31]
call fcn.1400481e0
mov rcx, qword [r14 + 0x20]
mov ecx, dword [rcx + 4]
call qword [sym.imp.WS2_32.dll_ntohl]
mov edx, eax
lea rcx, [rbp - 0x31]
call fcn.1400497c0
mov rax, qword [rbp + 0x77]
movsxd rdi, dword [rax + 0xc]
movsxd rbx, dword [rax + 8]
add rdi, 2
add rbx, 2
lea rdi, [rax + rdi*8]
lea rbx, [rax + rbx*8]
cmp rbx, rdi
je 0x14008693b
mov rcx, qword [rbx]
lea rdx, [rbp - 0x31]
call fcn.140048360
test al, al
jne 0x140086948
add rbx, 8
cmp rbx, rdi
jne 0x140086922
lea rdx, [rbp - 0x31]
lea rcx, [rbp + 0x77]
call fcn.1400134d0
lea rcx, [rbp - 0x31]
call fcn.1400482a0
mov r14, qword [r14 + 0x28]
test r14, r14
jne 0x1400867a0
mov rbx, qword [rbp + 0x77]
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jne 0x1400869d1
mov rax, qword [r15]
lea r8, str.Unknown_address_type
xor r9d, r9d
mov dword [rsp + 0x20], esi
lea rdx, str.QHostInfoAgent
lea rcx, [rbp - 0x21]
mov dword [rax], 2
call fcn.1400d1f10
mov rcx, qword [r15]
mov rdx, rax
add rcx, 8
call fcn.1400b6400
mov rax, qword [rbp - 0x21]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400869bd
cmp ecx, esi
je 0x1400869d1
mov rax, qword [rbp - 0x21]
mov ecx, esi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400869d1
mov rcx, qword [rbp - 0x21]
mov edx, 2
mov r8d, 8
call fcn.1400affb0
mov rcx, qword [r15]
lea rdx, [rbp + 0x77]
add rcx, 0x10
call fcn.140085490
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, qword [rbp + 0x77]
mov ecx, dword [rax]
test ecx, ecx
je 0x140086a10
cmp ecx, esi
je 0x140086705
mov rax, qword [rbp + 0x77]
mov ecx, esi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140086705
mov r12, qword [rbp + 0x77]
movsxd r14, dword [r12 + 8]
movsxd rbx, dword [r12 + 0xc]
add r14, 2
add rbx, 2
lea r14, [r12 + r14*8]
lea rbx, [r12 + rbx*8]
cmp rbx, r14
je 0x140086a5a
mov rdi, qword [rbx - 8]
sub rbx, 8
test rdi, rdi
je 0x140086a55
mov rcx, rdi
call fcn.1400482a0
mov edx, 8
mov rcx, rdi
call fcn.140229de4
cmp rbx, r14
jne 0x140086a33
mov rcx, r12
call fcn.1400c6df0
jmp 0x140086705
mov ecx, r8d
sub ecx, 0x2af9
je 0x140086b0d
sub ecx, 1
je 0x140086b0d
cmp ecx, 2
je 0x140086b0d
mov rax, qword [r15]
lea rbx, [0x1404969e0]
mov qword [rsp + 0x30], r12
xor edx, edx
mov dword [rsp + 0x28], 0x400
mov ecx, 0x12ff
mov r9d, 0x400
mov qword [rsp + 0x20], rbx
mov dword [rax], 2
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov r8d, esi
lea rcx, [rbp - 0x21]
mov rdx, rbx
call fcn.1400ba830
mov rcx, qword [rax]
mov qword [rbp + 0x77], rcx
mov qword [rax], r13
mov rax, qword [rbp - 0x21]
mov ecx, dword [rax]
test ecx, ecx
je 0x140086af3
cmp ecx, esi
je 0x140086b07
mov rax, qword [rbp - 0x21]
mov ecx, esi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140086b07
mov rcx, qword [rbp - 0x21]
mov edx, 2
mov r8d, 8
call fcn.1400affb0
lea rdx, [rbp + 0x77]
jmp 0x140086b37
mov rax, qword [r15]
lea r8, str.Host_not_found
xor r9d, r9d
mov dword [rsp + 0x20], esi
lea rdx, str.QHostInfoAgent
lea rcx, [rbp + 0x77]
mov dword [rax], 1
call fcn.1400d1f10
mov rdx, rax
mov rcx, qword [r15]
add rcx, 8
call fcn.1400b6400
mov rax, qword [rbp + 0x77]
mov ecx, dword [rax]
test ecx, ecx
je 0x140086b68
cmp ecx, esi
je 0x140086705
mov rax, qword [rbp + 0x77]
mov ecx, esi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140086705
mov rcx, qword [rbp + 0x77]
jmp 0x1400866f5