Function at 0x1402fd790
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0x98]
mov qword [rax], 0
lea r9, [rsp + 0x58]
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ws2_32.dll_getaddrinfo]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1402fd800
mov eax, dword [rsp + 0x30]
jmp 0x1402fda5d
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
jmp 0x1402fd81a
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1402fda00
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x18], 0
je 0x1402fd84a
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
inc rax
mov qword [rsp + 0x60], rax
jmp 0x1402fd853
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 2
jne 0x1402fd873
mov qword [rsp + 0x38], 0x10
jmp 0x1402fd88b
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0x17
jne 0x1402fd889
mov qword [rsp + 0x38], 0x1c
jmp 0x1402fd88b
jmp 0x1402fd80c
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x1402fd8a3
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x10], 0
ja 0x1402fd8a8
jmp 0x1402fd80c
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jae 0x1402fd8bd
jmp 0x1402fd80c
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
lea rax, [rax + rcx + 0x30]
mov rcx, rax
call qword [str._N5_]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1402fd8ef
mov dword [rsp + 0x30], 8
jmp 0x1402fda00
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx]
mov dword [rax], ecx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 4]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 8]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0xc]
mov dword [rax + 0xc], ecx
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x38]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x28], 0
mov rax, qword [rsp + 0x20]
add rax, 0x30
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x20], rax
mov r8, qword [rsp + 0x38]
mov rax, qword [rsp + 0x28]
mov rdx, qword [rax + 0x20]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x20]
call sub.VCRUNTIME140.dll_memcpy
cmp qword [rsp + 0x48], 0
je 0x1402fd9c9
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x20]
add rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x18], rax
mov r8, qword [rsp + 0x48]
mov rax, qword [rsp + 0x28]
mov rdx, qword [rax + 0x18]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x18]
call sub.VCRUNTIME140.dll_memcpy
cmp qword [rsp + 0x40], 0
jne 0x1402fd9db
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x50], 0
je 0x1402fd9f1
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
mov qword [rax + 0x28], rcx
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x50], rax
jmp 0x1402fd80c
cmp qword [rsp + 0x58], 0
je 0x1402fda13
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ws2_32.dll_freeaddrinfo]
cmp dword [rsp + 0x30], 0
je 0x1402fda2f
mov rcx, qword [rsp + 0x40]
call fcn.1402fd740
mov qword [rsp + 0x40], 0
jmp 0x1402fda49
cmp qword [rsp + 0x40], 0
jne 0x1402fda49
mov dword [rsp + 0x30], 0x2af9
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.ws2_32.dll_WSASetLastError]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
mov eax, dword [rsp + 0x30]
add rsp, 0x78
ret