Function at 0x1400138c0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
movzx eax, word [r8]
mov rdi, r8
movzx ebx, dx
mov r10, rcx
cmp ax, 2
je 0x140013312
cmp ax, 0x17
je 0x14001330b
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
mov ecx, 0x1c
jmp 0x140013317
mov ecx, reloc.WS2_32.dll_recv
movzx edx, ax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], ecx
mov r9, r8
mov rcx, r10
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAStringToAddressA]
test eax, eax
jne 0x1400132fe
test bx, bx
je 0x14001334d
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rdi + 2], ax
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x100
mov rax, qword [0x140033028]
xor rax, rsp
mov qword [rsp + 0xf0], rax
xor eax, eax
mov rbp, r8
mov rsi, rcx
mov qword [r8 + 2], rax
mov qword [r8 + 0xa], rax
mov qword [r8 + 0x12], rax
mov word [r8 + 0x1a], ax
movzx r12d, dx
lea rcx, [rsp + 0x2c]
lea r8d, [rax + 0x2c]
xor edi, edi
xor edx, edx
mov qword [rsp + 0x20], rdi
call fcn.14000a8a0
movzx eax, word [rbp]
mov dword [rsp + 0x2c], eax
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], 0xc00
mov qword [rsp + 0x60], rax
test rsi, rsi
jne 0x14001371f
mov ecx, edi
mov qword [rsp + 0x60], rcx
jmp 0x1400137f6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
jns 0x140013739
mov ecx, 0x80070057
call fcn.1400110e0
int3
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
cmp rcx, rax
je 0x1400137b1
cmp ebx, 0x80
jle 0x14001376e
movsxd rdx, ebx
mov r8d, 1
call fcn.14000f450
test rax, rax
jne 0x1400137c6
mov ecx, 0x8007000e
call fcn.1400110e0
int3
call fcn.140007b44
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
movsxd rdx, ebx
mov r8, rsi
mov rcx, rax
mov r9, rdx
call fcn.14001dd64
test eax, eax
je 0x1400137f1
cmp eax, 0xc
je 0x1400137e6
cmp eax, 0x16
je 0x1400137db
cmp eax, 0x22
je 0x1400137db
cmp eax, 0x50
je 0x1400137f1
mov ecx, 0x80004005
call fcn.1400110e0
int3
cmp ebx, 0x80
jle 0x140013773
movsxd rcx, ebx
mov edx, 1
call fcn.14000fb28
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x14001377d
mov ecx, 0x8007000e
call fcn.1400110e0
int3
mov ecx, 0x80070057
call fcn.1400110e0
int3
mov ecx, 0x8007000e
call fcn.1400110e0
int3
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
lea rax, [rsp + 0x68]
cmp rcx, rax
je 0x14001381e
call fcn.140007b44
test ebx, ebx
je 0x14001382e
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x140013897
mov rbx, qword [rsp + 0x20]
mov rdx, rbx
test rbx, rbx
je 0x14001386d
nop dword [rax + rax]
mov eax, dword [rdx + 4]
cmp eax, 2
je 0x140013858
cmp eax, 0x17
je 0x140013858
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x140013840
jmp 0x14001386d
mov r8, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
mov rcx, rbp
call fcn.140006b70
mov edi, 1
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x14001388a
movzx ecx, r12w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 2], ax
jmp 0x140013895
mov ecx, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, edi
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140006b30
add rsp, 0x100
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
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.140012c50
mov r8, rbx
movzx edx, si
mov word [rbx], ax
mov rcx, rdi
test ax, ax
je 0x140013902
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400132d0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400136a0