Function at 0x14012c1ac
Capabilities:
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x278
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x140348518]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14012c764
nop
cmp qword [rsp + 0x50], 0
jne 0x14012c213
lea rdx, str.Failed_to_open_Internet_handle
lea rcx, [rsp + 0x1f0]
call fcn.140129e08
lea rdx, [0x14042a1d0]
lea rcx, [rsp + 0x1f0]
call fcn.1403103d8
mov rdx, qword [rsp + 0x280]
lea rcx, [rsp + 0x250]
call fcn.14012c074
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x280]
call fcn.14013da10
lea rcx, [rsp + 0x250]
call fcn.14013cec8
mov rcx, qword [rsp + 0x280]
call fcn.1401436b0
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14012c764
nop
cmp qword [rsp + 0x40], 0
jne 0x14012c2d7
lea rdx, str.Failed_to_open_URL
lea rcx, [rsp + 0x208]
call fcn.140129e08
lea rdx, [0x14042a1d0]
lea rcx, [rsp + 0x208]
call fcn.1403103d8
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x34]
mov edx, 0x20000005
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x14012c322
mov eax, dword [rsp + 0x34]
mov edx, eax
lea rcx, [0x140439420]
call fcn.14012a644
jmp 0x14012c35d
lea rdx, str.Failed_to_query_file_size_n
lea rcx, [0x140439c40]
call fcn.140133108
lea rdx, str.Failed_to_query_file_size
lea rcx, [rsp + 0x220]
call fcn.140129e08
lea rdx, [0x14042a1d0]
lea rcx, [rsp + 0x220]
call fcn.1403103d8
mov dword [rsp + 0x38], 0
lea rdx, [0x1404393d0]
lea rcx, [rsp + 0x198]
call fcn.14013b2a0
nop
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x4c], eax
lea rcx, [0x140439420]
call fcn.140129574
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x80], rax
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x4c]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14012c6fe
cmp dword [rsp + 0x38], 0
jbe 0x14012c6fe
mov eax, dword [rsp + 0x38]
mov edx, eax
lea rcx, [0x140439420]
call fcn.14012a644
lea rcx, [rsp + 0x30]
call fcn.140129590
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0x138]
lea rcx, [0x140439420]
call fcn.1401435a4
mov qword [rsp + 0x88], rax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x140]
mov rcx, qword [rsp + 0x88]
call fcn.14013dfb8
mov rax, qword [rax]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xa8], rax
lea rdx, [rsp + 0x148]
lea rcx, [0x140439420]
call fcn.1401435a4
mov rax, qword [rax]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xb0], rax
mov r9, qword [rsp + 0xa0]
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x1d8]
call fcn.140132bec
nop
lea rcx, [rsp + 0x31]
call fcn.140129590
mov qword [rsp + 0xe0], rax
lea rdx, [rsp + 0x150]
lea rcx, [0x140439420]
call fcn.1401435a4
mov qword [rsp + 0xb8], rax
mov r8d, 0x20
lea rdx, [rsp + 0x158]
mov rcx, qword [rsp + 0xb8]
call fcn.14013dfb8
mov qword [rsp + 0xc0], rax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x160]
mov rcx, qword [rsp + 0xc0]
call fcn.14013dfb8
mov rax, qword [rax]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xe8], rax
lea rdx, [rsp + 0x168]
lea rcx, [0x140439420]
call fcn.1401435a4
mov qword [rsp + 0xd0], rax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x170]
mov rcx, qword [rsp + 0xd0]
call fcn.14013dfb8
mov rax, qword [rax]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xf0], rax
mov r9, qword [rsp + 0xe0]
mov r8, qword [rsp + 0xe8]
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x1c0]
call fcn.140132bec
nop
lea rcx, [rsp + 0x32]
call fcn.140129590
mov qword [rsp + 0x118], rax
lea rdx, [rsp + 0x178]
lea rcx, [0x140439420]
call fcn.1401440bc
mov rax, qword [rax]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x120], rax
lea rdx, [rsp + 0x180]
lea rcx, [0x140439420]
call fcn.1401435a4
mov qword [rsp + 0x100], rax
mov r8d, 0x20
lea rdx, [rsp + 0x188]
mov rcx, qword [rsp + 0x100]
call fcn.14013dfb8
mov qword [rsp + 0x108], rax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x190]
mov rcx, qword [rsp + 0x108]
call fcn.14013dfb8
mov rax, qword [rax]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x128], rax
mov r9, qword [rsp + 0x118]
mov r8, qword [rsp + 0x120]
mov rdx, qword [rsp + 0x128]
lea rcx, [rsp + 0x1a8]
call fcn.140132bec
nop
lea r9, [rsp + 0x1d8]
lea r8, [rsp + 0x1c0]
lea rdx, [rsp + 0x1a8]
lea rcx, [rsp + 0x238]
call fcn.140128c38
mov qword [rsp + 0x130], rax
mov rdx, qword [rsp + 0x130]
lea rcx, [0x140439420]
call fcn.14013dba4
lea rcx, [rsp + 0x238]
call fcn.140129e98
xor edx, edx
lea rcx, section..data
call fcn.14013d9a8
nop
lea rcx, [rsp + 0x1a8]
call fcn.140129e98
nop
lea rcx, [rsp + 0x1c0]
call fcn.140129e98
nop
lea rcx, [rsp + 0x1d8]
call fcn.140129e98
jmp 0x14012c723
lea rdx, str.Download_Failure__n
lea rcx, [0x140439c40]
call fcn.140133108
mov edx, 0xffffffff
lea rcx, section..data
call fcn.14013d9a8
nop
lea rcx, [rsp + 0x198]
call fcn.14013d10c
nop
lea rcx, [rsp + 0x40]
call fcn.14012c788
nop
lea rcx, [rsp + 0x50]
call fcn.14012c788
nop
mov rcx, qword [rsp + 0x280]
call fcn.14013cec8
add rsp, 0x278
ret