Function at 0x14022ebb0
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 0x14022eaf8
cmp r9d, 0x17
je 0x14022eaf8
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 0x14022eaeb
test di, di
je 0x14022eb3c
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.14022e9c0
mov word [rbx], ax
mov r8, rbx
movzx edx, si
mov rcx, rdi
test ax, ax
je 0x14022eb92
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14022eac0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14022ebb0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0xe0
xor eax, eax
mov dword [rsp + 0x20], 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 + 0x58]
mov dword [rsp + 0x24], eax
mov rbp, r8
mov qword [rsp + 0x100], rdi
movzx r14d, dx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rcx
movdqu xmmword [rsp + 0x28], xmm0
movdqu xmmword [rsp + 0x38], xmm1
test rsi, rsi
jne 0x14022ec28
mov ecx, edi
mov qword [rsp + 0x50], rcx
jmp 0x14022ec89
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rsi + rax], dil
jne 0x14022ec30
add eax, 1
js 0x14022ed46
movsxd rbx, eax
cmp eax, 0x80
jle 0x14022ec6c
mov edx, 1
mov rcx, rbx
call fcn.140209740
mov qword [rsp + 0x50], rax
mov rcx, rax
test rax, rax
je 0x14022ed51
jmp 0x14022ec71
lea rax, [rsp + 0x58]
test rbx, rbx
je 0x14022ec89
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call fcn.140239dc0
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x100]
xor edx, edx
lea r8, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
lea rax, [rsp + 0x58]
cmp rcx, rax
je 0x14022ecb4
call fcn.140209748
test ebx, ebx
je 0x14022ecc4
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x14022ed00
mov rbx, qword [rsp + 0x100]
mov rdx, rbx
test rbx, rbx
je 0x14022ecea
mov eax, dword [rdx + 4]
cmp eax, 2
je 0x14022ed18
cmp eax, 0x17
je 0x14022ed18
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x14022ecd4
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
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov r8, qword [rdx + 0x10]
mov rcx, rbp
mov rdx, qword [rdx + 0x20]
call fcn.140239dc0
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 0x14022ecfe
mov ecx, 0x80070057
call fcn.14022ddd0
int3
mov ecx, 0x8007000e
call fcn.14022ddd0
int3