Function at 0x1402496a0
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 [0x1403721e8]
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.1400f64d0
nop
cmp byte [rbx + 0x161], 0
je 0x14024973b
mov r8d, r12d
lea rdx, str.maxTimeMs
mov rcx, rbx
call fcn.1400f7280
mov byte [r15], 0
mov byte [rbp], 0
mov rdx, rdi
lea rcx, [rsi + 0x50]
call fcn.1400ddc20
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, [0x140330d37]
lea rdx, str.http:__
lea rcx, [rsi + 0x50]
call fcn.1400dd660
xor r9d, r9d
lea r8, [0x140330d37]
lea rdx, str.https:__
lea rcx, [rsi + 0x50]
call fcn.1400dd660
mov dl, 0x2f
lea rcx, [rsi + 0x50]
call fcn.1400d7060
mov dl, 0x3a
lea rcx, [rsi + 0x50]
call fcn.1400d7060
lea rcx, [rsi + 0x50]
call fcn.1400e0b40
lea rcx, [rsi + 0x50]
call fcn.1400da410
test eax, eax
jne 0x140249813
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.1400f70c0
jmp 0x140249a11
lea rcx, [rsi + 0x50]
call fcn.1400da480
mov rdi, rax
test r14, r14
je 0x140249844
mov r8, rax
lea rdx, str.HostnameResolve
mov rcx, r14
call fcn.140166ab0
cmp dword [r14 + 0xd0], 0
jne 0x1402498c8
lea rcx, [rbx + 0x98]
lea rdx, str.ForceDnsBgThread
call fcn.1400d74d0
test al, al
jne 0x1402498c8
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.1401b9a30
movzx ebx, al
jmp 0x140249a13
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.1400b2a20
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, [0x140249540]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140249a01
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rbx + 0x161], r15b
je 0x14024996d
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 0x1402499f8
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 0x1402499c7
mov edi, r15d
mov rdx, rbx
mov rcx, r14
call fcn.1401662f0
test al, al
jne 0x1402499e7
test r12d, r12d
je 0x1402499c7
call sub.KERNEL32.dll_GetTickCount
cmp eax, r13d
jbe 0x1402499c7
sub eax, r13d
cmp eax, r12d
ja 0x1402499cd
cmp byte [rsi + 0x40], r15b
jmp 0x140249977
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 0x140249a11
mov rax, qword [rsp + 0x38]
mov byte [rax], 1
lea rdx, str.DNS_lookup_aborted_by_application_callback
jmp 0x140249a08
movzx ebx, byte [rsi + 0xe4]
jmp 0x140249a13
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.1400f65e0
movzx eax, bl
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1402545b0
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret