Function at 0x140003ec0
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140050100]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rdi, rdx
mov r8, rdx
cmp qword [rdx + 0x18], 7
jbe 0x140003efe
mov r8, qword [rdx]
cmp qword [rcx + 0x18], 7
jbe 0x140003f08
mov rcx, qword [rcx]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov ebx, eax
test eax, eax
jns 0x140003f4a
lea rdx, str.____Error_downloading_file:
call fcn.14000dd30
mov edx, ebx
mov rcx, rax
call fcn.140007a60
mov rcx, rax
call fcn.14000e040
xor al, al
jmp 0x1400041b6
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x70]
call fcn.140039a50
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140003f68
mov rdx, qword [rdi]
lea rcx, [rbp - 0x70]
call fcn.14000b560
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], r15
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x74], edx
cmp qword [rbp + 0x20], 0
jne 0x140003fd2
lea rdx, str.____Error_opening_downloaded_file:
call fcn.14000dd30
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 7
jbe 0x140003fb8
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rax
call fcn.1400118d0
mov rcx, rax
call fcn.14000e040
xor bl, bl
jmp 0x140004151
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.140007610
mov rsi, qword [rax + 8]
add rsi, qword [rax]
lea rcx, [rbp - 0x70]
call fcn.1400076f0
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
mov qword [rbp - 0x80], rax
test rsi, rsi
je 0x140004073
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
ja 0x1400041e3
cmp rsi, 0x1000
jb 0x14000404c
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x1400041e9
call fcn.1400158e8
mov rcx, rax
test rax, rax
je 0x1400041dd
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140004054
mov rcx, rsi
call fcn.1400158e8
mov qword [rsp + 0x70], rax
lea rbx, [rax + rsi]
mov qword [rbp - 0x80], rbx
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.140039a50
mov qword [rsp + 0x78], rbx
mov r8, rsi
mov rdx, qword [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.1400078e0
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
je 0x1400040c3
lea rdx, str.____Error_reading_downloaded_file:
call fcn.14000dd30
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 7
jbe 0x1400040ac
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rax
call fcn.1400118d0
mov rcx, rax
call fcn.14000e040
xor bl, bl
jmp 0x140004105
lea rcx, [rbp - 0x60]
call fcn.14000baa0
test rax, rax
jne 0x140004103
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx - 0x28], 0
cmovne eax, edx
or eax, dword [rbp + rcx - 0x60]
and eax, 0x17
mov dword [rbp + rcx - 0x60], eax
mov edx, dword [rbp + rcx - 0x5c]
and edx, eax
jne 0x1400041ef
mov bl, 1
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140004151
mov rdx, qword [rbp - 0x80]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000413b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400041dd
call fcn.1400158e0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], 0
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], r15
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x60]
call fcn.140008980
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rcx, qword [rbp - 0x70]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x18]
mov dword [rbp + rdx - 0x74], r8d
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x40], rax
lea rcx, [rbp + 0x40]
call fcn.1400135b4
nop
movzx eax, bl
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400158c0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
call fcn.14001faf8
nop
call fcn.140011870
int3
call fcn.140001520
nop
test dl, 4
je 0x1400041fd
lea rbx, str.ios_base::badbit_set
jmp 0x140004212
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1400016b0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140002ab0
lea rdx, [0x14004e768]
lea rcx, [rsp + 0x48]
call fcn.140017780
int3