Function at 0x1400a4c30
Capabilities:
Check internet connectivity via wininet
Check os version
Create http request

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x12b8
call fcn.14010f740
sub rsp, rax
mov qword [rsp + reloc.mfc120u.dll_Ordinal_296], 0xfffffffffffffffe
mov rax, qword [0x1401f3f10]
xor rax, rsp
mov qword [rsp + Ordinal_4775], rax
mov byte [rsp + 0x30], 1
mov dword [rsp + 0x6c], 0
mov rax, qword [rsp + 0x12c0]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x88]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
mov eax, 0x50
mov word [rsp + 0x3c], ax
mov dword [rsp + 0x90], 0
xor edx, edx
lea rcx, [rsp + 0x90]
call qword [sym.imp.WININET.dll_InternetGetConnectedState]
mov dword [rsp + 0xa8], eax
cmp dword [rsp + 0xa8], 0
jne 0x1400a5280
mov rax, qword [rsp + 0x12c8]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x12c8]
mov dword [rcx], eax
mov dword [rsp + 0x78], 0x2000000
mov dword [rsp + 0x48], 0x824
mov dword [rsp + 0x7c], 0
mov r9d, dword [rsp + 0x78]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x250]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jne 0x1400a4dc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400a4dbe
mov eax, dword [rsp + 0x48]
mov qword [rsp + 0x100], rax
mov eax, 2
mov rcx, qword [rsp + 0x100]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call sub.mfc120u.dll_Ordinal_265
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x1400a4dbe
mov dword [rsp + 0x7c], 1
mov r9d, dword [rsp + 0x78]
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
mov dword [rsp + 0x4c], eax
jmp 0x1400a4dd0
lea rax, [rsp + 0x250]
mov qword [rsp + 0x80], rax
cmp dword [rsp + 0x4c], 0
je 0x1400a4de4
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x6c]
mov rcx, qword [rsp + 0x70]
call sub.mfc120u.dll_Ordinal_2256
test eax, eax
je 0x1400a4e15
mov byte [rsp + 0x31], 1
jmp 0x1400a4e1a
mov byte [rsp + 0x31], 0
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1400a525b
cmp dword [rsp + 0x6c], 0x1001
jne 0x1400a4e67
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x32], al
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
lea rcx, [rsp + 0x88]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
movzx eax, byte [rsp + 0x32]
jmp 0x1400a52aa
mov rax, qword [rsp + 0x12c8]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x12c8]
mov dword [rcx], eax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x140164480]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1400a525b
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x130], Ordinal_285
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + reloc.mfc120u.dll_Ordinal_320], 2
jne 0x1400a4f3e
cmp dword [rsp + 0x134], 6
jae 0x1400a4f3e
mov ecx, 0x10
call sub.mfc120u.dll_Ordinal_1484
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
je 0x1400a4f15
mov rcx, qword [rsp + 0xc0]
call fcn.1400c5030
mov qword [rsp + 0xb8], rax
jmp 0x1400a4f21
mov qword [rsp + 0xb8], 0
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_286]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_5576]
cmp eax, 1
jle 0x1400a4fd8
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_4467]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jle 0x1400a4fd8
mov r8d, dword [rsp + 0x68]
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_7940]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x120], rax
mov rdx, qword [rsp + 0x120]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_1496]
nop
lea rcx, [rsp + 0xd0]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
mov dword [rsp + 0x38], 0xbb8
cmp dword [rsp + 0x38], 0
je 0x1400a5038
mov r9d, 4
lea r8, [rsp + 0x38]
mov edx, 6
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
lea r8, [rsp + 0x38]
mov edx, 5
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
lea r8, [rsp + 0x38]
mov edx, 2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x84240200
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov qword [rsp + 0xc8], rax
cmp qword [rsp + 0xc8], 0
jne 0x1400a51d6
mov rax, qword [rsp + 0x12c8]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x12c8]
mov dword [rcx], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x12d0]
mov dword [rcx], eax
mov rax, qword [rsp + 0x12d8]
mov rcx, qword [rsp + 0x12d0]
mov ecx, dword [rcx]
mov dword [rax], ecx
mov byte [rsp + 0x30], 0
movzx eax, byte [rsp + 0x12e0]
test eax, eax
je 0x1400a51d4
mov rax, qword [rsp + 0x60]
mov qword [rsp + reloc.mfc120u.dll_Ordinal_280], rax
mov rax, qword [rsp + reloc.mfc120u.dll_Ordinal_280]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x1400a511a
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0xa0]
call qword [rax]
mov qword [rsp + 0xd8], rax
jmp 0x1400a5126
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0x60], 0
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x1400a51d4
mov rax, qword [rsp + 0x12c8]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x12c8]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [rsp + 0x98], 0
mov dword [rsp + 0x94], 0
mov byte [rsp + 0x20], 0
lea r9, [rsp + 0x94]
lea r8, [rsp + 0x98]
mov rdx, qword [rsp + 0x12c8]
mov rcx, qword [rsp + 0x12c0]
call fcn.1400a4c30
mov byte [rsp + 0x34], al
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
lea rcx, [rsp + 0x88]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
movzx eax, byte [rsp + 0x34]
jmp 0x1400a52aa
jmp 0x1400a51e4
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x60], 0
je 0x1400a5244
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
je 0x1400a5238
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0xb0]
call qword [rax]
mov qword [rsp + 0xf8], rax
jmp 0x1400a5244
mov qword [rsp + 0xf8], 0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
cmp dword [rsp + 0x7c], 0
je 0x1400a5280
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x108], rax
mov rcx, qword [rsp + 0x108]
call sub.mfc120u.dll_Ordinal_266
nop
jmp 0x1400a5282
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x33], al
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
lea rcx, [rsp + 0x88]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
movzx eax, byte [rsp + 0x33]
mov rcx, qword [rsp + 0x12a0]
xor rcx, rsp
call fcn.14010f170
add rsp, 0x12b8
ret