Function at 0x1400a87bc
Capabilities:
Resolve dns

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x90
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], rdi
mov rax, qword [0x1402feed0]
xor rax, rbp
mov qword [rbp + 0x58], rax
xor r12d, r12d
mov dword [rbp + 0x10], r9d
mov qword [rbp + 0x20], rdx
mov rsi, r8
mov dword [rbp + 4], r12d
mov r14, rdx
mov qword [rbp + 8], r12
mov r13, rcx
mov dword [rbp], r12d
test r8, r8
je 0x1400a8830
test r9d, r9d
jle 0x1400a8830
xor eax, eax
mov qword [r8], rax
mov qword [r8 + 8], rax
mov qword [r8 + 0x10], rax
mov dword [r8 + 0x18], eax
xor edx, edx
lea rcx, [rbp + 0x28]
lea r8d, [rdx + 0x30]
call fcn.1401da3e0
cmp byte [r13], 0x5b
movabs rbx, 0xffffffffffffff0
mov dword [rbp + 0x2c], r12d
mov dword [rbp + 0x30], 1
mov dword [rbp + 0x34], 6
jne 0x1400a88c5
mov edx, 0x1000
mov rcx, r13
call fcn.1401e26ac
movsxd rdx, eax
mov rcx, rax
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x1400a8881
mov rax, rbx
and rax, 0xfffffffffffffff0
call fcn.1401d9480
sub rsp, rax
lea rdi, [rsp + 0x30]
cmp ecx, 2
jge 0x1400a889f
or eax, 0xffffffff
jmp 0x1400a8aa9
lea eax, [rcx - 2]
mov rcx, rdi
movsxd rbx, eax
lea r8, [r13 + 1]
mov r9, rbx
call section..text
mov byte [rbx + rdi], r12b
mov r13, rdi
movabs rbx, 0xffffffffffffff0
or edi, 0xffffffff
test r13, r13
jne 0x1400a88d2
mov eax, r12d
jmp 0x1400a88f6
mov dword [rsp + 0x28], r12d
mov r9d, edi
mov r8, r13
mov qword [rsp + 0x20], r12
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [rax*2 + 2]
movsxd rcx, eax
mov qword [rbp + 0x18], rcx
test r14, r14
jne 0x1400a8907
mov eax, r12d
jmp 0x1400a892f
mov dword [rsp + 0x28], r12d
mov r9d, edi
mov r8, r14
mov qword [rsp + 0x20], r12
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [rbp + 0x18]
lea eax, [rax*2 + 2]
movsxd r12, eax
test rcx, rcx
jne 0x1400a893c
xor r14d, r14d
jmp 0x1400a8959
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x1400a8948
mov rax, rbx
and rax, 0xfffffffffffffff0
call fcn.1401d9480
sub rsp, rax
lea r14, [rsp + 0x30]
test r12, r12
jne 0x1400a8962
xor ebx, ebx
jmp 0x1400a8980
lea rax, [r12 + 0xf]
cmp rax, r12
ja 0x1400a896f
mov rax, rbx
and rax, 0xfffffffffffffff0
call fcn.1401d9480
sub rsp, rax
lea rbx, [rsp + 0x30]
test r14, r14
je 0x1400a89a1
mov dword [rsp + 0x28], ecx
mov r9d, edi
mov ecx, 0xfde9
mov qword [rsp + 0x20], r14
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test rbx, rbx
je 0x1400a89c4
mov r8, qword [rbp + 0x20]
mov r9d, edi
mov dword [rsp + 0x28], r12d
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r9, [rbp + 8]
mov rdx, rbx
lea r8, [rbp + 0x28]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
je 0x1400a89f2
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x1400a89eb
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
xor eax, eax
jmp 0x1400a8aa9
mov rbx, qword [rbp + 8]
test rbx, rbx
jne 0x1400a8a02
mov eax, edi
jmp 0x1400a8aa9
mov r15d, dword [rbp]
mov rax, rbx
cmp dword [rax + 4], 2
je 0x1400a8a15
cmp dword [rax + 4], 0x17
jne 0x1400a8a18
inc r15d
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1400a8a09
mov dword [rbp], r15d
mov r15d, dword [rbp + 0x10]
test rsi, rsi
je 0x1400a8a55
test r15d, r15d
jne 0x1400a8a55
movsxd rbx, dword [rbp]
xor r9d, r9d
imul rcx, rbx, 0x1c
xor r8d, r8d
xor edx, edx
call fcn.14009f32c
mov qword [rsi], rax
mov r15d, ebx
mov rbx, qword [rbp + 8]
mov rsi, rax
test rbx, rbx
je 0x1400a8a9d
test r15d, r15d
jle 0x1400a8a99
cmp dword [rbx + 4], 2
je 0x1400a8a6b
cmp dword [rbx + 4], 0x17
jne 0x1400a8a90
movsxd rdi, dword [rbp + 4]
mov edx, 0x1c
mov r9, qword [rbx + 0x10]
mov r8, qword [rbx + 0x20]
imul rcx, rdi, 0x1c
add rcx, rsi
call section..text
inc edi
mov dword [rbp + 4], edi
dec r15d
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1400a8a5a
mov rbx, qword [rbp + 8]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, dword [rbp + 4]
mov rcx, qword [rbp + 0x58]
xor rcx, rbp
call fcn.1401d8f10
mov rbx, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
lea rsp, [rbp + 0x60]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret