Function at 0x140021b80
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x210
mov rax, qword [0x1400990a0]
xor rax, rsp
mov qword [rsp + 0x208], rax
mov rsi, r8
mov rdi, rdx
mov qword [rsp + 0x180], rdx
mov qword [rsp + 0x68], r8
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x140021bcc
mov rdx, qword [r8]
lea rcx, [rsp + 0x70]
call fcn.1400274c0
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], r15
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x6c], edx
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov ebx, dword [rsp + rcx + 0x80]
mov qword [rsp + rcx + 0x70], r15
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x80]
call fcn.1400067c0
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], r13
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x6c], edx
lea r12, vtable.std::ios_base.0
mov qword [rsp + 0x120], r12
lea rcx, [rsp + 0x120]
call fcn.14003ed24
nop
test ebx, ebx
jne 0x140021cec
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140021c86
mov rcx, qword [rsi]
call fcn.14005406c
mov rcx, qword [rsi + 0x10]
movabs r14, 0x7fffffffffffffff
mov rax, r14
sub rax, rcx
cmp rax, 0x31
jb 0x14002279f
mov rax, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140021cb6
mov rax, qword [rsi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x31
lea r9, str.Updater.DownloadUpdater_Deleting_old_update_from
lea rcx, [rsp + 0x1a8]
call fcn.14000a730
lea rcx, [rsp + 0x1a8]
call fcn.14002ff50
jmp 0x140021cf6
movabs r14, 0x7fffffffffffffff
jmp 0x140021d24
xor ebx, ebx
nop word [rax + rax]
mov rcx, qword [rdi + 0x10]
mov rax, r14
sub rax, rcx
cmp rax, 0x12
jb 0x140022799
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140021d51
mov rax, qword [rdi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x12
lea r9, str.About_to_download
lea rcx, [rsp + 0x1a8]
call fcn.14000a730
nop
mov r8d, 4
lea rdx, str._to
lea rcx, [rsp + 0x1a8]
call fcn.140008020
xor ecx, ecx
mov qword [rsp + 0x188], rcx
mov qword [rsp + 0x198], rcx
mov qword [rsp + 0x1a0], rcx
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x188], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x198], xmm1
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], 0xf
mov byte [rax], cl
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140021ddf
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x188]
call fcn.140008020
xor ecx, ecx
mov qword [rsp + 0x1c8], rcx
mov qword [rsp + 0x1d8], rcx
mov qword [rsp + 0x1e0], rcx
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x1c8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x1d8], xmm1
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], 0xf
mov byte [rax], cl
lea rcx, [rsp + 0x1c8]
call fcn.14002ff50
nop
mov rdx, qword [rsp + 0x1a0]
cmp rdx, 0x10
jb 0x140021e80
inc rdx
mov rcx, qword [rsp + 0x188]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021e7b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400227ab
call fcn.1400407d0
mov qword [rsp + 0x198], 0
mov qword [rsp + 0x1a0], 0xf
mov byte [rsp + 0x188], 0
mov rdx, qword [rsp + 0x1c0]
cmp rdx, 0x10
jb 0x140021ee3
inc rdx
mov rcx, qword [rsp + 0x1a8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021ede
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400227b1
call fcn.1400407d0
lea rax, [rsp + 0x1c8]
mov qword [rsp + 0x60], rax
mov rcx, qword [rdi + 0x10]
mov rax, r14
sub rax, rcx
cmp rax, 0x12
jb 0x1400227f1
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140021f11
mov rax, qword [rdi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x12
lea r9, str.About_to_download
lea rcx, [rsp + 0x1a8]
call fcn.14000a730
nop
mov r8d, 4
lea rdx, str._to
lea rcx, [rsp + 0x1a8]
call fcn.140008020
xor ecx, ecx
mov qword [rsp + 0x188], rcx
mov qword [rsp + 0x198], rcx
mov qword [rsp + 0x1a0], rcx
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x188], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x198], xmm1
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], 0xf
mov byte [rax], cl
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140021f9f
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x188]
call fcn.140008020
xor ecx, ecx
mov qword [rsp + 0x1c8], rcx
mov qword [rsp + 0x1d8], rcx
mov qword [rsp + 0x1e0], rcx
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x1c8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x1d8], xmm1
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], 0xf
mov byte [rax], cl
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], 0xf
lea r8d, [rcx + 0x18]
lea rdx, str.Updater::DownloadUpdater
lea rcx, [rsp + 0x40]
call fcn.140007ec0
nop
lea rdx, [rsp + 0x1c8]
lea rcx, [rsp + 0x40]
call fcn.140019ed0
nop
mov rdx, qword [rsp + 0x1a0]
cmp rdx, 0x10
jb 0x14002206e
inc rdx
mov rcx, qword [rsp + 0x188]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022069
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400227b7
call fcn.1400407d0
mov qword [rsp + 0x198], 0
mov qword [rsp + 0x1a0], 0xf
mov byte [rsp + 0x188], 0
mov rdx, qword [rsp + 0x1c0]
cmp rdx, 0x10
jb 0x1400220d1
inc rdx
mov rcx, qword [rsp + 0x1a8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400220cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400227bd
call fcn.1400407d0
mov r8, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x1400220de
mov r8, qword [rsi]
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400220eb
mov rdx, qword [rdi]
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
inc ebx
test eax, eax
je 0x1400223e9
cmp ebx, 3
jl 0x140021d30
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x60], rcx
mov edx, eax
lea rcx, [rsp + 0x1e8]
call fcn.140001f60
nop
mov r9d, 0xb
lea r8, str.Error_code
mov rcx, rax
call fcn.14000b550
xor ebx, ebx
mov qword [rsp + 0x1c8], rbx
mov qword [rsp + 0x1d8], rbx
mov qword [rsp + 0x1e0], rbx
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x1c8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x1d8], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], bl
lea r8d, [rbx + 0x19]
lea rdx, str._while_downloading_from:
lea rcx, [rsp + 0x1c8]
call fcn.140008020
mov qword [rsp + 0x188], rbx
mov qword [rsp + 0x198], rbx
mov qword [rsp + 0x1a0], rbx
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x188], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x198], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], bl
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400221e2
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rsp + 0x188]
call fcn.140008020
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov qword [rsp + 0x1a8], rbx
mov qword [rsp + 0x1b8], rbx
mov qword [rsp + 0x1c0], 0xf
mov r8d, 0xf
lea rdx, str.DownloadUpdater
lea rcx, [rsp + 0x1a8]
call fcn.140007ec0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x1a8]
call fcn.14001a180
nop
mov rdx, qword [rsp + 0x1a0]
cmp rdx, 0x10
jb 0x1400222af
inc rdx
mov rcx, qword [rsp + 0x188]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400222aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400227a5
call fcn.1400407d0
mov qword [rsp + 0x198], rbx
mov qword [rsp + 0x1a0], 0xf
mov byte [rsp + 0x188], 0
mov rdx, qword [rsp + 0x1e0]
cmp rdx, 0x10
jb 0x14002230e
inc rdx
mov rcx, qword [rsp + 0x1c8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022309
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400227c3
call fcn.1400407d0
mov qword [rsp + 0x1d8], rbx
mov qword [rsp + 0x1e0], 0xf
mov byte [rsp + 0x1c8], 0
mov rdx, qword [rsp + 0x200]
cmp rdx, 0x10
jb 0x14002236e
inc rdx
mov rcx, qword [rsp + 0x1e8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022368
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400227c9
call fcn.1400407d0
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400223a8
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400223a3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400227eb
mov rcx, r8
call fcn.1400407d0
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov eax, 6
mov rcx, qword [rsp + 0x208]
xor rcx, rsp
call fcn.1400407b0
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor eax, eax
mov qword [rsp + 0x1a8], rax
mov qword [rsp + 0x1b8], rax
mov qword [rsp + 0x1c0], 0xf
lea r8d, [rax + 0x11]
lea rdx, str.Download_complete
lea rcx, [rsp + 0x1a8]
call fcn.140007ec0
lea rcx, [rsp + 0x1a8]
call fcn.14002ff50
nop
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x14002243a
mov rdx, qword [rsi]
lea rcx, [rsp + 0x70]
call fcn.1400274c0
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], r15
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x6c], edx
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov ebx, dword [rsp + rcx + 0x80]
mov qword [rsp + rcx + 0x70], r15
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x80]
call fcn.1400067c0
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], r13
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x6c], edx
mov qword [rsp + 0x120], r12
lea rcx, [rsp + 0x120]
call fcn.14003ed24
nop
test ebx, ebx
je 0x14002272e
mov rcx, qword [rsi + 0x10]
mov rax, r14
sub rax, rcx
cmp rax, 0x28
jb 0x1400227cf
mov rax, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x1400224f7
mov rax, qword [rsi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x28
lea r9, str.Updater.DownloadUpdater_downloaded_file
lea rcx, [rsp + 0x1a8]
call fcn.14000a730
nop
mov r8d, 0xf
lea rdx, str._does_not_exist
lea rcx, [rsp + 0x1a8]
call fcn.140008020
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], bl
lea rcx, [rsp + 0x40]
call fcn.14002ff50
nop
mov rdx, qword [rsp + 0x1c0]
cmp rdx, 0x10
jb 0x1400225b7
inc rdx
mov rcx, qword [rsp + 0x1a8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400225b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400227d4
call fcn.1400407d0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov rax, qword [rsi + 0x10]
sub r14, rax
cmp r14, 0x10
jb 0x1400227da
cmp qword [rsi + 0x18], 0x10
jb 0x1400225dc
mov rsi, qword [rsi]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0x10
lea r9, str.Downloaded_file
lea rcx, [rsp + 0x1c8]
call fcn.14000a730
nop
mov r8d, 0xf
lea rdx, str._does_not_exist
lea rcx, [rsp + 0x1c8]
call fcn.140008020
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov qword [rsp + 0x1a8], rbx
mov qword [rsp + 0x1b8], rbx
mov qword [rsp + 0x1c0], 0xf
mov r8d, 0xf
lea rdx, str.DownloadUpdater
lea rcx, [rsp + 0x1a8]
call fcn.140007ec0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x1a8]
call fcn.14001a180
nop
mov rdx, qword [rsp + 0x1e0]
cmp rdx, 0x10
jb 0x1400226db
inc rdx
mov rcx, qword [rsp + 0x1c8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400226d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400227df
call fcn.1400407d0
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140022715
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140022710
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400227e5
mov rcx, r8
call fcn.1400407d0
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov eax, 7
jmp 0x1400223bc
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140022768
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140022763
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400227eb
mov rcx, r8
call fcn.1400407d0
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
xor eax, eax
jmp 0x1400223bc
call fcn.140001380
nop
call fcn.140001380
nop
call fcn.140053304
nop
call fcn.140053304
nop
call fcn.140053304
nop
call fcn.140053304
nop
call fcn.140053304
nop
call fcn.140053304
nop
call fcn.140053304
nop
call fcn.140001380
call fcn.140053304
int3
call fcn.140001380
call fcn.140053304
nop
call fcn.140053304
int3
call fcn.140053304
nop
call fcn.140001380
int3