Function at 0x140249a50
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 [0x1403721e8]
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.1400d71c0
lea r14, [r15 + 0x40]
mov dword [rsi], 0
mov rcx, r14
mov rdx, r12
call fcn.1400ddc20
xor r9d, r9d
lea r8, [0x140330d37]
lea rdx, str.http:__
mov rcx, r14
call fcn.1400dd660
xor r9d, r9d
lea r8, [0x140330d37]
lea rdx, str.https:__
mov rcx, r14
call fcn.1400dd660
mov dl, 0x2f
mov rcx, r14
call fcn.1400d7060
mov dl, 0x3a
mov rcx, r14
call fcn.1400d7060
mov rcx, r14
call fcn.1400e0b40
mov rcx, r14
call fcn.1400da410
test eax, eax
jne 0x140249b59
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.1400f70c0
xor al, al
jmp 0x140249e10
mov rcx, r14
call fcn.1400da480
test rbx, rbx
je 0x140249b78
mov r8, rax
lea rdx, str.HostnameResolve
mov rcx, rbx
call fcn.140166ab0
mov r8, r14
lea rdx, str.dnsCacheLookup
mov rcx, rdi
call fcn.1400f70c0
mov rcx, rbp
call fcn.1400d71c0
mov rcx, r14
call fcn.1401ba730
test al, al
je 0x140249bab
mov rdx, r14
mov rcx, rbp
call fcn.1400ddc20
jmp 0x140249bbe
mov rdx, rbp
mov rcx, r14
call fcn.140138990
test al, al
je 0x140249c68
mov rcx, rbp
call fcn.1400da410
test eax, eax
je 0x140249c68
mov rcx, rbp
call fcn.1400da480
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.1400f55f0
cmp eax, 4
jne 0x140249c68
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 0x140249c46
mov rcx, rbp
call fcn.1400da480
mov r8, rax
lea rdx, str.ResolvedToIp
mov rcx, rbx
call fcn.140166ab0
mov rbx, qword [rdi]
mov rcx, rbp
call fcn.1400da480
mov r8, rax
lea rdx, str.dnsCacheHit
mov rcx, rdi
call qword [rbx + 0x58]
mov al, 1
jmp 0x140249e10
mov rcx, r15
mov qword [rsp + 0xc0], r13
mov qword [r15 + 0xd0], rbx
mov byte [r15 + 0x168], 1
call fcn.1400b2a20
call sub.KERNEL32.dll_GetTickCount
mov r13d, eax
lea r8, [0x140249470]
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 0x140249df6
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 0x140249d53
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 0x140249d25
cmp esi, dword [rbx + 0xd0]
jb 0x140249d25
mov rdx, rdi
mov rcx, rbx
xor esi, esi
call fcn.1401662f0
test al, al
jne 0x140249ddb
mov r14d, dword [rsp + 0x30]
test r14d, r14d
je 0x140249d45
call sub.KERNEL32.dll_GetTickCount
cmp eax, r13d
jbe 0x140249d45
sub eax, r13d
cmp eax, r14d
ja 0x140249dec
cmp byte [r15 + 0x168], 0
jne 0x140249ce5
lea r14, [r15 + 0x40]
lea rdx, [r15 + 0xd8]
mov rcx, rbp
call fcn.1400ddc20
mov rcx, qword [rsp + 0x48]
mov eax, dword [r15 + 0x16c]
mov dword [rcx], eax
mov rcx, rbp
call fcn.1400da410
test eax, eax
je 0x140249d8f
mov rcx, rbp
call fcn.1400da480
mov rdx, rax
mov rcx, r14
call fcn.1401387d0
test rbx, rbx
je 0x140249dba
mov rcx, rbp
call fcn.1400da410
test eax, eax
je 0x140249dba
mov rcx, rbp
call fcn.1400da480
mov r8, rax
lea rdx, str.ResolvedToIp
mov rcx, rbx
call fcn.140166ab0
mov r8, rbp
lea rdx, str.resolvedToIp
mov rcx, rdi
call fcn.1400f70c0
mov rcx, rbp
call fcn.1400da410
test eax, eax
setne al
jmp 0x140249e08
mov rax, qword [rsp + 0x38]
lea rdx, str.DNS_lookup_aborted_by_application_callback
mov byte [rax], 1
jmp 0x140249dfd
mov rax, qword [rsp + 0x40]
mov byte [rax], 1
jmp 0x140249e06
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.1402545b0
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret