Function at 0x1401f3500
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1403291e8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xf0]
mov r15, rcx
mov rcx, qword [rsp + 0xe8]
mov rdi, r9
mov rbp, qword [rsp + 0xd8]
mov r12, rdx
mov rsi, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xd0]
mov byte [rcx], 0
mov qword [rsp + 0x38], rcx
mov rcx, rbp
mov dword [rsp + 0x30], r8d
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rax
mov byte [rax], 0
call fcn.140081790
lea r14, [r15 + 0x40]
mov dword [rsi], 0
mov rcx, r14
mov rdx, r12
call fcn.1400881f0
xor r9d, r9d
lea r8, [0x1402e4b16]
lea rdx, str.http:__
mov rcx, r14
call fcn.140087c30
xor r9d, r9d
lea r8, [0x1402e4b16]
lea rdx, str.https:__
mov rcx, r14
call fcn.140087c30
mov dl, 0x2f
mov rcx, r14
call fcn.140081630
mov dl, 0x3a
mov rcx, r14
call fcn.140081630
mov rcx, r14
call fcn.14008b110
mov rcx, r14
call fcn.1400849e0
test eax, eax
jne 0x1401f3609
mov rax, qword [rdi]
lea rdx, str.Invalid_hostname_for_resolving_hostname_to_IP_address.
mov rcx, rdi
call qword [rax + 0x28]
mov r8, r12
lea rdx, str.hostname
mov rcx, rdi
call fcn.1400a1690
xor al, al
jmp 0x1401f38c0
mov rcx, r14
call fcn.140084a50
test rbx, rbx
je 0x1401f3628
mov r8, rax
lea rdx, str.HostnameResolve
mov rcx, rbx
call fcn.140110560
mov r8, r14
lea rdx, str.dnsCacheLookup
mov rcx, rdi
call fcn.1400a1690
mov rcx, rbp
call fcn.140081790
mov rcx, r14
call fcn.1401641e0
test al, al
je 0x1401f365b
mov rdx, r14
mov rcx, rbp
call fcn.1400881f0
jmp 0x1401f366e
mov rdx, rbp
mov rcx, r14
call fcn.1400e2440
test al, al
je 0x1401f3718
mov rcx, rbp
call fcn.1400849e0
test eax, eax
je 0x1401f3718
mov rcx, rbp
call fcn.140084a50
mov rcx, rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x54]
lea rax, [rsp + 0x5c]
lea rdx, str._d._d._d._d
mov qword [rsp + 0x20], rax
call fcn.14009fbc0
cmp eax, 4
jne 0x1401f3718
movzx eax, byte [rsp + 0x54]
mov byte [rsi], al
movzx eax, byte [rsp + 0x58]
mov byte [rsi + 1], al
movzx eax, byte [rsp + 0x5c]
mov byte [rsi + 2], al
movzx eax, byte [rsp + 0x50]
mov byte [rsi + 3], al
test rbx, rbx
je 0x1401f36f6
mov rcx, rbp
call fcn.140084a50
mov r8, rax
lea rdx, str.ResolvedToIp
mov rcx, rbx
call fcn.140110560
mov rbx, qword [rdi]
mov rcx, rbp
call fcn.140084a50
mov r8, rax
lea rdx, str.dnsCacheHit
mov rcx, rdi
call qword [rbx + 0x58]
mov al, 1
jmp 0x1401f38c0
mov rcx, r15
mov qword [rsp + 0xc0], r13
mov qword [r15 + 0xd0], rbx
mov byte [r15 + 0x168], 1
call fcn.14005c200
call sub.KERNEL32.dll_GetTickCount
mov r13d, eax
lea r8, [0x1401f2f20]
lea rax, [rsp + 0x50]
mov r9, r15
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1401f38a6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi]
lea rdx, str.Resolving_domain_name__IPV4_
mov rcx, rdi
call qword [rax + 0x30]
xor esi, esi
xor r12d, r12d
cmp byte [r15 + 0x168], sil
je 0x1401f3803
mov eax, 2
mov ecx, 0xa
inc r12d
cmp r12d, 0xc8
cmovle ecx, eax
add esi, ecx
call sub.KERNEL32.dll_Sleep
test rbx, rbx
je 0x1401f37d5
cmp esi, dword [rbx + 0xd0]
jb 0x1401f37d5
mov rdx, rdi
mov rcx, rbx
xor esi, esi
call fcn.14010fda0
test al, al
jne 0x1401f388b
mov r14d, dword [rsp + 0x30]
test r14d, r14d
je 0x1401f37f5
call sub.KERNEL32.dll_GetTickCount
cmp eax, r13d
jbe 0x1401f37f5
sub eax, r13d
cmp eax, r14d
ja 0x1401f389c
cmp byte [r15 + 0x168], 0
jne 0x1401f3795
lea r14, [r15 + 0x40]
lea rdx, [r15 + 0xd8]
mov rcx, rbp
call fcn.1400881f0
mov rcx, qword [rsp + 0x48]
mov eax, dword [r15 + 0x16c]
mov dword [rcx], eax
mov rcx, rbp
call fcn.1400849e0
test eax, eax
je 0x1401f383f
mov rcx, rbp
call fcn.140084a50
mov rdx, rax
mov rcx, r14
call fcn.1400e2280
test rbx, rbx
je 0x1401f386a
mov rcx, rbp
call fcn.1400849e0
test eax, eax
je 0x1401f386a
mov rcx, rbp
call fcn.140084a50
mov r8, rax
lea rdx, str.ResolvedToIp
mov rcx, rbx
call fcn.140110560
mov r8, rbp
lea rdx, str.resolvedToIp
mov rcx, rdi
call fcn.1400a1690
mov rcx, rbp
call fcn.1400849e0
test eax, eax
setne al
jmp 0x1401f38b8
mov rax, qword [rsp + 0x38]
lea rdx, str.DNS_lookup_aborted_by_application_callback
mov byte [rax], 1
jmp 0x1401f38ad
mov rax, qword [rsp + 0x40]
mov byte [rax], 1
jmp 0x1401f38b6
lea rdx, str.Failed_to_start_background_thread_for_resolving_IPV4_domain_name.
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x28]
xor al, al
mov r13, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401feaa0
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret