Function at 0x1400c8458
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f90]
mov eax, 0x2090
call fcn.140001a50
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1f80], rax
mov r14, rdx
mov esi, 0x230
mov r15d, 1
mov edx, esi
mov ecx, r15d
mov edi, r9d
mov r12, r8
call fcn.1400a159c
mov r8d, esi
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.msvcrt.dll_memset]
xor r13d, r13d
mov dword [rbx], r15d
mov qword [rbx + 0x20], r13
mov dword [rbx + 0x10], r13d
lea rsi, [rbx + 0x18]
mov qword [rsi], r13
mov rcx, r14
mov byte [rbp - 0x80], r13b
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x40], eax
cmp eax, 0xffffffff
jne 0x1400c869a
lea r8d, [r15 + 0x2f]
lea rcx, [rsp + 0x48]
xor edx, edx
call qword [sym.imp.msvcrt.dll_memset]
lea ecx, [r15 + 0x16]
mov eax, r13d
lea edx, [rcx - 0x15]
lea r8, [rsp + 0x48]
mov r9, rsi
cmp edi, edx
mov dword [rsp + 0x48], edx
cmove eax, ecx
cmp edi, r15d
mov rcx, r14
cmove eax, edx
xor edx, edx
mov dword [rsp + 0x4c], eax
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x1400c8535
mov dword [rbx + 0x10], r15d
cmp dword [rbx + 0x10], r13d
jne 0x1400c85a0
cmp eax, 0x2742
jne 0x1400c854b
lea rdi, str.Network_is_down
jmp 0x1400c8597
cmp eax, 0x2af9
jne 0x1400c855b
lea rdi, str.Host_does_not_exist
jmp 0x1400c8597
cmp eax, 0x2afa
jne 0x1400c856b
lea rdi, str.Host_not_found
jmp 0x1400c8597
mov r9d, 0x400
mov qword [rsp + 0x30], r13
lea rdi, [0x140188810]
mov dword [rsp + 0x28], r9d
mov r8d, eax
xor edx, edx
mov ecx, 0x12ff
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.DLL_FormatMessageA]
mov qword [rbx + 8], rdi
jmp 0x1400c86d6
mov rdx, qword [rsi]
mov qword [rbx + 8], r13
test rdx, rdx
je 0x1400c85eb
cmp dword [rdx + 4], 2
jne 0x1400c85cc
mov rdx, qword [rdx + 0x20]
mov edi, 4
lea rcx, [rsp + 0x40]
add rdx, rdi
mov r8d, edi
call qword [sym.imp.msvcrt.dll_memcpy]
mov rax, qword [rsi]
mov r8d, 0x2000
lea rcx, [rbp - 0x80]
mov rdx, qword [rax + 0x18]
test rdx, rdx
jne 0x1400c86d0
jmp 0x1400c86cd
mov rax, qword [reloc.OLEAUT32.dll_SafeArrayGetElement]
mov esi, r13d
jmp 0x1400c85ff
add esi, r15d
lea rax, [rax + 8]
cmp qword [rax], r13
jne 0x1400c85f8
mov edi, 4
movsxd rcx, esi
mov edx, edi
call fcn.1400a159c
mov dword [rbx + 0x28], esi
mov r15d, r13d
mov qword [rbx + 0x20], rax
test esi, esi
jle 0x1400c8665
mov rsi, r13
mov r14, r13
lea r13d, [rdi + 0x14]
mov rdx, qword [r13]
lea rcx, [rsp + 0x40]
mov r8, rdi
mov rdx, qword [r14 + rdx]
call qword [sym.imp.msvcrt.dll_memcpy]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rbx + 0x20]
inc r15d
mov dword [rsi + rcx], eax
add rsi, rdi
lea r14, [r14 + 8]
cmp r15d, dword [rbx + 0x28]
jl 0x1400c862b
xor r13d, r13d
mov rdx, qword [reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rcx, [rsp + 0x40]
mov r8, rdi
mov rdx, qword [rdx]
call qword [sym.imp.msvcrt.dll_memcpy]
mov rdx, qword [r13]
lea rcx, [rbp - 0x80]
mov r8d, 0x2000
call qword [sym.imp.msvcrt.dll_strncpy]
mov r15d, 1
jmp 0x1400c86d6
mov edx, 4
mov rcx, r15
call fcn.1400a159c
mov dword [rbx + 0x28], r15d
mov qword [rbx + 0x20], rax
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rbx + 0x20]
mov r8d, 0x2000
mov dword [rcx], eax
mov dword [rbx + 0x10], r15d
lea rcx, [rbp - 0x80]
mov rdx, r14
call qword [sym.imp.msvcrt.dll_strncpy]
lea rcx, [rbp - 0x80]
mov byte [rbp + 0x1f7f], r13b
call qword [sym.imp.msvcrt.dll_strlen]
mov rdx, r15
lea rcx, [r15 + rax]
call fcn.1400a159c
lea rdx, [rbp - 0x80]
mov rcx, rax
mov qword [r12], rax
call qword [sym.imp.msvcrt.dll_strcpy]
mov rax, rbx
mov rcx, qword [rbp + 0x1f80]
xor rcx, rsp
call fcn.140001010
mov rbx, qword [rsp + 0x20d0]
add rsp, 0x2090
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret