Function at 0x140021630
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, 0x78
mov qword [rbp - 0x18], 0xfffffffffffffffe
movzx ebx, r9w
mov r14, r8
mov r15, rdx
mov rsi, rcx
xor eax, eax
mov dword [rbp + 0x48], eax
mov dword [rsp + 0x20], eax
lea rdi, [0x1400673a8]
mov r9, rdi
mov r8, rdi
xor edx, edx
mov rcx, qword [r14]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rcx, rax
mov qword [rsi + 0x71aa8], rax
test rax, rax
jne 0x14002172d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x71ac0], eax
mov rdx, qword [r15]
sub rdx, 0x18
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400216ca
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400216e7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rbp + 0x68]
mov rdx, qword [rax]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140021708
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rbp + 0x70]
mov rdx, qword [rax]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140021726
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
jmp 0x140021a71
mov r12, qword [rbp + 0x70]
mov rax, qword [r12]
mov r13, qword [rbp + 0x68]
xor edx, edx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rax
mov r9, qword [r13]
movzx r8d, bx
mov rdx, qword [r15]
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rsi + 0x71ab0], rax
test rax, rax
jne 0x1400217f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x71ac0], eax
mov rcx, qword [rsi + 0x71aa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [r15]
mov ebx, 0xffffffff
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400217ae
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400217cb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [r13]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400217e9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [r12]
jmp 0x14002170f
movzx eax, bx
mov dword [rsi + 0x71ad0], eax
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x140021825
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x71ac0], eax
mov rcx, qword [rsi + 0x71ab0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14002177e
lea rcx, [rsi + 0x61aa0]
mov r8, qword [r15]
mov edx, 0x2000
call fcn.140039790
lea rcx, [rsi + 0x65aa0]
mov r8, qword [r14]
mov edx, 0x2000
call fcn.140039790
cmp qword [r13], 0
je 0x140021868
mov rdx, r13
lea rcx, [rbp - 0x28]
call fcn.140019510
nop
mov edi, 1
jmp 0x1400218b0
call fcn.14000de5c
mov rcx, rax
test rax, rax
je 0x140021a8d
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x38], rax
lea rcx, [rbp - 0x38]
cmp rdi, 0x10000
jae 0x14002189e
movzx edx, di
call fcn.14000e120
jmp 0x1400218a7
mov rdx, rdi
call fcn.14000e4cc
nop
lea rax, [rbp - 0x38]
mov edi, 2
mov dword [rbp + 0x48], edi
lea rcx, [rsi + 0x69aa0]
mov r8, qword [rax]
mov edx, 0x2000
call fcn.140039790
mov ebx, 0xffffffff
test dil, 2
je 0x1400218f8
and edi, 0xfffffffd
mov dword [rbp + 0x48], edi
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400218f5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov edi, dword [rbp + 0x48]
test dil, 1
je 0x140021924
and edi, 0xfffffffe
mov dword [rbp + 0x48], edi
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140021921
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov edi, dword [rbp + 0x48]
cmp qword [r12], 0
je 0x14002193d
mov rdx, r12
lea rcx, [rbp - 0x20]
call fcn.140019510
nop
or edi, 4
jmp 0x140021987
call fcn.14000de5c
mov rcx, rax
test rax, rax
je 0x140021a82
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x30], rax
lea rdx, [0x1400673a8]
lea rcx, [rbp - 0x30]
cmp rdx, 0x10000
jae 0x14002197a
movzx edx, dx
call fcn.14000e120
jmp 0x140021980
call fcn.14000e4cc
nop
lea rax, [rbp - 0x30]
or edi, 8
mov dword [rbp + 0x48], edi
lea rcx, [rsi + 0x6daa0]
mov r8, qword [rax]
mov edx, 0x2000
call fcn.140039790
test dil, 8
je 0x1400219ca
and edi, 0xfffffff7
mov dword [rbp + 0x48], edi
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400219c7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov edi, dword [rbp + 0x48]
test dil, 4
je 0x1400219ed
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400219ed
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
movzx eax, word [rbp + 0x60]
mov word [rsi + 0x71aa0], ax
mov rdx, qword [r15]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140021a15
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140021a32
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [r13]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140021a50
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140021a6c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, 1
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.14000fc30
int3
mov ecx, 0x80004005
call fcn.14000fc30
int3