Function at 0x140021960
Capabilities:
Download url
Receive data

Disassembly:
jmp 0x140021960
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x100
mov rax, qword [0x140122ec0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
mov rcx, qword [rcx + 0x10]
movabs rsi, 0x7fffffffffffffff
mov rax, rsi
sub rax, rcx
cmp rax, 0x12
jb 0x140021c1a
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400219b4
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], reloc.WS2_32.dll_select
lea r9, [0x1400f7b30]
mov r8, rbx
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x90]
call fcn.140001e56
nop
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rbx + 0x10]
mov rax, rsi
sub rax, rcx
cmp rax, rdx
jb 0x140021c20
mov r9, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140021a08
mov r9, qword [rdi]
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140021a15
mov rax, qword [rbx]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r8, rdi
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.140001e56
nop
lea r8, [rsp + 0x70]
cmp qword [rsp + 0x88], 0xf
cmova r8, qword [rsp + 0x70]
lea rdx, [rsp + 0x90]
cmp qword [rsp + 0xa8], 0xf
cmova rdx, qword [rsp + 0x90]
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor ecx, ecx
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x140021bd3
mov rdx, rdi
mov rcx, rbx
call fcn.140002c6b
test al, al
jne 0x140021ad4
movabs rbp, 0x7ffffffffa0a1eff
lea rcx, [rsp + 0x50]
call fcn.1400022ac
mov rax, qword [rsp + 0x50]
cmp rax, rbp
jge 0x140021ab6
add rax, 0x5f5e100
mov qword [rsp + 0x48], rax
jmp 0x140021abb
mov qword [rsp + 0x48], rsi
lea rcx, [rsp + 0x48]
call fcn.140001e38
mov rdx, rdi
mov rcx, rbx
call fcn.140002c6b
test al, al
je 0x140021a95
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140021ae1
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400021c6
lea rdx, str._Waiting_for...
mov rcx, rax
call fcn.1400012df
mov rcx, rax
lea rdx, [0x14000111d]
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 + 0x88]
cmp rdx, 0xf
jbe 0x140021b54
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021b4f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021b4f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000280b
movdqa xmm0, xmmword [0x1400f7260]
movdqu xmmword [rsp + 0x80], xmm0
mov byte [rsp + 0x70], 0
mov rdx, qword [rsp + 0xa8]
cmp rdx, 0xf
jbe 0x140021bb0
inc rdx
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021bab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021bab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000280b
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140001e2e
mov rbx, qword [rsp + 0x130]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret
mov edx, eax
lea rcx, [rsp + 0xb0]
call fcn.140002757
nop
mov r8, rax
lea rdx, str.Failed_to_download_file._Error_code:
lea rcx, [rsp + 0xd0]
call fcn.140002d65
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140001ae1
lea rdx, [0x1401217b0]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140001ec4
nop
call fcn.140001ec4
int3