Function at 0x14000e240
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 r9w, 2
je 0x14000e18a
cmp r9w, 0x17
je 0x14000e18a
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 r9w, 2
mov edx, 0x1c
mov eax, reloc.WS2_32.dll_recv
cmovne eax, edx
movzx edx, r9w
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 0x14000e17d
test di, di
je 0x14000e1d0
movzx ecx, di
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbx + 2], ax
mov eax, 1
mov rbx, qword [rsp + 0x40]
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.14000e030
mov word [rbx], ax
mov r8, rbx
movzx edx, si
mov rcx, rdi
test ax, ax
je 0x14000e222
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14000e150
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14000e240
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x100
mov rax, qword [0x14033f2a8]
xor rax, rsp
mov qword [rsp + 0xf0], rax
xor eax, eax
mov dword [rsp + 0x28], 0xc00
mov qword [r8 + 2], rax
xor esi, esi
mov qword [r8 + 0xa], rax
mov rbp, r8
mov qword [r8 + 0x12], rax
movzx r14d, dx
mov qword [rsp + 0x2c], rax
mov rdi, rcx
mov word [r8 + 0x1a], ax
mov qword [rsp + 0x34], rax
mov qword [rsp + 0x3c], rax
mov qword [rsp + 0x44], rax
mov qword [rsp + 0x4c], rax
mov dword [rsp + 0x54], eax
movzx eax, word [r8]
mov dword [rsp + 0x2c], eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x20], rsi
test rcx, rcx
jne 0x14000e2c9
mov ecx, esi
mov qword [rsp + 0x60], rcx
jmp 0x14000e332
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rcx + rbx], sil
jne 0x14000e2d0
inc ebx
lea r8, [rsp + 0x68]
mov edx, ebx
lea rcx, [rsp + 0x60]
mov r9d, 0x80
call fcn.14000de80
mov rcx, qword [rsp + 0x60]
mov r8, rdi
movsxd rdx, ebx
mov r9, rdx
call fcn.14000ece0
test eax, eax
je 0x14000e32d
cmp eax, 0xc
je 0x14000e402
cmp eax, 0x16
je 0x14000e3f7
cmp eax, 0x22
je 0x14000e3f7
cmp eax, 0x50
jne 0x14000e3ec
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 0x14000e35a
call fcn.1401e6b3a
test ebx, ebx
je 0x14000e36a
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x14000e3ce
mov rbx, qword [rsp + 0x20]
mov rdx, rbx
test rbx, rbx
je 0x14000e3a4
mov eax, dword [rdx + 4]
cmp eax, 2
je 0x14000e38f
cmp eax, 0x17
je 0x14000e38f
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x14000e377
jmp 0x14000e3a4
mov r8, qword [rdx + 0x10]
mov rcx, rbp
mov rdx, qword [rdx + 0x20]
call sub.msvcrt.dll_memcpy
mov esi, 1
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x14000e3c1
movzx ecx, r14w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 2], ax
jmp 0x14000e3cc
mov ecx, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, esi
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1401e57c0
add rsp, 0x100
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x80004005
call fcn.14000ca70
int3
mov ecx, 0x80070057
call fcn.14000ca70
int3
mov ecx, 0x8007000e
call fcn.14000ca70
int3