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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa8
mov rax, qword [0x1403291e8]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov r12d, r9d
mov r13d, r8d
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rsp + 0x110]
mov r14, qword [rsp + 0x118]
mov r15, qword [rsp + 0x140]
mov qword [rsp + 0x38], r15
mov rbp, qword [rsp + 0x148]
mov qword [rsp + 0x30], rbp
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rax
lea r8, str.resolveHostname6
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400a0aa0
nop
cmp byte [rbx + 0x161], 0
je 0x1401f31eb
mov r8d, r12d
lea rdx, str.maxTimeMs
mov rcx, rbx
call fcn.1400a1850
mov byte [r15], 0
mov byte [rbp], 0
mov rdx, rdi
lea rcx, [rsi + 0x50]
call fcn.1400881f0
mov dword [rsi + 0xe0], r13d
mov r15d, dword [rsp + 0x120]
mov dword [rsi + 0xec], r15d
mov eax, dword [rsp + 0x128]
mov dword [rsi + 0xe8], eax
mov eax, dword [rsp + 0x130]
mov dword [rsi + 0xf4], eax
mov eax, dword [rsp + 0x138]
mov dword [rsi + 0xf0], eax
xor r9d, r9d
lea r8, [0x1402e4b16]
lea rdx, str.http:__
lea rcx, [rsi + 0x50]
call fcn.140087c30
xor r9d, r9d
lea r8, [0x1402e4b16]
lea rdx, str.https:__
lea rcx, [rsi + 0x50]
call fcn.140087c30
mov dl, 0x2f
lea rcx, [rsi + 0x50]
call fcn.140081630
mov dl, 0x3a
lea rcx, [rsi + 0x50]
call fcn.140081630
lea rcx, [rsi + 0x50]
call fcn.14008b110
lea rcx, [rsi + 0x50]
call fcn.1400849e0
test eax, eax
jne 0x1401f32c3
mov rax, qword [rbx]
lea rdx, str.Invalid_hostname_for_resolving_hostname_to_IP_address.
mov rcx, rbx
call qword [rax + 0x28]
mov r8, rdi
lea rdx, str.hostname
mov rcx, rbx
call fcn.1400a1690
jmp 0x1401f34c1
lea rcx, [rsi + 0x50]
call fcn.140084a50
mov rdi, rax
test r14, r14
je 0x1401f32f4
mov r8, rax
lea rdx, str.HostnameResolve
mov rcx, r14
call fcn.140110560
cmp dword [r14 + 0xd0], 0
jne 0x1401f3378
lea rcx, [rbx + 0x98]
lea rdx, str.ForceDnsBgThread
call fcn.140081aa0
test al, al
jne 0x1401f3378
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x80], xmm1
mov dword [rsp + 0x64], r15d
mov eax, dword [rsp + 0x128]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x130]
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x138]
mov dword [rsp + 0x68], eax
lea rax, [rsi + 0xf8]
xor r15d, r15d
mov qword [rax], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [rsp + 0x60]
mov edx, r13d
mov rcx, rdi
call fcn.1401634e0
movzx ebx, al
jmp 0x1401f34c3
mov qword [rsi + 0x48], r14
mov byte [rsi + 0x40], 1
mov dword [rsi + 0xec], r15d
mov eax, dword [rsp + 0x128]
mov dword [rsi + 0xe8], eax
mov eax, dword [rsp + 0x130]
mov dword [rsi + 0xf4], eax
mov eax, dword [rsp + 0x138]
mov dword [rsi + 0xf0], eax
xor r15d, r15d
mov qword [rsi + 0xf8], r15
mov byte [rsi + 0xe4], r15b
mov rcx, rsi
call fcn.14005c200
call sub.KERNEL32.dll_GetTickCount
mov r13d, eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rsi
lea r8, [0x1401f2ff0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1401f34b1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rbx + 0x161], r15b
je 0x1401f341d
mov rax, qword [rbx]
lea rdx, str.Resolving_domain_name__IPV4_IPV6_...
mov rcx, rbx
call qword [rax + 0x30]
mov edi, r15d
mov ebp, r15d
cmp byte [rsi + 0x40], dil
je 0x1401f34a8
mov eax, 2
inc ebp
mov ecx, 0xa
cmp ebp, 0xc8
cmovle ecx, eax
call sub.KERNEL32.dll_Sleep
inc edi
cmp edi, dword [r14 + 0xd0]
jb 0x1401f3477
mov edi, r15d
mov rdx, rbx
mov rcx, r14
call fcn.14010fda0
test al, al
jne 0x1401f3497
test r12d, r12d
je 0x1401f3477
call sub.KERNEL32.dll_GetTickCount
cmp eax, r13d
jbe 0x1401f3477
sub eax, r13d
cmp eax, r12d
ja 0x1401f347d
cmp byte [rsi + 0x40], r15b
jmp 0x1401f3427
mov rax, qword [rbx]
lea rdx, str.Timeout_in_resolving_domain_name.
mov rcx, rbx
call qword [rax + 0x28]
mov rax, qword [rsp + 0x30]
mov byte [rax], 1
jmp 0x1401f34c1
mov rax, qword [rsp + 0x38]
mov byte [rax], 1
lea rdx, str.DNS_lookup_aborted_by_application_callback
jmp 0x1401f34b8
movzx ebx, byte [rsi + 0xe4]
jmp 0x1401f34c3
lea rdx, str.Failed_to_start_background_thread_for_resolving_domain_name.
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x28]
xor bl, bl
lea rcx, [rsp + 0x48]
call fcn.1400a0bb0
movzx eax, bl
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401feaa0
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret