Function at 0x140002900
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 + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
mov rax, qword [0x140014058]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
call fcn.140001fc0
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__time64]
mov rcx, rax
call qword [sym.imp.msvcrt.dll_srand]
xor r14d, r14d
mov ebx, r14d
call qword [sym.imp.msvcrt.dll_rand]
inc rbx
cmp rbx, 0x64
jl 0x140002951
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], 0xf
mov byte [rbp - 0x58], r14b
mov r8d, 8
lea rdx, str.main.txt
lea rcx, [rbp - 0x58]
call fcn.1400049c0
nop
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0x30]
call sub.msvcrt.dll_memset
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
mov r8d, 1
lea rcx, [rbp - 0x30]
call fcn.1400045b0
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea r8, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x30], r8
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x34], edx
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
mov ebx, dword [rbp + rcx - 0x20]
mov qword [rbp + rcx - 0x30], r8
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x20]
call fcn.140003bf0
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x30], rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx - 0x34], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x80], rax
lea rcx, [rbp + 0x80]
call fcn.140006cec
nop
test ebx, ebx
jne 0x140002a5b
lea rcx, [rbp - 0x58]
call fcn.1400021d0
jmp 0x140002fed
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r9d, 0x100
lea r8, [rbp - 0x30]
mov edx, 0x65
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jle 0x140002acd
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 7
lea rax, [rbp - 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140002aa0
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x60]
call fcn.140004840
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rbp - 0x68], xmm1
jmp 0x140002af6
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], r14w
xor r8d, r8d
lea rdx, [0x14001008c]
lea rcx, [rbp - 0x78]
call fcn.140004840
nop
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rdx, qword [rbp - 0x78]
mov rax, qword [rbp - 0x68]
lea rdi, [rdx + rax*2]
lea rbx, [rbp - 0x78]
cmovae rbx, qword [rbp - 0x78]
mov qword [rsp + 0x40], r14
mov r8, r14
mov qword [rsp + 0x50], r14
mov ecx, 0xf
mov qword [rsp + 0x58], rcx
mov byte [rsp + 0x40], r8b
mov rdx, rdi
sub rdx, rbx
sar rdx, 1
cmp rdx, 0x10
jb 0x140002b57
lea rcx, [rsp + 0x40]
call fcn.140006090
mov r8, r14
mov qword [rsp + 0x50], r14
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
mov qword [rbp - 0x38], rax
cmp rbx, rdi
je 0x140002baf
movzx r9d, byte [rbx]
cmp r8, rcx
jae 0x140002b92
lea rax, [r8 + 1]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
cmp rcx, 0x10
cmovae rax, qword [rsp + 0x40]
mov byte [rax + r8], r9b
mov byte [rax + r8 + 1], 0
jmp 0x140002b9c
lea rcx, [rsp + 0x40]
call fcn.140005290
add rbx, 2
mov rcx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
cmp rbx, rdi
jne 0x140002b65
lea rdx, [rsp + 0x40]
cmp rcx, 0x10
cmovae rdx, qword [rsp + 0x40]
call fcn.140005c10
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140004d30
movzx edx, al
mov rcx, rbx
call fcn.1400058b0
mov rcx, rbx
call fcn.1400057f0
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 0xf
mov r8d, 4
cmp qword [rsp + 0x50], r8
cmovb r8, qword [rsp + 0x50]
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1400049c0
lea rdx, [rsp + 0x60]
mov r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x78]
cmp r9, 0x10
cmovae rdx, r8
cmp qword [rsp + 0x70], 4
jne 0x140002c78
mov rcx, r14
lea r10, str.http
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r10 + rcx - 1]
jne 0x140002c6b
cmp rcx, 4
jne 0x140002c52
mov eax, r14d
jmp 0x140002c70
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140002c78
mov bl, 1
jmp 0x140002c7a
xor bl, bl
cmp r9, 0x10
jb 0x140002cb1
lea rdx, [r9 + 1]
mov rax, r8
cmp rdx, 0x1000
jb 0x140002ca9
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003058
mov rcx, r8
call fcn.140007a60
test bl, bl
je 0x140002ea6
lea rdx, str.Loading_StringTable_...
call fcn.140004eb0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140004d30
movzx edx, al
mov rcx, rbx
call fcn.1400058b0
mov rcx, rbx
call fcn.1400057f0
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__time64]
mov rcx, rax
call qword [sym.imp.msvcrt.dll_srand]
mov rbx, r14
call qword [sym.imp.msvcrt.dll_rand]
inc rbx
cmp rbx, 0x64
jl 0x140002d00
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
mov r8d, 8
lea rdx, str.main.txt
lea rcx, [rsp + 0x60]
call fcn.1400049c0
nop
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, str.Download
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rsi, rax
test rax, rax
je 0x140002e55
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbx, rax
test rax, rax
je 0x140002e4c
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
mov rcx, rbx
cmp rax, 0xffffffffffffffff
je 0x140002e46
lea r9, [rbp - 0x80]
mov r8d, 0x400
lea rdx, [rbp - 0x30]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140002e3a
nop dword [rax + rax]
mov r8d, dword [rbp - 0x80]
test r8d, r8d
je 0x140002e3a
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x38]
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rbp - 0x80]
mov r8d, 0x400
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140002e00
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rcx, [rsp + 0x60]
call fcn.1400021d0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140002f4c
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002e9c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000305e
call fcn.140007a60
jmp 0x140002f4c
lea rdx, str.Loading_LocalFile_...
call fcn.140004eb0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140004d30
movzx edx, al
mov rcx, rbx
call fcn.1400058b0
mov rcx, rbx
call fcn.1400057f0
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__time64]
mov rcx, rax
call qword [sym.imp.msvcrt.dll_srand]
mov rbx, r14
nop dword [rax]
call qword [sym.imp.msvcrt.dll_rand]
inc rbx
cmp rbx, 0x64
jl 0x140002ef0
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
call fcn.140005c10
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140004d30
movzx edx, al
mov rcx, rbx
call fcn.1400058b0
mov rcx, rbx
call fcn.1400057f0
lea rcx, [rsp + 0x40]
call fcn.1400021d0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140002f89
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002f84
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003064
call fcn.140007a60
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x140002fdc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002fd7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000306a
call fcn.140007a60
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], r14w
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x140003024
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000301f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003052
call fcn.140007a60
xor eax, eax
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.140007a40
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14000bda0
nop
call fcn.14000bda0
nop
call fcn.14000bda0
nop
call fcn.14000bda0
nop
call fcn.14000bda0
int3