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

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov r13d, r9d
mov r12d, r8d
mov rbp, rdx
mov rdi, rcx
mov rbx, qword [rsp + 0x100]
mov r14, qword [rsp + 0x108]
mov rsi, qword [rsp + 0x130]
mov qword [rsp + 0x38], rsi
mov r15, qword [rsp + 0x138]
mov qword [rsp + 0x30], r15
xor eax, eax
mov qword [r11 - 0x58], rax
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x48], rax
lea r8, str.resolveHostname6
mov rdx, rbx
lea rcx, [r11 - 0x58]
call fcn.140071270
nop
mov byte [rsi], 0
mov byte [r15], 0
mov rdx, rbp
lea rcx, [rdi + 0x50]
call fcn.140030900
mov dword [rdi + 0xe0], r12d
lea r8, [0x140218c92]
lea rdx, str.http:__
lea rcx, [rdi + 0x50]
call fcn.1400302d0
lea r8, [0x140218c92]
lea rdx, str.https:__
lea rcx, [rdi + 0x50]
call fcn.1400302d0
mov dl, 0x2f
lea rcx, [rdi + 0x50]
call fcn.14002d5e0
mov dl, 0x3a
lea rcx, [rdi + 0x50]
call fcn.14002d5e0
lea rcx, [rdi + 0x50]
call fcn.140031880
lea rcx, [rdi + 0x50]
call fcn.14002ed00
test eax, eax
jne 0x140159d29
mov rax, qword [rbx]
lea rdx, str.Invalid_hostname_for_resolving_hostname_to_IP_address.
mov rcx, rbx
call qword [rax + 0x28]
mov r8, rbp
lea rdx, str.hostname
mov rcx, rbx
call fcn.140071b70
xor bl, bl
jmp 0x140159f40
lea rcx, [rdi + 0x50]
call fcn.14002ed10
mov rsi, rax
test r14, r14
je 0x140159ed0
mov r8, rax
lea rdx, str.HostnameResolve
mov rcx, r14
call fcn.14008e810
cmp dword [r14 + 0xd0], 0
je 0x140159ed0
mov qword [rdi + 0x48], r14
mov byte [rdi + 0x40], 1
mov eax, dword [rsp + 0x110]
mov dword [rdi + 0xec], eax
mov eax, dword [rsp + 0x118]
mov dword [rdi + 0xe8], eax
mov eax, dword [rsp + 0x120]
mov dword [rdi + 0xf4], eax
mov eax, dword [rsp + 0x128]
mov dword [rdi + 0xf0], eax
xor r15d, r15d
mov qword [rdi + 0xf8], r15
mov byte [rdi + 0xe4], r15b
mov rcx, rdi
call fcn.140050dc0
call sub.KERNEL32.dll_GetTickCount
mov r12d, eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rdi
lea r8, [0x1401599b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
je 0x140159def
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
setne al
test al, al
jne 0x140159e10
mov rax, qword [rbx]
lea rdx, str.Failed_to_start_background_thread_for_resolving_domain_name.
mov rcx, rbx
call qword [rax + 0x28]
xor bl, bl
jmp 0x140159f40
cmp byte [rbx + 0xa9], r15b
je 0x140159e29
mov rax, qword [rbx]
lea rdx, str.Resolving_domain_name__IPV4_IPV6_...
mov rcx, rbx
call qword [rax + 0x30]
mov esi, r15d
mov ebp, r15d
cmp byte [rdi + 0x40], sil
je 0x140159ec7
inc ebp
cmp ebp, 0xc8
mov ecx, 0xa
jg 0x140159e4d
mov ecx, 2
call sub.KERNEL32.dll_Sleep
inc esi
cmp esi, dword [r14 + 0xd0]
jb 0x140159e86
mov esi, r15d
mov rdx, rbx
mov rcx, r14
call fcn.14008e0f0
test al, al
jne 0x140159eab
test r13d, r13d
je 0x140159e86
call sub.KERNEL32.dll_GetTickCount
cmp eax, r12d
jbe 0x140159e86
sub eax, r12d
cmp eax, r13d
ja 0x140159e8c
cmp byte [rdi + 0x40], r15b
jmp 0x140159e33
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
xor bl, bl
jmp 0x140159f40
mov rax, qword [rsp + 0x38]
mov byte [rax], 1
mov rax, qword [rbx]
lea rdx, str.DNS_lookup_aborted_by_application_callback
mov rcx, rbx
call qword [rax + 0x28]
xor bl, bl
jmp 0x140159f40
movzx ebx, byte [rdi + 0xe4]
jmp 0x140159f40
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov eax, dword [rdi + 0xec]
mov dword [rsp + 0x54], eax
mov eax, dword [rdi + 0xe8]
mov dword [rsp + 0x50], eax
mov eax, dword [rdi + 0xf4]
mov dword [rsp + 0x5c], eax
mov eax, dword [rdi + 0xf0]
mov dword [rsp + 0x58], eax
lea rax, [rdi + 0xf8]
xor r15d, r15d
mov qword [rax], r15
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [rsp + 0x50]
mov edx, r12d
mov rcx, rsi
call fcn.1400f60b0
movzx ebx, al
lea rcx, [rsp + 0x80]
call fcn.140071380
movzx eax, bl
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140168e10
mov rbx, qword [rsp + 0xf8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret