Function at 0x140024de0
Capabilities:
Check for time delay via gettickcount
Check http status code
Create http request
Delete file
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x450]
sub rsp, 0x550
mov rax, qword [0x140162470]
xor rax, rsp
mov qword [rbp + 0x440], rax
mov r13, qword [rcx + 0xa0]
mov qword [rsp + 0x78], r8
mov r12, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
and qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, r12
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x44], eax
mov edi, 1
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140025135
lea rcx, [rbp + 0x40]
mov rdx, rbx
call fcn.140025914
lea rcx, [rbp + 0x40]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0x10000000
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r14, rax
test rax, rax
je 0x14002511f
lea r8d, [rdi + 4]
lea rdx, str.https
mov rcx, r13
mov ebx, 0x84080300
call fcn.1400e93d0
mov ecx, 0x84880300
test eax, eax
lea rax, [rsp + 0x50]
cmove ebx, ecx
mov qword [rsp + 0x60], rax
xor eax, eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea rdx, [0x140025164]
mov rcx, r14
mov qword [rsp + 0x70], rax
call qword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
mov rcx, r14
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x140024f3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140024f3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14002510b
mov rcx, qword [rsp + 0x70]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
and dword [rsp + 0x5c], esi
and dword [rsp + 0x40], esi
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x5c]
mov ebx, 4
mov edx, 0x20000013
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], ebx
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [rsp + 0x5c], 0xc8
jne 0x140025100
mov rcx, qword [rsp + 0x50]
and dword [rsp + 0x48], esi
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x40]
mov edx, 0x20000005
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], ebx
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x140024fcf
mov ecx, dword [rsp + 0x40]
lea r8d, [rbx + 0x1c]
lea rdx, [rbp - 0x40]
call qword [sym.imp.SHLWAPI.dll_StrFormatByteSizeW]
mov edi, dword [rsp + 0x44]
mov r13, qword [rsp + 0x78]
xor edx, edx
lea rcx, [rbp - 0x78]
lea r8d, [rdx + 0x30]
call fcn.1400ea1b0
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
lea rax, [rbp + 0x40]
lea r8d, [r9 + 9]
lea rdx, [rbp - 0x80]
mov dword [rbp - 0x80], 0x38
mov dword [rbp - 0x58], 0x400
mov qword [rbp - 0x60], rax
call qword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x140025038
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400250f2
mov rcx, qword [rsp + 0x70]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140024fd8
cmp dword [rbp - 0x58], 0
je 0x1400250fc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, dword [rbp - 0x58]
mov rdx, qword [rbp - 0x60]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
add esi, dword [rbp - 0x58]
mov ecx, ebx
sub ecx, edi
cmp ecx, 0xc8
ja 0x14002507f
cmp esi, dword [rsp + 0x40]
jne 0x140024fd8
lea rdx, [rbp]
mov ecx, esi
mov r8d, 0x20
call qword [sym.imp.SHLWAPI.dll_StrFormatByteSizeW]
lea r9, [rbp - 0x40]
lea r8, [rbp]
lea rdx, [0x14016dea0]
lea rcx, [rbp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rbp + 0x40]
mov edx, 9
mov rcx, r13
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
mov r8d, dword [rsp + 0x40]
mov edx, 0x64
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_MulDiv]
and qword [rsp + 0x20], 0
mov edx, 0x34
mov r8d, 0x402
mov rcx, r13
movsxd r9, eax
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov edi, ebx
jmp 0x140024fd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140025100
mov edi, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x140025135
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
mov rcx, qword [rbp + 0x440]
xor rcx, rsp
call fcn.1400e79e0
mov rbx, qword [rsp + 0x5a8]
add rsp, 0x550
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret