Function at 0x140003480
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140013040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
xor r15d, r15d
cmp qword [rdx + 0x18], 7
jbe 0x1400034b6
mov rdx, qword [rdx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x48]
call fcn.140008fc0
nop
mov qword [rsp + 0x38], r15
lea r12, [0x1400130b8]
mov qword [rsp + 0x40], r12
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.140002d80
movzx r14d, al
cmp dword [rsp + 0x38], 0
jne 0x1400037a6
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14000354b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003546
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003546
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000a8ac
test r14b, r14b
je 0x140003607
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
mov r8d, 0x27
lea rdx, str.File_already_exists:_Skipping_download.
lea rcx, [rsp + 0x48]
call fcn.140009240
nop
lea rdx, str._STATUS_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140008120
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov rcx, rax
call fcn.140009990
lea rdx, [0x140008300]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140003600
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400035fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400035fb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000a8ac
mov al, 1
jmp 0x140003784
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 7
jbe 0x140003615
mov rdi, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140008fc0
nop
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r12
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.140002d80
cmp dword [rsp + 0x38], 0
jne 0x1400037bd
test al, al
jne 0x140003681
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r12
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.140002e90
cmp dword [rsp + 0x38], 0
jne 0x1400037d3
cmp qword [rbx + 0x18], 7
jbe 0x14000368b
mov rbx, qword [rbx]
cmp qword [rsi + 0x18], 7
jbe 0x140003695
mov rsi, qword [rsi]
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8, rbx
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov ebx, eax
test eax, eax
js 0x1400036fa
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x1400036f3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400036ee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003772
call fcn.14000a8ac
mov al, 1
jmp 0x140003784
lea rdx, str.File_download_failed_with_error_code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008120
lea rdx, [0x140001a90]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, ebx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
lea rdx, [0x140008300]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14000377e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003779
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003779
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000a8ac
xor al, al
jmp 0x140003784
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14000a780
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x38]
lea rcx, str.exists
call fcn.140002780
nop
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x38]
lea rcx, str.exists
call fcn.140002780
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x38]
lea rcx, str.create_directories
call fcn.140002780
int3