Function at 0x140006ab0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x520]
sub rsp, 0x620
mov rax, qword [0x140205108]
xor rax, rsp
mov qword [rbp + 0x510], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rdx
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140007610
nop
cmp qword [rdi + 0x68], 0
jne 0x140006c4a
cmp qword [rdi + 0x40], 0
jne 0x140006c4a
mov rcx, qword [rdi + 0x50]
cmp rcx, 0xffffffffffffffff
jne 0x140006b1c
lea rdx, [rdi + 8]
jmp 0x140006c4e
lea rbx, [rdi + 0xcc]
movzx eax, word [rbx]
cmp ax, 2
je 0x140006b39
cmp ax, 0x17
jne 0x140006b4e
mov eax, 0x1c
jmp 0x140006b3e
mov eax, reloc.WS2_32.dll_recv
mov dword [rsp + 0x40], eax
mov r10, rbx
test rbx, rbx
jne 0x140006be8
mov dword [rsp + 0x40], 0x80
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x60]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x140006c4a
lea r10, [rbp + 0x60]
cmp qword [rdi + 0x40], 0
jne 0x140006be8
movzx eax, word [rbp + 0x60]
cmp ax, 2
je 0x140006ba8
cmp ax, 0x17
jne 0x140006bb6
cmp dword [rsp + 0x40], 0x1c
jne 0x140006bb6
movaps xmm0, xmmword [rbp + 0x60]
movups xmmword [rbx], xmm0
movsd xmm1, qword [rbp + 0x70]
movsd qword [rbx + 0x10], xmm1
mov eax, dword [rbp + 0x78]
mov dword [rbx + 0x18], eax
jmp 0x140006bb6
cmp dword [rsp + 0x40], 0x10
jne 0x140006bb6
movaps xmm0, xmmword [rbp + 0x60]
movups xmmword [rbx], xmm0
lea rax, [rdi + 0x78]
mov qword [rax + 0x10], 0
cmp qword [rax + 0x18], 0x10
jb 0x140006bcc
mov rax, qword [rax]
mov byte [rax], 0
lea rax, [rdi + 0x58]
mov qword [rax + 0x10], 0
cmp qword [rax + 0x18], 0x10
jb 0x140006be5
mov rax, qword [rax]
mov byte [rax], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x20], rax
mov r9d, 0x401
lea r8, [rbp + 0x100]
mov edx, dword [rsp + 0x40]
mov rcx, r10
call qword [sym.imp.WS2_32.dll_getnameinfo]
lea rax, [rbp + 0x100]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140006c30
lea rcx, [rdi + 0x58]
lea rdx, [rbp + 0x100]
call fcn.1400090a0
lea rdx, [rdi + 0x58]
lea rcx, [rbp + 0x40]
call fcn.140002be0
nop
lea rdx, [rbp + 0x40]
cmp qword [rbp + 0x58], 0x10
cmovae rdx, qword [rbp + 0x40]
mov r8, qword [rbp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.14000ba50
mov rbx, rax
mov rcx, rdi
call fcn.1400069b0
mov edi, eax
lea rdx, [0x1401d51e8]
mov rcx, rbx
call fcn.14000a890
mov rcx, rax
mov edx, edi
call fcn.140007730
nop
mov rdx, qword [rbp + 0x58]
cmp rdx, 0x10
jb 0x140006cd6
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006cd1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006d77
call fcn.140167ab8
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140007550
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x58]
call fcn.140007260
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rcx, qword [rsp + 0x50]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x10]
mov dword [rsp + rdx + 0x4c], r8d
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x28]
call fcn.140169b80
nop
mov rax, rsi
mov rcx, qword [rbp + 0x510]
xor rcx, rsp
call fcn.1401677c0
mov rbx, qword [rsp + 0x650]
add rsp, 0x620
pop rdi
pop rsi
pop rbp
ret
call fcn.14017d6e4
nop
int3