Function at 0x1402c7510
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
movzx r9d, word [r8]
mov rbx, r8
movzx edi, dx
cmp r9d, 2
je 0x1402c74b8
cmp r9d, 0x17
je 0x1402c74b8
mov ecx, 0x2741
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp r9d, 2
mov edx, 0x1c
mov eax, reloc.WS2_32.dll_recv
cmovne eax, edx
mov edx, r9d
mov dword [rsp + 0x50], eax
mov r9, rbx
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAStringToAddressA]
test eax, eax
jne 0x1402c74ab
test di, di
je 0x1402c74fc
movzx ecx, di
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbx + 2], ax
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
movzx esi, dx
mov rdi, rcx
call fcn.1402c7380
mov word [rbx], ax
mov r8, rbx
movzx edx, si
mov rcx, rdi
test ax, ax
je 0x1402c7552
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1402c7480
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1402c7570
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x100
mov rax, qword [0x140423a40]
xor rax, rsp
mov qword [rsp + 0xf0], rax
xor eax, eax
mov dword [rsp + 0x28], 0xc00
xor edi, edi
xorps xmm0, xmm0
movups xmmword [r8 + 2], xmm0
mov qword [r8 + 0x12], rax
mov rsi, rcx
mov word [r8 + 0x1a], ax
xorps xmm1, xmm1
movzx eax, word [r8]
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x2c], eax
mov rbp, r8
mov qword [rsp + 0x20], rdi
movzx r14d, dx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], rcx
movdqu xmmword [rsp + 0x30], xmm0
movdqu xmmword [rsp + 0x40], xmm1
test rsi, rsi
jne 0x1402c75f0
mov ecx, edi
mov qword [rsp + 0x60], rcx
jmp 0x1402c7650
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rsi + rax], dil
jne 0x1402c75f7
add eax, 1
js 0x1402c770d
movsxd rbx, eax
cmp eax, 0x80
jle 0x1402c7633
mov edx, 1
mov rcx, rbx
call fcn.1402a2100
mov qword [rsp + 0x60], rax
mov rcx, rax
test rax, rax
je 0x1402c7718
jmp 0x1402c7638
lea rax, [rsp + 0x68]
test rbx, rbx
je 0x1402c7650
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call fcn.1402d2860
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x20]
xor edx, edx
lea r8, [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
lea rax, [rsp + 0x68]
cmp rcx, rax
je 0x1402c7678
call fcn.1402a2108
test ebx, ebx
je 0x1402c7688
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x1402c76c1
mov rbx, qword [rsp + 0x20]
mov rdx, rbx
test rbx, rbx
je 0x1402c76ab
mov eax, dword [rdx + 4]
cmp eax, 2
je 0x1402c76df
cmp eax, 0x17
je 0x1402c76df
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x1402c7695
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, edi
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140293710
add rsp, 0x100
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov r8, qword [rdx + 0x10]
mov rcx, rbp
mov rdx, qword [rdx + 0x20]
call fcn.1402d2860
mov rcx, rbx
mov edi, 1
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
movzx ecx, r14w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 2], ax
jmp 0x1402c76bf
mov ecx, 0x80070057
call fcn.1402c6790
int3
mov ecx, 0x8007000e
call fcn.1402c6790
int3