Function at 0x140042ca0
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rbx, rdx
mov rdi, rcx
xor r12d, r12d
mov esi, dword [rcx + 0x10]
mov r8, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x140042cd2
mov r8, qword [rcx]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
lea r9d, [rsi + 1]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd r14, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
mov r8, r14
lea rcx, [rbp - 0x20]
call fcn.14004e4a0
lea rcx, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova rcx, qword [rbp - 0x20]
cmp qword [rdi + 0x18], 0xf
jbe 0x140042d20
mov rdi, qword [rdi]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rcx
lea r9d, [rsi + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop
lea rdi, [rbx + 0x10]
mov esi, dword [rdi]
mov r8, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140042d53
mov r8, qword [rbx]
lea rdi, [rbx + 0x10]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
lea r9d, [rsi + 1]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd r15, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
mov r8, r15
lea rcx, [rbp - 0x40]
call fcn.14004e4a0
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rcx, qword [rbp - 0x40]
mov r8, rbx
mov r14, rdi
cmp qword [rbx + 0x18], 0xf
jbe 0x140042dab
mov r8, qword [rbx]
lea r14, [rbx + 0x10]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rcx
lea r9d, [rsi + 1]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop
lea r8, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
jbe 0x140042dd6
mov r8, qword [rbp - 0x40]
mov rdi, r14
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova rdx, qword [rbp - 0x20]
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test eax, eax
lea rdx, str.Download_successful:
jns 0x140042e0d
lea rdx, str.Download_failed:
call fcn.14004d730
cmp qword [rbx + 0x18], 0xf
jbe 0x140042e1c
mov rbx, qword [rbx]
mov r8, qword [rdi]
mov rdx, rbx
mov rcx, rax
call fcn.14004f400
lea rdx, [0x14004d900]
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 [rbp - 0x28]
cmp rdx, 7
jbe 0x140042e7e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042e79
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140042e79
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b9ecc
movdqa xmm0, xmmword [0x1400e7b90]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], r12w
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x140042ed3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042ece
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140042ece
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b9ecc
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret