Function at 0x140022350
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 [0x14009a0a0]
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 0x14002239c
mov rdx, qword [r8]
lea rcx, [rsp + 0x70]
call fcn.140027c90
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.14003f5d4
nop
test ebx, ebx
jne 0x1400224bc
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140022456
mov rcx, qword [rsi]
call fcn.14005491c
mov rcx, qword [rsi + 0x10]
movabs r14, 0x7fffffffffffffff
mov rax, r14
sub rax, rcx
cmp rax, 0x31
jb 0x140022f6f
mov rax, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140022486
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.1400307e0
jmp 0x1400224c6
movabs r14, 0x7fffffffffffffff
jmp 0x1400224f4
xor ebx, ebx
nop word [rax + rax]
mov rcx, qword [rdi + 0x10]
mov rax, r14
sub rax, rcx
cmp rax, 0x12
jb 0x140022f69
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140022521
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 0x1400225af
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.1400307e0
nop
mov rdx, qword [rsp + 0x1a0]
cmp rdx, 0x10
jb 0x140022650
inc rdx
mov rcx, qword [rsp + 0x188]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002264b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022f7b
call fcn.140041080
mov qword [rsp + 0x198], 0
mov qword [rsp + 0x1a0], 0xf
mov byte [rsp + 0x188], 0
mov rdx, qword [rsp + 0x1c0]
cmp rdx, 0x10
jb 0x1400226b3
inc rdx
mov rcx, qword [rsp + 0x1a8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400226ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022f81
call fcn.140041080
lea rax, [rsp + 0x1c8]
mov qword [rsp + 0x60], rax
mov rcx, qword [rdi + 0x10]
mov rax, r14
sub rax, rcx
cmp rax, 0x12
jb 0x140022fc1
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400226e1
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 0x14002276f
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 0x14002283e
inc rdx
mov rcx, qword [rsp + 0x188]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022839
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022f87
call fcn.140041080
mov qword [rsp + 0x198], 0
mov qword [rsp + 0x1a0], 0xf
mov byte [rsp + 0x188], 0
mov rdx, qword [rsp + 0x1c0]
cmp rdx, 0x10
jb 0x1400228a1
inc rdx
mov rcx, qword [rsp + 0x1a8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002289c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022f8d
call fcn.140041080
mov r8, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x1400228ae
mov r8, qword [rsi]
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400228bb
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 0x140022bb9
cmp ebx, 3
jl 0x140022500
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 0x1400229b2
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 0x140022a7f
inc rdx
mov rcx, qword [rsp + 0x188]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022a7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022f75
call fcn.140041080
mov qword [rsp + 0x198], rbx
mov qword [rsp + 0x1a0], 0xf
mov byte [rsp + 0x188], 0
mov rdx, qword [rsp + 0x1e0]
cmp rdx, 0x10
jb 0x140022ade
inc rdx
mov rcx, qword [rsp + 0x1c8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022ad9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022f93
call fcn.140041080
mov qword [rsp + 0x1d8], rbx
mov qword [rsp + 0x1e0], 0xf
mov byte [rsp + 0x1c8], 0
mov rdx, qword [rsp + 0x200]
cmp rdx, 0x10
jb 0x140022b3e
inc rdx
mov rcx, qword [rsp + 0x1e8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022b38
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022f99
call fcn.140041080
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140022b78
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140022b73
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140022fbb
mov rcx, r8
call fcn.140041080
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.140041060
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.1400307e0
nop
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140022c0a
mov rdx, qword [rsi]
lea rcx, [rsp + 0x70]
call fcn.140027c90
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.14003f5d4
nop
test ebx, ebx
je 0x140022efe
mov rcx, qword [rsi + 0x10]
mov rax, r14
sub rax, rcx
cmp rax, 0x28
jb 0x140022f9f
mov rax, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140022cc7
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.1400307e0
nop
mov rdx, qword [rsp + 0x1c0]
cmp rdx, 0x10
jb 0x140022d87
inc rdx
mov rcx, qword [rsp + 0x1a8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022d82
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022fa4
call fcn.140041080
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov rax, qword [rsi + 0x10]
sub r14, rax
cmp r14, 0x10
jb 0x140022faa
cmp qword [rsi + 0x18], 0x10
jb 0x140022dac
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 0x140022eab
inc rdx
mov rcx, qword [rsp + 0x1c8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022ea5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022faf
call fcn.140041080
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140022ee5
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140022ee0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140022fb5
mov rcx, r8
call fcn.140041080
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov eax, 7
jmp 0x140022b8c
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140022f38
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140022f33
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140022fbb
mov rcx, r8
call fcn.140041080
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
xor eax, eax
jmp 0x140022b8c
call fcn.140001380
nop
call fcn.140001380
nop
call fcn.140053bb4
nop
call fcn.140053bb4
nop
call fcn.140053bb4
nop
call fcn.140053bb4
nop
call fcn.140053bb4
nop
call fcn.140053bb4
nop
call fcn.140053bb4
nop
call fcn.140001380
call fcn.140053bb4
int3
call fcn.140001380
call fcn.140053bb4
nop
call fcn.140053bb4
int3
call fcn.140053bb4
nop
call fcn.140001380
int3