Function at 0x1400194f8
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
mov word [rsp + 0x20], r9w
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov r12, r8
mov r13, rdx
mov r15, rcx
xor esi, esi
mov dword [rbp + 0x60], esi
mov dword [rsp + 0x20], esi
lea r9, [0x1400513b8]
lea r8, [0x1400513b8]
xor edx, edx
mov rcx, qword [r12]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rcx, rax
mov qword [r15 + 0x71aa8], rax
test rax, rax
jne 0x14001961b
mov rcx, r15
call fcn.14001a73c
nop
mov rcx, qword [r13]
add rcx, 0xfffffffffffffff4
lea rsi, [0x140060bd0]
or ebx, 0xffffffff
cmp rcx, rsi
je 0x14001959c
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x14001959c
mov rcx, qword [r13]
sub rcx, 0xc
call fcn.140029150
nop
mov rcx, qword [r12]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x1400195c3
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x1400195c3
mov rcx, qword [r12]
sub rcx, 0xc
call fcn.140029150
nop
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rdx]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x1400195ec
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x1400195ec
mov rcx, qword [rdx]
sub rcx, 0xc
call fcn.140029150
nop
mov rdx, qword [rbp + 0x70]
mov rcx, qword [rdx]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x140019614
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x140019614
mov rcx, qword [rdx]
sub rcx, 0xc
call fcn.140029150
xor eax, eax
jmp 0x1400199e0
mov r14, qword [rbp + 0x70]
mov rax, qword [r14]
mov ebx, 0x1bb
mov r8d, ebx
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], 0x4400000
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rax
mov rdi, qword [rbp + 0x68]
mov r9, qword [rdi]
mov rdx, qword [r13]
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [r15 + 0x71ab0], rax
test rax, rax
jne 0x140019720
mov rcx, r15
call fcn.14001a73c
mov rcx, qword [r15 + 0x71aa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [r13]
or ebx, 0xffffffff
lea rsi, [0x140060bd0]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x1400196ac
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x1400196ac
mov rcx, qword [r13]
sub rcx, 0xc
call fcn.140029150
nop
mov rcx, qword [r12]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x1400196d3
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x1400196d3
mov rcx, qword [r12]
sub rcx, 0xc
call fcn.140029150
nop
mov rcx, qword [rdi]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x1400196f8
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x1400196f8
mov rcx, qword [rdi]
sub rcx, 0xc
call fcn.140029150
nop
mov rcx, qword [r14]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x140019614
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x140019614
mov rcx, qword [r14]
jmp 0x14001960b
mov dword [r15 + 0x71ad0], ebx
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x14001974d
mov rcx, r15
call fcn.14001a73c
mov rcx, qword [r15 + 0x71ab0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001966d
lea rcx, [r15 + 0x61aa0]
mov r8, qword [r13]
mov ebx, 0x2000
mov edx, ebx
call fcn.14002ae24
lea rcx, [r15 + 0x65aa0]
mov r8, qword [r12]
mov edx, ebx
call fcn.14002ae24
mov rbx, qword [rdi]
test rbx, rbx
je 0x1400197c3
cmp dword [rbx - 0xc], esi
jl 0x14001978d
mov qword [rbp + 0x48], rbx
lock inc dword [rbx - 0xc]
jmp 0x1400197b8
mov rax, qword [0x140060be0]
mov qword [rbp + 0x48], rax
test rbx, rbx
jne 0x1400197a1
mov eax, esi
jmp 0x1400197aa
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rbp + 0x48]
call fcn.14000cd44
lea rax, [rbp + 0x48]
mov edi, 1
jmp 0x1400197d8
lea rdx, [0x1400513b8]
lea rcx, [rbp - 0x20]
call fcn.14000d080
mov edi, 2
mov dword [rbp + 0x60], edi
lea rcx, [r15 + 0x69aa0]
mov r8, qword [rax]
mov edx, 0x2000
call fcn.14002ae24
or ebx, 0xffffffff
lea rsi, [0x140060bd0]
test dil, 2
je 0x14001982e
and edi, 0xfffffffd
mov dword [rbp + 0x60], edi
mov rcx, qword [rbp - 0x20]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x14001982e
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x14001982b
mov rcx, qword [rbp - 0x20]
add rcx, 0xfffffffffffffff4
call fcn.140029150
mov edi, dword [rbp + 0x60]
test dil, 1
je 0x14001985b
and edi, 0xfffffffe
mov dword [rbp + 0x60], edi
mov rcx, qword [rbp + 0x48]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x14001985b
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x140019858
call fcn.140029150
mov edi, dword [rbp + 0x60]
mov r14, qword [r14]
test r14, r14
je 0x1400198ac
cmp dword [r14 - 0xc], 0
jl 0x140019878
mov qword [rbp - 0x28], r14
lock inc dword [r14 - 0xc]
mov edi, dword [rbp + 0x60]
jmp 0x1400198a3
mov rax, qword [0x140060be0]
mov qword [rbp - 0x28], rax
test r14, r14
jne 0x14001988c
xor eax, eax
jmp 0x140019895
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, r14
mov edx, eax
lea rcx, [rbp - 0x28]
call fcn.14000cd44
lea rax, [rbp - 0x28]
or edi, 4
jmp 0x1400198bf
lea rdx, [0x1400513b8]
lea rcx, [rbp - 0x18]
call fcn.14000d080
or edi, 8
mov dword [rbp + 0x60], edi
lea rcx, [r15 + 0x6daa0]
mov r8, qword [rax]
mov edx, 0x2000
call fcn.14002ae24
test dil, 8
je 0x14001990b
and edi, 0xfffffff7
mov dword [rbp + 0x60], edi
mov rcx, qword [rbp - 0x18]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x14001990b
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x140019908
mov rcx, qword [rbp - 0x18]
add rcx, 0xfffffffffffffff4
call fcn.140029150
mov edi, dword [rbp + 0x60]
test dil, 4
je 0x14001992f
mov rcx, qword [rbp - 0x28]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x14001992f
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x14001992f
call fcn.140029150
mov eax, 0x1bb
mov word [r15 + 0x71aa0], ax
mov rcx, qword [r13]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x140019963
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x140019963
mov rcx, qword [r13]
sub rcx, 0xc
call fcn.140029150
nop
mov rcx, qword [r12]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x14001998a
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x14001998a
mov rcx, qword [r12]
sub rcx, 0xc
call fcn.140029150
nop
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rdx]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x1400199b3
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x1400199b3
mov rcx, qword [rdx]
sub rcx, 0xc
call fcn.140029150
nop
mov rdx, qword [rbp + 0x70]
mov rax, qword [rdx]
add rax, 0xfffffffffffffff4
cmp rax, rsi
je 0x1400199db
mov ecx, ebx
lock xadd dword [rax], ecx
add ecx, ebx
test ecx, ecx
jg 0x1400199db
mov rcx, qword [rdx]
sub rcx, 0xc
call fcn.140029150
mov eax, 1
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret