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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x2e8
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x140366080]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.14012c740
nop
cmp qword [rsp + 0x58], 0
jne 0x14012c027
lea rdx, str.Failed_to_open_Internet_handle
lea rcx, [rsp + 0x258]
call fcn.14012a010
lea rdx, [0x14045dc20]
lea rcx, [rsp + 0x258]
call fcn.140328d98
mov rdx, qword [rsp + 0x2f0]
lea rcx, [rsp + 0x2b8]
call fcn.14012be80
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x2f0]
call fcn.140143450
lea rcx, [rsp + 0x2b8]
call fcn.140142460
mov rcx, qword [rsp + 0x2f0]
call fcn.14014c4c0
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14012c740
nop
cmp qword [rsp + 0x40], 0
jne 0x14012c0eb
lea rdx, str.Failed_to_open_URL
lea rcx, [rsp + 0x270]
call fcn.14012a010
lea rdx, [0x14045dc20]
lea rcx, [rsp + 0x270]
call fcn.140328d98
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x30]
mov edx, 0x20000005
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x14012c179
mov eax, dword [rsp + 0x30]
mov edx, eax
lea rcx, [0x14046c440]
call fcn.14012aa20
lea rdx, str.File_size:
lea rcx, [0x14046cb30]
call fcn.140134d70
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x4c], eax
mov edx, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x80]
call fcn.1401437b0
lea rdx, str._bytes_n
mov rcx, rax
call fcn.140134d70
jmp 0x14012c1b4
lea rdx, str.Failed_to_query_file_size_n
lea rcx, [0x14046cc60]
call fcn.140134d70
lea rdx, str.Failed_to_query_file_size
lea rcx, [rsp + 0x288]
call fcn.14012a010
lea rdx, [0x14045dc20]
lea rcx, [rsp + 0x288]
call fcn.140328d98
mov dword [rsp + 0x34], 0
lea rdx, [0x14046c3f0]
lea rcx, [rsp + 0x200]
call fcn.1401401c0
nop
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x50], eax
lea rcx, [0x14046c440]
call fcn.14012a930
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x90], rax
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14012c6ce
cmp dword [rsp + 0x34], 0
jbe 0x14012c6ce
mov eax, dword [rsp + 0x34]
mov edx, eax
lea rcx, [0x14046c440]
call fcn.14012aa20
lea rdx, str.Download_Success__Bytes_read:
lea rcx, [0x14046cb30]
call fcn.140134d70
mov qword [rsp + 0x98], rax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x54], eax
mov edx, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x98]
call fcn.1401437b0
lea rdx, [0x140365fcc]
mov rcx, rax
call fcn.140134d70
xor edx, edx
lea rcx, [0x14046c440]
call fcn.140143dd0
movzx eax, byte [rax]
cmp eax, 0x47
jne 0x14012c3b2
mov edx, 1
lea rcx, [0x14046c440]
call fcn.140143dd0
movzx eax, byte [rax]
cmp eax, 0x49
jne 0x14012c3b2
mov edx, 2
lea rcx, [0x14046c440]
call fcn.140143dd0
movzx eax, byte [rax]
cmp eax, 0x46
jne 0x14012c3b2
lea rdx, [rsp + 0x180]
lea rcx, [0x14046c440]
call fcn.14014c390
mov qword [rsp + 0xa0], rax
mov r8d, 0x1f
lea rdx, [rsp + 0x188]
mov rcx, qword [rsp + 0xa0]
call fcn.140144160
mov rax, qword [rax]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb8], rax
lea rdx, [rsp + 0x190]
lea rcx, [0x14046c440]
call fcn.14014c390
mov rax, qword [rax]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xc0], rax
mov r9, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xc0]
lea rdx, [rsp + 0x198]
lea rcx, [0x14046c440]
call fcn.14014e030
lea rcx, [0x14046c440]
call fcn.14012aa50
mov rdx, rax
lea rcx, [0x14046cb30]
call fcn.140143a20
mov qword [rsp + 0xc8], rax
lea rdx, [0x14013c200]
mov rcx, qword [rsp + 0xc8]
call fcn.1401439f0
lea rcx, [rsp + 0x38]
call fcn.140129bf0
mov qword [rsp + 0xe8], rax
lea rdx, [rsp + 0x1a0]
lea rcx, [0x14046c440]
call fcn.14014c390
mov qword [rsp + 0xd0], rax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x1a8]
mov rcx, qword [rsp + 0xd0]
call fcn.140144160
mov rax, qword [rax]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xf0], rax
lea rdx, [rsp + 0x1b0]
lea rcx, [0x14046c440]
call fcn.14014c390
mov rax, qword [rax]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xf8], rax
mov r9, qword [rsp + 0xe8]
mov r8, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0xf8]
lea rcx, [rsp + 0x240]
call fcn.1401346d0
nop
lea rcx, [rsp + 0x39]
call fcn.140129bf0
mov qword [rsp + 0x128], rax
lea rdx, [rsp + 0x1b8]
lea rcx, [0x14046c440]
call fcn.14014c390
mov qword [rsp + 0x100], rax
mov r8d, 0x20
lea rdx, [rsp + 0x1c0]
mov rcx, qword [rsp + 0x100]
call fcn.140144160
mov qword [rsp + 0x108], rax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x1c8]
mov rcx, qword [rsp + 0x108]
call fcn.140144160
mov rax, qword [rax]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x130], rax
lea rdx, [rsp + 0x1d0]
lea rcx, [0x14046c440]
call fcn.14014c390
mov qword [rsp + 0x118], rax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x1d8]
mov rcx, qword [rsp + 0x118]
call fcn.140144160
mov rax, qword [rax]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x138], rax
mov r9, qword [rsp + 0x128]
mov r8, qword [rsp + 0x130]
mov rdx, qword [rsp + 0x138]
lea rcx, [rsp + 0x228]
call fcn.1401346d0
nop
lea rcx, [rsp + 0x3a]
call fcn.140129bf0
mov qword [rsp + 0x160], rax
lea rdx, [rsp + 0x1e0]
lea rcx, [0x14046c440]
call fcn.14014ded0
mov rax, qword [rax]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x168], rax
lea rdx, [rsp + 0x1e8]
lea rcx, [0x14046c440]
call fcn.14014c390
mov qword [rsp + 0x148], rax
mov r8d, 0x20
lea rdx, [rsp + 0x1f0]
mov rcx, qword [rsp + 0x148]
call fcn.140144160
mov qword [rsp + 0x150], rax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x1f8]
mov rcx, qword [rsp + 0x150]
call fcn.140144160
mov rax, qword [rax]
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x170], rax
mov r9, qword [rsp + 0x160]
mov r8, qword [rsp + 0x168]
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x210]
call fcn.1401346d0
nop
lea r9, [rsp + 0x240]
lea r8, [rsp + 0x228]
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x2a0]
call fcn.140128c80
mov qword [rsp + 0x178], rax
mov rdx, qword [rsp + 0x178]
lea rcx, [0x14046c440]
call fcn.140143670
lea rcx, [rsp + 0x2a0]
call fcn.14012a0b0
xor edx, edx
lea rcx, section..data
call fcn.1401433a0
nop
lea rcx, [rsp + 0x210]
call fcn.14012a0b0
nop
lea rcx, [rsp + 0x228]
call fcn.14012a0b0
nop
lea rcx, [rsp + 0x240]
call fcn.14012a0b0
jmp 0x14012c6f3
lea rdx, str.Download_Failure__n
lea rcx, [0x14046cc60]
call fcn.140134d70
mov edx, 0xffffffff
lea rcx, section..data
call fcn.1401433a0
nop
lea rcx, [rsp + 0x200]
call fcn.140142820
nop
lea rcx, [rsp + 0x40]
call fcn.14012c770
nop
lea rcx, [rsp + 0x58]
call fcn.14012c770
nop
mov rcx, qword [rsp + 0x2f0]
call fcn.140142460
add rsp, 0x2e8
ret