Function at 0x140001ea0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x470
mov rax, qword [0x140030030]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 1]
lea rcx, str.HTTPGET
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r14, rax
test rax, rax
jne 0x140001f4e
lea rdx, str.Failed_to_initialize_WinINet
call fcn.1400029f0
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140003350
movzx edx, al
mov rcx, rbx
call fcn.1400031a0
mov rcx, rbx
call fcn.140003040
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
xor r8d, r8d
lea rdx, [0x14002b280]
mov rcx, rdi
call fcn.140002cd0
jmp 0x14000215f
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbp, rax
test rax, rax
jne 0x140001fb6
lea rdx, str.Failed_to_open_URL
call fcn.1400029f0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140003350
movzx edx, al
mov rcx, rbx
call fcn.1400031a0
mov rcx, rbx
call fcn.140003040
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140001f29
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x38], esi
nop dword [rax + rax]
lea r9, [rsp + 0x38]
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14000218a
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140002017
mov r9d, eax
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.1400035c0
cmp dword [rsp + 0x38], 0
ja 0x140001fd0
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
cmp rbp, rbx
jne 0x14000205a
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
jmp 0x140002125
sub rbx, rbp
movabs r14, 0x7fffffffffffffff
cmp rbx, r14
ja 0x14000223c
mov qword [rdi + 0x18], 0xf
cmp rbx, 0x10
jae 0x140002099
mov qword [rdi + 0x10], rbx
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.140007f20
mov byte [rbx + rdi], 0
jmp 0x140002125
mov rax, rbx
or rax, 0xf
cmp rax, r14
ja 0x1400020b4
mov r14, rax
mov ecx, 0x16
cmp rax, rcx
cmovb r14, rcx
mov rcx, r14
add rcx, 1
mov rax, 0xffffffffffffffff
cmovb rcx, rax
cmp rcx, 0x1000
jb 0x1400020fb
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002242
mov rcx, rax
call fcn.140006098
test rax, rax
je 0x140002230
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140002108
test rcx, rcx
je 0x140002108
call fcn.140006098
mov rsi, rax
mov qword [rdi], rsi
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], r14
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.140007f20
mov byte [rsi + rbx], 0
test rbp, rbp
je 0x14000215f
mov rdx, qword [rsp + 0x50]
sub rdx, rbp
mov rax, rbp
cmp rdx, 0x1000
jb 0x140002157
add rdx, 0x27
mov rbp, qword [rbp - 8]
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002236
mov rcx, rbp
call fcn.140006090
mov rax, rdi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140006070
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
lea rdx, str.Failed_to_read_URL
call fcn.1400029f0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140003350
movzx edx, al
mov rcx, rbx
call fcn.1400031a0
mov rcx, rbx
call fcn.140003040
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
xor r8d, r8d
lea rdx, [0x14002b280]
mov rcx, rdi
call fcn.140002cd0
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000215f
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000215a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002236
jmp 0x14000215a
call fcn.14000c948
nop
call fcn.14000c948
nop
call fcn.1400012e0
int3
call fcn.140001240
int3