Function at 0x1400474b0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x480
mov rax, qword [0x14017dbd0]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 1]
lea rcx, str.FileDownloader
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rbp, rax
test rax, rax
jne 0x140047558
lea rdx, str.InternetOpen_failed:
lea rcx, [0x1401807e0]
call fcn.14003ce70
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140047f50
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14003c070
movzx edx, al
mov rcx, rbx
call fcn.14003f040
mov rcx, rbx
call fcn.14003eee0
xor al, al
jmp 0x140047782
cmp qword [rbx + 0x18], 0x10
jb 0x14004756b
mov r8, qword [rbx]
add r8, qword [rbx + 0x10]
mov rbx, qword [rbx]
jmp 0x140047572
mov r8, qword [rbx + 0x10]
add r8, rbx
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.14004a180
nop
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rdi, rax
test rax, rax
jne 0x140047612
lea rdx, str.InternetOpenUrl_failed:
lea rcx, [0x1401807e0]
call fcn.14003ce70
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140047f50
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14003c070
movzx edx, al
mov rcx, rbx
call fcn.14003f040
mov rcx, rbx
call fcn.14003eee0
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor bl, bl
jmp 0x14004772d
cmp qword [rsi + 0x18], 8
jb 0x14004761c
mov rsi, qword [rsi]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400476b4
lea rdx, str.CreateFile_failed:
lea rcx, [0x1401807e0]
call fcn.14003ce70
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140047f50
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14003c070
movzx edx, al
mov rcx, rbx
call fcn.14003f040
mov rcx, rbx
call fcn.14003eee0
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor bl, bl
jmp 0x14004772d
lea r9, [rsp + 0x40]
mov r8d, 0x400
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140047710
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x140047710
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x40]
mov r8d, 0x400
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1400476d1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov bl, 1
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14004776b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047766
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400477aa
call fcn.140095fd0
movdqa xmm0, xmmword [0x140166580]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r14w
movzx eax, bl
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140095fb0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.1400700d0
int3